From 40ddea9b80e984e4bc8bf7f62a5f888a695b2f8a Mon Sep 17 00:00:00 2001 From: sentisso <38100632+sentisso@users.noreply.github.com> Date: Tue, 24 Sep 2024 18:50:44 +0200 Subject: [PATCH] Updates --- ...{index-8Ocx6oqz.css => index-BAItNVJk.css} | 2 +- assets/index-CVHWFlzF.js | 268 ++++++++++++++++++ assets/index-DIy-qacd.js | 247 ---------------- index.html | 4 +- 4 files changed, 271 insertions(+), 250 deletions(-) rename assets/{index-8Ocx6oqz.css => index-BAItNVJk.css} (87%) create mode 100644 assets/index-CVHWFlzF.js delete mode 100644 assets/index-DIy-qacd.js diff --git a/assets/index-8Ocx6oqz.css b/assets/index-BAItNVJk.css similarity index 87% rename from assets/index-8Ocx6oqz.css rename to assets/index-BAItNVJk.css index d1e1fc9..266f508 100644 --- a/assets/index-8Ocx6oqz.css +++ b/assets/index-BAItNVJk.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.ml-auto{margin-left:auto}.flex{display:flex}.max-w-screen-xl{max-width:1280px}.items-center{align-items:center}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mt-14{margin-top:3.5rem}.flex{display:flex}.max-w-screen-xl{max-width:1280px}.items-center{align-items:center}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-3{padding-left:.75rem;padding-right:.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))} diff --git a/assets/index-CVHWFlzF.js b/assets/index-CVHWFlzF.js new file mode 100644 index 0000000..a0cbfa6 --- /dev/null +++ b/assets/index-CVHWFlzF.js @@ -0,0 +1,268 @@ +var y2=Object.defineProperty;var b2=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tt=(e,t,n)=>b2(e,typeof t!="symbol"?t+"":t,n);function uS(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dS={exports:{}},ef={},fS={exports:{}},lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wc=Symbol.for("react.element"),x2=Symbol.for("react.portal"),S2=Symbol.for("react.fragment"),C2=Symbol.for("react.strict_mode"),w2=Symbol.for("react.profiler"),E2=Symbol.for("react.provider"),_2=Symbol.for("react.context"),$2=Symbol.for("react.forward_ref"),O2=Symbol.for("react.suspense"),P2=Symbol.for("react.memo"),M2=Symbol.for("react.lazy"),_0=Symbol.iterator;function T2(e){return e===null||typeof e!="object"?null:(e=_0&&e[_0]||e["@@iterator"],typeof e=="function"?e:null)}var hS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gS=Object.assign,mS={};function _s(e,t,n){this.props=e,this.context=t,this.refs=mS,this.updater=n||hS}_s.prototype.isReactComponent={};_s.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};_s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pS(){}pS.prototype=_s.prototype;function Cp(e,t,n){this.props=e,this.context=t,this.refs=mS,this.updater=n||hS}var wp=Cp.prototype=new pS;wp.constructor=Cp;gS(wp,_s.prototype);wp.isPureReactComponent=!0;var $0=Array.isArray,vS=Object.prototype.hasOwnProperty,Ep={current:null},yS={key:!0,ref:!0,__self:!0,__source:!0};function bS(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)vS.call(t,r)&&!yS.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,G=R[H];if(0>>1;Hi(K,D))eei(U,K)?(R[H]=U,R[ee]=D,H=ee):(R[H]=K,R[W]=D,H=W);else if(eei(U,D))R[H]=U,R[ee]=D,H=ee;else break e}}return N}function i(R,N){var D=R.sortIndex-N.sortIndex;return D!==0?D:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,m=!1,y=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=R)r(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(c)}}function S(R){if(v=!1,x(R),!y)if(n(l)!==null)y=!0,A(C);else{var N=n(c);N!==null&&P(S,N.startTime-R)}}function C(R,N){y=!1,v&&(v=!1,p(_),_=-1),m=!0;var D=h;try{for(x(N),f=n(l);f!==null&&(!(f.expirationTime>N)||R&&!I());){var H=f.callback;if(typeof H=="function"){f.callback=null,h=f.priorityLevel;var G=H(f.expirationTime<=N);N=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(l)&&r(l),x(N)}else r(l);f=n(l)}if(f!==null)var X=!0;else{var W=n(c);W!==null&&P(S,W.startTime-N),X=!1}return X}finally{f=null,h=D,m=!1}}var w=!1,E=null,_=-1,O=5,M=-1;function I(){return!(e.unstable_now()-MR||125H?(R.sortIndex=D,t(c,R),n(l)===null&&R===n(c)&&(v?(p(_),_=-1):v=!0,P(S,D-H))):(R.sortIndex=G,t(l,R),y||m||(y=!0,A(C))),R},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(R){var N=h;return function(){var D=h;h=N;try{return R.apply(this,arguments)}finally{h=D}}}})(ES);wS.exports=ES;var B2=wS.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var H2=d,xr=B2;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cg=Object.prototype.hasOwnProperty,V2=/^[: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]*$/,P0={},M0={};function W2(e){return cg.call(M0,e)?!0:cg.call(P0,e)?!1:V2.test(e)?M0[e]=!0:(P0[e]=!0,!1)}function U2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G2(e,t,n,r){if(t===null||typeof t>"u"||U2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new tr(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){jn[e]=new tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $p=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(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($p,Op);jn[t]=new tr(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($p,Op);jn[t]=new tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pp(e,t,n,r){var i=jn.hasOwnProperty(t)?jn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Jf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function K2(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=eh(e.type,!1),e;case 11:return e=eh(e.type.render,!1),e;case 1:return e=eh(e.type,!0),e;default:return""}}function hg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Da:return"Fragment";case La:return"Portal";case ug:return"Profiler";case Mp:return"StrictMode";case dg:return"Suspense";case fg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OS:return(e.displayName||"Context")+".Consumer";case $S:return(e._context.displayName||"Context")+".Provider";case Tp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rp:return t=e.displayName||null,t!==null?t:hg(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return hg(e(t))}catch{}}return null}function q2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hg(t);case 8:return t===Mp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X2(e){var t=MS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wc(e){e._valueTracker||(e._valueTracker=X2(e))}function TS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gg(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function R0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RS(e,t){t=t.checked,t!=null&&Pp(e,"checked",t,!1)}function mg(e,t){RS(e,t);var n=xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pg(e,t.type,n):t.hasOwnProperty("defaultValue")&&pg(e,t.type,xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pg(e,t,n){(t!=="number"||cd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var il=Array.isArray;function Ja(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Y2=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){Y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gl[t]=gl[e]})});function FS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gl.hasOwnProperty(e)&&gl[e]?(""+t).trim():t+"px"}function AS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=FS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Q2=Jt({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 bg(e,t){if(t){if(Q2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function xg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sg=null;function Ip(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cg=null,es=null,ts=null;function F0(e){if(e=$c(e)){if(typeof Cg!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=sf(t),Cg(e.stateNode,e.type,t))}}function LS(e){es?ts?ts.push(e):ts=[e]:es=e}function DS(){if(es){var e=es,t=ts;if(ts=es=null,F0(e),t)for(e=0;e>>=0,e===0?32:31-(lO(e)/cO|0)|0}var Gc=64,Kc=4194304;function ol(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=ol(s):(o&=a,o!==0&&(r=ol(o)))}else a=n&~i,a!==0?r=ol(a):o!==0&&(r=ol(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ti(t),e[t]=n}function hO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pl),W0=" ",U0=!1;function iC(e,t){switch(e){case"keyup":return BO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function VO(e,t){switch(e){case"compositionend":return oC(t);case"keypress":return t.which!==32?null:(U0=!0,W0);case"textInput":return e=t.data,e===W0&&U0?null:e;default:return null}}function WO(e,t){if(za)return e==="compositionend"||!jp&&iC(e,t)?(e=nC(),Du=Lp=to=null,za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=X0(n)}}function cC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uC(){for(var e=window,t=cd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cd(e.document)}return t}function Bp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JO(e){var t=uC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cC(n.ownerDocument.documentElement,n)){if(r!==null&&Bp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Y0(n,o);var a=Y0(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ja=null,Pg=null,yl=null,Mg=!1;function Q0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mg||ja==null||ja!==cd(r)||(r=ja,"selectionStart"in r&&Bp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yl&&Wl(yl,r)||(yl=r,r=pd(Pg,"onSelect"),0Va||(e.current=Fg[Va],Fg[Va]=null,Va--)}function zt(e,t){Va++,Fg[Va]=e.current,e.current=t}var So={},qn=Oo(So),ur=Oo(!1),na=So;function us(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dr(e){return e=e.childContextTypes,e!=null}function yd(){Ut(ur),Ut(qn)}function iy(e,t,n){if(qn.current!==So)throw Error(oe(168));zt(qn,t),zt(ur,n)}function bC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(oe(108,q2(e)||"Unknown",i));return Jt({},n,r)}function bd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,na=qn.current,zt(qn,e),zt(ur,ur.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=bC(e,t,na),r.__reactInternalMemoizedMergedChildContext=e,Ut(ur),Ut(qn),zt(qn,e)):Ut(ur),zt(ur,n)}var Pi=null,lf=!1,gh=!1;function xC(e){Pi===null?Pi=[e]:Pi.push(e)}function dP(e){lf=!0,xC(e)}function Po(){if(!gh&&Pi!==null){gh=!0;var e=0,t=Pt;try{var n=Pi;for(Pt=1;e>=a,i-=a,Ti=1<<32-ti(t)+i|n<_?(O=E,E=null):O=E.sibling;var M=h(p,E,x[_],S);if(M===null){E===null&&(E=O);break}e&&E&&M.alternate===null&&t(p,E),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M,E=O}if(_===x.length)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;__?(O=E,E=null):O=E.sibling;var I=h(p,E,M.value,S);if(I===null){E===null&&(E=O);break}e&&E&&I.alternate===null&&t(p,E),g=o(I,g,_),w===null?C=I:w.sibling=I,w=I,E=O}if(M.done)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;!M.done;_++,M=x.next())M=f(p,M.value,S),M!==null&&(g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return qt&&Do(p,_),C}for(E=r(p,E);!M.done;_++,M=x.next())M=m(E,p,_,M.value,S),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?_:M.key),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return e&&E.forEach(function(k){return t(p,k)}),qt&&Do(p,_),C}function b(p,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Da&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Vc:e:{for(var C=x.key,w=g;w!==null;){if(w.key===C){if(C=x.type,C===Da){if(w.tag===7){n(p,w.sibling),g=i(w,x.props.children),g.return=p,p=g;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yi&&ly(C)===w.type){n(p,w.sibling),g=i(w,x.props),g.ref=Vs(p,w,x),g.return=p,p=g;break e}n(p,w);break}else t(p,w);w=w.sibling}x.type===Da?(g=Zo(x.props.children,p.mode,S,x.key),g.return=p,p=g):(S=Gu(x.type,x.key,x.props,null,p.mode,S),S.ref=Vs(p,g,x),S.return=p,p=S)}return a(p);case La:e:{for(w=x.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(p,g.sibling),g=i(g,x.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=Ch(x,p.mode,S),g.return=p,p=g}return a(p);case Yi:return w=x._init,b(p,g,w(x._payload),S)}if(il(x))return y(p,g,x,S);if(Ds(x))return v(p,g,x,S);eu(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(p,g.sibling),g=i(g,x),g.return=p,p=g):(n(p,g),g=Sh(x,p.mode,S),g.return=p,p=g),a(p)):n(p,g)}return b}var fs=EC(!0),_C=EC(!1),Cd=Oo(null),wd=null,Ga=null,Up=null;function Gp(){Up=Ga=wd=null}function Kp(e){var t=Cd.current;Ut(Cd),e._currentValue=t}function Dg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rs(e,t){wd=e,Up=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cr=!0),e.firstContext=null)}function Dr(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(wd===null)throw Error(oe(308));Ga=e,wd.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Wo=null;function qp(e){Wo===null?Wo=[e]:Wo.push(e)}function $C(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qi=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OC(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 Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,yt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Li(e,n)}return i=r.interleaved,i===null?(t.next=t,qp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Li(e,n)}function ju(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}function cy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ed(e,t,n,r){var i=e.updateQueue;Qi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,u=c=l=null,s=o;do{var h=s.lane,m=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(h=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(m,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(m,f,h):y,h==null)break e;f=Jt({},f,h);break e;case 2:Qi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else m={eventTime:m,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);oa|=a,e.lanes=a,e.memoizedState=f}}function uy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{Pt=n,ph.transition=r}}function WC(){return zr().memoizedState}function mP(e,t,n){var r=mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UC(e))GC(t,n);else if(n=$C(e,t,n,r),n!==null){var i=Zn();ni(n,e,r,i),KC(n,t,r)}}function pP(e,t,n){var r=mo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UC(e))GC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,oi(s,a)){var l=t.interleaved;l===null?(i.next=i,qp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$C(e,t,i,r),n!==null&&(i=Zn(),ni(n,e,r,i),KC(n,t,r))}}function UC(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function GC(e,t){bl=$d=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}var Od={readContext:Dr,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},vP={readContext:Dr,useCallback:function(e,t){return fi().memoizedState=[e,t===void 0?null:t],e},useContext:Dr,useEffect:fy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hu(4194308,4,zC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hu(4,2,e,t)},useMemo:function(e,t){var n=fi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mP.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=fi();return e={current:e},t.memoizedState=e},useState:dy,useDebugValue:rv,useDeferredValue:function(e){return fi().memoizedState=e},useTransition:function(){var e=dy(!1),t=e[0];return e=gP.bind(null,e[1]),fi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,i=fi();if(qt){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),kn===null)throw Error(oe(349));ia&30||RC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fy(kC.bind(null,r,o,e),[e]),r.flags|=2048,Zl(9,IC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=fi(),t=kn.identifierPrefix;if(qt){var n=Ri,r=Ti;n=(r&~(1<<32-ti(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pi]=t,e[Kl]=r,rw(e,t,!1,!1),t.stateNode=e;e:{switch(a=xg(n,r),n){case"dialog":Wt("cancel",e),Wt("close",e),i=r;break;case"iframe":case"object":case"embed":Wt("load",e),i=r;break;case"video":case"audio":for(i=0;ims&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(e=_d(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!qt)return Vn(t),null}else 2*un()-o.renderingStartTime>ms&&n!==1073741824&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=un(),t.sibling=null,n=Qt.current,zt(Qt,r?n&1|2:n&1),t):(Vn(t),null);case 22:case 23:return cv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pr&1073741824&&(Vn(t),t.subtreeFlags&6&&(t.flags|=8192)):Vn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function _P(e,t){switch(Vp(t),t.tag){case 1:return dr(t.type)&&yd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hs(),Ut(ur),Ut(qn),Zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qp(t),null;case 13:if(Ut(Qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ut(Qt),null;case 4:return hs(),null;case 10:return Kp(t.type._context),null;case 22:case 23:return cv(),null;case 24:return null;default:return null}}var nu=!1,Gn=!1,$P=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Ka(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function Kg(e,t,n){try{n()}catch(r){rn(e,t,r)}}var wy=!1;function OP(e,t){if(Tg=gd,e=uC(),Bp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===i&&(s=a),h===o&&++u===r&&(l=a),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rg={focusedElem:e,selectionRange:n},gd=!1,Oe=t;Oe!==null;)if(t=Oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Oe=e;else for(;Oe!==null;){t=Oe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,b=y.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:qr(t.type,v),b);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(S){rn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Oe=e;break}Oe=t.return}return y=wy,wy=!1,y}function xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Kg(t,n,o)}i=i.next}while(i!==r)}}function df(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function aw(e){var t=e.alternate;t!==null&&(e.alternate=null,aw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[Kl],delete t[Ng],delete t[cP],delete t[uP])),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 sw(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vd));else if(r!==4&&(e=e.child,e!==null))for(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}function Yg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yg(e,t,n),e=e.sibling;e!==null;)Yg(e,t,n),e=e.sibling}var Ln=null,Xr=!1;function Ui(e,t,n){for(n=n.child;n!==null;)lw(e,t,n),n=n.sibling}function lw(e,t,n){if(yi&&typeof yi.onCommitFiberUnmount=="function")try{yi.onCommitFiberUnmount(nf,n)}catch{}switch(n.tag){case 5:Gn||Ka(n,t);case 6:var r=Ln,i=Xr;Ln=null,Ui(e,t,n),Ln=r,Xr=i,Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ln.removeChild(n.stateNode));break;case 18:Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?hh(e.parentNode,n):e.nodeType===1&&hh(e,n),Hl(e)):hh(Ln,n.stateNode));break;case 4:r=Ln,i=Xr,Ln=n.stateNode.containerInfo,Xr=!0,Ui(e,t,n),Ln=r,Xr=i;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Kg(n,t,a),i=i.next}while(i!==r)}Ui(e,t,n);break;case 1:if(!Gn&&(Ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rn(n,t,s)}Ui(e,t,n);break;case 21:Ui(e,t,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,Ui(e,t,n),Gn=r):Ui(e,t,n);break;default:Ui(e,t,n)}}function _y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $P),t.forEach(function(r){var i=AP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MP(r/1960))-r,10e?16:e,no===null)var r=!1;else{if(e=no,no=null,Td=0,yt&6)throw Error(oe(331));var i=yt;for(yt|=4,Oe=e.current;Oe!==null;){var o=Oe,a=o.child;if(Oe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lun()-sv?Qo(e,0):av|=n),fr(e,t)}function pw(e,t){t===0&&(e.mode&1?(t=Kc,Kc<<=1,!(Kc&130023424)&&(Kc=4194304)):t=1);var n=Zn();e=Li(e,t),e!==null&&(Ec(e,t,n),fr(e,n))}function FP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pw(e,n)}function AP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),pw(e,n)}var vw;vw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ur.current)cr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cr=!1,wP(e,t,n);cr=!!(e.flags&131072)}else cr=!1,qt&&t.flags&1048576&&SC(t,Sd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vu(e,t),e=t.pendingProps;var i=us(t,qn.current);rs(t,n),i=ev(null,t,r,e,i,n);var o=tv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dr(r)?(o=!0,bd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xp(t),i.updater=uf,t.stateNode=i,i._reactInternals=t,jg(t,r,e,n),t=Vg(null,t,r,!0,o,n)):(t.tag=0,qt&&o&&Hp(t),Qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=DP(r),e=qr(r,e),i){case 0:t=Hg(null,t,r,e,n);break e;case 1:t=xy(null,t,r,e,n);break e;case 11:t=yy(null,t,r,e,n);break e;case 14:t=by(null,t,r,qr(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Hg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),xy(e,t,r,i,n);case 3:e:{if(ew(t),e===null)throw Error(oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,OC(e,t),Ed(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=gs(Error(oe(423)),t),t=Sy(e,t,r,n,i);break e}else if(r!==i){i=gs(Error(oe(424)),t),t=Sy(e,t,r,n,i);break e}else for(vr=fo(t.stateNode.containerInfo.firstChild),br=t,qt=!0,Zr=null,n=_C(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ds(),r===i){t=Di(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return PC(t),e===null&&Lg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Ig(r,i)?a=null:o!==null&&Ig(r,o)&&(t.flags|=32),JC(e,t),Qn(e,t,a,n),t.child;case 6:return e===null&&Lg(t),null;case 13:return tw(e,t,n);case 4:return Yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),yy(e,t,r,i,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,zt(Cd,r._currentValue),r._currentValue=a,o!==null)if(oi(o.value,a)){if(o.children===i.children&&!ur.current){t=Di(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ii(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Dg(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(oe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Dg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rs(t,n),i=Dr(i),r=r(i),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,i=qr(r,t.pendingProps),i=qr(r.type,i),by(e,t,r,i,n);case 15:return QC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Vu(e,t),t.tag=1,dr(r)?(e=!0,bd(t)):e=!1,rs(t,n),qC(t,r,i),jg(t,r,i,n),Vg(null,t,r,!0,e,n);case 19:return nw(e,t,n);case 22:return ZC(e,t,n)}throw Error(oe(156,t.tag))};function yw(e,t){return US(e,t)}function LP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(e,t,n,r){return new LP(e,t,n,r)}function dv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DP(e){if(typeof e=="function")return dv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tp)return 11;if(e===Rp)return 14}return 2}function po(e,t){var n=e.alternate;return n===null?(n=kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")dv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Da:return Zo(n.children,i,o,t);case Mp:a=8,i|=8;break;case ug:return e=kr(12,n,t,i|2),e.elementType=ug,e.lanes=o,e;case dg:return e=kr(13,n,t,i),e.elementType=dg,e.lanes=o,e;case fg:return e=kr(19,n,t,i),e.elementType=fg,e.lanes=o,e;case PS:return hf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $S:a=10;break e;case OS:a=9;break e;case Tp:a=11;break e;case Rp:a=14;break e;case Yi:a=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=kr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zo(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function hf(e,t,n,r){return e=kr(22,e,r,t),e.elementType=PS,e.lanes=n,e.stateNode={isHidden:!1},e}function Sh(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function Ch(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zP(e,t,n,r,i){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=nh(0),this.expirationTimes=nh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fv(e,t,n,r,i,o,a,s,l){return e=new zP(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=kr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xp(o),e}function jP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cw)}catch(e){console.error(e)}}Cw(),CS.exports=Cr;var ma=CS.exports;const tm=Jd(ma),UP=uS({__proto__:null,default:tm},[ma]);var ww,ky=ma;ww=ky.createRoot,ky.hydrateRoot;var Ew={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return me.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Co(r)):wl.isFragment(r)&&r.props?n=n.concat(Co(r.props.children,t)):n.push(r))}),n}var nm={},XP=function(t){};function YP(e,t){}function QP(e,t){}function ZP(){nm={}}function Ow(e,t,n){!t&&!nm[n]&&(e(!1,n),nm[n]=!0)}function Nn(e,t){Ow(YP,e,t)}function JP(e,t){Ow(QP,e,t)}Nn.preMessage=XP;Nn.resetWarned=ZP;Nn.noteOnce=JP;function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(e)}function eM(e,t){if(je(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pw(e){var t=eM(e,"string");return je(t)=="symbol"?t:t+""}function z(e,t,n){return(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var rm=d.createContext(null);function tM(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(rm),a=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return d.createElement(rm.Provider,{value:a},t)}var Tw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}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(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!im||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sM?(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(){!im||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=aM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rw=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new pM(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new vM(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kw=typeof WeakMap<"u"?new WeakMap:new Tw,Nw=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lM.getInstance(),r=new yM(t,n,this);kw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Nw.prototype[e]=function(){var t;return(t=kw.get(this))[e].apply(t,arguments)}});var bM=function(){return typeof kd.ResizeObserver<"u"?kd.ResizeObserver:Nw}(),ro=new Map;function xM(e){e.forEach(function(t){var n,r=t.target;(n=ro.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Fw=new bM(xM);function SM(e,t){ro.has(e)||(ro.set(e,new Set),Fw.observe(e)),ro.get(e).add(t)}function CM(e,t){ro.has(e)&&(ro.get(e).delete(t),ro.get(e).size||(Fw.unobserve(e),ro.delete(e)))}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ly(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Dy+=1;var r=Dy;function i(o){if(o===0)zw(r),t();else{var a=Lw(function(){i(o-1)});Sv.set(r,a)}}return i(n),r};Ft.cancel=function(e){var t=Sv.get(e);return zw(e),Dw(t)};function jw(e){if(Array.isArray(e))return e}function RM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Bw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return jw(e)||RM(e,t)||xv(e,t)||Bw()}function rc(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function IM(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var zy="data-rc-order",jy="data-rc-priority",kM="rc-util-key",am=new Map;function Hw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kM}function Tf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cv(e){return Array.from((am.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Vw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Sr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=NM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(zy,a),s&&o&&l.setAttribute(jy,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Tf(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Cv(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(zy)))return!1;var m=Number(h.getAttribute(jy)||0);return o>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Tf(t);return(t.styles||Cv(n)).find(function(r){return r.getAttribute(Hw(t))===e})}function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ww(e,t);if(n){var r=Tf(t);r.removeChild(n)}}function FM(e,t){var n=am.get(e);if(!n||!IM(document,n)){var r=Vw("",t),i=r.parentNode;am.set(e,i),e.removeChild(r)}}function ki(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Tf(n),i=Cv(r),o=V(V({},n),{},{styles:i});FM(r,o);var a=Ww(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Vw(e,o);return u.setAttribute(Hw(o),t),u}function AM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=AM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Nn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=Q(c,2),h=f[1];return i.internalGet(u)[1]0,void 0),By+=1}return gn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),wh=new wv;function lm(e){var t=Array.isArray(e)?e:[e];return wh.has(t)||wh.set(t,new Uw(t)),wh.get(t)}var BM=new WeakMap,Eh={};function HM(e,t){for(var n=BM,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=Hy.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof Uw?n+=i.id:i&&je(i)==="object"?n+=El(i,t):n+=i}),t&&(n=rc(n)),Hy.set(e,n)),n}function Vy(e,t){return rc("".concat(t,"_").concat(El(e,!0)))}var cm=Sr();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Fd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},z(z({},ys,t),ri,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var qu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},VM=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=Q(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Gw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Q(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,m=qu(u,r==null?void 0:r.prefix);i[m]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(m,")")}}),[o,VM(i,n,{scope:r==null?void 0:r.scope})]},Wy=Sr()?d.useLayoutEffect:d.useEffect,Tn=function(t,n){var r=d.useRef(!0);Wy(function(){return t(r.current)},n),Wy(function(){return r.current=!1,function(){r.current=!0}},[])},os=function(t,n){Tn(function(r){if(!r)return t()},n)},WM=V({},tf),Uy=WM.useInsertionEffect,UM=function(t,n,r){d.useMemo(t,r),Tn(function(){return n(!0)},r)},GM=Uy?function(e,t,n){return Uy(function(){return e(),t()},n)}:UM,KM=V({},tf),qM=KM.useInsertionEffect,XM=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},YM=function(){return function(t){t()}},QM=typeof qM<"u"?XM:YM;function Ev(e,t,n,r,i){var o=d.useContext(Rf),a=o.cache,s=[e].concat(ge(t)),l=sm(s),c=QM([l]),u=function(y){a.opUpdate(l,function(v){var b=v||[void 0,void 0],p=Q(b,2),g=p[0],x=g===void 0?0:g,S=p[1],C=S,w=C||n(),E=[x,w];return y?y(E):E})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return GM(function(){i==null||i(h)},function(m){return u(function(y){var v=Q(y,2),b=v[0],p=v[1];return m&&b===0&&(i==null||i(h)),[b+1,p]}),function(){a.opUpdate(l,function(y){var v=y||[],b=Q(v,2),p=b[0],g=p===void 0?0:p,x=b[1],S=g-1;return S===0?(c(function(){(m||!a.opGet(l))&&(r==null||r(x,!1))}),null):[g-1,x]})}},[l]),h}var ZM={},JM="css",Bo=new Map;function eT(e){Bo.set(e,(Bo.get(e)||0)+1)}function tT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ys,'="').concat(e,'"]'));n.forEach(function(r){if(r[io]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var nT=0;function rT(e,t){Bo.set(e,(Bo.get(e)||0)-1);var n=Array.from(Bo.keys()),r=n.filter(function(i){var o=Bo.get(i)||0;return o<=0});n.length-r.length>nT&&r.forEach(function(i){tT(i,t),Bo.delete(i)})}var iT=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},Kw="token";function oT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Rf),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?ZM:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=HM(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),y=El(m),v=El(c),b=h?El(h):"",p=Ev(Kw,[s,e.id,y,v,b],function(){var g,x=f?f(m,c,e):iT(m,c,e,u),S=V({},x),C="";if(h){var w=Gw(x,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Q(w,2);x=E[0],C=E[1]}var _=Vy(x,s);x._tokenKey=_,S._tokenKey=Vy(S,s);var O=(g=h==null?void 0:h.key)!==null&&g!==void 0?g:_;x._themeKey=O,eT(O);var M="".concat(JM,"-").concat(rc(_));return x._hashId=M,[x,M,S,C,(h==null?void 0:h.key)||""]},function(g){rT(g[0]._themeKey,i)},function(g){var x=Q(g,4),S=x[0],C=x[3];if(h&&C){var w=ki(C,rc("css-variables-".concat(S._themeKey)),{mark:ri,prepend:"queue",attachTo:o,priority:-999});w[io]=i,w.setAttribute(ys,S._themeKey)}});return p}var aT=function(t,n,r){var i=Q(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Fd(a,s,u,h,c);return[f,u,m]},sT={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},qw="comm",Xw="rule",Yw="decl",lT="@import",cT="@keyframes",uT="@layer",Qw=Math.abs,_v=String.fromCharCode;function Zw(e){return e.trim()}function Xu(e,t,n){return e.replace(t,n)}function dT(e,t,n){return e.indexOf(t,n)}function oc(e,t){return e.charCodeAt(t)|0}function bs(e,t,n){return e.slice(t,n)}function gi(e){return e.length}function fT(e){return e.length}function ou(e,t){return t.push(e),e}var If=1,xs=1,Jw=0,jr=0,yn=0,Ps="";function $v(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:If,column:xs,length:a,return:"",siblings:s}}function hT(){return yn}function gT(){return yn=jr>0?oc(Ps,--jr):0,xs--,yn===10&&(xs=1,If--),yn}function ii(){return yn=jr2||ac(yn)>3?"":" "}function yT(e,t){for(;--t&&ii()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return kf(e,Yu()+(t<6&&oo()==32&&ii()==32))}function um(e){for(;ii();)switch(yn){case e:return jr;case 34:case 39:e!==34&&e!==39&&um(yn);break;case 40:e===41&&um(e);break;case 92:ii();break}return jr}function bT(e,t){for(;ii()&&e+yn!==57;)if(e+yn===84&&oo()===47)break;return"/*"+kf(t,jr-1)+"*"+_v(e===47?e:ii())}function xT(e){for(;!ac(oo());)ii();return kf(e,jr)}function ST(e){return pT(Qu("",null,null,null,[""],e=mT(e),0,[0],e))}function Qu(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,f=a,h=0,m=0,y=0,v=1,b=1,p=1,g=0,x="",S=i,C=o,w=r,E=x;b;)switch(y=g,g=ii()){case 40:if(y!=108&&oc(E,f-1)==58){dT(E+=Xu(_h(g),"&","&\f"),"&\f",Qw(c?s[c-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:E+=_h(g);break;case 9:case 10:case 13:case 32:E+=vT(y);break;case 92:E+=yT(Yu()-1,7);continue;case 47:switch(oo()){case 42:case 47:ou(CT(bT(ii(),Yu()),t,n,l),l),(ac(y||1)==5||ac(oo()||1)==5)&&gi(E)&&bs(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=gi(E)*p;case 125*v:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:p==-1&&(E=Xu(E,/\f/g,"")),m>0&&(gi(E)-f||v===0&&y===47)&&ou(m>32?Ky(E+";",r,n,f-1,l):Ky(Xu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(ou(w=Gy(E,t,n,c,u,i,s,x,S=[],C=[],f,o),o),g===123)if(u===0)Qu(E,t,w,w,S,o,f,s,C);else switch(h===99&&oc(E,3)===110?100:h){case 100:case 108:case 109:case 115:Qu(e,w,w,r&&ou(Gy(e,w,w,0,0,i,s,x,i,S=[],f,C),C),i,C,f,s,r?S:C);break;default:Qu(E,w,w,w,[""],C,0,s,C)}}c=u=m=0,v=p=1,x=E="",f=a;break;case 58:f=1+gi(E),m=y;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&gT()==125)continue}switch(E+=_v(g),g*v){case 38:p=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(gi(E)-1)*p,p=1;break;case 64:oo()===45&&(E+=_h(ii())),h=oo(),u=f=gi(x=E+=xT(Yu())),g++;break;case 45:y===45&&gi(E)==2&&(v=0)}}return o}function Gy(e,t,n,r,i,o,a,s,l,c,u,f){for(var h=i-1,m=i===0?o:[""],y=fT(m),v=0,b=0,p=0;v0?m[g]+" "+x:Xu(x,/&\f/g,m[g])))&&(l[p++]=S);return $v(e,t,n,i===0?Xw:s,l,c,u,f)}function CT(e,t,n,r){return $v(e,t,n,qw,_v(hT()),bs(e,2,-2),0,r)}function Ky(e,t,n,r,i){return $v(e,t,n,Yw,bs(e,0,r),bs(e,r+1,-1),r,i)}function dm(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",m={};function y(p){var g=p.getName(s);if(!m[g]){var x=e(p.style,n,{root:!1,parentSelectors:a}),S=Q(x,1),C=S[0];m[g]="@keyframes ".concat(p.getName(s)).concat(C)}}function v(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return p.forEach(function(x){Array.isArray(x)?v(x,g):x&&g.push(x)}),g}var b=v(Array.isArray(t)?t:[t]);return b.forEach(function(p){var g=typeof p=="string"&&!i?{}:p;if(typeof g=="string")h+="".concat(g,` +`);else if(g._keyframe)y(g);else{var x=f.reduce(function(S,C){var w;return(C==null||(w=C.visit)===null||w===void 0?void 0:w.call(C,S))||S},g);Object.keys(x).forEach(function(S){var C=x[S];if(je(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!PT(C)){var w=!1,E=S.trim(),_=!1;(i||o)&&s?E.startsWith("@")?w=!0:E==="&"?E=Xy("",s,c):E=Xy(S,s,c):i&&!s&&(E==="&"||E==="")&&(E="",_=!0);var O=e(C,n,{root:_,injectHash:w,parentSelectors:[].concat(ge(a),[E])}),M=Q(O,2),I=M[0],k=M[1];m=V(V({},m),k),h+="".concat(E).concat(I)}else{let B=function(A,P){var R=A.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),N=P;!sT[A]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),A==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),N=P.getName(s)),h+="".concat(R,":").concat(N,";")};var F,j=(F=C==null?void 0:C.value)!==null&&F!==void 0?F:C;je(C)==="object"&&C!==null&&C!==void 0&&C[nE]&&Array.isArray(j)?j.forEach(function(A){B(S,A)}):B(S,j)}})}}),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(p){return"@layer ".concat(p,", ").concat(l.name,";")}).join(` +`))):h="{".concat(h,"}"),[h,m]};function rE(e,t){return rc("".concat(e.join("%")).concat(t))}function TT(){return null}var iE="style";function fm(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Rf),f=u.autoClear;u.mock;var h=u.defaultCache,m=u.hashPriority,y=u.container,v=u.ssrInline,b=u.transformers,p=u.linters,g=u.cache,x=u.layer,S=n._tokenKey,C=[S];x&&C.push("layer"),C.push.apply(C,ge(r));var w=cm,E=Ev(iE,C,function(){var k=C.join("|");if(_T(k)){var F=$T(k),j=Q(F,2),B=j[0],A=j[1];if(B)return[B,S,A,{},s,c]}var P=t(),R=MT(P,{hashId:i,hashPriority:m,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:p}),N=Q(R,2),D=N[0],H=N[1],G=Zu(D),X=rE(C,G);return[G,S,X,H,s,c]},function(k,F){var j=Q(k,3),B=j[2];(F||f)&&cm&&ic(B,{mark:ri})},function(k){var F=Q(k,4),j=F[0];F[1];var B=F[2],A=F[3];if(w&&j!==eE){var P={mark:ri,prepend:x?!1:"queue",attachTo:y,priority:c},R=typeof a=="function"?a():a;R&&(P.csp={nonce:R});var N=[],D=[];Object.keys(A).forEach(function(G){G.startsWith("@layer")?N.push(G):D.push(G)}),N.forEach(function(G){ki(Zu(A[G]),"_layer-".concat(G),V(V({},P),{},{prepend:!0}))});var H=ki(j,B,P);H[io]=g.instanceId,H.setAttribute(ys,S),D.forEach(function(G){ki(Zu(A[G]),"_effect-".concat(G),P)})}}),_=Q(E,3),O=_[0],M=_[1],I=_[2];return function(k){var F;return!v||w||!h?F=d.createElement(TT,null):F=d.createElement("style",Pe({},z(z({},ys,M),ri,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,F,k)}}var RT=function(t,n,r){var i=Q(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},h=f.plain;if(c)return null;var m=o,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Fd(o,a,s,y,h),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var b=Zu(l[v]),p=Fd(b,a,"_effect-".concat(v),y,h);v.startsWith("@layer")?m=p+m:m+=p}}),[u,s,m]},oE="cssVar",IT=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Rf),f=u.cache.instanceId,h=u.container,m=s._tokenKey,y=[].concat(ge(t.path),[r,c,m]),v=Ev(oE,y,function(){var b=n(),p=Gw(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=Q(p,2),x=g[0],S=g[1],C=rE(y,S);return[x,S,C,r]},function(b){var p=Q(b,3),g=p[2];cm&&ic(g,{mark:ri})},function(b){var p=Q(b,3),g=p[1],x=p[2];if(g){var S=ki(g,x,{mark:ri,prepend:"queue",attachTo:h,priority:-999});S[io]=f,S.setAttribute(ys,r)}});return v},kT=function(t,n,r){var i=Q(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=Fd(o,s,a,f,c);return[u,a,h]};z(z(z({},iE,RT),Kw,aT),oE,kT);var mn=function(){function e(t,n){hn(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return gn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function wa(e){return e.notSplit=!0,e}wa(["borderTop","borderBottom"]),wa(["borderTop"]),wa(["borderBottom"]),wa(["borderLeft","borderRight"]),wa(["borderLeft"]),wa(["borderRight"]);var Ov=d.createContext({});function NT(e){return jw(e)||Aw(e)||xv(e)||Bw()}function vi(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!vi(e,t.slice(0,-1))?e:aE(e,t,n,r)}function FT(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yy(e){return Array.isArray(e)?[]:{}}var AT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xa(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=LT,e},sE=d.createContext(void 0);var zT={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"},jT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},BT=V(V({},jT),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const lE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Qy={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"]},BT),timePickerLocale:Object.assign({},lE)},hr="${label} is not a valid ${type}",sa={locale:"en",Pagination:zT,DatePicker:Qy,TimePicker:lE,Calendar:Qy,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},sa.Modal);let Ju=[];const Zy=()=>Ju.reduce((e,t)=>Object.assign(Object.assign({},e),t),sa.Modal);function HT(e){if(e){const t=Object.assign({},e);return Ju.push(t),Zy(),()=>{Ju=Ju.filter(n=>n!==t),Zy()}}Object.assign({},sa.Modal)}const Mv=d.createContext(void 0),VT=(e,t)=>{const n=d.useContext(Mv),r=d.useMemo(()=>{var o;const a=sa[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?sa.locale:o},[n]);return[r,i]},WT="internalMark",UT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>HT(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Mv.Provider,{value:i},n)};function zn(e,t){GT(e)&&(e="100%");var n=KT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function au(e){return Math.min(1,Math.max(0,e))}function GT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function su(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Go(e){return e.length===1?"0"+e:String(e)}function qT(e,t,n){return{r:zn(e,255)*255,g:zn(t,255)*255,b:zn(n,255)*255}}function Jy(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XT(e,t,n){var r,i,o;if(e=zn(e,360),t=zn(t,100),n=zn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=$h(s,a,e+1/3),i=$h(s,a,e),o=$h(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function hm(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var mm={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 Na(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=nR(e)),typeof e=="object"&&(wi(e.r)&&wi(e.g)&&wi(e.b)?(t=qT(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wi(e.h)&&wi(e.s)&&wi(e.v)?(r=su(e.s),i=su(e.v),t=YT(e.h,r,i),a=!0,s="hsv"):wi(e.h)&&wi(e.s)&&wi(e.l)&&(r=su(e.s),o=su(e.l),t=XT(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cE(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var eR="[-\\+]?\\d+%?",tR="[-\\+]?\\d*\\.\\d+%?",ao="(?:".concat(tR,")|(?:").concat(eR,")"),Oh="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Ph="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Gr={CSS_UNIT:new RegExp(ao),rgb:new RegExp("rgb"+Oh),rgba:new RegExp("rgba"+Ph),hsl:new RegExp("hsl"+Oh),hsla:new RegExp("hsla"+Ph),hsv:new RegExp("hsv"+Oh),hsva:new RegExp("hsva"+Ph),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 nR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mm[e])e=mm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Gr.hex8.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),a:eb(n[4]),format:t?"name":"hex8"}:(n=Gr.hex6.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),format:t?"name":"hex"}:(n=Gr.hex4.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),a:eb(n[4]+n[4]),format:t?"name":"hex8"}:(n=Gr.hex3.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wi(e){return!!Gr.CSS_UNIT.exec(String(e))}var In=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=JT(t)),this.originalInput=t;var i=Na(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cE(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=hm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=hm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Jy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Jy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gm(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),QT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(zn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(zn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+gm(this.r,this.g,this.b,!1),n=0,r=Object.entries(mm);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=au(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=au(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=au(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=au(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function ib(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-tb*t:t===dE?r=e.s+tb:r=e.s+rR*t,r>1&&(r=1),n&&t===uE&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ob(e,t,n){var r;return n?r=e.v+iR*t:r=e.v-oR*t,r>1&&(r=1),Number(r.toFixed(2))}function sc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Na(e),i=uE;i>0;i-=1){var o=nb(r),a=cu(Na({h:rb(o,i,!0),s:ib(o,i,!0),v:ob(o,i,!0)}));n.push(a)}n.push(cu(r));for(var s=1;s<=dE;s+=1){var l=nb(r),c=cu(Na({h:rb(l,s),s:ib(l,s),v:ob(l,s)}));n.push(c)}return t.theme==="dark"?aR.map(function(u){var f=u.index,h=u.opacity,m=cu(sR(Na(t.backgroundColor||"#141414"),Na(n[f]),h*100));return m}):n}var Mh={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"},pm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pm.primary=pm[5];var vm=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];vm.primary=vm[5];var ym=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ym.primary=ym[5];var bm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bm.primary=bm[5];var xm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];xm.primary=xm[5];var Sm=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Sm.primary=Sm[5];var Cm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Cm.primary=Cm[5];var wm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wm.primary=wm[5];var Ad=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ad.primary=Ad[5];var Em=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Em.primary=Em[5];var _m=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_m.primary=_m[5];var $m=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$m.primary=$m[5];var Om=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Om.primary=Om[5];var Th={red:pm,volcano:vm,orange:ym,gold:bm,yellow:xm,lime:Sm,green:Cm,cyan:wm,blue:Ad,geekblue:Em,purple:_m,magenta:$m,grey:Om};const fE={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"},lc=Object.assign(Object.assign({},fE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(i),m=n(o),y=n(a),v=n(s),b=r(c,u),p=e.colorLink||e.colorInfo,g=n(p),x=new In(y[1]).mix(new In(y[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:x,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new In("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cR=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function uR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},cR(r))}const dR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ed(e){return(e+8)/e}function fR(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ed(n)}))}const hR=e=>{const t=fR(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function gR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Or=(e,t)=>new In(e).setAlpha(t).toRgbString(),Gs=(e,t)=>new In(e).darken(t).toHexString(),mR=e=>{const t=sc(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]}},pR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Or(r,.88),colorTextSecondary:Or(r,.65),colorTextTertiary:Or(r,.45),colorTextQuaternary:Or(r,.25),colorFill:Or(r,.15),colorFillSecondary:Or(r,.06),colorFillTertiary:Or(r,.04),colorFillQuaternary:Or(r,.02),colorBgSolid:Or(r,1),colorBgSolidHover:Or(r,.75),colorBgSolidActive:Or(r,.95),colorBgLayout:Gs(n,4),colorBgContainer:Gs(n,0),colorBgElevated:Gs(n,0),colorBgSpotlight:Or(r,.85),colorBgBlur:"transparent",colorBorder:Gs(n,15),colorBorderSecondary:Gs(n,6)}};function vR(e){Mh.pink=Mh.magenta,Th.pink=Th.magenta;const t=Object.keys(fE).map(n=>{const r=e[n]===Mh[n]?Th[n]:sc(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lR(e,{generateColorPalettes:mR,generateNeutralColorPalettes:pR})),hR(e.fontSize)),gR(e)),dR(e)),uR(e))}const hE=lm(vR),Pm={token:lc,override:{override:lc},hashed:!0},gE=me.createContext(Pm),cc="ant",mE="anticon",yR=["outlined","borderless","filled"],bR=(e,t)=>t||(e?`${cc}-${e}`:cc),bt=d.createContext({getPrefixCls:bR,iconPrefixCls:mE}),xR=`-ant-${Date.now()}-${Math.random()}`;function SR(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new In(a),c=sc(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new In(t.primaryColor),s=sc(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new In(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function CR(e,t){const n=SR(e,t);Sr()&&ki(n,`${xR}-dynamic-theme`)}const la=d.createContext(!1),pE=e=>{let{children:t,disabled:n}=e;const r=d.useContext(la);return d.createElement(la.Provider,{value:n??r},t)},ca=d.createContext(void 0),wR=e=>{let{children:t,size:n}=e;const r=d.useContext(ca);return d.createElement(ca.Provider,{value:n||r},t)};function ER(){const e=d.useContext(la),t=d.useContext(ca);return{componentDisabled:e,componentSize:t}}var vE=gn(function e(){hn(this,e)}),yE="CALC_UNIT",_R=new RegExp(yE,"g");function Rh(e){return typeof e=="number"?"".concat(e).concat(yE):e}var $R=function(e){Hi(n,e);var t=Vi(n);function n(r,i){var o;hn(this,n),o=t.call(this),z(rt(o),"result",""),z(rt(o),"unitlessCssVar",void 0),z(rt(o),"lowPriority",void 0);var a=je(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Rh(r):a==="string"&&(o.result=r),o}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Rh(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Rh(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(_R,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(vE),OR=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;return hn(this,n),i=t.call(this),z(rt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(vE),PR=function(t,n){var r=t==="css"?$R:OR;return function(i){return new r(i,n)}},ab=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>IR&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ub=new kR;function NR(e,t){return me.useMemo(function(){var n=ub.get(t);if(n)return n;var r=e();return ub.set(t,r),r},t)}var FR=function(){return{}};function AR(e){var t=e.useCSP,n=t===void 0?FR:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,m,y,v){var b=Array.isArray(h)?h[0]:h;function p(_){return"".concat(String(b)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var g=(v==null?void 0:v.unitless)||{},x=typeof s=="function"?s(h):{},S=V(V({},x),{},z({},p("zIndexPopup"),!0));Object.keys(g).forEach(function(_){S[p(_)]=g[_]});var C=V(V({},v),{},{unitless:S,prefixToken:p}),w=u(h,m,y,C),E=c(b,y,C);return function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,M=w(_,O),I=Q(M,2),k=I[1],F=E(O),j=Q(F,2),B=j[0],A=j[1];return[B,k,A]}}function c(h,m,y){var v=y.unitless,b=y.injectStyle,p=b===void 0?!0:b,g=y.prefixToken,x=y.ignore,S=function(E){var _=E.rootCls,O=E.cssVar,M=O===void 0?{}:O,I=r(),k=I.realToken;return IT({path:[h],prefix:M.prefix,key:M.key,unitless:v,ignore:x,token:k,scope:_},function(){var F=cb(h,k,m),j=sb(h,k,F,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(F).forEach(function(B){j[g(B)]=j[B],delete j[B]}),j}),null},C=function(E){var _=r(),O=_.cssVar;return[function(M){return p&&O?me.createElement(me.Fragment,null,me.createElement(S,{rootCls:E,cssVar:O,component:h}),M):M},O==null?void 0:O.key]};return C}function u(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],p=Q(b,1),g=p[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),_=E.theme,O=E.realToken,M=E.hashId,I=E.token,k=E.cssVar,F=i(),j=F.rootPrefixCls,B=F.iconPrefixCls,A=n(),P=k?"css":"js",R=NR(function(){var W=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(K){W.add(qu(K,k.prefix)),W.add(qu(K,ab(g,k.prefix)))}),PR(P,W)},[P,g,k==null?void 0:k.prefix]),N=RR(P),D=N.max,H=N.min,G={theme:_,token:I,hashId:M,nonce:function(){return A.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};fm(V(V({},G),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(I):[]});var X=fm(V(V({},G),{},{path:[x,C,B]}),function(){if(v.injectStyle===!1)return[];var W=TR(I),K=W.token,ee=W.flush,U=cb(g,O,y),Y=".".concat(C),J=sb(g,O,U,{deprecatedTokens:v.deprecatedTokens});k&&U&&je(U)==="object"&&Object.keys(U).forEach(function(xe){U[xe]="var(".concat(qu(xe,ab(g,k.prefix)),")")});var re=An(K,{componentCls:Y,prefixCls:C,iconCls:".".concat(B),antCls:".".concat(j),calc:R,max:D,min:H},k?U:J),ce=m(re,{hashId:M,prefixCls:C,rootPrefixCls:j,iconPrefixCls:B});ee(g,J);var he=typeof a=="function"?a(re,C,w,v.resetFont):null;return[v.resetStyle===!1?null:he,ce]});return[X,M]}}function f(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(h,m,y,V({resetStyle:!1,order:-998},v)),p=function(x){var S=x.prefixCls,C=x.rootCls,w=C===void 0?S:C;return b(S,w),null};return p}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Ld=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],LR="5.21.0";function kh(e){return e>=0&&e<=255}function uu(e,t){const{r:n,g:r,b:i,a:o}=new In(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new In(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(kh(u)&&kh(f)&&kh(h))return new In({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new In({r:n,g:r,b:i,a:1}).toRgbString()}var DR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:uu(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:uu(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:uu(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:uu(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new In("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new In("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new In("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var db=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=db(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=xE(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=db(c,["theme"]);let h=f;u&&(h=CE(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Wi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=me.useContext(gE),o=`${LR}-${t||""}`,a=n||hE,[s,l,c]=oT(a,[lc,e],{salt:o,override:r,getComputedToken:CE,formatToken:xE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:SE,ignore:zR,preserve:jR}});return[a,c,t?l:"",s,i]}const Tv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Lr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wE=()=>({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"}}),Mc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),BR=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),HR=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},VR=e=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rv=e=>({"&:focus-visible":Object.assign({},VR(e))}),EE=(e,t)=>{const[n,r]=Wi();return fm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},wE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Er,genComponentStyleHook:WR,genSubStyleComponent:_E}=AR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Wi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(bt);return EE(t,e),e??{}},getResetStyles:e=>[{"&":BR(e)}],getCommonStyle:HR,getCompUnitless:()=>SE});function UR(e,t){return Ld.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const GR=Object.assign({},tf),{useId:fb}=GR,KR=()=>"",qR=typeof fb>"u"?KR:fb;function XR(e,t,n){var r;Pv();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Pm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Pm.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=qR();return Pf(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(s,l)=>s.some((c,u)=>{const f=l[u];return!vs(c,f,!0)}))}var YR=["children"],$E=d.createContext({});function QR(e){var t=e.children,n=st(e,YR);return d.createElement($E.Provider,{value:n},t)}var ZR=function(e){Hi(n,e);var t=Vi(n);function n(){return hn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function JR(e){var t=d.useReducer(function(s){return s+1},0),n=Q(t,2),r=n[1],i=d.useRef(e),o=Cn(function(){return i.current}),a=Cn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var qi="none",du="appear",fu="enter",hu="leave",hb="none",Qr="prepare",Ya="start",Qa="active",Iv="end",OE="prepared";function gb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function eI(e,t){var n={animationend:gb("Animation","AnimationEnd"),transitionend:gb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tI=eI(Sr(),typeof window<"u"?window:{}),PE={};if(Sr()){var nI=document.createElement("div");PE=nI.style}var gu={};function ME(e){if(gu[e])return gu[e];var t=tI[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ft(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var oI=[Qr,Ya,Qa,Iv],aI=[Qr,OE],NE=!1,sI=!0;function FE(e){return e===Qa||e===Iv}const lI=function(e,t,n){var r=Ss(hb),i=Q(r,2),o=i[0],a=i[1],s=iI(),l=Q(s,2),c=l[0],u=l[1];function f(){a(Qr,!0)}var h=t?aI:oI;return kE(function(){if(o!==hb&&o!==Iv){var m=h.indexOf(o),y=h[m+1],v=n(o);v===NE?a(y,!0):y&&c(function(b){function p(){b.isCanceled()||a(y,!0)}v===!0?p():Promise.resolve(v).then(p)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function cI(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,p=r.onLeaveStart,g=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,w=r.onEnterEnd,E=r.onLeaveEnd,_=r.onVisibleChanged,O=Ss(),M=Q(O,2),I=M[0],k=M[1],F=JR(qi),j=Q(F,2),B=j[0],A=j[1],P=Ss(null),R=Q(P,2),N=R[0],D=R[1],H=B(),G=d.useRef(!1),X=d.useRef(null);function W(){return n()}var K=d.useRef(!1);function ee(){A(qi),D(null,!0)}var U=Cn(function($e){var ue=B();if(ue!==qi){var Ne=W();if(!($e&&!$e.deadline&&$e.target!==Ne)){var ae=K.current,Ue;ue===du&&ae?Ue=C==null?void 0:C(Ne,$e):ue===fu&&ae?Ue=w==null?void 0:w(Ne,$e):ue===hu&&ae&&(Ue=E==null?void 0:E(Ne,$e)),ae&&Ue!==!1&&ee()}}}),Y=rI(U),J=Q(Y,1),re=J[0],ce=function(ue){switch(ue){case du:return z(z(z({},Qr,h),Ya,v),Qa,g);case fu:return z(z(z({},Qr,m),Ya,b),Qa,x);case hu:return z(z(z({},Qr,y),Ya,p),Qa,S);default:return{}}},he=d.useMemo(function(){return ce(H)},[H]),xe=lI(H,!e,function($e){if($e===Qr){var ue=he[Qr];return ue?ue(W()):NE}if(ye in he){var Ne;D(((Ne=he[ye])===null||Ne===void 0?void 0:Ne.call(he,W(),null))||null)}return ye===Qa&&H!==qi&&(re(W()),u>0&&(clearTimeout(X.current),X.current=setTimeout(function(){U({deadline:!0})},u))),ye===OE&&ee(),sI}),ie=Q(xe,2),de=ie[0],ye=ie[1],be=FE(ye);K.current=be,kE(function(){k(t);var $e=G.current;G.current=!0;var ue;!$e&&t&&s&&(ue=du),$e&&t&&o&&(ue=fu),($e&&!t&&c||!$e&&f&&!t&&c)&&(ue=hu);var Ne=ce(ue);ue&&(e||Ne[Qr])?(A(ue),de()):A(qi)},[t]),d.useEffect(function(){(H===du&&!s||H===fu&&!o||H===hu&&!c)&&A(qi)},[s,o,c]),d.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var se=d.useRef(!1);d.useEffect(function(){I&&(se.current=!0),I!==void 0&&H===qi&&((se.current||I)&&(_==null||_(I)),se.current=!0)},[I,H]);var we=N;return he[Qr]&&ye===Ya&&(we=V({transition:"none"},we)),[H,ye,we,I??t]}function uI(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,h=i.motionName,m=i.leavedClassName,y=i.eventProps,v=d.useContext($E),b=v.motion,p=n(i,b),g=d.useRef(),x=d.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:Ku(x.current)}catch{return null}}var C=cI(p,s,S,i),w=Q(C,4),E=w[0],_=w[1],O=w[2],M=w[3],I=d.useRef(M);M&&(I.current=!0);var k=d.useCallback(function(N){g.current=N,yv(o,N)},[o]),F,j=V(V({},y),{},{visible:s});if(!f)F=null;else if(E===qi)M?F=f(V({},j),k):!c&&I.current&&m?F=f(V(V({},j),{},{className:m}),k):u||!c&&!m?F=f(V(V({},j),{},{style:{display:"none"}}),k):F=null;else{var B;_===Qr?B="prepare":FE(_)?B="active":_===Ya&&(B="start");var A=vb(h,"".concat(E,"-").concat(B));F=f(V(V({},j),{},{className:te(vb(h,E),z(z({},A,A&&B),h,typeof h=="string")),style:O}),k)}if(d.isValidElement(F)&&Mo(F)){var P=F,R=P.ref;R||(F=d.cloneElement(F,{ref:k}))}return d.createElement(ZR,{ref:x},F)});return r.displayName="CSSMotion",r}const To=uI(IE);var Tm="add",Rm="keep",Im="remove",Nh="removed";function dI(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function km(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dI)}function fI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=km(e),a=km(t);o.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==Im}),n.forEach(function(u){u.key===c&&(u.status=Rm)})}),n}var hI=["component","children","onVisibleChanged","onAllRemoved"],gI=["status"],mI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,n=function(r){Hi(o,r);var i=Vi(o);function o(){var a;hn(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var xI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const EI=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(AE=t),r&&wI(r)&&CR(CI(),r)},_I=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:y,popupOverflow:v,legacyLocale:b,parentContext:p,iconPrefixCls:g,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,input:re,textArea:ce,empty:he,badge:xe,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Se,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt}=e,_t=d.useCallback((mt,nt)=>{const{prefixCls:Tt}=e;if(nt)return nt;const Ot=Tt||p.getPrefixCls("");return mt?`${Ot}-${mt}`:Ot},[p.getPrefixCls,e.prefixCls]),Me=g||p.iconPrefixCls||mE,fe=n||p.csp;EE(Me,fe);const Re=XR(x,p.theme,{prefixCls:_t("")}),Ie={csp:fe,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:y??m,popupOverflow:v,getPrefixCls:_t,iconPrefixCls:Me,theme:Re,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,input:re,textArea:ce,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,empty:he,badge:xe,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Se,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt},ze=Object.assign({},p);Object.keys(Ie).forEach(mt=>{Ie[mt]!==void 0&&(ze[mt]=Ie[mt])}),SI.forEach(mt=>{const nt=e[mt];nt&&(ze[mt]=nt)}),typeof r<"u"&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const Ee=Pf(()=>ze,ze,(mt,nt)=>{const Tt=Object.keys(mt),Ot=Object.keys(nt);return Tt.length!==Ot.length||Tt.some(At=>mt[At]!==nt[At])}),_e=d.useMemo(()=>({prefixCls:Me,csp:fe}),[Me,fe]);let pe=d.createElement(d.Fragment,null,d.createElement(bI,{dropdownMatchSelectWidth:m}),t);const ut=d.useMemo(()=>{var mt,nt,Tt,Ot;return Xa(((mt=sa.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((Tt=(nt=Ee.locale)===null||nt===void 0?void 0:nt.Form)===null||Tt===void 0?void 0:Tt.defaultValidateMessages)||{},((Ot=Ee.form)===null||Ot===void 0?void 0:Ot.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ee,a==null?void 0:a.validateMessages]);Object.keys(ut).length>0&&(pe=d.createElement(sE.Provider,{value:ut},pe)),s&&(pe=d.createElement(UT,{locale:s,_ANT_MARK__:WT},pe)),(Me||fe)&&(pe=d.createElement(Ov.Provider,{value:_e},pe)),l&&(pe=d.createElement(wR,{size:l},pe)),pe=d.createElement(yI,null,pe);const Nt=d.useMemo(()=>{const mt=Re||{},{algorithm:nt,token:Tt,components:Ot,cssVar:At}=mt,pn=xI(mt,["algorithm","token","components","cssVar"]),Xn=nt&&(!Array.isArray(nt)||nt.length>0)?lm(nt):hE,Qe={};Object.entries(Ot||{}).forEach(dt=>{let[pt,jt]=dt;const Ye=Object.assign({},jt);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=Xn:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=lm(Ye.algorithm)),delete Ye.algorithm),Qe[pt]=Ye});const Le=Object.assign(Object.assign({},lc),Tt);return Object.assign(Object.assign({},pn),{theme:Xn,token:Le,components:Qe,override:Object.assign({override:Le},Qe),cssVar:At})},[Re]);return x&&(pe=d.createElement(gE.Provider,{value:Nt},pe)),Ee.warning&&(pe=d.createElement(DT.Provider,{value:Ee.warning},pe)),S!==void 0&&(pe=d.createElement(pE,{disabled:S},pe)),d.createElement(bt.Provider,{value:Ee},pe)},Ms=e=>{const t=d.useContext(bt),n=d.useContext(Mv);return d.createElement(_I,Object.assign({parentContext:t,legacyLocale:n},e))};Ms.ConfigContext=bt;Ms.SizeContext=ca;Ms.config=EI;Ms.useConfig=ER;Object.defineProperty(Ms,"SizeContext",{get:()=>ca});var $I={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"};function LE(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OI(e){return LE(e)instanceof ShadowRoot}function Dd(e){return OI(e)?LE(e):null}function PI(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MI(e,t){Nn(e,"[@ant-design/icons] ".concat(t))}function yb(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function bb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[PI(n)]=r}return t},{})}function Nm(e,t,n){return n?me.createElement(e.tag,V(V({key:t},bb(e.attrs)),n),(e.children||[]).map(function(r,i){return Nm(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):me.createElement(e.tag,V({key:t},bb(e.attrs)),(e.children||[]).map(function(r,i){return Nm(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function DE(e){return sc(e)[0]}function zE(e){return e?Array.isArray(e)?e:[e]:[]}var TI=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,RI=function(t){var n=d.useContext(Ov),r=n.csp,i=n.prefixCls,o=TI;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var a=t.current,s=Dd(a);ki(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},II=["icon","className","onClick","style","primaryColor","secondaryColor"],_l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kI(e){var t=e.primaryColor,n=e.secondaryColor;_l.primaryColor=t,_l.secondaryColor=n||DE(t),_l.calculated=!!n}function NI(){return V({},_l)}var Ts=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=st(t,II),c=d.useRef(),u=_l;if(a&&(u={primaryColor:a,secondaryColor:s||DE(a)}),RI(c),MI(yb(n),"icon should be icon definiton, but got ".concat(n)),!yb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=V(V({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Nm(f.icon,"svg-".concat(f.name),V(V({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ts.displayName="IconReact";Ts.getTwoToneColors=NI;Ts.setTwoToneColors=kI;function jE(e){var t=zE(e),n=Q(t,2),r=n[0],i=n[1];return Ts.setTwoToneColors({primaryColor:r,secondaryColor:i})}function FI(){var e=Ts.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var AI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jE(Ad.primary);var _n=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=st(e,AI),u=d.useContext(Ov),f=u.prefixCls,h=f===void 0?"anticon":f,m=u.rootClassName,y=te(m,h,z(z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,p=zE(l),g=Q(p,2),x=g[0],S=g[1];return d.createElement("span",Pe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:y}),d.createElement(Ts,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});_n.displayName="AntdIcon";_n.getTwoToneColor=FI;_n.setTwoToneColor=jE;var LI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:$I}))},DI=d.forwardRef(LI),zI={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"},jI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:zI}))},BI=d.forwardRef(jI),HI={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"},VI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:HI}))},WI=d.forwardRef(VI),UI={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"},GI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:UI}))},KI=d.forwardRef(GI);function BE(e){return e&&me.isValidElement(e)&&e.type===me.Fragment}const qI=(e,t,n)=>me.isValidElement(e)?me.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Nf(e,t){return qI(e,e,t)}const xb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Sb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Fh=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,XI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Cb=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!xb(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,m=[];let y=e;for(;xb(y)&&f(y);){if(y=XI(y),y===h){m.push(y);break}y!=null&&y===document.body&&Fh(y)&&!Fh(document.documentElement)||y!=null&&Fh(y,u)&&m.push(y)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:p,scrollY:g}=window,{height:x,width:S,top:C,right:w,bottom:E,left:_}=e.getBoundingClientRect(),{top:O,right:M,bottom:I,left:k}=(A=>{const P=window.getComputedStyle(A);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let F=s==="start"||s==="nearest"?C-O:s==="end"?E+I:C+x/2-O+I,j=l==="center"?_+S/2-k+M:l==="end"?w+M:_-k;const B=[];for(let A=0;A=0&&_>=0&&E<=b&&w<=v&&C>=D&&E<=G&&_>=X&&w<=H)return B;const W=getComputedStyle(P),K=parseInt(W.borderLeftWidth,10),ee=parseInt(W.borderTopWidth,10),U=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let J=0,re=0;const ce="offsetWidth"in P?P.offsetWidth-P.clientWidth-K-U:0,he="offsetHeight"in P?P.offsetHeight-P.clientHeight-ee-Y:0,xe="offsetWidth"in P?P.offsetWidth===0?0:N/P.offsetWidth:0,ie="offsetHeight"in P?P.offsetHeight===0?0:R/P.offsetHeight:0;if(h===P)J=s==="start"?F:s==="end"?F-b:s==="nearest"?mu(g,g+b,b,ee,Y,g+F,g+F+x,x):F-b/2,re=l==="start"?j:l==="center"?j-v/2:l==="end"?j-v:mu(p,p+v,v,K,U,p+j,p+j+S,S),J=Math.max(0,J+g),re=Math.max(0,re+p);else{J=s==="start"?F-D-ee:s==="end"?F-G+Y+he:s==="nearest"?mu(D,G,R,ee,Y+he,F,F+x,x):F-(D+R/2)+he/2,re=l==="start"?j-X-K:l==="center"?j-(X+N/2)+ce/2:l==="end"?j-H+U+ce:mu(X,H,N,K,U+ce,j,j+S,S);const{scrollLeft:de,scrollTop:ye}=P;J=ie===0?0:Math.max(0,Math.min(ye+J/ie,P.scrollHeight-R/ie+he)),re=xe===0?0:Math.max(0,Math.min(de+re/xe,P.scrollWidth-N/xe+ce)),F+=ye-J,j+=de-re}B.push({el:P,top:J,left:re})}return B},YI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QI(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Cb(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Cb(e,YI(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const Tc=e=>{const[,,,,t]=Wi();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=le.F1&&n<=le.F12)return!1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ZI={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"},JI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:ZI}))},HE=d.forwardRef(JI);const VE=me.createContext(void 0),ko=100,WE={Modal:ko,Drawer:ko,Popover:ko,Popconfirm:ko,Tooltip:ko,Tour:ko,FloatButton:ko},ek={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tk(e){return e in WE}const nk=(e,t)=>{const[,n]=Wi(),r=me.useContext(VE),i=tk(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+WE[e]:a+=ek[e],o=[r===void 0?t:a,a]}return o};function Jn(){Jn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,P,R){A[P]=R.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(A,P,R){return Object.defineProperty(A,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),A[P]}try{c({},"")}catch{c=function(R,N,D){return R[N]=D}}function u(A,P,R,N){var D=P&&P.prototype instanceof p?P:p,H=Object.create(D.prototype),G=new j(N||[]);return i(H,"_invoke",{value:M(A,R,G)}),H}function f(A,P,R){try{return{type:"normal",arg:A.call(P,R)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function p(){}function g(){}function x(){}var S={};c(S,a,function(){return this});var C=Object.getPrototypeOf,w=C&&C(C(B([])));w&&w!==n&&r.call(w,a)&&(S=w);var E=x.prototype=p.prototype=Object.create(S);function _(A){["next","throw","return"].forEach(function(P){c(A,P,function(R){return this._invoke(P,R)})})}function O(A,P){function R(D,H,G,X){var W=f(A[D],A,H);if(W.type!=="throw"){var K=W.arg,ee=K.value;return ee&&je(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(U){R("next",U,G,X)},function(U){R("throw",U,G,X)}):P.resolve(ee).then(function(U){K.value=U,G(K)},function(U){return R("throw",U,G,X)})}X(W.arg)}var N;i(this,"_invoke",{value:function(H,G){function X(){return new P(function(W,K){R(H,G,W,K)})}return N=N?N.then(X,X):X()}})}function M(A,P,R){var N=h;return function(D,H){if(N===y)throw Error("Generator is already running");if(N===v){if(D==="throw")throw H;return{value:e,done:!0}}for(R.method=D,R.arg=H;;){var G=R.delegate;if(G){var X=I(G,R);if(X){if(X===b)continue;return X}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(N===h)throw N=v,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);N=y;var W=f(A,P,R);if(W.type==="normal"){if(N=R.done?v:m,W.arg===b)continue;return{value:W.arg,done:R.done}}W.type==="throw"&&(N=v,R.method="throw",R.arg=W.arg)}}}function I(A,P){var R=P.method,N=A.iterator[R];if(N===e)return P.delegate=null,R==="throw"&&A.iterator.return&&(P.method="return",P.arg=e,I(A,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),b;var D=f(N,A.iterator,P.arg);if(D.type==="throw")return P.method="throw",P.arg=D.arg,P.delegate=null,b;var H=D.arg;return H?H.done?(P[A.resultName]=H.value,P.next=A.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,b):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,b)}function k(A){var P={tryLoc:A[0]};1 in A&&(P.catchLoc=A[1]),2 in A&&(P.finallyLoc=A[2],P.afterLoc=A[3]),this.tryEntries.push(P)}function F(A){var P=A.completion||{};P.type="normal",delete P.arg,A.completion=P}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(k,this),this.reset(!0)}function B(A){if(A||A===""){var P=A[a];if(P)return P.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var R=-1,N=function D(){for(;++R=0;--D){var H=this.tryEntries[D],G=H.completion;if(H.tryLoc==="root")return N("end");if(H.tryLoc<=this.prev){var X=r.call(H,"catchLoc"),W=r.call(H,"finallyLoc");if(X&&W){if(this.prev=0;--N){var D=this.tryEntries[N];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev=0;--R){var N=this.tryEntries[R];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),F(N),b}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R];if(N.tryLoc===P){var D=N.completion;if(D.type==="throw"){var H=D.arg;F(N)}return H}}throw Error("illegal catch attempt")},delegateYield:function(P,R,N){return this.delegate={iterator:B(P),resultName:R,nextLoc:N},this.method==="next"&&(this.arg=e),b}},t}function wb(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){wb(o,r,i,a,s,"next",l)}function s(l){wb(o,r,i,a,s,"throw",l)}a(void 0)})}}var Rc=V({},UP),rk=Rc.version,ik=Rc.render,ok=Rc.unmountComponentAtNode,Ff;try{var ak=Number((rk||"").split(".")[0]);ak>=18&&(Ff=Rc.createRoot)}catch{}function Eb(e){var t=Rc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var zd="__rc_react_root__";function sk(e,t){Eb(!0);var n=t[zd]||Ff(t);Eb(!1),n.render(e),t[zd]=n}function lk(e,t){ik(e,t)}function ck(e,t){if(Ff){sk(e,t);return}lk(e,t)}function uk(e){return Fm.apply(this,arguments)}function Fm(){return Fm=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[zd])===null||i===void 0||i.unmount(),delete t[zd]}));case 1:case"end":return r.stop()}},e)})),Fm.apply(this,arguments)}function dk(e){ok(e)}function fk(e){return Am.apply(this,arguments)}function Am(){return Am=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ff===void 0){r.next=2;break}return r.abrupt("return",uk(t));case 2:dk(t);case 3:case"end":return r.stop()}},e)})),Am.apply(this,arguments)}const Ah=()=>({height:0,opacity:0}),_b=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hk=e=>({height:e?e.offsetHeight:0}),Lh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",$b=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:cc}-motion-collapse`,onAppearStart:Ah,onEnterStart:Ah,onAppearActive:_b,onEnterActive:_b,onLeaveStart:hk,onLeaveActive:Ah,onAppearEnd:Lh,onEnterEnd:Lh,onLeaveEnd:Lh,motionDeadline:500}},UE=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Af=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},gk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},mk=WR("Wave",e=>[gk(e)]),GE=`${cc}-wave-target`;function Dh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function pk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Dh(t)?t:Dh(n)?n:Dh(r)?r:null}function zh(e){return Number.isNaN(e)?0:e}const vk=e=>{const{className:t,target:n,component:r}=e,i=d.useRef(null),[o,a]=d.useState(null),[s,l]=d.useState([]),[c,u]=d.useState(0),[f,h]=d.useState(0),[m,y]=d.useState(0),[v,b]=d.useState(0),[p,g]=d.useState(!1),x={left:c,top:f,width:m,height:v,borderRadius:s.map(w=>`${w}px`).join(" ")};o&&(x["--wave-color"]=o);function S(){const w=getComputedStyle(n);a(pk(n));const E=w.position==="static",{borderLeftWidth:_,borderTopWidth:O}=w;u(E?n.offsetLeft:zh(-parseFloat(_))),h(E?n.offsetTop:zh(-parseFloat(O))),y(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:I,borderBottomLeftRadius:k,borderBottomRightRadius:F}=w;l([M,I,F,k].map(j=>zh(parseFloat(j))))}if(d.useEffect(()=>{if(n){const w=Ft(()=>{S(),g(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{Ft.cancel(w),E==null||E.disconnect()}}},[]),!p)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(GE));return d.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,E)=>{var _;if(E.deadline||E.propertyName==="opacity"){const O=(_=i.current)===null||_===void 0?void 0:_.parentElement;fk(O).then(()=>{O==null||O.remove()})}return!1}},(w,E)=>{let{className:_}=w;return d.createElement("div",{ref:Si(i,E),className:te(t,_,{"wave-quick":C}),style:x})})},yk=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),ck(d.createElement(vk,Object.assign({},t,{target:e})),i)},bk=(e,t,n)=>{const{wave:r}=d.useContext(bt),[,i,o]=Wi(),a=Cn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${GE}`)||u,{showEffect:h}=r||{};(h||yk)(f,{className:t,token:i,component:n,event:c,hashId:o})}),s=d.useRef();return c=>{Ft.cancel(s.current),s.current=Ft(()=>{a(c)})}},xk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(bt),o=d.useRef(null),a=i("wave"),[,s]=mk(a),l=bk(o,te(a,s),r);if(me.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Af(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!me.isValidElement(t))return t??null;const c=Mo(t)?Si(t.ref,o):o;return Nf(t,{ref:c})},Ic=e=>{const t=me.useContext(ca);return me.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},KE=d.createContext(null),qE=(e,t)=>{const n=d.useContext(KE),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return te(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Sk=e=>{let{children:t}=e;return d.createElement(KE.Provider,{value:null},t)};var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(bt),{prefixCls:r,size:i,className:o}=e,a=Ck(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Wi();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=te(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return d.createElement(XE.Provider,{value:i},d.createElement("div",Object.assign({},a,{className:u})))},Ob=/^[\u4E00-\u9FA5]{2}$/,Lm=Ob.test.bind(Ob);function Pb(e){return typeof e=="string"}function jh(e){return e==="text"||e==="link"}function Ek(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pb(e.type)&&Lm(e.props.children)?Nf(e,{children:e.props.children.split("").join(n)}):Pb(e)?Lm(e)?me.createElement("span",null,e.split("").join(n)):me.createElement("span",null,e):BE(e)?me.createElement("span",null,e):e}function _k(e,t){let n=!1;const r=[];return me.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),me.Children.map(r,i=>Ek(i,t))}const YE=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=te(`${o}-icon`,n);return me.createElement("span",{ref:t,className:a,style:r},i)}),Mb=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=te(`${n}-loading-icon`,r);return me.createElement(YE,{prefixCls:n,className:a,style:i,ref:t},me.createElement(HE,{className:o}))}),Bh=()=>({width:0,opacity:0,transform:"scale(0)"}),Hh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$k=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?me.createElement(Mb,{prefixCls:t,className:i,style:o}):me.createElement(To,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Bh,onAppearActive:Hh,onEnterStart:Bh,onEnterActive:Hh,onLeaveStart:Hh,onLeaveActive:Bh},(s,l)=>{let{className:c,style:u}=s;return me.createElement(Mb,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},Tb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ok=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Tb(`${t}-primary`,i),Tb(`${t}-danger`,o)]}},Pn=Math.round;function Vh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Rb=(e,t,n)=>n===0?e:e/100;function Ks(e,t){const n=t||255;return e>n?n:e<0?0:e}class Lf{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof Lf)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ks(t.r),this.g=Ks(t.g),this.b=Ks(t.b),this.a=typeof t.a=="number"?Ks(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Pn(o("r")),g:Pn(o("g")),b:Pn(o("b")),a:Pn(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Pn((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Pn(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Pn(this.getSaturation()*100),r=Pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ks(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=Pn(r*255);this.r=h,this.g=h,this.b=h}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const f=r-c/2;this.r=Pn((o+f)*255),this.g=Pn((a+f)*255),this.b=Pn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Pn(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Pn(r*(1-n)*255),u=Pn(r*(1-n*l)*255),f=Pn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Vh(t,Rb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Vh(t,Rb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Vh(t,(r,i)=>i.includes("%")?Pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Pk=["b"],Mk=["v"],Wh=function(t){return Math.round(Number(t||0))},Tk=function(t){if(t instanceof Lf)return t;if(t&&je(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=st(n,Pk);return V(V({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},uc=function(e){Hi(n,e);var t=Vi(n);function n(r){return hn(this,n),t.call(this,Tk(r))}return gn(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=Wh(i.s*100),a=Wh(i.b*100),s=Wh(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=st(i,Mk);return V(V({},a),{},{b:o,a:this.a})}}]),n}(Lf),Rk=function(t){return t instanceof uc?t:new uc(t)};Rk("#1677ff");const Ik=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",kk=(e,t)=>e?Ik(e,t):"";let Nk=function(){function e(t){hn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new uc(this.colors[0].color.metaColor)):this.metaColor=new uc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kk(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Fk={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"},Ak=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:Fk}))},Ib=d.forwardRef(Ak);const Lk=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Dk=e=>({animationDuration:e,animationFillMode:"both"}),zk=e=>({animationDuration:e,animationFillMode:"both"}),QE=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${o}${e}-enter, + ${o}${e}-appear + `]:Object.assign(Object.assign({},Dk(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},zk(r)),{animationPlayState:"paused"}),[` + ${o}${e}-enter${e}-enter-active, + ${o}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},jk=new mn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Bk=new mn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hk=new mn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vk=new mn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wk=new mn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Uk=new mn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gk=new mn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Kk=new mn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qk={"slide-up":{inKeyframes:jk,outKeyframes:Bk},"slide-down":{inKeyframes:Hk,outKeyframes:Vk},"slide-left":{inKeyframes:Wk,outKeyframes:Uk},"slide-right":{inKeyframes:Gk,outKeyframes:Kk}},kb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=qk[t];return[QE(r,i,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},kv=new mn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xk=new mn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nb=new mn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fb=new mn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Yk=new mn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Qk=new mn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Zk=new mn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Jk=new mn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),eN=new mn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),tN=new mn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),nN=new mn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),rN=new mn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),iN={zoom:{inKeyframes:kv,outKeyframes:Xk},"zoom-big":{inKeyframes:Nb,outKeyframes:Fb},"zoom-big-fast":{inKeyframes:Nb,outKeyframes:Fb},"zoom-left":{inKeyframes:Zk,outKeyframes:Jk},"zoom-right":{inKeyframes:eN,outKeyframes:tN},"zoom-up":{inKeyframes:Yk,outKeyframes:Qk},"zoom-down":{inKeyframes:nN,outKeyframes:rN}},oN=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=iN[t];return[QE(r,i,o,e.motionDurationFast),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aN=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new uc(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},ZE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return An(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},JE=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:ed(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:ed(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ed(c),m=aN(new Nk(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,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,solidTextColor:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},sN=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Rv(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},e_=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),lN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Nv=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},e_(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),dN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uN(e))}),fN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Df=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?fN:dN;return Object.assign(Object.assign({},o(e)),e_(e.componentCls,t,n))},Fv=(e,t,n,r,i)=>({[`&${e.componentCls}-solid`]:Object.assign({color:t,background:n},Df(e,r,i))}),Av=(e,t,n,r,i)=>({[`&${e.componentCls}-outlined, &${e.componentCls}-dashed`]:Object.assign({borderColor:t,background:n},Df(e,r,i))}),Lv=e=>({[`&${e.componentCls}-dashed`]:{borderStyle:"dashed"}}),Dv=(e,t,n,r)=>({[`&${e.componentCls}-filled`]:Object.assign({boxShadow:"none",background:t},Df(e,n,r))}),Cs=(e,t,n,r,i)=>({[`&${e.componentCls}-${n}`]:Object.assign({color:t,boxShadow:"none"},Df(e,r,i,n))}),hN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Fv(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Av(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Lv(e)),Dv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Cs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Cs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Nv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),gN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover},{background:e.colorPrimaryActive})),Av(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Lv(e)),Dv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Nv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Fv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Av(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Lv(e)),Dv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Cs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Cs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Nv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pN=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hN(e),[`${t}-primary`]:gN(e),[`${t}-dangerous`]:mN(e)}},zv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${Z(c)} ${Z(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:lN(e)},{[`${n}${n}-round${t}`]:cN(e)}]},vN=e=>{const t=An(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return zv(t,e.componentCls)},yN=e=>{const t=An(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 zv(t,`${e.componentCls}-sm`)},bN=e=>{const t=An(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return zv(t,`${e.componentCls}-lg`)},xN=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},SN=Er("Button",e=>{const t=ZE(e);return[sN(t),vN(t),yN(t),bN(t),xN(t),pN(t),Ok(t)]},JE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function CN(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wN(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function jv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},CN(e,r,t)),wN(n,r,t))}}function EN(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _N(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function $N(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},EN(e,t)),_N(e.componentCls,t))}}const ON=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Z(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Z(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},PN=_E(["Button","compact"],e=>{const t=ZE(e);return[jv(t),$N(t),ON(t)]},JE);var MN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:o=!1,prefixCls:a,color:s,variant:l,type:c,danger:u=!1,shape:f="default",size:h,styles:m,disabled:y,className:v,rootClassName:b,children:p,icon:g,iconPosition:x="start",ghost:S=!1,block:C=!1,htmlType:w="button",classNames:E,style:_={},autoInsertSpace:O}=e,M=MN(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),I=c||"default",[k,F]=d.useMemo(()=>{if(s&&l)return[s,l];const He=RN[I]||[];return u?["danger",He[1]]:He},[c,s,l,u]),B=k==="danger"?"dangerous":k,{getPrefixCls:A,direction:P,button:R}=d.useContext(bt),N=(n=O??(R==null?void 0:R.autoInsertSpace))!==null&&n!==void 0?n:!0,D=A("btn",a),[H,G,X]=SN(D),W=d.useContext(la),K=y??W,ee=d.useContext(XE),U=d.useMemo(()=>TN(o),[o]),[Y,J]=d.useState(U.loading),[re,ce]=d.useState(!1),xe=Si(t,d.createRef()),ie=d.Children.count(p)===1&&!g&&!jh(F);d.useEffect(()=>{let He=null;U.delay>0?He=setTimeout(()=>{He=null,J(!0)},U.delay):J(U.loading);function We(){He&&(clearTimeout(He),He=null)}return We},[U]),d.useEffect(()=>{if(!xe||!xe.current||!N)return;const He=xe.current.textContent;ie&&Lm(He)?re||ce(!0):re&&ce(!1)},[xe]);const de=He=>{const{onClick:We}=e;if(Y||K){He.preventDefault();return}We==null||We(He)},{compactSize:ye,compactItemClassnames:be}=qE(D,P),se={large:"lg",small:"sm",middle:void 0},we=Ic(He=>{var We,ct;return(ct=(We=h??ye)!==null&&We!==void 0?We:ee)!==null&&ct!==void 0?ct:He}),$e=we&&se[we]||"",ue=Y?"loading":g,Ne=si(M,["navigate"]),ae=te(D,G,X,{[`${D}-${f}`]:f!=="default"&&f,[`${D}-${B}`]:B,[`${D}-${F}`]:F,[`${D}-${$e}`]:$e,[`${D}-icon-only`]:!p&&p!==0&&!!ue,[`${D}-background-ghost`]:S&&!jh(F),[`${D}-loading`]:Y,[`${D}-two-chinese-chars`]:re&&N&&!Y,[`${D}-block`]:C,[`${D}-rtl`]:P==="rtl",[`${D}-icon-end`]:x==="end"},be,v,b,R==null?void 0:R.className),Ue=Object.assign(Object.assign({},R==null?void 0:R.style),_),Fe=te(E==null?void 0:E.icon,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.icon),Se=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.icon)||{}),Ve=g&&!Y?me.createElement(YE,{prefixCls:D,className:Fe,style:Se},g):me.createElement($k,{existIcon:!!g,prefixCls:D,loading:Y}),Be=p||p===0?_k(p,ie&&N):null;if(Ne.href!==void 0)return H(me.createElement("a",Object.assign({},Ne,{className:te(ae,{[`${D}-disabled`]:K}),href:K?void 0:Ne.href,style:Ue,onClick:de,ref:xe,tabIndex:K?-1:0}),Ve,Be));let De=me.createElement("button",Object.assign({},M,{type:w,className:ae,style:Ue,onClick:de,disabled:K,ref:xe}),Ve,Be,!!be&&me.createElement(PN,{key:"compact",prefixCls:D}));return jh(F)||(De=me.createElement(xk,{component:"Button",disabled:Y},De)),H(De)}),Bv=IN;Bv.Group=wk;Bv.__ANT_BUTTON=!0;var t_=d.createContext(null),Ab=[];function kN(e,t){var n=d.useState(function(){if(!Sr())return null;var y=document.createElement("div");return y}),r=Q(n,1),i=r[0],o=d.useRef(!1),a=d.useContext(t_),s=d.useState(Ab),l=Q(s,2),c=l[0],u=l[1],f=a||(o.current?void 0:function(y){u(function(v){var b=[y].concat(ge(v));return b})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),o.current=!1}return Tn(function(){return e?a?a(h):h():m(),m},[e]),Tn(function(){c.length&&(c.forEach(function(y){return y()}),u(Ab))},[c]),[i,f]}function NN(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ki(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(u,` +`).concat(f,` +}`),t)}catch(y){console.error(y),i=l,o=c}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,m=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ic(t),{width:h,height:m}}function FN(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:NN(e)}function AN(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var LN="rc-util-locker-".concat(Date.now()),Lb=0;function DN(e){var t=!!e,n=d.useState(function(){return Lb+=1,"".concat(LN,"_").concat(Lb)}),r=Q(n,1),i=r[0];Tn(function(){if(t){var o=FN(document.body).width,a=AN();ki(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` +}`),i)}else ic(i);return function(){ic(i)}},[t,i])}var zN=!1;function jN(e){return zN}var Db=function(t){return t===!1?!1:!Sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},n_=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=d.useState(n),c=Q(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var m=d.useState(function(){return Db(i)}),y=Q(m,2),v=y[0],b=y[1];d.useEffect(function(){var I=Db(i);b(I??null)});var p=kN(h&&!v),g=Q(p,2),x=g[0],S=g[1],C=v??x;DN(r&&n&&Sr()&&(C===x||C===document.body));var w=null;if(s&&Mo(s)&&t){var E=s;w=E.ref}var _=Pc(w,t);if(!h||!Sr()||v===void 0)return null;var O=C===!1||jN(),M=s;return t&&(M=d.cloneElement(s,{ref:_})),d.createElement(t_.Provider,{value:S},O?M:ma.createPortal(M,C))});function BN(){var e=V({},tf);return e.useId}var zb=0,jb=BN();const HN=jb?function(t){var n=jb();return t||n}:function(t){var n=d.useState("ssr-id"),r=Q(n,2),i=r[0],o=r[1];return d.useEffect(function(){var a=zb;zb+=1,o("rc_unique_".concat(a))},[]),t||i};var Ko="RC_FORM_INTERNAL_HOOKS",It=function(){Nn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ua=d.createContext({getFieldValue:It,getFieldsValue:It,getFieldError:It,getFieldWarning:It,getFieldsError:It,isFieldsTouched:It,isFieldTouched:It,isFieldValidating:It,isFieldsValidating:It,resetFields:It,setFields:It,setFieldValue:It,setFieldsValue:It,validateFields:It,submit:It,getInternalHooks:function(){return It(),{dispatch:It,initEntityValue:It,registerField:It,useSubscribe:It,setInitialValues:It,destroyForm:It,setCallbacks:It,registerWatch:It,getFields:It,setValidateMessages:It,setPreserve:It,getInitialValue:It}}}),dc=d.createContext(null);function Dm(e){return e==null?[]:Array.isArray(e)?e:[e]}function VN(e){return e&&!!e._init}function zm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jm=zm();function WN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UN(e,t,n){if(bv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&tc(i,n.prototype),i}function Bm(e){var t=typeof Map=="function"?new Map:void 0;return Bm=function(r){if(r===null||!WN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return UN(r,arguments,nc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tc(i,r)},Bm(e)}var GN=/%[sdj%]/g,KN=function(){};function Hm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function yr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function qN(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function En(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qN(t)&&typeof e=="string"&&!e)}function XN(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,ge(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Bb(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(yr(o.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(yr(o.messages[f].range,t.fullField,t.min,t.max))},r_=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||En(n,a||t.type))&&i.push(yr(o.messages.required,t.fullField))},pu;const rF=function(){if(pu)return pu;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,y=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(m,"|").concat(y,"|").concat(v).concat(b).concat(p,")").concat(g).concat(x);return pu=new RegExp("(?:^".concat(S,"$)"),"i"),pu};var Ub={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sl={integer:function(t){return sl.number(t)&&parseInt(t,10)===t},float:function(t){return sl.number(t)&&!sl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return je(t)==="object"&&!sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ub.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(rF())},hex:function(t){return typeof t=="string"&&!!t.match(Ub.hex)}},iF=function(t,n,r,i,o){if(t.required&&n===void 0){r_(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?sl[s](n)||i.push(yr(o.messages.types[s],t.fullField,t.type)):s&&je(n)!==t.type&&i.push(yr(o.messages.types[s],t.fullField,t.type))},oF=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(yr(o.messages.whitespace,t.fullField))};const ft={required:r_,whitespace:oF,type:iF,range:nF,enum:eF,pattern:tF};var aF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o)}r(a)},sF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ft.required(t,n,i,a,o,"array"),n!=null&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},lF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},cF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"date")&&!t.required)return r();if(ft.required(t,n,i,a,o),!En(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ft.type(t,l,i,a,o),l&&ft.range(t,l.getTime(),i,a,o)}}r(a)},uF="enum",dF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft[uF](t,n,i,a,o)}r(a)},fF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},hF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},gF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},mF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},pF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},vF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o),En(n,"string")||ft.pattern(t,n,i,a,o)}r(a)},yF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),En(n)||ft.type(t,n,i,a,o)}r(a)},bF=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":je(n);ft.required(t,n,i,a,o,s),r(a)},xF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o,"string"),En(n,"string")||(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o),ft.pattern(t,n,i,a,o),t.whitespace===!0&&ft.whitespace(t,n,i,a,o))}r(a)},Uh=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(En(n,a)&&!t.required)return r();ft.required(t,n,i,s,o,a),En(n,a)||ft.type(t,n,i,s,o)}r(s)};const $l={string:xF,method:gF,number:mF,boolean:lF,regexp:yF,integer:hF,float:fF,array:sF,object:pF,enum:dF,pattern:vF,date:cF,url:Uh,hex:Uh,email:Uh,required:bF,any:aF};var kc=function(){function e(t){hn(this,e),z(this,"rules",null),z(this,"_messages",jm),this.define(t)}return gn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(je(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Wb(zm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(y){var v=[],b={};function p(x){if(Array.isArray(x)){var S;v=(S=v).concat.apply(S,ge(x))}else v.push(x)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(E)?E:[E];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&b.message!==void 0&&(_=[].concat(b.message));var O=_.map(Vb(b,a));if(s.first&&O.length)return m[b.field]=1,v(O);if(!p)v(O);else{if(b.required&&!y.value)return b.message!==void 0?O=[].concat(b.message).map(Vb(b,a)):s.error&&(O=[s.error(b,yr(s.messages.required,b.field))]),v(O);var M={};b.defaultField&&Object.keys(y.value).map(function(F){M[F]=b.defaultField}),M=V(V({},M),y.rule.fields);var I={};Object.keys(M).forEach(function(F){var j=M[F],B=Array.isArray(j)?j:[j];I[F]=B.map(g.bind(null,F))});var k=new e(I);k.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),k.validate(y.value,y.rule.options||s,function(F){var j=[];O&&O.length&&j.push.apply(j,ge(O)),F&&F.length&&j.push.apply(j,ge(F)),v(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,y.value,x,y.source,s);else if(b.validator){try{S=b.validator(b,y.value,x,y.source,s)}catch(E){var C,w;(C=(w=console).error)===null||C===void 0||C.call(w,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},function(y){c(y)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!$l.hasOwnProperty(n.type))throw new Error(yr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?$l.required:$l[this.getType(n)]||void 0}}]),e}();z(kc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$l[t]=n});z(kc,"warning",KN);z(kc,"messages",jm);z(kc,"validators",$l);var gr="'${name}' is not a valid ${type}",i_={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:gr,method:gr,array:gr,object:gr,number:gr,date:gr,boolean:gr,integer:gr,float:gr,regexp:gr,email:gr,url:gr,hex:gr},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}"}},Gb=kc;function SF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Kb="CODE_LOGIC_ERROR";function Vm(e,t,n,r,i){return Wm.apply(this,arguments)}function Wm(){return Wm=pa(Jn().mark(function e(t,n,r,i,o){var a,s,l,c,u,f,h,m,y;return Jn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,Gb.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Kb)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Gb(z({},t,[a])),u=Xa(i_,i.validateMessages),c.messages(u),f=[],b.prev=10,b.next=13,Promise.resolve(c.validate(z({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(p,g){var x=p.message,S=x===Kb?u.default:x;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(g)}):S}));case 18:if(!(!f.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(p,g){return Vm("".concat(t,".").concat(g),p,l,i,o)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function(p,g){return[].concat(ge(p),ge(g))},[]));case 23:return m=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),y=f.map(function(p){return typeof p=="string"?SF(p,m):p}),b.abrupt("return",y);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Wm.apply(this,arguments)}function CF(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,m=V(V({},u),{},{ruleIndex:f});return h&&(m.validator=function(y,v,b){var p=!1,g=function(){for(var C=arguments.length,w=new Array(C),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return o_(t,r,n)})}function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function _F(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return ge(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function $F(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Xb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(ge(e.slice(0,n)),[i],ge(e.slice(n,t)),ge(e.slice(t+1,r))):o<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[i],ge(e.slice(n+1,r))):e}var OF=["name"],Pr=[];function Gh(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Hv=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;if(hn(this,n),i=t.call(this,r),z(rt(i),"state",{resetCount:0}),z(rt(i),"cancelRegisterFunc",null),z(rt(i),"mounted",!1),z(rt(i),"touched",!1),z(rt(i),"dirty",!1),z(rt(i),"validatePromise",void 0),z(rt(i),"prevValidating",void 0),z(rt(i),"errors",Pr),z(rt(i),"warnings",Pr),z(rt(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,cn(f)),i.cancelRegisterFunc=null}),z(rt(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(ge(h),ge(c)):[]}),z(rt(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),z(rt(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),z(rt(i),"metaCache",null),z(rt(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});vs(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),z(rt(i),"onStoreChange",function(l,c,u){var f=i.props,h=f.shouldUpdate,m=f.dependencies,y=m===void 0?[]:m,v=f.onReset,b=u.store,p=i.getNamePath(),g=i.getValue(l),x=i.getValue(b),S=c&&as(c,p);switch(u.type==="valueUpdate"&&u.source==="external"&&!vs(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(h&&Gh(h,l,b,g,x,u)){i.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Pr),"warnings"in C&&(i.warnings=C.warnings||Pr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&as(c,p,!0)){i.reRender();return}if(h&&!p.length&&Gh(h,l,b,g,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=y.map(cn);if(w.some(function(E){return as(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!y.length||p.length||h)&&Gh(h,l,b,g,x,u)){i.reRender();return}break}h===!0&&i.reRender()}),z(rt(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},h=f.triggerName,m=f.validateOnly,y=m===void 0?!1:m,v=Promise.resolve().then(pa(Jn().mark(function b(){var p,g,x,S,C,w,E;return Jn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(p=i.props,g=p.validateFirst,x=g===void 0?!1:g,S=p.messageVariables,C=p.validateDebounce,w=i.getRules(),h&&(w=w.filter(function(M){return M}).filter(function(M){var I=M.validateTrigger;if(!I)return!0;var k=Dm(I);return k.includes(h)})),!(C&&h)){O.next=10;break}return O.next=8,new Promise(function(M){setTimeout(M,C)});case 8:if(i.validatePromise===v){O.next=10;break}return O.abrupt("return",[]);case 10:return E=CF(c,u,w,l,x,S),E.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr;if(i.validatePromise===v){var I;i.validatePromise=null;var k=[],F=[];(I=M.forEach)===null||I===void 0||I.call(M,function(j){var B=j.rule.warningOnly,A=j.errors,P=A===void 0?Pr:A;B?F.push.apply(F,ge(P)):k.push.apply(k,ge(P))}),i.errors=k,i.warnings=F,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},b)})));return y||(i.validatePromise=v,i.dirty=!0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),i.reRender()),v}),z(rt(i),"isFieldValidating",function(){return!!i.validatePromise}),z(rt(i),"isFieldTouched",function(){return i.touched}),z(rt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Ko),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),z(rt(i),"getErrors",function(){return i.errors}),z(rt(i),"getWarnings",function(){return i.warnings}),z(rt(i),"isListField",function(){return i.props.isListField}),z(rt(i),"isList",function(){return i.props.isList}),z(rt(i),"isPreserve",function(){return i.props.preserve}),z(rt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),z(rt(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Co(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(rt(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return vi(l||c(!0),u)}),z(rt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,h=c.validateTrigger,m=c.getValueFromEvent,y=c.normalize,v=c.valuePropName,b=c.getValueProps,p=c.fieldContext,g=h!==void 0?h:p.validateTrigger,x=i.getNamePath(),S=p.getInternalHooks,C=p.getFieldsValue,w=S(Ko),E=w.dispatch,_=i.getValue(),O=b||function(j){return z({},v,j)},M=l[f],I=u!==void 0?O(_):{},k=V(V({},l),I);k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,B=arguments.length,A=new Array(B),P=0;P=0&&M<=I.length?(u.keys=[].concat(ge(u.keys.slice(0,M)),[u.id],ge(u.keys.slice(M))),x([].concat(ge(I.slice(0,M)),[O],ge(I.slice(M))))):(u.keys=[].concat(ge(u.keys),[u.id]),x([].concat(ge(I),[O]))),u.id+=1},remove:function(O){var M=C(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(k,F){return!I.has(F)}),x(M.filter(function(k,F){return!I.has(F)})))},move:function(O,M){if(O!==M){var I=C();O<0||O>=I.length||M<0||M>=I.length||(u.keys=Xb(u.keys,O,M),x(Xb(I,O,M)))}}},E=g||[];return Array.isArray(E)||(E=[]),r(E.map(function(_,O){var M=u.keys[O];return M===void 0&&(u.keys[O]=u.id,M=u.keys[O],u.id+=1),{name:O,key:M,isListField:!0}}),w,b)})))}function PF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var s_="__@field_split__";function Kh(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(s_)}var _a=function(){function e(){hn(this,e),z(this,"kvs",new Map)}return gn(e,[{key:"set",value:function(n,r){this.kvs.set(Kh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Kh(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Kh(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var i=Q(r,2),o=i[0],a=i[1],s=o.split(s_);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Q(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),MF=["name"],TF=gn(function e(t){var n=this;hn(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(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}}),z(this,"getInternalHooks",function(r){return r===Ko?(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}):(Nn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Xa(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Yr(a,l,vi(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new _a;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),z(this,"getInitialValue",function(r){var i=vi(n.initialValues,r);return r.length?Xa(i):i}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new _a;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=cn(o);return i.get(a)||{INVALIDATE_NAME_PATH:cn(o)}})}),z(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&je(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,h,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var y,v;if((y=(v=u).isList)!==null&&y!==void 0&&y.call(v))return}else if(!o&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(m);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(m)}}),qb(n.store,c.map(cn))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var i=cn(r);return vi(n.store,i)}),z(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:cn(r[a]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new _a,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),m=n.getInitialValue(h);if(m!==void 0)Nn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var y=i.get(h);if(y&&y.size>1)Nn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var v=n.getFieldValue(h),b=u.isListField();!b&&(!r.skipExist||v===void 0)&&n.updateStore(Yr(n.store,h,ge(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,ge(ge(c).map(function(f){return f.entity})))}})):s=o,a(s)}),z(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Xa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(cn);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),z(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=st(a,MF),c=cn(s);o.push(c),"value"in l&&n.updateStore(Yr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),z(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=vi(n.store,o);a===void 0&&n.updateStore(Yr(n.store,o,i))}}),z(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!o_(f.getNamePath(),i)})){var u=n.store;n.updateStore(Yr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),z(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ge(o))}),o}),z(this,"updateValue",function(r,i){var o=cn(r),a=n.store;n.updateStore(Yr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=qb(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ge(s)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Xa(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),z(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new _a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cn(u);a.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return s(r),o}),z(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new _a;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return as(r,u)});l.length&&o(l,a)}}),z(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(cn):[],c=[],u=String(Date.now()),f=new Set,h=a||{},m=h.recursive,y=h.dirty;n.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(y&&!g.isFieldDirty())){var x=g.getNamePath();if(f.add(x.join(u)),!s||as(l,x,m)){var S=g.validateRules(V({validateMessages:V(V({},i_),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var w,E=[],_=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(O){var M=O.rule.warningOnly,I=O.errors;M?_.push.apply(_,ge(I)):E.push.apply(E,ge(I))}),E.length?Promise.reject({name:x,errors:E,warnings:_}):{name:x,errors:E,warnings:_}}))}}});var v=PF(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var x=g.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,g)});var b=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var x=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==v})});b.catch(function(g){return g});var p=l.filter(function(g){return f.has(g.join(u))});return n.triggerOnFieldsChange(p),b}),z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function Wv(e){var t=d.useRef(),n=d.useState({}),r=Q(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new TF(o);t.current=a.getForm()}return[t.current]}var Km=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),l_=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=d.useContext(Km),s=d.useRef({});return d.createElement(Km.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},RF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],IF=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,m=h===void 0?"onChange":h,y=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,p=t.onFinishFailed,g=t.clearOnDestroy,x=st(t,RF),S=d.useRef(null),C=d.useContext(Km),w=Wv(a),E=Q(w,1),_=E[0],O=_.getInternalHooks(Ko),M=O.useSubscribe,I=O.setInitialValues,k=O.setCallbacks,F=O.setValidateMessages,j=O.setPreserve,B=O.destroyForm;d.useImperativeHandle(n,function(){return V(V({},_),{},{nativeElement:S.current})}),d.useEffect(function(){return C.registerForm(r,_),function(){C.unregisterForm(r)}},[C,_,r]),F(V(V({},C.validateMessages),f)),k({onValuesChange:y,onFieldsChange:function(W){if(C.triggerFormChange(r,W),v){for(var K=arguments.length,ee=new Array(K>1?K-1:0),U=1;U{}}),u_=d.createContext(null),d_=e=>{const t=si(e,["prefixCls"]);return d.createElement(l_,Object.assign({},t))},Uv=d.createContext({prefixCls:""}),da=d.createContext({}),NF=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(da),o=d.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return d.createElement(da.Provider,{value:o},t)},f_=d.createContext(void 0),qm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=me.createElement(NF,{override:!0,status:!0},i)),t&&(i=me.createElement(Sk,null,i)),i},zf=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=te({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=te({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:te(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},FF=new mn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),jf=e=>({height:e,lineHeight:Z(e)}),ss=e=>Object.assign({width:e},jf(e)),AF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},jf(e)),LF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ss(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ss(i)),[`${t}${t}-sm`]:Object.assign({},ss(o))}},DF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},qh(t,s)),[`${r}-lg`]:Object.assign({},qh(i,s)),[`${r}-sm`]:Object.assign({},qh(o,s))}},Qb=e=>Object.assign({width:e},jf(e)),zF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Qb(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Qb(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Xh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Yh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},jf(e)),jF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Yh(r,s))},Xh(e,r,n)),{[`${n}-lg`]:Object.assign({},Yh(i,s))}),Xh(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Yh(o,s))}),Xh(e,o,`${n}-sm`))},BF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:m,borderRadius:y,titleHeight:v,blockRadius:b,paragraphLiHeight:p,controlHeightXS:g,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ss(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ss(c)),[`${n}-sm`]:Object.assign({},ss(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:b,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:b,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jF(e)),LF(e)),DF(e)),zF(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${i} > li, + ${n}, + ${o}, + ${a}, + ${s} + `]:Object.assign({},AF(e))}}},HF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Is=Er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=An(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[BF(r)]},HF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),VF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls","className"]),m=te(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},WF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-button`,size:a},h))))},UF="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",GF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=d.useContext(bt),s=a("skeleton",t),[l,c,u]=Is(s),f=te(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:te(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:UF,className:`${s}-image-path`})))))},KF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-input`,size:a},h))))},qF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=te(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:te(`${l}-image`,n),style:i},a)))},XF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},YF=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=ge(new Array(i)).map((a,s)=>d.createElement("li",{key:s,style:{width:XF(s,e)}}));return d.createElement("ul",{className:te(t,n),style:r},o)},QF=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:te(t,n),style:Object.assign({width:r},i)})};function Qh(e){return e&&typeof e=="object"?e:{}}function ZF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function eA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ks=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:m,skeleton:y}=d.useContext(bt),v=h("skeleton",t),[b,p,g]=Is(v);if(n||!("loading"in e)){const x=!!s,S=!!l,C=!!c;let w;if(x){const O=Object.assign(Object.assign({prefixCls:`${v}-avatar`},ZF(S,C)),Qh(s));w=d.createElement("div",{className:`${v}-header`},d.createElement(zf,Object.assign({},O)))}let E;if(S||C){let O;if(S){const I=Object.assign(Object.assign({prefixCls:`${v}-title`},JF(x,C)),Qh(l));O=d.createElement(QF,Object.assign({},I))}let M;if(C){const I=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},eA(x,S)),Qh(c));M=d.createElement(YF,Object.assign({},I))}E=d.createElement("div",{className:`${v}-content`},O,M)}const _=te(v,{[`${v}-with-avatar`]:x,[`${v}-active`]:u,[`${v}-rtl`]:m==="rtl",[`${v}-round`]:f},y==null?void 0:y.className,r,i,p,g);return b(d.createElement("div",{className:_,style:Object.assign(Object.assign({},y==null?void 0:y.style),o)},w,E))}return a??null};ks.Button=WF;ks.Avatar=VF;ks.Input=KF;ks.Image=GF;ks.Node=qF;const Gv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var tA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$a=void 0;function nA(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,m=e.display,y=e.order,v=e.component,b=v===void 0?"div":v,p=st(e,tA),g=a&&!m;function x(_){l(c,_)}d.useEffect(function(){return function(){x(null)}},[]);var S=o&&i!==$a?o(i):h,C;r||(C={opacity:g?0:1,height:g?0:$a,overflowY:g?"hidden":$a,order:a?y:$a,pointerEvents:g?"none":$a,position:g?"absolute":$a});var w={};g&&(w["aria-hidden"]=!0);var E=d.createElement(b,Pe({className:te(!r&&n,u),style:V(V({},C),f)},w,p,{ref:t}),S);return a&&(E=d.createElement(vo,{onResize:function(O){var M=O.offsetWidth;x(M)},disabled:s},E)),E}var Ol=d.forwardRef(nA);Ol.displayName="Item";function rA(e){if(typeof MessageChannel>"u")Ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function iA(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],rA(function(){ma.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function qs(e,t){var n=d.useState(t),r=Q(n,2),i=r[0],o=r[1],a=Cn(function(s){e(function(){o(s)})});return[i,a]}var jd=me.createContext(null),oA=["component"],aA=["className"],sA=["className"],lA=function(t,n){var r=d.useContext(jd);if(!r){var i=t.component,o=i===void 0?"div":i,a=st(t,oA);return d.createElement(o,Pe({},a,{ref:n}))}var s=r.className,l=st(r,aA),c=t.className,u=st(t,sA);return d.createElement(jd.Provider,{value:null},d.createElement(Ol,Pe({ref:n,className:te(s,c)},l,u)))},h_=d.forwardRef(lA);h_.displayName="RawItem";var cA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],g_="responsive",m_="invalidate";function uA(e){return"+ ".concat(e.length," ...")}function dA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,m=e.className,y=e.maxCount,v=e.renderRest,b=e.renderRawRest,p=e.suffix,g=e.component,x=g===void 0?"div":g,S=e.itemComponent,C=e.onVisibleChange,w=st(e,cA),E=f==="full",_=iA(),O=qs(_,null),M=Q(O,2),I=M[0],k=M[1],F=I||0,j=qs(_,new Map),B=Q(j,2),A=B[0],P=B[1],R=qs(_,0),N=Q(R,2),D=N[0],H=N[1],G=qs(_,0),X=Q(G,2),W=X[0],K=X[1],ee=qs(_,0),U=Q(ee,2),Y=U[0],J=U[1],re=d.useState(null),ce=Q(re,2),he=ce[0],xe=ce[1],ie=d.useState(null),de=Q(ie,2),ye=de[0],be=de[1],se=d.useMemo(function(){return ye===null&&E?Number.MAX_SAFE_INTEGER:ye||0},[ye,I]),we=d.useState(!1),$e=Q(we,2),ue=$e[0],Ne=$e[1],ae="".concat(r,"-item"),Ue=Math.max(D,W),Fe=y===g_,Se=o.length&&Fe,Ve=y===m_,Be=Se||typeof y=="number"&&o.length>y,De=d.useMemo(function(){var Ee=o;return Se?I===null&&E?Ee=o:Ee=o.slice(0,Math.min(o.length,F/u)):typeof y=="number"&&(Ee=o.slice(0,y)),Ee},[o,u,I,y,Se]),He=d.useMemo(function(){return Se?o.slice(se+1):o.slice(De.length)},[o,De,Se,se]),We=d.useCallback(function(Ee,_e){var pe;return typeof l=="function"?l(Ee):(pe=l&&(Ee==null?void 0:Ee[l]))!==null&&pe!==void 0?pe:_e},[l]),ct=d.useCallback(a||function(Ee){return Ee},[a]);function ht(Ee,_e,pe){ye===Ee&&(_e===void 0||_e===he)||(be(Ee),pe||(Ne(EeF){ht(ut-1,Ee-Nt-Y+W);break}}p&>(0)+Y>F&&xe(null)}},[F,A,W,Y,We,De]);var xn=ue&&!!He.length,vt={};he!==null&&Se&&(vt={position:"absolute",left:he,top:0});var _t={prefixCls:ae,responsive:Se,component:S,invalidate:Ve},Me=s?function(Ee,_e){var pe=We(Ee,_e);return d.createElement(jd.Provider,{key:pe,value:V(V({},_t),{},{order:_e,item:Ee,itemKey:pe,registerSize:Ct,display:_e<=se})},s(Ee,_e))}:function(Ee,_e){var pe=We(Ee,_e);return d.createElement(Ol,Pe({},_t,{order:_e,key:pe,item:Ee,renderItem:ct,itemKey:pe,registerSize:Ct,display:_e<=se}))},fe,Re={order:xn?se:Number.MAX_SAFE_INTEGER,className:"".concat(ae,"-rest"),registerSize:kt,display:xn};if(b)b&&(fe=d.createElement(jd.Provider,{value:V(V({},_t),Re)},b(He)));else{var Ie=v||uA;fe=d.createElement(Ol,Pe({},_t,Re),typeof Ie=="function"?Ie(He):Ie)}var ze=d.createElement(x,Pe({className:te(!Ve&&r,m),style:h,ref:t},w),De.map(Me),Be?fe:null,p&&d.createElement(Ol,Pe({},_t,{responsive:Fe,responsiveDisabled:!Se,order:se,className:"".concat(ae,"-suffix"),registerSize:Et,display:!0,style:vt}),p));return Fe&&(ze=d.createElement(vo,{onResize:Ge,disabled:!Se},ze)),ze}var Ni=d.forwardRef(dA);Ni.displayName="Overflow";Ni.Item=h_;Ni.RESPONSIVE=g_;Ni.INVALIDATE=m_;function fA(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],v=n.points[1],b=y[0],p=y[1],g=v[0],x=v[1];b===g||!["t","b"].includes(b)?m.top=f:b==="t"?m.top=0:m.bottom=0,p===x||!["l","r"].includes(p)?m.left=c:p==="l"?m.left=0:m.right=0}return d.createElement("div",{ref:h,className:te("".concat(t,"-arrow"),a),style:m},s)}function hA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(To,Pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),s)})}):null}var gA=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),mA=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,m=e.arrow,y=e.arrowPos,v=e.align,b=e.motion,p=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,C=e.portal,w=e.zIndex,E=e.onMouseEnter,_=e.onMouseLeave,O=e.onPointerEnter,M=e.ready,I=e.offsetX,k=e.offsetY,F=e.offsetR,j=e.offsetB,B=e.onAlign,A=e.onPrepare,P=e.stretch,R=e.targetWidth,N=e.targetHeight,D=typeof n=="function"?n():n,H=l||c,G=(x==null?void 0:x.length)>0,X=d.useState(!x||!G),W=Q(X,2),K=W[0],ee=W[1];if(Tn(function(){!K&&G&&a&&ee(!0)},[K,G,a]),!K)return null;var U="auto",Y={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!l){var J,re=v.points,ce=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),he=ce&&re[0][1]==="r",xe=ce&&re[0][0]==="b";he?(Y.right=F,Y.left=U):(Y.left=I,Y.right=U),xe?(Y.bottom=j,Y.top=U):(Y.top=k,Y.bottom=U)}var ie={};return P&&(P.includes("height")&&N?ie.height=N:P.includes("minHeight")&&N&&(ie.minHeight=N),P.includes("width")&&R?ie.width=R:P.includes("minWidth")&&R&&(ie.minWidth=R)),l||(ie.pointerEvents="none"),d.createElement(C,{open:g||H,getContainer:x&&function(){return x(a)},autoDestroy:S},d.createElement(hA,{prefixCls:i,open:l,zIndex:w,mask:h,motion:p}),d.createElement(vo,{onResize:B,disabled:!l},function(de){return d.createElement(To,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(be){var se;b==null||(se=b.onVisibleChanged)===null||se===void 0||se.call(b,be),s(be)}}),function(ye,be){var se=ye.className,we=ye.style,$e=te(i,se,r);return d.createElement("div",{ref:Si(de,t,be),className:$e,style:V(V(V(V({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Y),ie),we),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:E,onMouseLeave:_,onPointerEnter:O,onClick:f},m&&d.createElement(fA,{prefixCls:i,arrow:m,arrowPos:y,align:v}),d.createElement(gA,{cache:!l&&!u},D))})}))}),pA=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Mo(n),o=d.useCallback(function(s){yv(t,r?r(s):s)},[r]),a=Pc(o,n.ref);return i?d.cloneElement(n,{ref:a}):n}),Zb=d.createContext(null);function Jb(e){return e?Array.isArray(e)?e:[e]:[]}function vA(e,t,n,r){return d.useMemo(function(){var i=Jb(n??t),o=Jb(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function yA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function bA(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xs(e){return fc(parseFloat(e),0)}function t1(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Nc(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,v=r.clientWidth,b=Xs(s),p=Xs(l),g=Xs(c),x=Xs(u),S=fc(Math.round(f.width/y*1e3)/1e3),C=fc(Math.round(f.height/h*1e3)/1e3),w=(y-v-g-x)*S,E=(h-m-b-p)*C,_=b*C,O=p*C,M=g*S,I=x*S,k=0,F=0;if(o==="clip"){var j=Xs(a);k=j*S,F=j*C}var B=f.x+M-k,A=f.y+_-F,P=B+f.width+2*k-M-I-w,R=A+f.height+2*F-_-O-E;n.left=Math.max(n.left,B),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}}),n}function n1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function r1(e,t){var n=t||[],r=Q(n,2),i=r[0],o=r[1];return[n1(e.width,i),n1(e.height,o)]}function i1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Oa(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Gi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function xA(e,t,n,r,i,o,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Q(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?Xm(t):[]},[t]),m=d.useRef({}),y=function(){m.current={}};e||y();var v=Cn(function(){if(t&&n&&e){let $t=function(Ls,Io){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,zc=W.x+Ls,jc=W.y+Io,Te=zc+xe,Ke=jc+he,Gt=Math.max(zc,xa.left),ln=Math.max(jc,xa.top),Kt=Math.min(Te,xa.right),Sa=Math.min(Ke,xa.bottom);return Math.max(0,(Kt-Gt)*(Sa-ln))},On=function(){pt=W.y+pe,jt=pt+he,Ye=W.x+_e,en=Ye+xe};var sn=$t,nn=On,g,x,S,C,w=t,E=w.ownerDocument,_=Nc(w),O=_.getComputedStyle(w),M=O.width,I=O.height,k=O.position,F=w.style.left,j=w.style.top,B=w.style.right,A=w.style.bottom,P=w.style.overflow,R=V(V({},i[r]),o),N=E.createElement("div");(g=w.parentElement)===null||g===void 0||g.appendChild(N),N.style.left="".concat(w.offsetLeft,"px"),N.style.top="".concat(w.offsetTop,"px"),N.style.position=k,N.style.height="".concat(w.offsetHeight,"px"),N.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var H,G,X=n.getBoundingClientRect();X.x=(H=X.x)!==null&&H!==void 0?H:X.left,X.y=(G=X.y)!==null&&G!==void 0?G:X.top,D={x:X.x,y:X.y,width:X.width,height:X.height}}var W=w.getBoundingClientRect();W.x=(x=W.x)!==null&&x!==void 0?x:W.left,W.y=(S=W.y)!==null&&S!==void 0?S:W.top;var K=E.documentElement,ee=K.clientWidth,U=K.clientHeight,Y=K.scrollWidth,J=K.scrollHeight,re=K.scrollTop,ce=K.scrollLeft,he=W.height,xe=W.width,ie=D.height,de=D.width,ye={left:0,top:0,right:ee,bottom:U},be={left:-ce,top:-re,right:Y-ce,bottom:J-re},se=R.htmlRegion,we="visible",$e="visibleFirst";se!=="scroll"&&se!==$e&&(se=we);var ue=se===$e,Ne=t1(be,h),ae=t1(ye,h),Ue=se===we?ae:Ne,Fe=ue?ae:Ue;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Se=w.getBoundingClientRect();w.style.left=F,w.style.top=j,w.style.right=B,w.style.bottom=A,w.style.overflow=P,(C=w.parentElement)===null||C===void 0||C.removeChild(N);var Ve=fc(Math.round(xe/parseFloat(M)*1e3)/1e3),Be=fc(Math.round(he/parseFloat(I)*1e3)/1e3);if(Ve===0||Be===0||ec(n)&&!Af(n))return;var De=R.offset,He=R.targetOffset,We=r1(W,De),ct=Q(We,2),ht=ct[0],Ge=ct[1],Ct=r1(D,He),kt=Q(Ct,2),Et=kt[0],gt=kt[1];D.x-=Et,D.y-=gt;var xn=R.points||[],vt=Q(xn,2),_t=vt[0],Me=vt[1],fe=i1(Me),Re=i1(_t),Ie=Oa(D,fe),ze=Oa(W,Re),Ee=V({},R),_e=Ie.x-ze.x+ht,pe=Ie.y-ze.y+Ge,ut=$t(_e,pe),Nt=$t(_e,pe,ae),mt=Oa(D,["t","l"]),nt=Oa(W,["t","l"]),Tt=Oa(D,["b","r"]),Ot=Oa(W,["b","r"]),At=R.overflow||{},pn=At.adjustX,Xn=At.adjustY,Qe=At.shiftX,Le=At.shiftY,dt=function(Io){return typeof Io=="boolean"?Io:Io>=0},pt,jt,Ye,en;On();var tn=dt(Xn),Yn=Re[0]===fe[0];if(tn&&Re[0]==="t"&&(jt>Fe.bottom||m.current.bt)){var Ae=pe;Yn?Ae-=he-ie:Ae=mt.y-Ot.y-Ge;var ke=$t(_e,Ae),ot=$t(_e,Ae,ae);ke>ut||ke===ut&&(!ue||ot>=Nt)?(m.current.bt=!0,pe=Ae,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.bt=!1}if(tn&&Re[0]==="b"&&(ptut||qe===ut&&(!ue||Xt>=Nt)?(m.current.tb=!0,pe=Ze,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.tb=!1}var Bt=dt(pn),Lt=Re[1]===fe[1];if(Bt&&Re[1]==="l"&&(en>Fe.right||m.current.rl)){var Ht=_e;Lt?Ht-=xe-de:Ht=mt.x-Ot.x-ht;var Dt=$t(Ht,pe),Rt=$t(Ht,pe,ae);Dt>ut||Dt===ut&&(!ue||Rt>=Nt)?(m.current.rl=!0,_e=Ht,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.rl=!1}if(Bt&&Re[1]==="r"&&(Yeut||nr===ut&&(!ue||rr>=Nt)?(m.current.lr=!0,_e=Yt,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.lr=!1}On();var Vt=Qe===!0?0:Qe;typeof Vt=="number"&&(Yeae.right&&(_e-=en-ae.right-ht,D.x>ae.right-Vt&&(_e+=D.x-ae.right+Vt)));var $n=Le===!0?0:Le;typeof $n=="number"&&(ptae.bottom&&(pe-=jt-ae.bottom-Ge,D.y>ae.bottom-$n&&(pe+=D.y-ae.bottom+$n)));var _r=W.x+_e,$r=_r+xe,Bn=W.y+pe,Ci=Bn+he,xt=D.x,Je=xt+de,St=D.y,vn=St+ie,an=Math.max(_r,xt),Wr=Math.min($r,Je),li=(an+Wr)/2,Ro=li-_r,$=Math.max(Bn,St),T=Math.min(Ci,vn),L=($+T)/2,q=L-Bn;a==null||a(t,Ee);var ne=Se.right-W.x-(_e+W.width),ve=Se.bottom-W.y-(pe+W.height);Ve===1&&(_e=Math.round(_e),ne=Math.round(ne)),Be===1&&(pe=Math.round(pe),ve=Math.round(ve));var et={ready:!0,offsetX:_e/Ve,offsetY:pe/Be,offsetR:ne/Ve,offsetB:ve/Be,arrowX:Ro/Ve,arrowY:q/Be,scaleX:Ve,scaleY:Be,align:Ee};u(et)}}),b=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},p=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return Tn(p,[r]),Tn(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function SA(e,t,n,r,i){Tn(function(){if(e&&t&&n){let h=function(){r(),i()};var f=h,o=t,a=n,s=Xm(o),l=Xm(a),c=Nc(a),u=new Set([c].concat(ge(s),ge(l)));return u.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),c.addEventListener("resize",h,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",h),c.removeEventListener("resize",h)})}}},[e,t,n])}function CA(e,t,n,r,i,o,a,s){var l=d.useRef(e);l.current=e,d.useEffect(function(){if(t&&r&&(!i||o)){var c=function(m){var y;l.current&&!a(((y=m.composedPath)===null||y===void 0||(y=y.call(m))===null||y===void 0?void 0:y[0])||m.target)&&s(!1)},u=Nc(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Dd(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var wA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function EA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n_,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,v=n.mouseEnterDelay,b=n.mouseLeaveDelay,p=b===void 0?.1:b,g=n.focusDelay,x=n.blurDelay,S=n.mask,C=n.maskClosable,w=C===void 0?!0:C,E=n.getPopupContainer,_=n.forceRender,O=n.autoDestroy,M=n.destroyPopupOnHide,I=n.popup,k=n.popupClassName,F=n.popupStyle,j=n.popupPlacement,B=n.builtinPlacements,A=B===void 0?{}:B,P=n.popupAlign,R=n.zIndex,N=n.stretch,D=n.getPopupClassNameFromAlign,H=n.fresh,G=n.alignPoint,X=n.onPopupClick,W=n.onPopupAlign,K=n.arrow,ee=n.popupMotion,U=n.maskMotion,Y=n.popupTransitionName,J=n.popupAnimation,re=n.maskTransitionName,ce=n.maskAnimation,he=n.className,xe=n.getTriggerDOMNode,ie=st(n,wA),de=O||M||!1,ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1];Tn(function(){we(Gv())},[]);var $e=d.useRef({}),ue=d.useContext(Zb),Ne=d.useMemo(function(){return{registerSubPopup:function(Ke,Gt){$e.current[Ke]=Gt,ue==null||ue.registerSubPopup(Ke,Gt)}}},[ue]),ae=HN(),Ue=d.useState(null),Fe=Q(Ue,2),Se=Fe[0],Ve=Fe[1],Be=d.useRef(null),De=Cn(function(Te){Be.current=Te,ec(Te)&&Se!==Te&&Ve(Te),ue==null||ue.registerSubPopup(ae,Te)}),He=d.useState(null),We=Q(He,2),ct=We[0],ht=We[1],Ge=d.useRef(null),Ct=Cn(function(Te){ec(Te)&&ct!==Te&&(ht(Te),Ge.current=Te)}),kt=d.Children.only(a),Et=(kt==null?void 0:kt.props)||{},gt={},xn=Cn(function(Te){var Ke,Gt,ln=ct;return(ln==null?void 0:ln.contains(Te))||((Ke=Dd(ln))===null||Ke===void 0?void 0:Ke.host)===Te||Te===ln||(Se==null?void 0:Se.contains(Te))||((Gt=Dd(Se))===null||Gt===void 0?void 0:Gt.host)===Te||Te===Se||Object.values($e.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(Te))||Te===Kt})}),vt=e1(o,ee,J,Y),_t=e1(o,U,ce,re),Me=d.useState(h||!1),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=f??Re,Ee=Cn(function(Te){f===void 0&&Ie(Te)});Tn(function(){Ie(f||!1)},[f]);var _e=d.useRef(ze);_e.current=ze;var pe=d.useRef([]);pe.current=[];var ut=Cn(function(Te){var Ke;Ee(Te),((Ke=pe.current[pe.current.length-1])!==null&&Ke!==void 0?Ke:ze)!==Te&&(pe.current.push(Te),m==null||m(Te))}),Nt=d.useRef(),mt=function(){clearTimeout(Nt.current)},nt=function(Ke){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mt(),Gt===0?ut(Ke):Nt.current=setTimeout(function(){ut(Ke)},Gt*1e3)};d.useEffect(function(){return mt},[]);var Tt=d.useState(!1),Ot=Q(Tt,2),At=Ot[0],pn=Ot[1];Tn(function(Te){(!Te||ze)&&pn(!0)},[ze]);var Xn=d.useState(null),Qe=Q(Xn,2),Le=Qe[0],dt=Qe[1],pt=d.useState(null),jt=Q(pt,2),Ye=jt[0],en=jt[1],tn=function(Ke){en([Ke.clientX,Ke.clientY])},Yn=xA(ze,Se,G&&Ye!==null?Ye:ct,j,A,P,W),Ae=Q(Yn,11),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3],Xt=Ae[4],Bt=Ae[5],Lt=Ae[6],Ht=Ae[7],Dt=Ae[8],Rt=Ae[9],Yt=Ae[10],nr=vA(se,l,c,u),rr=Q(nr,2),Vt=rr[0],$n=rr[1],_r=Vt.has("click"),$r=$n.has("click")||$n.has("contextMenu"),Bn=Cn(function(){At||Yt()}),Ci=function(){_e.current&&G&&$r&&nt(!1)};SA(ze,ct,Se,Bn,Ci),Tn(function(){Bn()},[Ye,j]),Tn(function(){ze&&!(A!=null&&A[j])&&Bn()},[JSON.stringify(P)]);var xt=d.useMemo(function(){var Te=bA(A,o,Rt,G);return te(Te,D==null?void 0:D(Rt))},[Rt,D,A,o,G]);d.useImperativeHandle(r,function(){return{nativeElement:Ge.current,popupElement:Be.current,forceAlign:Bn}});var Je=d.useState(0),St=Q(Je,2),vn=St[0],an=St[1],Wr=d.useState(0),li=Q(Wr,2),Ro=li[0],$=li[1],T=function(){if(N&&ct){var Ke=ct.getBoundingClientRect();an(Ke.width),$(Ke.height)}},L=function(){T(),Bn()},q=function(Ke){pn(!1),Yt(),y==null||y(Ke)},ne=function(){return new Promise(function(Ke){T(),dt(function(){return Ke})})};Tn(function(){Le&&(Yt(),Le(),dt(null))},[Le]);function ve(Te,Ke,Gt,ln){gt[Te]=function(Kt){var Sa;ln==null||ln(Kt),nt(Ke,Gt);for(var Yf=arguments.length,E0=new Array(Yf>1?Yf-1:0),Bc=1;Bc1?Gt-1:0),Kt=1;Kt1?Gt-1:0),Kt=1;Ktt||e,$A=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=d.useContext(bt),s=d.useContext(f_),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=yR.includes(c);return[c,u]};var OA={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"},PA=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:OA}))},MA=d.forwardRef(PA);const hc=["xxl","xl","lg","md","sm","xs"],TA=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),RA=e=>{const t=e,n=[].concat(hc).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function p_(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return d.createElement("div",{className:te("".concat(n,"-content"),o),style:a},d.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Pa={shiftX:64,adjustY:1},Ma={adjustX:1,shiftY:!0},Mr=[0,0],kA={left:{points:["cr","cl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:Ma,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:Ma,offset:[-4,0],targetOffset:Mr}},NA=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FA=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,m=t.children,y=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,p=t.animation,g=t.motion,x=t.placement,S=x===void 0?"right":x,C=t.align,w=C===void 0?{}:C,E=t.destroyTooltipOnHide,_=E===void 0?!1:E,O=t.defaultVisible,M=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,F=t.id,j=t.showArrow,B=j===void 0?!0:j,A=st(t,NA),P=d.useRef(null);d.useImperativeHandle(n,function(){return P.current});var R=V({},A);"visible"in t&&(R.popupVisible=t.visible);var N=function(){return d.createElement(p_,{key:"content",prefixCls:h,id:F,overlayInnerStyle:I},k)};return d.createElement(Kv,Pe({popupClassName:r,prefixCls:h,popup:N,action:o,builtinPlacements:kA,popupPlacement:S,ref:P,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:y,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:p,popupMotion:g,defaultPopupVisible:O,autoDestroy:_,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:B},R),m)};const AA=d.forwardRef(FA);function LA(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,m=2*i-s,y=l,v=2*i-o,b=a,p=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${m} ${y} A ${r} ${r} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:x}}const DA=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},v_=8;function y_(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?v_:r}}function vu(e,t){return e?t:{}}function zA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},DA(e,t,i)),{"&:before":{background:t}})]},vu(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),vu(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function jA(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const a1={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"]}},BA={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"]}},HA=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VA(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(a1).forEach(c=>{const u=r&&BA[c]||a1[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,HA.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const h=y_({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=jA(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const WA=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Z(e.calc(c).div(2).equal())} ${Z(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,v_)}},[`${t}-content`]:{position:"relative"}}),UR(e,(f,h)=>{let{darkColor:m}=h;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},zA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},UA=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},y_({contentRadius:e.borderRadius,limitVerticalRadius:!0})),LA(An(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),b_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Er("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=An(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[WA(s),oN(r,"zoom-big-fast")]},UA,{resetStyle:!1,injectStyle:t})(e)},GA=Ld.map(e=>`${e}-inverse`);function KA(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(GA),ge(Ld)).includes(e):Ld.includes(e)}function x_(e,t){const n=KA(t),r=te({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const qA=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("tooltip",t),[c,u,f]=b_(l),h=x_(l,o),m=h.arrowStyle,y=Object.assign(Object.assign({},a),h.overlayStyle),v=te(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:v,style:m},d.createElement("div",{className:`${l}-arrow`}),d.createElement(p_,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:y}),i)))};var XA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:y=!0,title:v,overlay:b,builtinPlacements:p,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0}=e,S=!!y,[,C]=Wi(),{getPopupContainer:w,getPrefixCls:E,direction:_}=d.useContext(bt),O=Pv(),M=d.useRef(null),I=()=>{var ae;(ae=M.current)===null||ae===void 0||ae.forceAlign()};d.useImperativeHandle(t,()=>{var ae;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(ae=M.current)===null||ae===void 0?void 0:ae.nativeElement}});const[k,F]=yo(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!v&&!b&&v!==0,B=ae=>{var Ue,Fe;F(j?!1:ae),j||((Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,ae),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,ae))},A=d.useMemo(()=>{var ae,Ue;let Fe=g;return typeof y=="object"&&(Fe=(Ue=(ae=y.pointAtCenter)!==null&&ae!==void 0?ae:y.arrowPointAtCenter)!==null&&Ue!==void 0?Ue:g),p||VA({arrowPointAtCenter:Fe,autoAdjustOverflow:x,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,y,p,C]),P=d.useMemo(()=>v===0?v:b||v||"",[b,v]),R=d.createElement(qm,{space:!0},typeof P=="function"?P():P),{getPopupContainer:N,placement:D="top",mouseEnterDelay:H=.1,mouseLeaveDelay:G=.1,overlayStyle:X,rootClassName:W}=e,K=XA(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=E("tooltip",i),U=E(),Y=e["data-popover-inject"];let J=k;!("open"in e)&&!("visible"in e)&&j&&(J=!1);const re=d.isValidElement(u)&&!BE(u)?u:d.createElement("span",null,u),ce=re.props,he=!ce.className||typeof ce.className=="string"?te(ce.className,o||`${ee}-open`):ce.className,[xe,ie,de]=b_(ee,!Y),ye=x_(ee,l),be=ye.arrowStyle,se=Object.assign(Object.assign({},c),ye.overlayStyle),we=te(s,{[`${ee}-rtl`]:_==="rtl"},ye.className,W,ie,de),[$e,ue]=nk("Tooltip",K.zIndex),Ne=d.createElement(AA,Object.assign({},K,{zIndex:$e,showArrow:S,placement:D,mouseEnterDelay:H,mouseLeaveDelay:G,prefixCls:ee,overlayClassName:we,overlayStyle:Object.assign(Object.assign({},be),X),getTooltipContainer:N||a||w,ref:M,builtinPlacements:A,overlay:R,visible:J,onVisibleChange:B,afterVisibleChange:f??h,overlayInnerStyle:se,arrowContent:d.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:UE(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),J?Nf(re,{className:he}):re);return xe(d.createElement(VE.Provider,{value:ue},Ne))}),eo=YA;eo._InternalPanelDoNotUseOrYouWillBeFired=qA;var QA=le.ESC,ZA=le.TAB;function JA(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case QA:s();break;case ZA:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Ft(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var eL=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Si(t,o==null?void 0:o.ref);return me.createElement(me.Fragment,null,r&&me.createElement("div",{className:"".concat(i,"-arrow")}),me.cloneElement(o,{ref:Mo(o)?a:void 0}))}),Ta={adjustX:1,adjustY:1},Ra=[0,0],tL={topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:Ra},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:Ra},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:Ra},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:Ra}},nL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rL(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,m=h===void 0?tL:h,y=e.getPopupContainer,v=e.showAction,b=e.hideAction,p=e.overlayClassName,g=e.overlayStyle,x=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,w=e.autoFocus,E=e.overlay,_=e.children,O=e.onVisibleChange,M=st(e,nL),I=me.useState(),k=Q(I,2),F=k[0],j=k[1],B="visible"in e?x:F,A=me.useRef(null),P=me.useRef(null),R=me.useRef(null);me.useImperativeHandle(t,function(){return A.current});var N=function(Y){j(Y),O==null||O(Y)};JA({visible:B,triggerRef:R,onVisibleChange:N,autoFocus:w,overlayRef:P});var D=function(Y){var J=e.onOverlayClick;j(!1),J&&J(Y)},H=function(){return me.createElement(eL,{ref:P,overlay:E,prefixCls:a,arrow:i})},G=function(){return typeof E=="function"?H:H()},X=function(){var Y=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!J},W=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},K=me.cloneElement(_,{className:te((n=_.props)===null||n===void 0?void 0:n.className,B&&W()),ref:Mo(_)?Si(R,_.ref):void 0}),ee=b;return!ee&&C.indexOf("contextMenu")!==-1&&(ee=["click"]),me.createElement(Kv,Pe({builtinPlacements:m},M,{prefixCls:a,ref:A,popupClassName:te(p,z({},"".concat(a,"-show-arrow"),i)),popupStyle:g,action:C,showAction:v,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:B,stretch:X()?"minWidth":"",popup:G(),onPopupVisibleChange:N,onPopupClick:D,getPopupContainer:y}),K)}const iL=me.forwardRef(rL);var S_=d.createContext(null);function C_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function w_(e){var t=d.useContext(S_);return C_(t,e)}var oL=["children","locked"],ai=d.createContext(null);function aL(e,t){var n=V({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function gc(e){var t=e.children,n=e.locked,r=st(e,oL),i=d.useContext(ai),o=Pf(function(){return aL(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!vs(a[1],s[1],!0))});return d.createElement(ai.Provider,{value:o},t)}var sL=[],E_=d.createContext(null);function Bf(){return d.useContext(E_)}var __=d.createContext(sL);function Fc(e){var t=d.useContext(__);return d.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var $_=d.createContext(null),qv=d.createContext({});function s1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Af(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function lL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return s1(r,t)});return s1(e,t)&&n.unshift(e),n}var Ym=le.LEFT,Qm=le.RIGHT,Zm=le.UP,td=le.DOWN,nd=le.ENTER,O_=le.ESC,Ys=le.HOME,Qs=le.END,l1=[Zm,td,Ym,Qm];function cL(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===nd)return{inlineTrigger:!0};var c=z(z({},Zm,o),td,a),u=z(z(z(z({},Ym,n?a:o),Qm,n?o:a),td,s),nd,s),f=z(z(z(z(z(z({},Zm,o),td,a),nd,s),O_,l),Ym,n?s:l),Qm,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},m=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(m){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function uL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function dL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Xv(e,t){var n=lL(e,!0);return n.filter(function(r){return t.has(r)})}function c1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Xv(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var Jm=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(C_(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function fL(e,t,n,r,i,o,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){Ft.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(m){var y=m.which;if([].concat(l1,[nd,O_,Ys,Qs]).includes(y)){var v=o(),b=Jm(v,r),p=b,g=p.elements,x=p.key2element,S=p.element2key,C=x.get(t),w=dL(C,g),E=S.get(w),_=cL(e,a(E,!0).length===1,n,y);if(!_&&y!==Ys&&y!==Qs)return;(l1.includes(y)||[Ys,Qs].includes(y))&&m.preventDefault();var O=function(P){if(P){var R=P,N=P.querySelector("a");N!=null&&N.getAttribute("href")&&(R=N);var D=S.get(P);s(D),h(),u.current=Ft(function(){f.current===D&&R.focus()})}};if([Ys,Qs].includes(y)||_.sibling||!w){var M;!w||e==="inline"?M=i.current:M=uL(w);var I,k=Xv(M,g);y===Ys?I=k[0]:y===Qs?I=k[k.length-1]:I=c1(M,g,w,_.offset),O(I)}else if(_.inlineTrigger)l(E);else if(_.offset>0)l(E,!0),h(),u.current=Ft(function(){b=Jm(v,r);var A=w.getAttribute("aria-controls"),P=document.getElementById(A),R=c1(P,b.elements);O(R)},5);else if(_.offset<0){var F=a(E,!0),j=F[F.length-2],B=x.get(j);l(j,!1),O(B)}}c==null||c(m)}}function hL(e){Promise.resolve().then(e)}var Yv="__RC_UTIL_PATH_SPLIT__",u1=function(t){return t.join(Yv)},gL=function(t){return t.split(Yv)},ep="rc-menu-more";function mL(){var e=d.useState({}),t=Q(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),a=Q(o,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(x,S){var C=u1(S);i.current.set(C,x),r.current.set(x,C),c.current+=1;var w=c.current;hL(function(){w===c.current&&f()})},[]),m=d.useCallback(function(x,S){var C=u1(S);i.current.delete(C),r.current.delete(x)},[]),y=d.useCallback(function(x){l(x)},[]),v=d.useCallback(function(x,S){var C=r.current.get(x)||"",w=gL(C);return S&&s.includes(w[0])&&w.unshift(ep),w},[s]),b=d.useCallback(function(x,S){return x.filter(function(C){return C!==void 0}).some(function(C){var w=v(C,!0);return w.includes(S)})},[v]),p=function(){var S=ge(r.current.keys());return s.length&&S.push(ep),S},g=d.useCallback(function(x){var S="".concat(r.current.get(x)).concat(Yv),C=new Set;return ge(i.current.keys()).forEach(function(w){w.startsWith(S)&&C.add(i.current.get(w))}),C},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:m,refreshOverflowKeys:y,isSubPathKey:b,getKeyPath:v,getKeys:p,getSubPathKeys:g}}function ll(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(g.motionAppear=!1);var x=g.onVisibleChanged;return g.onVisibleChanged=function(S){return!h.current&&!S&&b(!0),x==null?void 0:x(S)},v?null:d.createElement(gc,{mode:o,locked:!h.current},d.createElement(To,Pe({visible:p},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,w=S.style;return d.createElement(Qv,{id:t,className:C,style:w},i)}))}var IL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kL=["active"],NL=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,m=e.popupStyle,y=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,p=e.onTitleClick,g=e.onTitleMouseEnter,x=e.onTitleMouseLeave,S=st(e,IL),C=w_(o),w=d.useContext(ai),E=w.prefixCls,_=w.mode,O=w.openKeys,M=w.disabled,I=w.overflowDisabled,k=w.activeKey,F=w.selectedKeys,j=w.itemIcon,B=w.expandIcon,A=w.onItemClick,P=w.onOpenChange,R=w.onActive,N=d.useContext(qv),D=N._internalRenderSubMenuItem,H=d.useContext($_),G=H.isSubPathKey,X=Fc(),W="".concat(E,"-submenu"),K=M||a,ee=d.useRef(),U=d.useRef(),Y=c??j,J=u??B,re=O.includes(o),ce=!I&&re,he=G(F,o),xe=P_(o,K,g,x),ie=xe.active,de=st(xe,kL),ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1],$e=function(Ct){K||we(Ct)},ue=function(Ct){$e(!0),v==null||v({key:o,domEvent:Ct})},Ne=function(Ct){$e(!1),b==null||b({key:o,domEvent:Ct})},ae=d.useMemo(function(){return ie||(_!=="inline"?se||G([k],o):!1)},[_,ie,k,se,o,G]),Ue=M_(X.length),Fe=function(Ct){K||(p==null||p({key:o,domEvent:Ct}),_==="inline"&&P(o,!re))},Se=ll(function(Ge){y==null||y(Bd(Ge)),A(Ge)}),Ve=function(Ct){_!=="inline"&&P(o,Ct)},Be=function(){R(o)},De=C&&"".concat(C,"-popup"),He=d.createElement("div",Pe({role:"menuitem",style:Ue,className:"".concat(W,"-title"),tabIndex:K?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":I&&C?null:C,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":K,onClick:Fe,onFocus:Be},de),i,d.createElement(T_,{icon:_!=="horizontal"?J:void 0,props:V(V({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(W,"-arrow")}))),We=d.useRef(_);if(_!=="inline"&&X.length>1?We.current="vertical":We.current=_,!I){var ct=We.current;He=d.createElement(TL,{mode:ct,prefixCls:W,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:m,popup:d.createElement(gc,{mode:ct==="horizontal"?"vertical":ct},d.createElement(Qv,{id:De,ref:U},l)),disabled:K,onVisibleChange:Ve},He)}var ht=d.createElement(Ni.Item,Pe({ref:t,role:"none"},S,{component:"li",style:n,className:te(W,"".concat(W,"-").concat(_),r,z(z(z(z({},"".concat(W,"-open"),ce),"".concat(W,"-active"),ae),"".concat(W,"-selected"),he),"".concat(W,"-disabled"),K)),onMouseEnter:ue,onMouseLeave:Ne}),He,!I&&d.createElement(RL,{id:De,open:ce,keyPath:X},l));return D&&(ht=D(ht,e,{selected:he,active:ae,open:ce,disabled:K})),d.createElement(gc,{onItemClick:Se,mode:_==="horizontal"?"vertical":_,itemIcon:Y,expandIcon:J},ht)}),Jv=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=Bf();d.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=d.createElement(NL,Pe({ref:t},e),o),d.createElement(__.Provider,{value:i},s)});function I_(e){var t=e.className,n=e.style,r=d.useContext(ai),i=r.prefixCls,o=Bf();return o?null:d.createElement("li",{role:"separator",className:te("".concat(i,"-item-divider"),t),style:n})}var FL=["className","title","eventKey","children"],AL=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=st(e,FL),a=d.useContext(ai),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Pe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:te(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),k_=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=Bf();return a?o:d.createElement(AL,Pe({ref:t},si(e,["warnKey"])),o)}),LL=["label","children","key","type","extra"];function tp(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&je(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,m=c.type,y=c.extra,v=st(c,LL),b=h??"tmp-".concat(l);return f||m==="group"?m==="group"?d.createElement(i,Pe({key:b},v,{title:u}),tp(f,t,n)):d.createElement(o,Pe({key:b},v,{title:u}),tp(f,t,n)):m==="divider"?d.createElement(a,Pe({key:b},v)):d.createElement(r,Pe({key:b},v),u,(!!y||y===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},y))}return null}).filter(function(s){return s})}function f1(e,t,n,r,i){var o=e,a=V({divider:I_,item:Hf,group:k_,submenu:Jv},r);return t&&(o=tp(t,a,i)),Zv(o,n)}var DL=["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","_internalComponents"],No=[],zL=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,m=r.direction,y=r.id,v=r.mode,b=v===void 0?"vertical":v,p=r.inlineCollapsed,g=r.disabled,x=r.disabledOverflow,S=r.subMenuOpenDelay,C=S===void 0?.1:S,w=r.subMenuCloseDelay,E=w===void 0?.1:w,_=r.forceSubMenuRender,O=r.defaultOpenKeys,M=r.openKeys,I=r.activeKey,k=r.defaultActiveFirst,F=r.selectable,j=F===void 0?!0:F,B=r.multiple,A=B===void 0?!1:B,P=r.defaultSelectedKeys,R=r.selectedKeys,N=r.onSelect,D=r.onDeselect,H=r.inlineIndent,G=H===void 0?24:H,X=r.motion,W=r.defaultMotions,K=r.triggerSubMenuAction,ee=K===void 0?"hover":K,U=r.builtinPlacements,Y=r.itemIcon,J=r.expandIcon,re=r.overflowedIndicator,ce=re===void 0?"...":re,he=r.overflowedIndicatorPopupClassName,xe=r.getPopupContainer,ie=r.onClick,de=r.onOpenChange,ye=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,we=r._internalComponents,$e=st(r,DL),ue=d.useMemo(function(){return[f1(h,f,No,we,o),f1(h,f,No,{},o)]},[h,f,we]),Ne=Q(ue,2),ae=Ne[0],Ue=Ne[1],Fe=d.useState(!1),Se=Q(Fe,2),Ve=Se[0],Be=Se[1],De=d.useRef(),He=vL(y),We=m==="rtl",ct=yo(O,{value:M,postState:function(Je){return Je||No}}),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=function(Je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vn(){Ct(Je),de==null||de(Je)}St?ma.flushSync(vn):vn()},Et=d.useState(Ge),gt=Q(Et,2),xn=gt[0],vt=gt[1],_t=d.useRef(!1),Me=d.useMemo(function(){return(b==="inline"||b==="vertical")&&p?["vertical",p]:[b,!1]},[b,p]),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=Re==="inline",Ee=d.useState(Re),_e=Q(Ee,2),pe=_e[0],ut=_e[1],Nt=d.useState(Ie),mt=Q(Nt,2),nt=mt[0],Tt=mt[1];d.useEffect(function(){ut(Re),Tt(Ie),_t.current&&(ze?Ct(xn):kt(No))},[Re,Ie]);var Ot=d.useState(0),At=Q(Ot,2),pn=At[0],Xn=At[1],Qe=pn>=ae.length-1||pe!=="horizontal"||x;d.useEffect(function(){ze&&vt(Ge)},[Ge]),d.useEffect(function(){return _t.current=!0,function(){_t.current=!1}},[]);var Le=mL(),dt=Le.registerPath,pt=Le.unregisterPath,jt=Le.refreshOverflowKeys,Ye=Le.isSubPathKey,en=Le.getKeyPath,tn=Le.getKeys,Yn=Le.getSubPathKeys,Ae=d.useMemo(function(){return{registerPath:dt,unregisterPath:pt}},[dt,pt]),ke=d.useMemo(function(){return{isSubPathKey:Ye}},[Ye]);d.useEffect(function(){jt(Qe?No:ae.slice(pn+1).map(function(xt){return xt.key}))},[pn,Qe]);var ot=yo(I||k&&((n=ae[0])===null||n===void 0?void 0:n.key),{value:I}),Ze=Q(ot,2),qe=Ze[0],Xt=Ze[1],Bt=ll(function(xt){Xt(xt)}),Lt=ll(function(){Xt(void 0)});d.useImperativeHandle(t,function(){return{list:De.current,focus:function(Je){var St,vn=tn(),an=Jm(vn,He),Wr=an.elements,li=an.key2element,Ro=an.element2key,$=Xv(De.current,Wr),T=qe??($[0]?Ro.get($[0]):(St=ae.find(function(ne){return!ne.props.disabled}))===null||St===void 0?void 0:St.key),L=li.get(T);if(T&&L){var q;L==null||(q=L.focus)===null||q===void 0||q.call(L,Je)}}}});var Ht=yo(P||[],{value:R,postState:function(Je){return Array.isArray(Je)?Je:Je==null?No:[Je]}}),Dt=Q(Ht,2),Rt=Dt[0],Yt=Dt[1],nr=function(Je){if(j){var St=Je.key,vn=Rt.includes(St),an;A?vn?an=Rt.filter(function(li){return li!==St}):an=[].concat(ge(Rt),[St]):an=[St],Yt(an);var Wr=V(V({},Je),{},{selectedKeys:an});vn?D==null||D(Wr):N==null||N(Wr)}!A&&Ge.length&&pe!=="inline"&&kt(No)},rr=ll(function(xt){ie==null||ie(Bd(xt)),nr(xt)}),Vt=ll(function(xt,Je){var St=Ge.filter(function(an){return an!==xt});if(Je)St.push(xt);else if(pe!=="inline"){var vn=Yn(xt);St=St.filter(function(an){return!vn.has(an)})}vs(Ge,St,!0)||kt(St,!0)}),$n=function(Je,St){var vn=St??!Ge.includes(Je);Vt(Je,vn)},_r=fL(pe,qe,We,He,De,tn,en,Xt,$n,ye);d.useEffect(function(){Be(!0)},[]);var $r=d.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:se}},[be,se]),Bn=pe!=="horizontal"||x?ae:ae.map(function(xt,Je){return d.createElement(gc,{key:xt.key,overflowDisabled:Je>pn},xt)}),Ci=d.createElement(Ni,Pe({id:y,ref:De,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Hf,className:te(o,"".concat(o,"-root"),"".concat(o,"-").concat(pe),l,z(z({},"".concat(o,"-inline-collapsed"),nt),"".concat(o,"-rtl"),We),a),dir:m,style:s,role:"menu",tabIndex:u,data:Bn,renderRawItem:function(Je){return Je},renderRawRest:function(Je){var St=Je.length,vn=St?ae.slice(-St):null;return d.createElement(Jv,{eventKey:ep,title:ce,disabled:Qe,internalPopupClose:St===0,popupClassName:he},vn)},maxCount:pe!=="horizontal"||x?Ni.INVALIDATE:Ni.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Je){Xn(Je)},onKeyDown:_r},$e));return d.createElement(qv.Provider,{value:$r},d.createElement(S_.Provider,{value:He},d.createElement(gc,{prefixCls:o,rootClassName:a,mode:pe,openKeys:Ge,rtl:We,disabled:g,motion:Ve?X:null,defaultMotions:Ve?W:null,activeKey:qe,onActive:Bt,onInactive:Lt,selectedKeys:Rt,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:_,builtinPlacements:U,triggerSubMenuAction:ee,getPopupContainer:xe,itemIcon:Y,expandIcon:J,onItemClick:rr,onOpenChange:Vt},d.createElement($_.Provider,{value:ke},Ci),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(E_.Provider,{value:Ae},Ue)))))}),Ac=zL;Ac.Item=Hf;Ac.SubMenu=Jv;Ac.ItemGroup=k_;Ac.Divider=I_;var jL={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"},BL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:jL}))},HL=d.forwardRef(BL),VL={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"},WL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:VL}))},h1=d.forwardRef(WL);const UL=e=>!isNaN(parseFloat(e))&&isFinite(e),N_=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),GL=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:Z(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},F_=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},A_=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],L_=Er("Layout",e=>[GL(e)],F_,{deprecatedTokens:A_}),KL=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:h,lightSiderBg:m,lightTriggerColor:y,lightTriggerBg:v,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Z(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}},"&-light":{background:m,[`${t}-trigger`]:{color:y,background:v},[`${t}-zero-width-trigger`]:{color:y,background:v,border:`1px solid ${b}`,borderInlineStart:0}}}}},qL=Er(["Layout","Sider"],e=>[KL(e)],F_,{deprecatedTokens:A_});var XL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),z_=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:m,breakpoint:y,onCollapse:v,onBreakpoint:b}=e,p=XL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=d.useContext(N_),[x,S]=d.useState("collapsed"in e?e.collapsed:a),[C,w]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(P,R)=>{"collapsed"in e||S(P),v==null||v(P,R)},{getPrefixCls:_}=d.useContext(bt),O=_("layout-sider",n),[M,I,k]=qL(O),F=d.useRef();F.current=P=>{w(P.matches),b==null||b(P.matches),x!==P.matches&&E(P.matches,"responsive")},d.useEffect(()=>{function P(N){return F.current(N)}let R;if(typeof window<"u"){const{matchMedia:N}=window;if(N&&y&&y in g1){R=N(`screen and (max-width: ${g1[y]})`);try{R.addEventListener("change",P)}catch{R.addListener(P)}P(R)}}return()=>{try{R==null||R.removeEventListener("change",P)}catch{R==null||R.removeListener(P)}}},[y]),d.useEffect(()=>{const P=YL("ant-sider-");return g.addSider(P),()=>g.removeSider(P)},[]);const j=()=>{E(!x,"clickTrigger")},B=()=>{const P=si(p,["collapsed"]),R=x?h:f,N=UL(R)?`${R}px`:String(R),D=parseFloat(String(h||0))===0?d.createElement("span",{onClick:j,className:te(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:m},i||d.createElement(HL,null)):null,X={expanded:u?d.createElement(Ib,null):d.createElement(h1,null),collapsed:u?d.createElement(h1,null):d.createElement(Ib,null)}[x?"collapsed":"expanded"],W=i!==null?D||d.createElement("div",{className:`${O}-trigger`,onClick:j,style:{width:N}},i||X):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),ee=te(O,`${O}-${s}`,{[`${O}-collapsed`]:!!x,[`${O}-has-trigger`]:c&&i!==null&&!D,[`${O}-below`]:!!C,[`${O}-zero-width`]:parseFloat(N)===0},r,I,k);return d.createElement("aside",Object.assign({className:ee},P,{style:K,ref:t}),d.createElement("div",{className:`${O}-children`},o),c||C&&D?W:null)},A=d.useMemo(()=>({siderCollapsed:x}),[x]);return M(d.createElement(D_.Provider,{value:A},B()))});var QL={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"},ZL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:QL}))},JL=d.forwardRef(ZL);function j_(e){return An(e,{inputAffixPadding:e.paddingXXS})}const B_=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:y,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:p,colorWarningOutline:g,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:y,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${p}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},e5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),e0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},e5(An(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),H_=(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}}),m1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},H_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),V_=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),m1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),m1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),p1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),W_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},p1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),p1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},e0(e))}})}),U_=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},G_=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),v1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},G_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),K_=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},G_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),v1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),v1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),q_=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y1(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),X_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Z(t)} ${Z(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Q_=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Vf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},X_(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Y_(e)),"&-sm":Object.assign({},Q_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Z_=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Y_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Q_(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Mc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},t5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Vf(e)),V_(e)),K_(e)),U_(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},n5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Z(e.inputAffixPadding)}`}}}},r5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Vf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),n5(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},i5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},o5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},a5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + &-allow-clear > ${t}, + &-affix-wrapper${r}-has-feedback ${t} + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},s5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};Er("Input",e=>{const t=An(e,j_(e));return[t5(t),a5(t),r5(t),i5(t),o5(t),s5(t),jv(t)]},B_,{resetFont:!1});var l5={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"},c5=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:l5}))},u5=d.forwardRef(c5);const Wf=d.createContext(null);var d5=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=Q(u,2),h=f[0],m=f[1],y=d.useRef(),v=me.useCallback(function(p){return typeof s=="function"?s(p):typeof s=="number"?s:p},[s]);function b(){Ft.cancel(y.current)}return d.useEffect(function(){var p={};if(n)if(r){p.width=v(n.width);var g=i?"right":"left";c==="start"&&(p[g]=n[g]),c==="center"&&(p[g]=n[g]+n.width/2,p.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(p[g]=n[g]+n.width,p.transform="translateX(-100%)")}else p.height=v(n.height),c==="start"&&(p.top=n.top),c==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),c==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return b(),y.current=Ft(function(){m(p)}),b},[n,r,i,c,v]),{style:h}},b1={width:0,height:0,left:0,top:0};function f5(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||b1,a=o.left+o.width,s=0;sj?(k=M,w.current="x"):(k=I,w.current="y"),t(-k,-k)&&O.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:x,onTouchMove:S,onTouchEnd:C,onWheel:E},d.useEffect(function(){function O(F){_.current.onTouchStart(F)}function M(F){_.current.onTouchMove(F)}function I(F){_.current.onTouchEnd(F)}function k(F){_.current.onWheel(F)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",I)}},[])}function J_(e){var t=d.useState(0),n=Q(t,2),r=n[0],i=n[1],o=d.useRef(0),a=d.useRef();return a.current=e,os(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function m5(e){var t=d.useRef([]),n=d.useState({}),r=Q(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),a=J_(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var w1={width:0,height:0,left:0,top:0,right:0};function p5(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,y=m,v=0;vh+t){y=v-1;break}}for(var p=0,g=m-1;g>=0;g-=1){var x=e.get(s[g].key)||w1;if(x[f]=y?[0,0]:[p,y]},[e,t,r,i,o,h,l,s.map(function(m){return m.key}).join("_"),c])}function E1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var v5="TABS_DQ";function e$(e){return String(e).replace(/"/g,v5)}function t$(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var n$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),_1=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return je(i)==="object"&&!d.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),y5=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,m=e.rtl,y=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,p=e.popupClassName,g=d.useState(!1),x=Q(g,2),S=x[0],C=x[1],w=d.useState(null),E=Q(w,2),_=E[0],O=E[1],M=l.icon,I=M===void 0?"More":M,k="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),j=_!==null?"".concat(k,"-").concat(_):null,B=o==null?void 0:o.dropdownAriaLabel;function A(X,W){X.preventDefault(),X.stopPropagation(),f.onEdit("remove",{key:W,event:X})}var P=d.createElement(Ac,{onClick:function(W){var K=W.key,ee=W.domEvent;v(K,ee),C(!1)},prefixCls:"".concat(F,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[_],"aria-label":B!==void 0?B:"expanded dropdown"},i.map(function(X){var W=X.closable,K=X.disabled,ee=X.closeIcon,U=X.key,Y=X.label,J=t$(W,ee,f,K);return d.createElement(Hf,{key:U,id:"".concat(k,"-").concat(U),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(U),disabled:K},d.createElement("span",null,Y),J&&d.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),A(ce,U)}},ee||f.removeIcon||"×"))}));function R(X){for(var W=i.filter(function(J){return!J.disabled}),K=W.findIndex(function(J){return J.key===_})||0,ee=W.length,U=0;ULe?"left":"right"})}),F=Q(k,2),j=F[0],B=F[1],A=x1(0,function(Qe,Le){!I&&v&&v({direction:Qe>Le?"top":"bottom"})}),P=Q(A,2),R=P[0],N=P[1],D=d.useState([0,0]),H=Q(D,2),G=H[0],X=H[1],W=d.useState([0,0]),K=Q(W,2),ee=K[0],U=K[1],Y=d.useState([0,0]),J=Q(Y,2),re=J[0],ce=J[1],he=d.useState([0,0]),xe=Q(he,2),ie=xe[0],de=xe[1],ye=m5(new Map),be=Q(ye,2),se=be[0],we=be[1],$e=f5(x,se,ee[0]),ue=yu(G,I),Ne=yu(ee,I),ae=yu(re,I),Ue=yu(ie,I),Fe=ueDe?De:Qe}var We=d.useRef(null),ct=d.useState(),ht=Q(ct,2),Ge=ht[0],Ct=ht[1];function kt(){Ct(Date.now())}function Et(){We.current&&clearTimeout(We.current)}g5(E,function(Qe,Le){function dt(pt,jt){pt(function(Ye){var en=He(Ye+jt);return en})}return Fe?(I?dt(B,Qe):dt(N,Le),Et(),kt(),!0):!1}),d.useEffect(function(){return Et(),Ge&&(We.current=setTimeout(function(){Ct(0)},100)),Et},[Ge]);var gt=p5($e,Se,I?j:R,Ne,ae,Ue,V(V({},e),{},{tabs:x})),xn=Q(gt,2),vt=xn[0],_t=xn[1],Me=Cn(function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Le=$e.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(I){var dt=j;s?Le.rightj+Se&&(dt=Le.right+Le.width-Se):Le.left<-j?dt=-Le.left:Le.left+Le.width>-j+Se&&(dt=-(Le.left+Le.width-Se)),N(0),B(He(dt))}else{var pt=R;Le.top<-R?pt=-Le.top:Le.top+Le.height>-R+Se&&(pt=-(Le.top+Le.height-Se)),B(0),N(He(pt))}}),fe={};f==="top"||f==="bottom"?fe[s?"marginRight":"marginLeft"]=h:fe.marginTop=h;var Re=x.map(function(Qe,Le){var dt=Qe.key;return d.createElement(x5,{id:i,prefixCls:g,key:dt,tab:Qe,style:Le===0?void 0:fe,closable:Qe.closable,editable:c,active:dt===a,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(jt){y(dt,jt)},onFocus:function(){Me(dt),kt(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Ie=function(){return we(function(){var Le,dt=new Map,pt=(Le=_.current)===null||Le===void 0?void 0:Le.getBoundingClientRect();return x.forEach(function(jt){var Ye,en=jt.key,tn=(Ye=_.current)===null||Ye===void 0?void 0:Ye.querySelector('[data-node-key="'.concat(e$(en),'"]'));if(tn){var Yn=S5(tn,pt),Ae=Q(Yn,4),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3];dt.set(en,{width:ke,height:ot,left:Ze,top:qe})}}),dt})};d.useEffect(function(){Ie()},[x.map(function(Qe){return Qe.key}).join("_")]);var ze=J_(function(){var Qe=Ia(S),Le=Ia(C),dt=Ia(w);X([Qe[0]-Le[0]-dt[0],Qe[1]-Le[1]-dt[1]]);var pt=Ia(M);ce(pt);var jt=Ia(O);de(jt);var Ye=Ia(_);U([Ye[0]-pt[0],Ye[1]-pt[1]]),Ie()}),Ee=x.slice(0,vt),_e=x.slice(_t+1),pe=[].concat(ge(Ee),ge(_e)),ut=$e.get(a),Nt=d5({activeTabOffset:ut,horizontal:I,indicator:b,rtl:s}),mt=Nt.style;d.useEffect(function(){Me()},[a,Be,De,E1(ut),E1($e),I]),d.useEffect(function(){ze()},[s]);var nt=!!pe.length,Tt="".concat(g,"-nav-wrap"),Ot,At,pn,Xn;return I?s?(At=j>0,Ot=j!==De):(Ot=j<0,At=j!==Be):(pn=R<0,Xn=R!==Be),d.createElement(vo,{onResize:ze},d.createElement("div",{ref:Pc(t,S),role:"tablist",className:te("".concat(g,"-nav"),n),style:r,onKeyDown:function(){kt()}},d.createElement(_1,{ref:C,position:"left",extra:l,prefixCls:g}),d.createElement(vo,{onResize:ze},d.createElement("div",{className:te(Tt,z(z(z(z({},"".concat(Tt,"-ping-left"),Ot),"".concat(Tt,"-ping-right"),At),"".concat(Tt,"-ping-top"),pn),"".concat(Tt,"-ping-bottom"),Xn)),ref:E},d.createElement(vo,{onResize:ze},d.createElement("div",{ref:_,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(R,"px)"),transition:Ge?"none":void 0}},Re,d.createElement(n$,{ref:M,prefixCls:g,locale:u,editable:c,style:V(V({},Re.length===0?void 0:fe),{},{visibility:nt?"hidden":null})}),d.createElement("div",{className:te("".concat(g,"-ink-bar"),z({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:mt}))))),d.createElement(b5,Pe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:g,tabs:pe,className:!nt&&Ve,tabMoving:!!Ge})),d.createElement(_1,{ref:w,position:"right",extra:l,prefixCls:g})))}),r$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:te(n,a&&"".concat(n,"-active"),r),ref:t},l)}),C5=["renderTabBar"],w5=["label","key"],E5=function(t){var n=t.renderTabBar,r=st(t,C5),i=d.useContext(Wf),o=i.tabs;if(n){var a=V(V({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=st(s,w5);return d.createElement(r$,Pe({tab:l,key:c,tabKey:c},u))})});return n(a,$1)}return d.createElement($1,r)},_5=["key","forceRender","style","className","destroyInactiveTabPane"],$5=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(Wf),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:te("".concat(l,"-content-holder"))},d.createElement("div",{className:te("".concat(l,"-content"),"".concat(l,"-content-").concat(o),z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var m=h.key,y=h.forceRender,v=h.style,b=h.className,p=h.destroyInactiveTabPane,g=st(h,_5),x=m===r;return d.createElement(To,Pe({key:m,visible:x,forceRender:y,removeOnLeave:!!(a||p),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,C){var w=S.style,E=S.className;return d.createElement(r$,Pe({},g,{prefixCls:f,id:n,tabKey:m,animated:u,active:x,style:V(V({},v),w),className:te(b,E),ref:C}))})})))};function O5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=V({inkBar:!0},je(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var P5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],O1=0,M5=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,m=h===void 0?"top":h,y=e.tabBarGutter,v=e.tabBarStyle,b=e.tabBarExtraContent,p=e.locale,g=e.more,x=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,w=e.onTabClick,E=e.onTabScroll,_=e.getPopupContainer,O=e.popupClassName,M=e.indicator,I=st(e,P5),k=d.useMemo(function(){return(a||[]).filter(function(ie){return ie&&je(ie)==="object"&&"key"in ie})},[a]),F=s==="rtl",j=O5(f),B=d.useState(!1),A=Q(B,2),P=A[0],R=A[1];d.useEffect(function(){R(Gv())},[]);var N=yo(function(){var ie;return(ie=k[0])===null||ie===void 0?void 0:ie.key},{value:l,defaultValue:c}),D=Q(N,2),H=D[0],G=D[1],X=d.useState(function(){return k.findIndex(function(ie){return ie.key===H})}),W=Q(X,2),K=W[0],ee=W[1];d.useEffect(function(){var ie=k.findIndex(function(ye){return ye.key===H});if(ie===-1){var de;ie=Math.max(0,Math.min(K,k.length-1)),G((de=k[ie])===null||de===void 0?void 0:de.key)}ee(ie)},[k.map(function(ie){return ie.key}).join("_"),H,K]);var U=yo(null,{value:n}),Y=Q(U,2),J=Y[0],re=Y[1];d.useEffect(function(){n||(re("rc-tabs-".concat(O1)),O1+=1)},[]);function ce(ie,de){w==null||w(ie,de);var ye=ie!==H;G(ie),ye&&(C==null||C(ie))}var he={id:J,activeKey:H,animated:j,tabPosition:m,rtl:F,mobile:P},xe=V(V({},he),{},{editable:u,locale:p,more:g,tabBarGutter:y,onTabClick:ce,onTabScroll:E,extra:b,style:v,panes:null,getPopupContainer:_,popupClassName:O,indicator:M});return d.createElement(Wf.Provider,{value:{tabs:k,prefixCls:i}},d.createElement("div",Pe({ref:t,id:n,className:te(i,"".concat(i,"-").concat(m),z(z(z({},"".concat(i,"-mobile"),P),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),F),o)},I),d.createElement(E5,Pe({},xe,{renderTabBar:S})),d.createElement($5,Pe({destroyInactiveTabPane:x},he,{animated:j}))))});const T5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},T5),{motionName:UE(e,"switch")})),n}var I5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function N5(e,t){if(e)return e;const n=Co(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=I5(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return k5(n)}const F5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[kb(e,"slide-up"),kb(e,"slide-down")]]},A5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Z(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},L5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(r)} 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({},Tv),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},D5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Z(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},z5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Rv(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-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 ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},B5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},H5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${Z(e.paddingXS)}`,background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Rv(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},V5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},W5=Er("Tabs",e=>{const t=An(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[z5(t),B5(t),D5(t),L5(t),A5(t),H5(t),F5(t)]},V5),U5=()=>null;var G5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,o,a,s,l,c,u,f;const{type:h,className:m,rootClassName:y,size:v,onEdit:b,hideAdd:p,centered:g,addIcon:x,removeIcon:S,moreIcon:C,more:w,popupClassName:E,children:_,items:O,animated:M,style:I,indicatorSize:k,indicator:F}=e,j=G5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=j,{direction:A,tabs:P,getPrefixCls:R,getPopupContainer:N}=d.useContext(bt),D=R("tabs",B),H=Tc(D),[G,X,W]=W5(D,H);let K;h==="editable-card"&&(K={onEdit:(he,xe)=>{let{key:ie,event:de}=xe;b==null||b(he==="add"?de:ie,he)},removeIcon:(t=S??(P==null?void 0:P.removeIcon))!==null&&t!==void 0?t:d.createElement(WI,null),addIcon:(x??(P==null?void 0:P.addIcon))||d.createElement(u5,null),showAdd:p!==!0});const ee=R(),U=Ic(v),Y=N5(O,_),J=R5(D,M),re=Object.assign(Object.assign({},P==null?void 0:P.style),I),ce={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=P==null?void 0:P.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=F==null?void 0:F.size)!==null&&i!==void 0?i:k)!==null&&o!==void 0?o:(a=P==null?void 0:P.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:P==null?void 0:P.indicatorSize};return G(d.createElement(M5,Object.assign({direction:A,getPopupContainer:N},j,{items:Y,className:te({[`${D}-${U}`]:U,[`${D}-card`]:["card","editable-card"].includes(h),[`${D}-editable-card`]:h==="editable-card",[`${D}-centered`]:g},P==null?void 0:P.className,m,y,X,W,H),popupClassName:te(E,X,W,H),style:re,editable:K,more:Object.assign({icon:(f=(u=(c=(l=P==null?void 0:P.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:P==null?void 0:P.moreIcon)!==null&&u!==void 0?u:C)!==null&&f!==void 0?f:d.createElement(JL,null),transitionName:`${ee}-slide-up`},w),prefixCls:D,animated:J,indicator:ce})))};i$.TabPane=U5;var K5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=K5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(bt),a=o("card",t),s=te(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},q5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Z(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},Mc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Tv),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},X5=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${Z(i)} 0 0 0 ${n}, + 0 ${Z(i)} 0 0 ${n}, + ${Z(i)} ${Z(i)} 0 0 ${n}, + ${Z(i)} 0 0 0 ${n} inset, + 0 ${Z(i)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Y5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),{"& > li":{margin:r,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 ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Z(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${o}`}}})},Q5=e=>Object.assign(Object.assign({margin:`${Z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Mc()),{"&-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},Tv),"&-description":{color:e.colorTextDescription}}),Z5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Z(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Z(e.padding)} ${Z(n)}`}}},J5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eD=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:q5(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),[`${t}-grid`]:X5(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Y5(e),[`${t}-meta`]:Q5(e)}),[`${t}-bordered`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Z5(e),[`${t}-loading`]:J5(e),[`${t}-rtl`]:{direction:"rtl"}}},tD=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Z(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},nD=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),rD=Er("Card",e=>{const t=An(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[eD(t),tD(t)]},nD);var P1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,i))}))},oD=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:m,cover:y,actions:v,tabList:b,children:p,activeTabKey:g,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:E,styles:_}=e,O=P1(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:M,direction:I,card:k}=d.useContext(bt),F=se=>{var we;(we=e.onTabChange)===null||we===void 0||we.call(e,se)},j=se=>{var we;return te((we=k==null?void 0:k.classNames)===null||we===void 0?void 0:we[se],E==null?void 0:E[se])},B=se=>{var we;return Object.assign(Object.assign({},(we=k==null?void 0:k.styles)===null||we===void 0?void 0:we[se]),_==null?void 0:_[se])},A=d.useMemo(()=>{let se=!1;return d.Children.forEach(p,we=>{(we==null?void 0:we.type)===o$&&(se=!0)}),se},[p]),P=M("card",n),[R,N,D]=rD(P),H=d.createElement(ks,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),G=g!==void 0,X=Object.assign(Object.assign({},w),{[G?"activeKey":"defaultActiveKey"]:G?g:x,tabBarExtraContent:S});let W;const K=Ic(h),ee=!K||K==="default"?"large":K,U=b?d.createElement(i$,Object.assign({size:ee},X,{className:`${P}-head-tabs`,onChange:F,items:b.map(se=>{var{tab:we}=se,$e=P1(se,["tab"]);return Object.assign({label:we},$e)})})):null;if(c||a||U){const se=te(`${P}-head`,j("header")),we=te(`${P}-head-title`,j("title")),$e=te(`${P}-extra`,j("extra")),ue=Object.assign(Object.assign({},s),B("header"));W=d.createElement("div",{className:se,style:ue},d.createElement("div",{className:`${P}-head-wrapper`},c&&d.createElement("div",{className:we,style:B("title")},c),a&&d.createElement("div",{className:$e,style:B("extra")},a)),U)}const Y=te(`${P}-cover`,j("cover")),J=y?d.createElement("div",{className:Y,style:B("cover")},y):null,re=te(`${P}-body`,j("body")),ce=Object.assign(Object.assign({},l),B("body")),he=d.createElement("div",{className:re,style:ce},u?H:p),xe=te(`${P}-actions`,j("actions")),ie=v!=null&&v.length?d.createElement(iD,{actionClasses:xe,actionStyle:B("actions"),actions:v}):null,de=si(O,["onTabChange"]),ye=te(P,k==null?void 0:k.className,{[`${P}-loading`]:u,[`${P}-bordered`]:f,[`${P}-hoverable`]:C,[`${P}-contain-grid`]:A,[`${P}-contain-tabs`]:b==null?void 0:b.length,[`${P}-${K}`]:K,[`${P}-type-${m}`]:!!m,[`${P}-rtl`]:I==="rtl"},r,i,N,D),be=Object.assign(Object.assign({},k==null?void 0:k.style),o);return R(d.createElement("div",Object.assign({ref:t},de,{className:ye,style:be}),W,J,he,ie))});var aD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=aD(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(bt),l=s("card",t),c=te(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,h=o?d.createElement("div",{className:`${l}-meta-description`},o):null,m=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,m)},t0=oD;t0.Grid=o$;t0.Meta=sD;const a$=d.createContext({}),lD=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"}}}},cD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},uD=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},np=(e,t)=>uD(e,t),dD=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},np(e,n))}),fD=()=>({}),hD=()=>({}),gD=Er("Grid",lD,fD),mD=Er("Grid",e=>{const t=An(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[cD(t),np(t,""),np(t,"-xs"),Object.keys(n).map(r=>dD(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},hD);var pD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),{gutter:i,wrap:o}=d.useContext(a$),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:m,flex:y,style:v}=e,b=pD(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",a),[g,x,S]=mD(p),C={};let w={};vD.forEach(O=>{let M={};const I=e[O];typeof I=="number"?M.span=I:typeof I=="object"&&(M=I||{}),delete b[O],w=Object.assign(Object.assign({},w),{[`${p}-${O}-${M.span}`]:M.span!==void 0,[`${p}-${O}-order-${M.order}`]:M.order||M.order===0,[`${p}-${O}-offset-${M.offset}`]:M.offset||M.offset===0,[`${p}-${O}-push-${M.push}`]:M.push||M.push===0,[`${p}-${O}-pull-${M.pull}`]:M.pull||M.pull===0,[`${p}-rtl`]:r==="rtl"}),M.flex&&(w[`${p}-${O}-flex`]=!0,C[`--${p}-${O}-flex`]=M1(M.flex))});const E=te(p,{[`${p}-${s}`]:s!==void 0,[`${p}-order-${l}`]:l,[`${p}-offset-${c}`]:c,[`${p}-push-${u}`]:u,[`${p}-pull-${f}`]:f},h,w,x,S),_={};if(i&&i[0]>0){const O=i[0]/2;_.paddingLeft=O,_.paddingRight=O}return y&&(_.flex=M1(y),o===!1&&!_.minWidth&&(_.minWidth=0)),g(d.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},_),v),C),className:E,ref:t}),m))});var yD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const Hd=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=yD(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(bt),[m,y]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=T1(i,v),g=T1(r,v),x=d.useRef(l),S=IA();d.useEffect(()=>{const P=S.subscribe(R=>{b(R);const N=x.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&y(R)});return()=>S.unsubscribe(P)},[]);const C=()=>{const P=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((N,D)=>{if(typeof N=="object")for(let H=0;H0?M[0]/-2:void 0;F&&(k.marginLeft=F,k.marginRight=F);const[j,B]=M;k.rowGap=B;const A=d.useMemo(()=>({gutter:[j,B],wrap:c}),[j,B,c]);return E(d.createElement(a$.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},k),a),ref:t}),s)))});var bD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},xD=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:bD}))},SD=d.forwardRef(xD);function rp(){return typeof BigInt=="function"}function s$(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ea(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qo(e){var t=String(e);if(n0(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&r0(t)?t.length-t.indexOf(".")-1:0}function Uf(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(rp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ea("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),wD=function(){function e(t){if(hn(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),s$(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return gn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Uf(this.number):this.origin}}]),e}();function Kr(e){return rp()?new CD(e):new wD(e)}function id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=ea(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Kr(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return id(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ED(e){return!!(e.addonBefore||e.addonAfter)}function _D(e){return!!(e.prefix||e.suffix||e.allowClear)}function $D(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var OD=me.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.style,m=e.disabled,y=e.readOnly,v=e.focused,b=e.triggerFocus,p=e.allowClear,g=e.value,x=e.handleReset,S=e.hidden,C=e.classes,w=e.classNames,E=e.dataAttrs,_=e.styles,O=e.components,M=e.onClear,I=o??i,k=(O==null?void 0:O.affixWrapper)||"span",F=(O==null?void 0:O.groupWrapper)||"span",j=(O==null?void 0:O.wrapper)||"span",B=(O==null?void 0:O.groupAddon)||"span",A=d.useRef(null),P=function(ie){var de;(de=A.current)!==null&&de!==void 0&&de.contains(ie.target)&&(b==null||b())},R=_D(e),N=d.cloneElement(I,{value:g,className:te(I.props.className,!R&&(w==null?void 0:w.variant))||null}),D=d.useRef(null);if(me.useImperativeHandle(t,function(){return{nativeElement:D.current||A.current}}),R){var H=null;if(p){var G=!m&&!y&&g,X="".concat(a,"-clear-icon"),W=je(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";H=me.createElement("span",{onClick:function(ie){x==null||x(ie),M==null||M()},onMouseDown:function(ie){return ie.preventDefault()},className:te(X,z(z({},"".concat(X,"-hidden"),!G),"".concat(X,"-has-suffix"),!!l)),role:"button",tabIndex:-1},W)}var K="".concat(a,"-affix-wrapper"),ee=te(K,z(z(z(z(z({},"".concat(a,"-disabled"),m),"".concat(K,"-disabled"),m),"".concat(K,"-focused"),v),"".concat(K,"-readonly"),y),"".concat(K,"-input-with-clear-btn"),l&&p&&g),C==null?void 0:C.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),U=(l||p)&&me.createElement("span",{className:te("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:_==null?void 0:_.suffix},H,l);N=me.createElement(k,Pe({className:ee,style:_==null?void 0:_.affixWrapper,onClick:P},E==null?void 0:E.affixWrapper,{ref:A}),s&&me.createElement("span",{className:te("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:_==null?void 0:_.prefix},s),N,U)}if(ED(e)){var Y="".concat(a,"-group"),J="".concat(Y,"-addon"),re="".concat(Y,"-wrapper"),ce=te("".concat(a,"-wrapper"),Y,C==null?void 0:C.wrapper,w==null?void 0:w.wrapper),he=te(re,z({},"".concat(re,"-disabled"),m),C==null?void 0:C.group,w==null?void 0:w.groupWrapper);N=me.createElement(F,{className:he,ref:D},me.createElement(j,{className:ce},c&&me.createElement(B,{className:J},c),N,u&&me.createElement(B,{className:J},u)))}return me.cloneElement(N,{className:te((n=N.props)===null||n===void 0?void 0:n.className,f)||null,style:V(V({},(r=N.props)===null||r===void 0?void 0:r.style),h),hidden:S})});function PD(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function MD(e,t){var n=d.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var f=s[c-1],h=o.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(m){Nn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,i]}var TD=function(){var t=d.useState(!1),n=Q(t,2),r=n[0],i=n[1];return Tn(function(){i(Gv())},[]),r},RD=200,ID=600;function kD(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,RD)}s.current=setTimeout(C,ID)};d.useEffect(function(){return function(){u(),l.current.forEach(function(g){return Ft.cancel(g)})}},[]);var h=TD();if(h)return null;var m="".concat(t,"-handler"),y=te(m,"".concat(m,"-up"),z({},"".concat(m,"-up-disabled"),i)),v=te(m,"".concat(m,"-down"),z({},"".concat(m,"-down-disabled"),o)),b=function(){return l.current.push(Ft(u))},p={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return d.createElement("div",{className:"".concat(m,"-wrap")},d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:y}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:v}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function R1(e){var t=typeof e=="number"?Uf(e):ea(e).fullStr,n=t.includes(".");return n?ea(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ND=function(){var e=d.useRef(0),t=function(){Ft.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=Ft(function(){n()})}};var FD=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],AD=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],I1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},k1=function(t){var n=Kr(t);return n.isInvalidate()?null:n},LD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,m=e.upHandler,y=e.downHandler,v=e.keyboard,b=e.changeOnWheel,p=b===void 0?!1:b,g=e.controls,x=g===void 0?!0:g;e.classNames;var S=e.stringMode,C=e.parser,w=e.formatter,E=e.precision,_=e.decimalSeparator,O=e.onChange,M=e.onInput,I=e.onPressEnter,k=e.onStep,F=e.changeOnBlur,j=F===void 0?!0:F,B=e.domRef,A=st(e,FD),P="".concat(n,"-input"),R=d.useRef(null),N=d.useState(!1),D=Q(N,2),H=D[0],G=D[1],X=d.useRef(!1),W=d.useRef(!1),K=d.useRef(!1),ee=d.useState(function(){return Kr(u??c)}),U=Q(ee,2),Y=U[0],J=U[1];function re(Me){u===void 0&&J(Me)}var ce=d.useCallback(function(Me,fe){if(!fe)return E>=0?E:Math.max(qo(Me),qo(l))},[E,l]),he=d.useCallback(function(Me){var fe=String(Me);if(C)return C(fe);var Re=fe;return _&&(Re=Re.replace(_,".")),Re.replace(/[^\w.-]+/g,"")},[C,_]),xe=d.useRef(""),ie=d.useCallback(function(Me,fe){if(w)return w(Me,{userTyping:fe,input:String(xe.current)});var Re=typeof Me=="number"?Uf(Me):Me;if(!fe){var Ie=ce(Re,fe);if(r0(Re)&&(_||Ie>=0)){var ze=_||".";Re=id(Re,ze,Ie)}}return Re},[w,ce,_]),de=d.useState(function(){var Me=c??u;return Y.isInvalidate()&&["string","number"].includes(je(Me))?Number.isNaN(Me)?"":Me:ie(Y.toString(),!1)}),ye=Q(de,2),be=ye[0],se=ye[1];xe.current=be;function we(Me,fe){se(ie(Me.isInvalidate()?Me.toString(!1):Me.toString(!fe),fe))}var $e=d.useMemo(function(){return k1(a)},[a,E]),ue=d.useMemo(function(){return k1(o)},[o,E]),Ne=d.useMemo(function(){return!$e||!Y||Y.isInvalidate()?!1:$e.lessEquals(Y)},[$e,Y]),ae=d.useMemo(function(){return!ue||!Y||Y.isInvalidate()?!1:Y.lessEquals(ue)},[ue,Y]),Ue=MD(R.current,H),Fe=Q(Ue,2),Se=Fe[0],Ve=Fe[1],Be=function(fe){return $e&&!fe.lessEquals($e)?$e:ue&&!ue.lessEquals(fe)?ue:null},De=function(fe){return!Be(fe)},He=function(fe,Re){var Ie=fe,ze=De(Ie)||Ie.isEmpty();if(!Ie.isEmpty()&&!Re&&(Ie=Be(Ie)||Ie,ze=!0),!h&&!f&&ze){var Ee=Ie.toString(),_e=ce(Ee,Re);return _e>=0&&(Ie=Kr(id(Ee,".",_e)),De(Ie)||(Ie=Kr(id(Ee,".",_e,!0)))),Ie.equals(Y)||(re(Ie),O==null||O(Ie.isEmpty()?null:I1(S,Ie)),u===void 0&&we(Ie,Re)),Ie}return Y},We=ND(),ct=function Me(fe){if(Se(),xe.current=fe,se(fe),!W.current){var Re=he(fe),Ie=Kr(Re);Ie.isNaN()||He(Ie,!0)}M==null||M(fe),We(function(){var ze=fe;C||(ze=fe.replace(/。/g,".")),ze!==fe&&Me(ze)})},ht=function(){W.current=!0},Ge=function(){W.current=!1,ct(R.current.value)},Ct=function(fe){ct(fe.target.value)},kt=function(fe){var Re;if(!(fe&&Ne||!fe&&ae)){X.current=!1;var Ie=Kr(K.current?R1(l):l);fe||(Ie=Ie.negate());var ze=(Y||Kr(0)).add(Ie.toString()),Ee=He(ze,!1);k==null||k(I1(S,Ee),{offset:K.current?R1(l):l,type:fe?"up":"down"}),(Re=R.current)===null||Re===void 0||Re.focus()}},Et=function(fe){var Re=Kr(he(be)),Ie;Re.isNaN()?Ie=He(Y,fe):Ie=He(Re,fe),u!==void 0?we(Y,!1):Ie.isNaN()||we(Ie,!1)},gt=function(){X.current=!0},xn=function(fe){var Re=fe.key,Ie=fe.shiftKey;X.current=!0,K.current=Ie,Re==="Enter"&&(W.current||(X.current=!1),Et(!1),I==null||I(fe)),v!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(kt(Re==="Up"||Re==="ArrowUp"),fe.preventDefault())},vt=function(){X.current=!1,K.current=!1};d.useEffect(function(){if(p&&H){var Me=function(Ie){kt(Ie.deltaY<0),Ie.preventDefault()},fe=R.current;if(fe)return fe.addEventListener("wheel",Me,{passive:!1}),function(){return fe.removeEventListener("wheel",Me)}}});var _t=function(){j&&Et(!1),G(!1),X.current=!1};return os(function(){Y.isInvalidate()||we(Y,!1)},[E,w]),os(function(){var Me=Kr(u);J(Me);var fe=Kr(he(be));(!Me.equals(fe)||!X.current||w)&&we(Me,X.current)},[u]),os(function(){w&&Ve()},[be]),d.createElement("div",{ref:B,className:te(n,r,z(z(z(z(z({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!De(Y))),style:i,onFocus:function(){G(!0)},onBlur:_t,onKeyDown:xn,onKeyUp:vt,onCompositionStart:ht,onCompositionEnd:Ge,onBeforeInput:gt},x&&d.createElement(kD,{prefixCls:n,upNode:m,downNode:y,upDisabled:Ne,downDisabled:ae,onStep:kt}),d.createElement("div",{className:"".concat(P,"-wrap")},d.createElement("input",Pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},A,{ref:Si(R,t),className:P,value:be,onChange:Ct,disabled:f,readOnly:h}))))}),DD=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,m=st(e,AD),y=d.useRef(null),v=d.useRef(null),b=d.useRef(null),p=function(x){b.current&&$D(b.current,x)};return d.useImperativeHandle(t,function(){return PD(b.current,{nativeElement:y.current.nativeElement||v.current})}),d.createElement(OD,{className:f,triggerFocus:p,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:y},d.createElement(LD,Pe({prefixCls:o,disabled:n,ref:b,domRef:v,className:h==null?void 0:h.input},m)))});const zD=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},B_(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new In(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},N1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},jD=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:m,colorTextDescription:y,motionDurationMid:v,handleHoverColor:b,handleOpacity:p,paddingInline:g,paddingBlock:x,handleBg:S,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:E,borderRadiusLG:_,controlWidth:O,handleBorderColor:M,filledHandleBg:I,lineHeightLG:k,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Vf(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),V_(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}}})),K_(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),U_(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:k,borderRadius:_,[`input${t}-input`]:{height:F(s).sub(F(n).mul(2)).equal(),padding:`${Z(h)} ${Z(m)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${Z(f)} ${Z(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{width:"100%",padding:`${Z(x)} ${Z(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),X_(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:p,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:y,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Z(n)} ${r} ${M}`,transition:`all ${v} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},wE()),{color:y,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},N1(e,"lg")),N1(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:w}})}]},BD=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Z(n)} 0`}},Vf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Z(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Z(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},HD=Er("InputNumber",e=>{const t=An(e,j_(e));return[jD(t),BD(t),jv(t)]},zD,{unitless:{handleOpacity:!0}});var VD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:m,bordered:y,readOnly:v,status:b,controls:p,variant:g}=e,x=VD(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),C=Tc(S),[w,E,_]=HD(S,C),{compactSize:O,compactItemClassnames:M}=qE(S,r);let I=d.createElement(SD,{className:`${S}-handler-up-inner`}),k=d.createElement(MA,{className:`${S}-handler-down-inner`});const F=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:d.createElement("span",{className:`${S}-handler-up-inner`},p.upIcon),k=typeof p.downIcon>"u"?k:d.createElement("span",{className:`${S}-handler-down-inner`},p.downIcon));const{hasFeedback:j,status:B,isFormItemInput:A,feedbackIcon:P}=d.useContext(da),R=_A(B,b),N=Ic(Y=>{var J;return(J=s??O)!==null&&J!==void 0?J:Y}),D=d.useContext(la),H=l??D,[G,X]=$A("inputNumber",g,y),W=j&&d.createElement(d.Fragment,null,P),K=te({[`${S}-lg`]:N==="large",[`${S}-sm`]:N==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:A},E),ee=`${S}-group`,U=d.createElement(DD,Object.assign({ref:i,disabled:H,className:te(_,C,o,a,M),upHandler:I,downHandler:k,prefixCls:S,readOnly:v,controls:F,prefix:h,suffix:W||m,addonBefore:u&&d.createElement(qm,{form:!0,space:!0},u),addonAfter:f&&d.createElement(qm,{form:!0,space:!0},f),classNames:{input:K,variant:te({[`${S}-${G}`]:X},o1(S,R,j)),affixWrapper:te({[`${S}-affix-wrapper-sm`]:N==="small",[`${S}-affix-wrapper-lg`]:N==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:p===!1},E),wrapper:te({[`${ee}-rtl`]:r==="rtl"},E),groupWrapper:te({[`${S}-group-wrapper-sm`]:N==="small",[`${S}-group-wrapper-lg`]:N==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${G}`]:X},o1(`${S}-group-wrapper`,R,j),E)}},x));return w(U)}),Fa=l$,WD=e=>d.createElement(Ms,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(l$,Object.assign({},e)));Fa._InternalPanelDoNotUseOrYouWillBeFired=WD;function ip(e,t,n){return(e-t)/(n-t)}function i0(e,t,n,r){var i=ip(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Za(e,t){return Array.isArray(e)?e[t]:e}var va=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),UD=d.createContext({}),GD=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],F1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,m=e.onFocus,y=e.onMouseEnter,v=st(e,GD),b=d.useContext(va),p=b.min,g=b.max,x=b.direction,S=b.disabled,C=b.keyboard,w=b.range,E=b.tabIndex,_=b.ariaLabelForHandle,O=b.ariaLabelledByForHandle,M=b.ariaValueTextFormatterForHandle,I=b.styles,k=b.classNames,F="".concat(n,"-handle"),j=function(W){S||o(W,i)},B=function(W){m==null||m(W,i)},A=function(W){y(W,i)},P=function(W){if(!S&&C){var K=null;switch(W.which||W.keyCode){case le.LEFT:K=x==="ltr"||x==="btt"?-1:1;break;case le.RIGHT:K=x==="ltr"||x==="btt"?1:-1;break;case le.UP:K=x!=="ttb"?1:-1;break;case le.DOWN:K=x!=="ttb"?-1:1;break;case le.HOME:K="min";break;case le.END:K="max";break;case le.PAGE_UP:K=2;break;case le.PAGE_DOWN:K=-2;break;case le.BACKSPACE:case le.DELETE:a(i);break}K!==null&&(W.preventDefault(),f(K,i))}},R=function(W){switch(W.which||W.keyCode){case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:case le.HOME:case le.END:case le.PAGE_UP:case le.PAGE_DOWN:h==null||h();break}},N=i0(x,r,p,g),D={};if(i!==null){var H;D={tabIndex:S?null:Za(E,i),role:"slider","aria-valuemin":p,"aria-valuemax":g,"aria-valuenow":r,"aria-disabled":S,"aria-label":Za(_,i),"aria-labelledby":Za(O,i),"aria-valuetext":(H=Za(M,i))===null||H===void 0?void 0:H(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:B,onMouseEnter:A,onKeyDown:P,onKeyUp:R}}var G=d.createElement("div",Pe({ref:t,className:te(F,z(z(z({},"".concat(F,"-").concat(i+1),i!==null&&w),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),k.handle),style:V(V(V({},N),s),I.handle)},D,v));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),KD=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],qD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=st(e,KD),m=d.useRef({}),y=d.useState(!1),v=Q(y,2),b=v[0],p=v[1],g=d.useState(-1),x=Q(g,2),S=x[0],C=x[1],w=function(I){C(I),p(!0)},E=function(I,k){w(k),f==null||f(I)},_=function(I,k){w(k)};d.useImperativeHandle(t,function(){return{focus:function(I){var k;(k=m.current[I])===null||k===void 0||k.focus()},hideHelp:function(){ma.flushSync(function(){p(!1)})}}});var O=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(M,I){var k=c===I;return d.createElement(F1,Pe({ref:function(j){j?m.current[I]=j:delete m.current[I]},dragging:k,draggingDelete:k&&u,style:Za(r,I),key:I,value:M,valueIndex:I},O))}),l&&b&&d.createElement(F1,Pe({key:"a11y"},O,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),XD=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=d.useContext(va),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,m=s.included,y="".concat(n,"-text"),v=i0(u,o,l,c);return d.createElement("span",{className:te(y,z({},"".concat(y,"-active"),m&&f<=o&&o<=h)),style:V(V({},v),r),onMouseDown:function(p){p.stopPropagation()},onClick:function(){a(o)}},i)},YD=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?d.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(XD,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},QD=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=d.useContext(va),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,m="".concat(n,"-dot"),y=u&&f<=r&&r<=h,v=V(V({},i0(c,r,s,l)),typeof i=="function"?i(r):i);return y&&(v=V(V({},v),typeof o=="function"?o(r):o)),d.createElement("span",{className:te(m,z({},"".concat(m,"-active"),y)),style:v})},ZD=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=d.useContext(va),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(y){h.add(y.value)}),i&&u!==null)for(var m=l;m<=c;)h.add(m),m+=u;return Array.from(h)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(QD,{prefixCls:n,key:h,value:h,style:o,activeStyle:a})}))},A1=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(va),u=c.direction,f=c.min,h=c.max,m=c.disabled,y=c.range,v=c.classNames,b="".concat(n,"-track"),p=ip(i,f,h),g=ip(o,f,h),x=function(E){!m&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%");break;case"btt":S.bottom="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;case"ttb":S.top="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;default:S.left="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%")}var C=l||te(b,z(z({},"".concat(b,"-").concat(a+1),a!==null&&y),"".concat(n,"-track-draggable"),s),v.track);return d.createElement("div",{className:C,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},JD=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=d.useContext(va),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,m=d.useMemo(function(){if(!c){if(i.length===0)return[];var v=o??u,b=i[0];return[{start:Math.min(v,b),end:Math.max(v,b)}]}for(var p=[],g=0;ge4&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var g,x=y[b],S=x+v,C=[];r.forEach(function(M){C.push(M.value)}),C.push(e,t),C.push(s(x));var w=v>0?1:-1;p==="unit"?C.push(s(x+w*n)):C.push(s(S)),C=C.filter(function(M){return M!==null}).filter(function(M){return v<0?M<=x:M>=x}),p==="unit"&&(C=C.filter(function(M){return M!==x}));var E=p==="unit"?x:S;g=C[0];var _=Math.abs(g-E);if(C.forEach(function(M){var I=Math.abs(M-E);I<_&&(g=M,_=I)}),g===void 0)return v<0?e:t;if(p==="dist")return g;if(Math.abs(v)>1){var O=ge(y);return O[b]=g,m(O,v-w,b,p)}return g}else{if(v==="min")return e;if(v==="max")return t}},u=function(y,v,b){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",g=y[b],x=c(y,v,b,p);return{value:x,changed:x!==g}},f=function(y){return o===null&&y===0||typeof o=="number"&&y3&&arguments[3]!==void 0?arguments[3]:"unit",g=y.map(l),x=g[b],S=c(g,v,b,p);if(g[b]=S,i===!1){var C=o||0;b>0&&g[b-1]!==x&&(g[b]=Math.max(g[b],g[b-1]+C)),b0;O-=1)for(var M=!0;f(g[O]-g[O-1])&&M;){var I=u(g,-1,O-1);g[O-1]=I.value,M=I.changed}for(var k=g.length-1;k>0;k-=1)for(var F=!0;f(g[k]-g[k-1])&&F;){var j=u(g,-1,k-1);g[k-1]=j.value,F=j.changed}for(var B=0;B=0?A:!1},[A,De]),We=d.useMemo(function(){return Object.keys(U||{}).map(function(Ae){var ke=U[Ae],ot={value:Number(Ae)};return ke&&je(ke)==="object"&&!d.isValidElement(ke)&&("label"in ke||"style"in ke)?(ot.style=ke.style,ot.label=ke.label):ot.label=ke,ot}).filter(function(Ae){var ke=Ae.label;return ke||typeof ke=="number"}).sort(function(Ae,ke){return Ae.value-ke.value})},[U]),ct=n4(Ve,Be,De,We,j,He),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=yo(w,{value:C}),Et=Q(kt,2),gt=Et[0],xn=Et[1],vt=d.useMemo(function(){var Ae=gt==null?[]:Array.isArray(gt)?gt:[gt],ke=Q(Ae,1),ot=ke[0],Ze=ot===void 0?Ve:ot,qe=gt===null?[]:[Ze];if(Ne){if(qe=ge(Ae),_||gt===void 0){var Xt=_>=0?_+1:2;for(qe=qe.slice(0,Xt);qe.length=0&&be.current.focus(Ae)}pn(null)},[At]);var Qe=d.useMemo(function(){return Ue&&De===null?!1:Ue},[Ue,De]),Le=Cn(function(Ae,ke){Nt(Ae,ke),M==null||M(_t(vt))}),dt=Ee!==-1;d.useEffect(function(){if(!dt){var Ae=vt.lastIndexOf(_e);be.current.focus(Ae)}},[dt]);var pt=d.useMemo(function(){return ge(ut).sort(function(Ae,ke){return Ae-ke})},[ut]),jt=d.useMemo(function(){return Ne?[pt[0],pt[pt.length-1]]:[Ve,pt[0]]},[pt,Ne,Ve]),Ye=Q(jt,2),en=Ye[0],tn=Ye[1];d.useImperativeHandle(t,function(){return{focus:function(){be.current.focus(0)},blur:function(){var ke,ot=document,Ze=ot.activeElement;(ke=se.current)!==null&&ke!==void 0&&ke.contains(Ze)&&(Ze==null||Ze.blur())}}}),d.useEffect(function(){h&&be.current.focus(0)},[]);var Yn=d.useMemo(function(){return{min:Ve,max:Be,direction:we,disabled:c,keyboard:f,step:De,included:D,includedStart:en,includedEnd:tn,range:Ne,tabIndex:xe,ariaLabelForHandle:ie,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ye,styles:s||{},classNames:a||{}}},[Ve,Be,we,c,f,De,D,en,tn,Ne,xe,ie,de,ye,s,a]);return d.createElement(va.Provider,{value:Yn},d.createElement("div",{ref:se,className:te(r,i,z(z(z(z({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),R),"".concat(r,"-horizontal"),!R),"".concat(r,"-with-marks"),We.length)),style:o,onMouseDown:nt},d.createElement("div",{className:te("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},W),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(JD,{prefixCls:r,style:G,values:vt,startPoint:H,onStartMove:Qe?Le:void 0}),d.createElement(ZD,{prefixCls:r,marks:We,dots:Y,style:K,activeStyle:ee}),d.createElement(qD,{ref:be,prefixCls:r,style:X,values:ut,draggingIndex:Ee,draggingDelete:pe,onStartMove:Le,onOffsetChange:Xn,onFocus:m,onBlur:y,handleRender:J,activeHandleRender:re,onChangeComplete:fe,onDelete:ae?Re:void 0}),d.createElement(YD,{prefixCls:r,marks:We,onClick:mt})))});const D1=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),o=n&&!r,a=d.useRef(null);function s(){Ft.cancel(a.current),a.current=null}function l(){a.current=Ft(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(o?l():s(),s),[o,e.title]),d.createElement(eo,Object.assign({ref:Si(i,t)},e,{open:o}))}),o4=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:m,handleLineWidth:y,handleLineWidthHover:v,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",height:r,margin:`${Z(a)} ${Z(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Z(o)} ${Z(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Z(y)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(y).mul(-1).equal(),insetBlockStart:c(y).mul(-1).equal(),width:c(u).add(c(y).mul(2)).equal(),height:c(u).add(c(y).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Z(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${b}, + inset-block-start ${b}, + width ${b}, + height ${b}, + box-shadow ${b}, + outline ${b} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Z(v)} ${h}`,outline:`6px solid ${m}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${Z(y)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Z(y)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},c$=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",m=s(r).mul(3).sub(i).div(2).equal(),y=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${Z(y)} 0`,transform:`translateY(${Z(s(y).mul(-1).equal())})`}:{borderWidth:`0 ${Z(y)}`,transform:`translateX(${Z(e.calc(y).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},a4=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},c$(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},s4=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},c$(e,!1)),{height:"100%"})}},l4=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new In(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new In(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},c4=Er("Slider",e=>{const t=An(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[o4(t),a4(t),s4(t)]},l4),u4=d.createContext({});function Zh(){const[e,t]=d.useState(!1),n=d.useRef(),r=()=>{Ft.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Ft(()=>{t(o)})};return d.useEffect(()=>r,[]),[e,i]}var d4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const h4=me.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:h,tooltip:m={},onChangeComplete:y}=e,v=d4(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:p,slider:g,getPrefixCls:x,getPopupContainer:S}=me.useContext(bt),C=me.useContext(la),w=s??C,{handleRender:E,direction:_}=me.useContext(u4),M=(_||p)==="rtl",[I,k]=Zh(),[F,j]=Zh(),B=Object.assign({},m),{open:A,placement:P,getPopupContainer:R,prefixCls:N,formatter:D}=B,H=A??u,G=(I||F)&&H!==!1,X=f4(D,c),[W,K]=Zh(),ee=be=>{y==null||y(be),K(!1)},U=(be,se)=>be||(se?M?"left":"right":"top"),Y=x("slider",n),[J,re,ce]=c4(Y),he=te(i,g==null?void 0:g.className,o,{[`${Y}-rtl`]:M,[`${Y}-lock`]:W},re,ce);M&&!v.vertical&&(v.reverse=!v.reverse),me.useEffect(()=>{const be=()=>{Ft(()=>{j(!1)},1)};return document.addEventListener("mouseup",be),()=>{document.removeEventListener("mouseup",be)}},[]);const xe=r&&!H,ie=E||((be,se)=>{const{index:we}=se,$e=be.props;function ue(Fe,Se,Ve){var Be,De,He,We;Ve&&((De=(Be=v)[Fe])===null||De===void 0||De.call(Be,Se)),(We=(He=$e)[Fe])===null||We===void 0||We.call(He,Se)}const Ne=Object.assign(Object.assign({},$e),{onMouseEnter:Fe=>{k(!0),ue("onMouseEnter",Fe)},onMouseLeave:Fe=>{k(!1),ue("onMouseLeave",Fe)},onMouseDown:Fe=>{j(!0),K(!0),ue("onMouseDown",Fe)},onFocus:Fe=>{var Se;j(!0),(Se=v.onFocus)===null||Se===void 0||Se.call(v,Fe),ue("onFocus",Fe,!0)},onBlur:Fe=>{var Se;j(!1),(Se=v.onBlur)===null||Se===void 0||Se.call(v,Fe),ue("onBlur",Fe,!0)}}),ae=me.cloneElement(be,Ne),Ue=(!!H||G)&&X!==null;return xe?ae:me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:Ue,placement:U(P??h,b),key:we,overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S}),ae)}),de=xe?(be,se)=>{const we=me.cloneElement(be,{style:Object.assign(Object.assign({},be.props.style),{visibility:"hidden"})});return me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:X!==null&&G,placement:U(P??h,b),key:"tooltip",overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S,draggingDelete:se.draggingDelete}),we)}:void 0,ye=Object.assign(Object.assign({},g==null?void 0:g.style),a);return J(me.createElement(i4,Object.assign({},v,{step:v.step,range:r,className:he,style:ye,disabled:w,ref:t,prefixCls:Y,handleRender:ie,activeHandleRender:de,onChangeComplete:ee})))});function Vd(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const g4=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},m4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${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 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),z1=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},p4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Lr(e)),m4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},z1(e,e.controlHeightSM)),"&-large":Object.assign({},z1(e,e.controlHeightLG))})}},v4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:kv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},j1=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},y4=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Jr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),u$=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Jr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b4=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + ${r}-col-24${n}-label, + ${r}-col-xl-24${n}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenXSMax)})`]:[u$(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jr(e)}}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jr(e)}}}}},x4=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${n}-col-24${t}-label, + ${n}-col-xl-24${t}-label`]:Jr(e),[`@media (max-width: ${Z(e.screenXSMax)})`]:[u$(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jr(e)}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jr(e)}}}},S4=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),d$=(e,t)=>An(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),o0=Er("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[p4(r),v4(r),g4(r),j1(r,r.componentCls),j1(r,r.formItemCls),y4(r),b4(r),x4(r),Lk(r),kv]},S4,{order:-1e3}),B1=[];function Jh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const f$=e=>{let{help:t,helpStatus:n,errors:r=B1,warnings:i=B1,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(Uv),c=`${l}-item-explain`,u=Tc(l),[f,h,m]=o0(l,u),y=d.useMemo(()=>$b(l),[l]),v=Vd(r),b=Vd(i),p=d.useMemo(()=>t!=null?[Jh(t,"help",n)]:[].concat(ge(v.map((x,S)=>Jh(x,"error","error",S))),ge(b.map((x,S)=>Jh(x,"warning","warning",S)))),[t,n,v,b]),g={};return a&&(g.id=`${a}_help`),f(d.createElement(To,{motionDeadline:y.motionDeadline,motionName:`${l}-show-help`,visible:!!p.length,onVisibleChanged:s},x=>{const{className:S,style:C}=x;return d.createElement("div",Object.assign({},g,{className:te(c,S,m,u,o,h),style:C,role:"alert"}),d.createElement(vI,Object.assign({keys:p},$b(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:E,error:_,errorStatus:O,className:M,style:I}=w;return d.createElement("div",{key:E,className:te(M,{[`${c}-${O}`]:O}),style:I},_)}))}))},C4=["parentNode"],w4="form_item";function Pl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function h$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:C4.includes(n)?`${w4}_${n}`:n}function g$(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function H1(e){return Pl(e).join("_")}function E4(e,t){const n=t.getFieldInstance(e),r=Mw(n);if(r)return r;const i=h$(Pl(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function m$(e){const[t]=Wv(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=H1(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=E4(i,r);a&&QI(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=H1(i);return n.current[o]}}),[e,t]);return[r]}var _4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(la),{getPrefixCls:r,direction:i,form:o}=d.useContext(bt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:m,labelWrap:y,labelCol:v,wrapperCol:b,hideRequiredMark:p,layout:g="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:C,name:w,style:E,feedbackIcons:_,variant:O}=e,M=_4(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Ic(c),k=d.useContext(sE),F=d.useMemo(()=>S!==void 0?S:p?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[p,S,o]),j=h??(o==null?void 0:o.colon),B=r("form",a),A=Tc(B),[P,R,N]=o0(B,A),D=te(B,`${B}-${g}`,{[`${B}-hide-required-mark`]:F===!1,[`${B}-rtl`]:i==="rtl",[`${B}-${I}`]:I},N,A,R,o==null?void 0:o.className,s,l),[H]=m$(f),{__INTERNAL__:G}=H;G.name=w;const X=d.useMemo(()=>({name:w,labelAlign:m,labelCol:v,labelWrap:y,wrapperCol:b,vertical:g==="vertical",colon:j,requiredMark:F,itemRef:G.itemRef,form:H,feedbackIcons:_}),[w,m,v,b,g,j,F,H,_]),W=d.useRef(null);d.useImperativeHandle(t,()=>{var U;return Object.assign(Object.assign({},H),{nativeElement:(U=W.current)===null||U===void 0?void 0:U.nativeElement})});const K=(U,Y)=>{if(U){let J={block:"nearest"};typeof U=="object"&&(J=U),H.scrollToField(Y,J)}},ee=U=>{if(C==null||C(U),U.errorFields.length){const Y=U.errorFields[0].name;if(x!==void 0){K(x,Y);return}o&&o.scrollToFirstError!==void 0&&K(o.scrollToFirstError,Y)}};return P(d.createElement(f_.Provider,{value:O},d.createElement(pE,{disabled:u},d.createElement(ca.Provider,{value:I},d.createElement(d_,{validateMessages:k},d.createElement(zi.Provider,{value:X},d.createElement(Rs,Object.assign({id:w},M,{name:w,onFinishFailed:ee,form:H,ref:W,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:D}))))))))},O4=d.forwardRef($4);function P4(e){if(typeof e=="function")return e;const t=Co(e);return t.length<=1?t[0]:t}const p$=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(da);return{status:e,errors:t,warnings:n}};p$.Context=da;function M4(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ft.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Ft(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function T4(){const{itemRef:e}=d.useContext(zi),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Si(e(r),o)),t.current.ref}return n}const R4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},I4=_E(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[R4(r)]}),k4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:h}=e,m=`${t}-item`,y=d.useContext(zi),v=r||y.wrapperCol||{},b=te(`${m}-control`,v.className),p=d.useMemo(()=>Object.assign({},y),[y]);delete p.labelCol,delete p.wrapperCol;const g=d.createElement("div",{className:`${m}-control-input`},d.createElement("div",{className:`${m}-control-input-content`},i)),x=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||o.length||a.length?d.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},d.createElement(Uv.Provider,{value:x},d.createElement(f$,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:h})),!!f&&d.createElement("div",{style:{width:0,height:f}})):null,C={};u&&(C.id=`${u}_extra`);const w=l?d.createElement("div",Object.assign({},C,{className:`${m}-extra`}),l):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:g,errorList:S,extra:w}):d.createElement(d.Fragment,null,g,S,w);return d.createElement(zi.Provider,{value:p},d.createElement(mc,Object.assign({},v,{className:b}),E),d.createElement(I4,{prefixCls:t}))};var N4={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"},F4=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:N4}))},Aa=d.forwardRef(F4),A4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=VT("Form"),{labelAlign:m,labelCol:y,labelWrap:v,colon:b}=d.useContext(zi);if(!n)return null;const p=i||y||{},g=o||m,x=`${t}-item-label`,S=te(x,g==="left"&&`${x}-left`,p.className,{[`${x}-wrap`]:!!v});let C=n;const w=a===!0||b!==!1&&a!==!1;w&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const _=L4(c);if(_){const{icon:k=d.createElement(Aa,null)}=_,F=A4(_,["icon"]),j=d.createElement(eo,Object.assign({},F),d.cloneElement(k,{className:`${t}-item-tooltip`,title:"",onClick:B=>{B.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,j)}const O=l==="optional",M=typeof l=="function";M?C=l(C,{required:!!s}):O&&!s&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=sa.Form)===null||f===void 0?void 0:f.optional))));const I=te({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:O||M,[`${t}-item-no-colon`]:!w});return d.createElement(mc,Object.assign({},p,{className:S}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},C))},z4={success:DI,warning:KI,error:BI,validating:HE};function v$(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(zi),f=g$(n,r,s,null,!!i,o),{isFormItemInput:h,status:m,hasFeedback:y,feedbackIcon:v}=d.useContext(da),b=d.useMemo(()=>{var p;let g;if(i){const S=i!==!0&&i.icons||u,C=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),w=f&&z4[f];g=C!==!1&&w?d.createElement("span",{className:te(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},C||d.createElement(w,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:g,isFormItemInput:!0};return l&&(x.status=(f??m)||"",x.isFormItemInput=h,x.hasFeedback=!!(i??y),x.feedbackIcon=i!==void 0?x.feedbackIcon:v),x},[f,i,l,h,m]);return d.createElement(da.Provider,{value:b},t)}var j4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(I&&E.current){const N=getComputedStyle(E.current);j(parseInt(N.marginBottom,10))}},[I,k]);const B=N=>{N||j(null)},P=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const D=N?_:c.errors,H=N?O:c.warnings;return g$(D,H,c,"",!!u,l)}(),R=te(x,n,r,{[`${x}-with-help`]:M||_.length||O.length,[`${x}-has-feedback`]:P&&u,[`${x}-has-success`]:P==="success",[`${x}-has-warning`]:P==="warning",[`${x}-has-error`]:P==="error",[`${x}-is-validating`]:P==="validating",[`${x}-hidden`]:f,[`${x}-${p}`]:p});return d.createElement("div",{className:R,style:i,ref:E},d.createElement(Hd,Object.assign({className:`${x}-row`},si(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(D4,Object.assign({htmlFor:m},e,{requiredMark:S,required:y??v,prefixCls:t,vertical:w})),d.createElement(k4,Object.assign({},e,c,{errors:_,warnings:O,prefixCls:t,status:P,help:o,marginBottom:F,onErrorVisibleChanged:B}),d.createElement(u_.Provider,{value:b},d.createElement(v$,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P},h)))),!!F&&d.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-F}}))}const H4="__SPLIT__";function V4(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const W4=d.memo(e=>{let{children:t}=e;return t},(e,t)=>V4(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function V1(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function U4(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:m,hidden:y,help:v,layout:b}=e,{getPrefixCls:p}=d.useContext(bt),{name:g}=d.useContext(zi),x=P4(l),S=typeof x=="function",C=d.useContext(u_),{validateTrigger:w}=d.useContext(ua),E=m!==void 0?m:w,_=t!=null,O=p("form",o),M=Tc(O),[I,k,F]=o0(O,M);Pv();const j=d.useContext(dc),B=d.useRef(),[A,P]=M4({}),[R,N]=Ss(()=>V1()),D=U=>{const Y=j==null?void 0:j.getKey(U.name);if(N(U.destroy?V1():U,!0),n&&v!==!1&&C){let J=U.name;if(U.destroy)J=B.current||J;else if(Y!==void 0){const[re,ce]=Y;J=[re].concat(ge(ce)),B.current=J}C(U,J)}},H=(U,Y)=>{P(J=>{const re=Object.assign({},J),he=[].concat(ge(U.name.slice(0,-1)),ge(Y)).join(H4);return U.destroy?delete re[he]:re[he]=U,re})},[G,X]=d.useMemo(()=>{const U=ge(R.errors),Y=ge(R.warnings);return Object.values(A).forEach(J=>{U.push.apply(U,ge(J.errors||[])),Y.push.apply(Y,ge(J.warnings||[]))}),[U,Y]},[A,R.errors,R.warnings]),W=T4();function K(U,Y,J){return n&&!y?d.createElement(v$,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:R,errors:G,warnings:X,noStyle:!0},U):d.createElement(B4,Object.assign({key:"row"},e,{className:te(r,F,M,k),prefixCls:O,fieldId:Y,isRequired:J,errors:G,warnings:X,meta:R,onSubItemMetaChange:H,layout:b}),U)}if(!_&&!S&&!i)return I(K(x));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),f&&(ee=Object.assign(Object.assign({},ee),f)),I(d.createElement(Vv,Object.assign({},e,{messageVariables:ee,trigger:h,validateTrigger:E,onMetaChange:D}),(U,Y,J)=>{const re=Pl(t).length&&Y?Y.name:[],ce=h$(re,g),he=c!==void 0?c:!!(s!=null&&s.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ye=de(J);return(ye==null?void 0:ye.required)&&!(ye!=null&&ye.warningOnly)}return!1})),xe=Object.assign({},U);let ie=null;if(Array.isArray(x)&&_)ie=x;else if(!(S&&(!(a||i)||_))){if(!(i&&!S&&!_))if(d.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),xe);if(de.id||(de.id=ce),v||G.length>0||X.length>0||e.extra){const se=[];(v||G.length>0)&&se.push(`${ce}_help`),e.extra&&se.push(`${ce}_extra`),de["aria-describedby"]=se.join(" ")}G.length>0&&(de["aria-invalid"]="true"),he&&(de["aria-required"]="true"),Mo(x)&&(de.ref=W(re,x)),new Set([].concat(ge(Pl(h)),ge(Pl(E)))).forEach(se=>{de[se]=function(){for(var we,$e,ue,Ne,ae,Ue=arguments.length,Fe=new Array(Ue),Se=0;Se{var{prefixCls:t,children:n}=e,r=G4(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(bt),o=i("form",t),a=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(a_,Object.assign({},r),(s,l,c)=>d.createElement(Uv.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function q4(){const{form:e}=d.useContext(zi);return e}const ar=O4;ar.Item=y$;ar.List=K4;ar.ErrorList=f$;ar.useForm=m$;ar.useFormInstance=q4;ar.useWatch=c_;ar.Provider=d_;ar.create=()=>{};function X4(e,t,n){return typeof n=="boolean"?n:e.length?!0:Co(t).some(i=>i.type===z_)}var b$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((a,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const a0=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=b$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(bt),l=s("layout",n),[c,u,f]=L_(l),h=r?`${l}-${r}`:l;return c(d.createElement(o,Object.assign({className:te(n||h,i,u,f),ref:t},a)))}),Y4=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(bt),[r,i]=d.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=b$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=si(h,["suffixCls"]),{getPrefixCls:y,layout:v}=d.useContext(bt),b=y("layout",o),p=X4(r,l,c),[g,x,S]=L_(b),C=te(b,{[`${b}-has-sider`]:p,[`${b}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,x,S),w=d.useMemo(()=>({siderHook:{addSider:E=>{i(_=>[].concat(ge(_),[E]))},removeSider:E=>{i(_=>_.filter(O=>O!==E))}}}),[]);return g(d.createElement(N_.Provider,{value:w},d.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},m),l)))}),Q4=Gf({tagName:"div",displayName:"Layout"})(Y4),Z4=Gf({suffixCls:"header",tagName:"header",displayName:"Header"})(a0),J4=Gf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a0),ez=Gf({suffixCls:"content",tagName:"main",displayName:"Content"})(a0),ji=Q4;ji.Header=Z4;ji.Footer=J4;ji.Content=ez;ji.Sider=z_;ji._InternalSiderContext=D_;var tz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},nz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:tz}))},rz=d.forwardRef(nz),iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},oz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:iz}))},az=d.forwardRef(oz),sz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},lz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:sz}))},cz=d.forwardRef(lz);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Lc(e){return e+.5|0}const so=(e,t,n)=>Math.max(Math.min(e,n),t);function cl(e){return so(Lc(e*2.55),0,255)}function bo(e){return so(Lc(e*255),0,255)}function Mi(e){return so(Lc(e/2.55)/100,0,1)}function W1(e){return so(Lc(e*100),0,100)}const Tr={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},op=[..."0123456789ABCDEF"],uz=e=>op[e&15],dz=e=>op[(e&240)>>4]+op[e&15],bu=e=>(e&240)>>4===(e&15),fz=e=>bu(e.r)&&bu(e.g)&&bu(e.b)&&bu(e.a);function hz(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Tr[e[1]]*17,g:255&Tr[e[2]]*17,b:255&Tr[e[3]]*17,a:t===5?Tr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Tr[e[1]]<<4|Tr[e[2]],g:Tr[e[3]]<<4|Tr[e[4]],b:Tr[e[5]]<<4|Tr[e[6]],a:t===9?Tr[e[7]]<<4|Tr[e[8]]:255})),n}const gz=(e,t)=>e<255?t(e):"";function mz(e){var t=fz(e)?uz:dz;return e?"#"+t(e.r)+t(e.g)+t(e.b)+gz(e.a,t):void 0}const pz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x$(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function vz(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function yz(e,t,n){const r=x$(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function bz(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=bz(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function l0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bo)}function c0(e,t,n){return l0(x$,e,t,n)}function xz(e,t,n){return l0(yz,e,t,n)}function Sz(e,t,n){return l0(vz,e,t,n)}function S$(e){return(e%360+360)%360}function Cz(e){const t=pz.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cl(+t[5]):bo(+t[5]));const i=S$(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=xz(i,o,a):t[1]==="hsv"?r=Sz(i,o,a):r=c0(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function wz(e,t){var n=s0(e);n[0]=S$(n[0]+t),n=c0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Ez(e){if(!e)return;const t=s0(e),n=t[0],r=W1(t[1]),i=W1(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Mi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const U1={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"},G1={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"};function _z(){const e={},t=Object.keys(G1),n=Object.keys(U1);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let xu;function $z(e){xu||(xu=_z(),xu.transparent=[0,0,0,0]);const t=xu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Oz=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Pz(e){const t=Oz.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?cl(a):so(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?cl(r):so(r,0,255)),i=255&(t[4]?cl(i):so(i,0,255)),o=255&(t[6]?cl(o):so(o,0,255)),{r,g:i,b:o,a:n}}}function Mz(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Mi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const eg=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Tz(e,t,n){const r=ka(Mi(e.r)),i=ka(Mi(e.g)),o=ka(Mi(e.b));return{r:bo(eg(r+n*(ka(Mi(t.r))-r))),g:bo(eg(i+n*(ka(Mi(t.g))-i))),b:bo(eg(o+n*(ka(Mi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Su(e,t,n){if(e){let r=s0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=c0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function C$(e,t){return e&&Object.assign(t||{},e)}function K1(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=bo(e[3]))):(t=C$(e,{r:0,g:0,b:0,a:1}),t.a=bo(t.a)),t}function Rz(e){return e.charAt(0)==="r"?Pz(e):Cz(e)}class pc{constructor(t){if(t instanceof pc)return t;const n=typeof t;let r;n==="object"?r=K1(t):n==="string"&&(r=hz(t)||$z(t)||Rz(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=C$(this._rgb);return t&&(t.a=Mi(t.a)),t}set rgb(t){this._rgb=K1(t)}rgbString(){return this._valid?Mz(this._rgb):void 0}hexString(){return this._valid?mz(this._rgb):void 0}hslString(){return this._valid?Ez(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Tz(this._rgb,t._rgb,n)),this}clone(){return new pc(this.rgb)}alpha(t){return this._rgb.a=bo(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Lc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Su(this._rgb,2,t),this}darken(t){return Su(this._rgb,2,-t),this}saturate(t){return Su(this._rgb,1,t),this}desaturate(t){return Su(this._rgb,1,-t),this}rotate(t){return wz(this._rgb,t),this}}/*! + * Chart.js v4.4.4 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */function Ei(){}const Iz=(()=>{let e=0;return()=>e++})();function on(e){return e===null||typeof e>"u"}function Rn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Br(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ui(e,t){return Br(e)?e:t}function it(e,t){return typeof e>"u"?t:e}const kz=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Xe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function at(e,t,n,r){let i,o,a;if(Rn(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function Az(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Lz(e){const t=Az(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Gd(e,t){return(q1[t]||(q1[t]=Lz(t)))(e)}function u0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Kd=e=>typeof e<"u",wo=e=>typeof e=="function",X1=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Dz(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Fn=Math.PI,xi=2*Fn,zz=xi+Fn,qd=Number.POSITIVE_INFINITY,jz=Fn/180,ei=Fn/2,Fo=Fn/4,Y1=Fn*2/3,ap=Math.log10,Eo=Math.sign;function Tl(e,t,n){return Math.abs(e-t)i-o).pop(),t}function yc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Hz(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Vz(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function d0(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Yo=(e,t,n,r)=>d0(e,n,r?i=>{const o=e[i][t];return oe[i][t]d0(e,n,r=>e[r][t]>=n);function Xz(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+u0(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function J1(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(_$.forEach(o=>{delete e[o]}),delete e._chartjs)}function Qz(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const $$=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function O$(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,$$.call(window,()=>{r=!1,e.apply(t,n)}))}}function Zz(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const f0=e=>e==="start"?"left":e==="end"?"right":"center",Wn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Jz=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function ej(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(i=Nr(Math.min(Yo(s,l,c).lo,n?r:Yo(t,l,a.getPixelForValue(c)).lo),0,r-1)),h?o=Nr(Math.max(Yo(s,a.axis,u,!0).hi+1,n?0:Yo(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function tj(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Cu=e=>e===0||e===1,ex=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*xi/n)),tx=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*xi/n)+1,Rl={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=>-Math.cos(e*ei)+1,easeOutSine:e=>Math.sin(e*ei),easeInOutSine:e=>-.5*(Math.cos(Fn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Cu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),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=>Cu(e)?e:ex(e,.075,.3),easeOutElastic:e=>Cu(e)?e:tx(e,.075,.3),easeInOutElastic(e){return Cu(e)?e:e<.5?.5*ex(e*2,.1125,.45):.5+.5*tx(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Rl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Rl.easeInBounce(e*2)*.5:Rl.easeOutBounce(e*2-1)*.5+.5};function h0(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function nx(e){return h0(e)?e:new pc(e)}function tg(e){return h0(e)?e:new pc(e).saturate(.5).darken(.1).hexString()}const nj=["x","y","borderWidth","radius","tension"],rj=["color","borderColor","backgroundColor"];function ij(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:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:rj},numbers:{type:"number",properties:nj}}),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:t=>t|0}}}})}function oj(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const rx=new Map;function aj(e,t){t=t||{};const n=e+JSON.stringify(t);let r=rx.get(n);return r||(r=new Intl.NumberFormat(e,t),rx.set(n,r)),r}function P$(e,t,n){return aj(t,n).format(e)}const M$={values(e){return Rn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=sj(e,n)}const a=ap(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),P$(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ap(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?M$.numeric.call(this,e,t,n):""}};function sj(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var T$={formatters:M$};function lj(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:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.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:T$.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:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fa=Object.create(null),lp=Object.create(null);function Il(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.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=(r,i)=>tg(i.backgroundColor),this.hoverBorderColor=(r,i)=>tg(i.borderColor),this.hoverColor=(r,i)=>tg(i.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(t),this.apply(n)}set(t,n){return ng(this,t,n)}get(t){return Il(this,t)}describe(t,n){return ng(lp,t,n)}override(t,n){return ng(fa,t,n)}route(t,n,r,i){const o=Il(this,t),a=Il(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return wt(l)?Object.assign({},c,l):it(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var dn=new cj({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ij,oj,lj]);function uj(e){return!e||on(e.size)||on(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ix(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Ao(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ox(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function cp(e,t,n,r){R$(e,t,n,r,null)}function R$(e,t,n,r,i){let o,a,s,l,c,u,f,h;const m=t.pointStyle,y=t.rotation,v=t.radius;let b=(y||0)*jz;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,v,0,0,xi):e.arc(n,r,v,0,xi),e.closePath();break;case"triangle":u=i?i/2:v,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":c=v*.516,l=v-c,a=Math.cos(b+Fo)*l,f=Math.cos(b+Fo)*(i?i/2-c:l),s=Math.sin(b+Fo)*l,h=Math.sin(b+Fo)*(i?i/2-c:l),e.arc(n-f,r-s,c,b-Fn,b-ei),e.arc(n+h,r-a,c,b-ei,b),e.arc(n+f,r+s,c,b,b+ei),e.arc(n-h,r+a,c,b+ei,b+Fn),e.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*v,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=Fo;case"rectRot":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+h,r-a),e.lineTo(n+f,r+s),e.lineTo(n-h,r+a),e.closePath();break;case"crossRot":b+=Fo;case"cross":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"star":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a),b+=Fo,f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*v,s=Math.sin(b)*v,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:v),r+Math.sin(b)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function bc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,hj(e,o),l=0;l+e||0;function I$(e,t){const n={},r=wt(t),i=r?Object.keys(t):t,o=wt(e)?r?a=>it(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=bj(o(a));return n}function xj(e){return I$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function kl(e){return I$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Hr(e){const t=xj(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kn(e,t){e=e||{},t=t||dn.font;let n=it(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=it(e.style,t.style);r&&!(""+r).match(vj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:it(e.family,t.family),lineHeight:yj(it(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:it(e.weight,t.weight),string:""};return i.string=uj(i),i}function wu(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function ya(e,t){return Object.assign(Object.create(e),t)}function p0(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=A$("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>p0([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return N$(s,l,()=>Mj(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return sx(s).includes(l)},ownKeys(s){return sx(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function ws(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:k$(e,r),setContext:o=>ws(e,o,n,r),override:o=>ws(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return N$(o,a,()=>wj(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function k$(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:wo(n)?n:()=>n,isIndexable:wo(r)?r:()=>r}}const Cj=(e,t)=>e?e+u0(t):t,v0=(e,t)=>wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function N$(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function wj(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return wo(s)&&a.isScriptable(t)&&(s=Ej(t,s,e,n)),Rn(s)&&s.length&&(s=_j(t,s,e,a.isIndexable)),v0(t,s)&&(s=ws(s,i,o&&o[t],a)),s}function Ej(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),v0(e,l)&&(l=y0(i._scopes,i,e,l)),l}function _j(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(wt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=y0(c,i,e,u);t.push(ws(f,o,a&&a[e],s))}}return t}function F$(e,t,n){return wo(e)?e(t,n):e}const $j=(e,t)=>e===!0?t:typeof e=="string"?Gd(t,e):void 0;function Oj(e,t,n,r,i){for(const o of t){const a=$j(n,o);if(a){e.add(a);const s=F$(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function y0(e,t,n,r){const i=t._rootScopes,o=F$(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=ax(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=ax(s,a,o,l,r),l===null)?!1:p0(Array.from(s),[""],i,o,()=>Pj(t,n,r))}function ax(e,t,n,r,i){for(;n;)n=Oj(e,t,n,r,i);return n}function Pj(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rn(i)&&wt(n)?n:i||{}}function Mj(e,t,n,r){let i;for(const o of t)if(i=A$(Cj(o,e),n),typeof i<"u")return v0(e,i)?y0(n,r,e,i):i}function A$(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function sx(e){let t=e._keys;return t||(t=e._keys=Tj(e._scopes)),t}function Tj(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const Rj=Number.EPSILON||1e-14,Es=(e,t)=>te==="x"?"y":"x";function Ij(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=sp(o,i),l=sp(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=r*c,h=r*u;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function kj(e,t,n){const r=e.length;let i,o,a,s,l,c=Es(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")Fj(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Dj(e,t){return Kf(e).getPropertyValue(t)}const zj=["top","right","bottom","left"];function ta(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=zj[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const jj=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Bj(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(jj(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function mi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Kf(n),o=i.boxSizing==="border-box",a=ta(i,"padding"),s=ta(i,"border","width"),{x:l,y:c,box:u}=Bj(e,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:m,height:y}=t;return o&&(m-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-h)/y*n.height/r)}}function Hj(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&x0(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Kf(o),l=ta(s,"border","width"),c=ta(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Xd(s.maxWidth,o,"clientWidth"),i=Xd(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||qd,maxHeight:i||qd}}const _u=e=>Math.round(e*10)/10;function Vj(e,t,n,r){const i=Kf(e),o=ta(i,"margin"),a=Xd(i.maxWidth,e,"clientWidth")||qd,s=Xd(i.maxHeight,e,"clientHeight")||qd,l=Hj(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const h=ta(i,"border","width"),m=ta(i,"padding");c-=m.width+h.width,u-=m.height+h.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=_u(Math.min(c,a,l.maxWidth)),u=_u(Math.min(u,s,l.maxHeight)),c&&!u&&(u=_u(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=_u(Math.floor(u*r))),{width:c,height:u}}function lx(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);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=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Wj=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};b0()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function cx(e,t){const n=Dj(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function jo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Uj(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Gj(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=jo(e,i,n),s=jo(i,o,n),l=jo(o,t,n),c=jo(a,s,n),u=jo(s,l,n);return jo(c,u,n)}const Kj=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},qj=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ls(e,t,n){return e?Kj(t,n):qj()}function D$(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function z$(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function j$(e){return e==="angle"?{between:E$,compare:Gz,normalize:Xi}:{between:ul,compare:(t,n)=>t-n,normalize:t=>t}}function ux({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Xj(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=j$(r),l=t.length;let{start:c,end:u,loop:f}=e,h,m;if(f){for(c+=l,u+=l,h=0,m=l;hl(i,x,p)&&s(i,x)!==0,C=()=>s(o,p)===0||l(o,x,p),w=()=>v||S(),E=()=>!v||C();for(let _=u,O=u;_<=f;++_)g=t[_%a],!g.skip&&(p=c(g[r]),p!==x&&(v=l(p,i,o),b===null&&w()&&(b=s(p,i)===0?_:O),b!==null&&E()&&(y.push(ux({start:b,end:_,loop:h,count:a,style:m})),b=null),O=_,x=p));return b!==null&&y.push(ux({start:b,end:f,loop:h,count:a,style:m})),y}function Qj(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Jj(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function e3(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=Zj(n,i,o,r);if(r===!0)return dx(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=$$.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _i=new r3;const hx="transparent",i3={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=nx(e||hx),i=r.valid&&nx(t||hx);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class o3{constructor(t,n,r,i){const o=n[r];i=wu([t.to,i,o,t.from]);const a=wu([t.from,o,i]);this._active=!0,this._fn=t.fn||i3[t.type||typeof a],this._easing=Rl[t.easing]||Rl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=wu([t.to,n,i,t.from]),this._from=wu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!wt(o))return;const a={};for(const s of n)a[s]=o[s];(Rn(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=s3(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&a3(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let f=o[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,u,s);continue}else f.cancel();if(!h||!h.duration){t[c]=u;continue}o[c]=f=new o3(h,t,c,u),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return _i.add(this._chart,r),!0}}function a3(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function yx(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=d3(o,a,r),f=t.length;let h;for(let m=0;mn[r].axis===t).shift()}function g3(e,t){return ya(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function m3(e,t,n){return ya(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Zs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const ig=e=>e==="reset"||e==="none",bx=(e,t)=>t?e:Object.assign({},e),p3=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:H$(n,!0),values:null};class Nl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=px(t.vScale,t),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(t){this.index!==t&&Zs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,h,m,y)=>f==="x"?h:f==="r"?y:m,o=n.xAxisID=it(r.xAxisID,rg(t,"x")),a=n.yAxisID=it(r.yAxisID,rg(t,"y")),s=n.rAxisID=it(r.rAxisID,rg(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&J1(this._data,this),t._stacked&&Zs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(wt(n)){const i=this._cachedMeta;this._data=u3(n,i)}else if(r!==n){if(r){J1(r,this);const i=this._cachedMeta;Zs(i),i._parsed=[]}n&&Object.isExtensible(n)&&Yz(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=px(n.vScale,n),n.stack!==r.stack&&(i=!0,Zs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&yx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,f,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Rn(i[t])?h=this.parseArrayData(r,i,t,n):wt(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const m=()=>f[s]===null||c&&f[s]v||f=0;--h)if(!y()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(h,m,y,f);return v.$shared&&(v.$shared=l,o[a]=Object.freeze(bx(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(h,this.getContext(t,r,n))}const c=new B$(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ig(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){ig(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ig(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let C=0;C=g){E.skip=!0;continue}const _=this.getParsed(C),O=on(_[m]),M=E[h]=a.getPixelForValue(_[h],C),I=E[m]=o||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,_,l):_[m],C);E.skip=isNaN(M)||isNaN(I)||O,E.stop=C>0&&Math.abs(_[h]-S[h])>b,v&&(E.parsed=_,E.raw=c.data[C]),f&&(E.options=u||this.resolveDataElementOptions(C,w.active?"active":i)),p||this.updateElement(w,C,E,i),S=_}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt(od,"id","line"),tt(od,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),tt(od,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Lo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class S0{constructor(t){tt(this,"options");this.options=t||{}}static override(t){Object.assign(S0.prototype,t)}init(){}formats(){return Lo()}parse(){return Lo()}format(){return Lo()}add(){return Lo()}diff(){return Lo()}startOf(){return Lo()}endOf(){return Lo()}}var v3={_date:S0};function y3(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?qz:Yo;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const f=l(o,t,n-u),h=l(o,t,n+u);return{lo:f.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Dc(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var C3={evaluateInteractionItems:Dc,modes:{index(e,t,n,r){const i=mi(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?og(e,i,o,r,a):ag(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=mi(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?og(e,i,o,r,a):ag(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function Sx(e,t){return e.filter(n=>V$.indexOf(n.pos)===-1&&n.box.axis===t)}function el(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function w3(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=el(Js(t,"left"),!0),i=el(Js(t,"right")),o=el(Js(t,"top"),!0),a=el(Js(t,"bottom")),s=Sx(t,"x"),l=Sx(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Js(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function Cx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function W$(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 O3(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!wt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&W$(a,o.getPadding());const s=Math.max(0,t.outerWidth-Cx(a,e,"left","right")),l=Math.max(0,t.outerHeight-Cx(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function P3(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function M3(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function dl(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof v.beforeLayout=="function"&&v.beforeLayout()});const u=l.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},i);W$(h,Hr(r));const m=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),y=_3(l.concat(c),f);dl(s.fullSize,m,f,y),dl(l,m,f,y),dl(c,m,f,y)&&dl(l,m,f,y),P3(m),wx(s.leftAndTop,m,f,y),m.x+=m.w,m.y+=m.h,wx(s.rightAndBottom,m,f,y),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},at(s.chartArea,v=>{const b=v.box;Object.assign(b,e.chartArea),b.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class U${acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class T3 extends U${acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ad="$chartjs",R3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ex=e=>e===null||e==="";function I3(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ad]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ex(i)){const o=cx(e,"width");o!==void 0&&(e.width=o)}if(Ex(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=cx(e,"height");o!==void 0&&(e.height=o)}return e}const G$=Wj?{passive:!0}:!1;function k3(e,t,n){e&&e.addEventListener(t,n,G$)}function N3(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,G$)}function F3(e,t){const n=R3[e.type]||e.type,{x:r,y:i}=mi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Yd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function A3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Yd(s.addedNodes,r),a=a&&!Yd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function L3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Yd(s.removedNodes,r),a=a&&!Yd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Sc=new Map;let _x=0;function K$(){const e=window.devicePixelRatio;e!==_x&&(_x=e,Sc.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function D3(e,t){Sc.size||window.addEventListener("resize",K$),Sc.set(e,t)}function z3(e){Sc.delete(e),Sc.size||window.removeEventListener("resize",K$)}function j3(e,t,n){const r=e.canvas,i=r&&x0(r);if(!i)return;const o=O$((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),D3(e,o),a}function sg(e,t,n){n&&n.disconnect(),t==="resize"&&z3(e)}function B3(e,t,n){const r=e.canvas,i=O$(o=>{e.ctx!==null&&n(F3(o,e))},e);return k3(r,t,i),i}class H3 extends U${acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(I3(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ad])return!1;const r=n[ad].initial;["height","width"].forEach(o=>{const a=r[o];on(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ad],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:A3,detach:L3,resize:j3}[n]||B3;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:sg,detach:sg,resize:sg}[n]||N3)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Vj(t,n,r,i)}isAttached(t){const n=t&&x0(t);return!!(n&&n.isConnected)}}function V3(e){return!b0()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?T3:H3}var Nu;let ba=(Nu=class{constructor(){tt(this,"x");tt(this,"y");tt(this,"active",!1);tt(this,"options");tt(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return yc(this.x)&&yc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},tt(Nu,"defaults",{}),tt(Nu,"defaultRoutes"),Nu);function W3(e,t){const n=e.options.ticks,r=U3(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?K3(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return q3(t,c,o,a/i),c;const u=G3(o,t,i);if(a>0){let f,h;const m=a>1?Math.round((l-s)/(a-1)):null;for(Ou(t,c,u,on(m)?0:s-m,s),f=0,h=a-1;fi)return l}return Math.max(i,1)}function K3(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,$x=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Ox=(e,t)=>Math.min(t||e,e);function Px(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function Z3(e,t){at(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:ui(n,ui(r,n)),max:ui(r,ui(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Xe(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Sj(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,m=Nr(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(t.offset?.5:1)),l=this.maxHeight-tl(t.grid)-n.padding-Mx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=Wz(Math.min(Math.asin(Nr((u.highest.height+6)/s,-1,1)),Math.asin(Nr(l/c,-1,1))-Math.asin(Nr(h/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Xe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Xe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Mx(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=tl(o)+l):(t.height=this.maxHeight,t.width=tl(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:h}=this._getLabelSizes(),m=r.padding*2,y=Xo(this.labelRotation),v=Math.cos(y),b=Math.sin(y);if(s){const p=r.mirror?0:b*f.width+v*h.height;t.height=Math.min(this.maxHeight,t.height+p+m)}else{const p=r.mirror?0:v*f.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+p+m)}this._calculatePadding(c,u,b,v)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,m=0;l?c?(h=i*t.width,m=r*n.height):(h=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,m=n.width/2),this.paddingLeft=Math.max((h-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let u=n.height/2,f=t.height/2;o==="start"?(u=0,f=t.height):o==="end"&&(u=n.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_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(){Xe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[O]||0,height:s[O]||0});return{first:_(0),last:_(n-1),widest:_(w),highest:_(E),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Kz(this._alignToPixels?Ao(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),h=tl(o),m=[],y=s.setContext(this.getContext()),v=y.display?y.width:0,b=v/2,p=function(A){return Ao(r,A,v)};let g,x,S,C,w,E,_,O,M,I,k,F;if(a==="top")g=p(this.bottom),E=this.bottom-h,O=g-b,I=p(t.top)+b,F=t.bottom;else if(a==="bottom")g=p(this.top),I=t.top,F=p(t.bottom)-b,E=g+b,O=this.top+h;else if(a==="left")g=p(this.right),w=this.right-h,_=g-b,M=p(t.left)+b,k=t.right;else if(a==="right")g=p(this.left),M=t.left,k=p(t.right)-b,w=g+b,_=this.left+h;else if(n==="x"){if(a==="center")g=p((t.top+t.bottom)/2+.5);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}I=t.top,F=t.bottom,E=g+b,O=E+h}else if(n==="y"){if(a==="center")g=p((t.left+t.right)/2);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}w=g-b,_=w-h,M=t.left,k=t.right}const j=it(i.ticks.maxTicksLimit,f),B=Math.max(1,Math.ceil(f/j));for(x=0;x0&&(ee-=W/2);break}H={left:ee,top:K,width:W+G.width,height:X+G.height,color:B.backdropColor}}b.push({label:S,font:O,textOffset:k,options:{rotation:v,color:P,strokeColor:R,strokeWidth:N,textAlign:D,textBaseline:F,translation:[C,w],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Xo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");dn.route(o,i,l,s)})}function o6(e){return"id"in e&&"defaults"in e}class a6{constructor(){this.controllers=new Pu(Nl,"datasets",!0),this.elements=new Pu(ba,"elements"),this.plugins=new Pu(Object,"plugins"),this.scales=new Pu(Ns,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):at(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=u0(t);Xe(r["before"+i],[],r),n[t](r),Xe(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function l6(e){const t={},n=[],r=Object.keys(hi.plugins.items);for(let o=0;o1&&Tx(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Rx(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function m6(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Rx(e,"x",n[0])||Rx(e,"y",n[0])}return{}}function p6(e,t){const n=fa[e.type]||{scales:{}},r=t.scales||{},i=dp(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!wt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=fp(a,s,m6(a,e),dn.scales[s.type]),c=h6(l,i),u=n.scales||{};o[a]=Ml(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||dp(s,t),u=(fa[s]||{}).scales||{};Object.keys(u).forEach(f=>{const h=f6(f,l),m=a[h+"AxisID"]||h;o[m]=o[m]||Object.create(null),Ml(o[m],[{axis:h},r[m],u[f]])})}),Object.keys(o).forEach(a=>{const s=o[a];Ml(s,[dn.scales[s.type],dn.scale])}),o}function q$(e){const t=e.options||(e.options={});t.plugins=it(t.plugins,{}),t.scales=p6(e,t)}function X$(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function v6(e){return e=e||{},e.data=X$(e.data),q$(e),e}const Ix=new Map,Y$=new Set;function Mu(e,t){let n=Ix.get(e);return n||(n=t(),Ix.set(e,n),Y$.add(n)),n}const nl=(e,t,n)=>{const r=Gd(t,n);r!==void 0&&e.add(r)};class y6{constructor(t){this._config=v6(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=X$(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),q$(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Mu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(f=>nl(l,t,f))),u.forEach(f=>nl(l,i,f)),u.forEach(f=>nl(l,fa[o]||{},f)),u.forEach(f=>nl(l,dn,f)),u.forEach(f=>nl(l,lp,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Y$.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fa[n]||{},dn.datasets[n]||{},{type:n},dn,lp]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=kx(this._resolverCache,t,i);let l=a;if(x6(a,n)){o.$shared=!1,r=wo(r)?r():r;const c=this.createResolver(t,r,s);l=ws(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=kx(this._resolverCache,t,r);return wt(n)?ws(o,n,void 0,i):o}}function kx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:p0(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const b6=e=>wt(e)&&Object.getOwnPropertyNames(e).some(t=>wo(e[t]));function x6(e,t){const{isScriptable:n,isIndexable:r}=k$(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(wo(s)||b6(s))||a&&Rn(s))return!0}return!1}var S6="4.4.4";const C6=["top","bottom","left","right","chartArea"];function Nx(e,t){return e==="top"||e==="bottom"||C6.indexOf(e)===-1&&t==="x"}function Fx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Xe(n&&n.onComplete,[e],t)}function w6(e){const t=e.chart,n=t.options.animation;Xe(n&&n.onProgress,[e],t)}function Q$(e){return b0()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sd={},Lx=e=>{const t=Q$(e);return Object.values(sd).filter(n=>n.canvas===t).pop()};function E6(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function _6(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Tu(e,t,n){return e.options.clip?e[n]:t[n]}function $6(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Tu(n,t,"left"),right:Tu(n,t,"right"),top:Tu(r,t,"top"),bottom:Tu(r,t,"bottom")}:t}var Ki;let qf=(Ki=class{static register(...t){hi.add(...t),Dx()}static unregister(...t){hi.remove(...t),Dx()}constructor(t,n){const r=this.config=new y6(n),i=Q$(t),o=Lx(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||V3(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Iz(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,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 s6,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Zz(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],sd[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}_i.listen(this,"complete",Ax),_i.listen(this,"progress",w6),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return on(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return hi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():lx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ox(this.canvas,this.ctx),this}stop(){return _i.stop(this),this}resize(t,n){_i.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,lx(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Xe(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};at(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=fp(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),at(o,a=>{const s=a.options,l=s.id,c=fp(l,s),u=it(s.type,a.dtype);(s.position===void 0||Nx(s.position,c)!==Nx(a.dposition))&&(s.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===u)f=r[l];else{const h=hi.getScale(u);f=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(s,t)}),at(i,(a,s)=>{a||delete r[s]}),at(r,a=>{Fr.configure(this,a,a.options),Fr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Fx("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){at(this.scales,t=>{Fr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!X1(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;E6(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],at(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=$6(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&g0(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&m0(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return bc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=C3.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ya(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);Kd(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),_i.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};at(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){at(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},at(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Wd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=Dz(t),c=_6(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Xe(o.onHover,[t,s,this],this),l&&Xe(o.onClick,[t,s,this],this));const u=!Wd(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},tt(Ki,"defaults",dn),tt(Ki,"instances",sd),tt(Ki,"overrides",fa),tt(Ki,"registry",hi),tt(Ki,"version",S6),tt(Ki,"getChart",Lx),Ki);function Dx(){return at(qf.instances,e=>e._plugins.invalidate())}function Z$(e,t,n=t){e.lineCap=it(n.borderCapStyle,t.borderCapStyle),e.setLineDash(it(n.borderDash,t.borderDash)),e.lineDashOffset=it(n.borderDashOffset,t.borderDashOffset),e.lineJoin=it(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=it(n.borderWidth,t.borderWidth),e.strokeStyle=it(n.borderColor,t.borderColor)}function O6(e,t,n){e.lineTo(n.x,n.y)}function P6(e){return e.stepped?dj:e.tension||e.cubicInterpolationMode==="monotone"?fj:O6}function J$(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{v!==b&&(e.lineTo(u,b),e.lineTo(u,v),e.lineTo(u,p))};for(l&&(m=i[g(0)],e.moveTo(m.x,m.y)),h=0;h<=s;++h){if(m=i[g(h)],m.skip)continue;const S=m.x,C=m.y,w=S|0;w===y?(Cb&&(b=C),u=(f*u+S)/++f):(x(),e.lineTo(S,C),y=w,f=0,v=b=C),p=C}x()}function hp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?T6:M6}function R6(e){return e.stepped?Uj:e.tension||e.cubicInterpolationMode==="monotone"?Gj:jo}function I6(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Z$(e,t.options),e.stroke(i)}function k6(e,t,n,r){const{segments:i,options:o}=t,a=hp(t);for(const s of i)Z$(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const N6=typeof Path2D=="function";function F6(e,t,n,r){N6&&!t.options.segment?I6(e,t,n,r):k6(e,t,n,r)}class fl extends ba{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Lj(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=e3(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=Qj(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=R6(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function zx(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},A6=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Bx extends ba{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 t=this.options.labels||{};let n=Xe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Kn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=jx(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let h=-1,m=-u;return this.legendItems.forEach((y,v)=>{const b=r+n/2+o.measureText(y.text).width;(v===0||c[c.length-1]+b+2*s>a)&&(f+=u,c[c.length-(v>0?0:1)]=0,m+=u,h++),l[v]={left:0,top:m,row:h,width:b,height:i},c[c.length-1]+=b+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let f=s,h=0,m=0,y=0,v=0;return this.legendItems.forEach((b,p)=>{const{itemWidth:g,itemHeight:x}=L6(r,n,o,b,i);p>0&&m+x+2*s>u&&(f+=h+s,c.push({width:h,height:m}),y+=h+s,v++,h=m=0),l[p]={left:y,top:m,col:v,width:g,height:x},h=Math.max(h,g),m+=x+s}),f+=h,c.push({width:h,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ls(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Wn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Wn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;g0(t,this),this._draw(),m0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=dn.color,l=ls(t.rtl,this.left,this.width),c=Kn(a.font),{padding:u}=a,f=c.size,h=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:y,boxHeight:v,itemHeight:b}=jx(a,f),p=function(w,E,_){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;i.save();const O=it(_.lineWidth,1);if(i.fillStyle=it(_.fillStyle,s),i.lineCap=it(_.lineCap,"butt"),i.lineDashOffset=it(_.lineDashOffset,0),i.lineJoin=it(_.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=it(_.strokeStyle,s),i.setLineDash(it(_.lineDash,[])),a.usePointStyle){const M={radius:v*Math.SQRT2/2,pointStyle:_.pointStyle,rotation:_.rotation,borderWidth:O},I=l.xPlus(w,y/2),k=E+h;R$(i,M,I,k,a.pointStyleWidth&&y)}else{const M=E+Math.max((f-v)/2,0),I=l.leftForLtr(w,y),k=kl(_.borderRadius);i.beginPath(),Object.values(k).some(F=>F!==0)?up(i,{x:I,y:M,w:y,h:v,radius:k}):i.rect(I,M,y,v),i.fill(),O!==0&&i.stroke()}i.restore()},g=function(w,E,_){xc(i,_.text,w,E+b/2,c,{strikethrough:_.hidden,textAlign:l.textAlign(_.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?m={x:Wn(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:m={x:this.left+u,y:Wn(o,this.top+S+u,this.bottom-n[0].height),line:0},D$(this.ctx,t.textDirection);const C=b+u;this.legendItems.forEach((w,E)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fontColor;const _=i.measureText(w.text).width,O=l.textAlign(w.textAlign||(w.textAlign=a.textAlign)),M=y+h+_;let I=m.x,k=m.y;l.setWidth(this.width),x?E>0&&I+M+u>this.right&&(k=m.y+=C,m.line++,I=m.x=Wn(o,this.left+u,this.right-r[m.line])):E>0&&k+C>this.bottom&&(I=m.x=I+n[m.line].width+u,m.line++,k=m.y=Wn(o,this.top+S+u,this.bottom-n[m.line].height));const F=l.x(I);if(p(F,k,w),I=Jz(O,I+y+h,x?I+M:this.right,t.rtl),g(l.x(I),k,w),x)m.x+=M+u;else if(typeof w.text!="string"){const j=c.lineHeight;m.y+=e2(w,j)+u}else m.y+=C}),z$(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Kn(n.font),i=Hr(n.padding);if(!n.display)return;const o=ls(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,f=Wn(t.align,f,this.right-h);else{const y=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);u=c+Wn(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const m=Wn(s,f,f+h);a.textAlign=o.textAlign(f0(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,xc(a,n.text,m,u,r)}_computeTitleHeight(){const t=this.options.title,n=Kn(t.font),r=Hr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(ul(t,this.left,this.right)&&ul(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function z6(e,t,n){let r=e;return typeof t.text!="string"&&(r=e2(t,n)),r}function e2(e,t){const n=e.text?e.text.length:0;return t*n}function j6(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var B6={id:"legend",_element:Bx,start(e,t,n){const r=e.legend=new Bx({ctx:e.ctx,options:n,chart:e});Fr.configure(e,r,n),Fr.addBox(e,r)},stop(e){Fr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Fr.configure(e,r,n),r.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 r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),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:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Hr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.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 t2 extends ba{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Rn(r.text)?r.text.length:1;this._padding=Hr(r.padding);const o=i*Kn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,f;return this.isHorizontal()?(u=Wn(s,r,o),f=n+t,c=o-r):(a.position==="left"?(u=r+t,f=Wn(s,i,n),l=Fn*-.5):(u=o-t,f=Wn(s,n,i),l=Fn*.5),c=i-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Kn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);xc(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:f0(n.align),textBaseline:"middle",translation:[a,s]})}}function H6(e,t){const n=new t2({ctx:e.ctx,options:t,chart:e});Fr.configure(e,n,t),Fr.addBox(e,n),e.titleBlock=n}var V6={id:"title",_element:t2,start(e,t,n){H6(e,n)},stop(e){const t=e.titleBlock;Fr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Fr.configure(e,r,n),r.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}};const hl={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o-1?e.split(` +`):e}function W6(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Hx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Kn(t.bodyFont),c=Kn(t.titleFont),u=Kn(t.footerFont),f=o.length,h=i.length,m=r.length,y=Hr(t.padding);let v=y.height,b=0,p=r.reduce((S,C)=>S+C.before.length+C.lines.length+C.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),p){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;v+=m*S+(p-m)*l.lineHeight+(p-1)*t.bodySpacing}h&&(v+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let g=0;const x=function(S){b=Math.max(b,n.measureText(S).width+g)};return n.save(),n.font=c.string,at(e.title,x),n.font=l.string,at(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?a+2+t.boxPadding:0,at(r,S=>{at(S.before,x),at(S.lines,x),at(S.after,x)}),g=0,n.font=u.string,at(e.footer,x),n.restore(),b+=y.width,{width:b,height:v}}function U6(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function G6(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function K6(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),G6(c,e,t,n)&&(c="center"),c}function Vx(e,t,n){const r=n.yAlign||t.yAlign||U6(e,n);return{xAlign:n.xAlign||t.xAlign||K6(e,t,n,r),yAlign:r}}function q6(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function X6(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Wx(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=kl(a);let y=q6(t,s);const v=X6(t,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(u,h)+i:s==="right"&&(y+=Math.max(f,m)+i),{x:Nr(y,0,r.width-t.width),y:Nr(v,0,r.height-t.height)}}function Ru(e,t,n){const r=Hr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ux(e){return di([],$i(e))}function Y6(e,t,n){return ya(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Gx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const n2={beforeTitle:Ei,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?n2[t].call(n,r):i}class gp extends ba{constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new B$(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Y6(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),o=ir(r,"title",this,t),a=ir(r,"afterTitle",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}getBeforeBody(t,n){return Ux(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return at(t,o=>{const a={before:[],lines:[],after:[]},s=Gx(r,o);di(a.before,$i(ir(s,"beforeLabel",this,o))),di(a.lines,ir(s,"label",this,o)),di(a.after,$i(ir(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Ux(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),o=ir(r,"footer",this,t),a=ir(r,"afterFooter",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,f,h,r))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,r))),at(s,u=>{const f=Gx(t.callbacks,u);i.push(ir(f,"labelColor",this,u)),o.push(ir(f,"labelPointStyle",this,u)),a.push(ir(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=hl[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Hx(this,r),c=Object.assign({},s,l),u=Vx(this.chart,r,c),f=Wx(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=kl(s),{x:h,y:m}=t,{width:y,height:v}=n;let b,p,g,x,S,C;return o==="center"?(S=m+v/2,i==="left"?(b=h,p=b-a,x=S+a,C=S-a):(b=h+y,p=b+a,x=S-a,C=S+a),g=b):(i==="left"?p=h+Math.max(l,u)+a:i==="right"?p=h+y-Math.max(c,f)-a:p=this.caretX,o==="top"?(x=m,S=x-a,b=p-a,g=p+a):(x=m+v,S=x+a,b=p+a,g=p-a),C=x),{x1:b,x2:p,x3:g,y1:x,y2:S,y3:C}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ls(r.rtl,this.x,this.width);for(t.x=Ru(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Kn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,up(t,{x:v,y,w:c,h:l,radius:p}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),up(t,{x:b,y:y+1,w:c-2,h:l-2,radius:p}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(v,y,c,l),t.strokeRect(v,y,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,f=Kn(r.bodyFont);let h=f.lineHeight,m=0;const y=ls(r.rtl,this.x,this.width),v=function(_){n.fillText(_,y.x(t.x+m),t.y+h/2),t.y+=h+o},b=y.textAlign(a);let p,g,x,S,C,w,E;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ru(this,b,r),n.fillStyle=r.bodyColor,at(this.beforeBody,v),m=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,w=i.length;S0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=hl[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Hx(this,t),l=Object.assign({},a,this._size),c=Vx(n,t,l),u=Wx(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Hr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),D$(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),z$(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Wd(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Wd(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=hl[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}tt(gp,"positioners",hl);var Q6={id:"tooltip",_element:gp,positioners:hl,afterInit(e,t,n){n&&(e.tooltip=new gp({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(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)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:n2},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Z6=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function J6(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Z6(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const eB=(e,t)=>e===null?null:Nr(Math.round(e),0,t);function Kx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}tt(mp,"id","category"),tt(mp,"defaults",{ticks:{callback:Kx}});function tB(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:h}=e,m=o||1,y=u-1,{min:v,max:b}=t,p=!on(a),g=!on(s),x=!on(c),S=(b-v)/(f+1);let C=Q1((b-v)/y/m)*m,w,E,_,O;if(C<1e-14&&!p&&!g)return[{value:v},{value:b}];O=Math.ceil(b/C)-Math.floor(v/C),O>y&&(C=Q1(O*C/y/m)*m),on(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),i==="ticks"?(E=Math.floor(v/C)*C,_=Math.ceil(b/C)*C):(E=v,_=b),p&&g&&o&&Hz((s-a)/o,C/1e3)?(O=Math.round(Math.min((s-a)/C,u)),C=(s-a)/O,E=a,_=s):x?(E=p?a:E,_=g?s:_,O=c-1,C=(_-E)/O):(O=(_-E)/C,Tl(O,Math.round(O),C/1e3)?O=Math.round(O):O=Math.ceil(O));const M=Math.max(Z1(C),Z1(E));w=Math.pow(10,on(l)?M:l),E=Math.round(E*w)/w,_=Math.round(_*w)/w;let I=0;for(p&&(h&&E!==a?(n.push({value:a}),Es)break;n.push({value:k})}return g&&h&&_!==s?n.length&&Tl(n[n.length-1].value,s,qx(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!g||_===s)&&n.push({value:_}),n}function qx(e,t,{horizontal:n,minRotation:r}){const i=Xo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class nB extends Ns{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return on(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Eo(i),c=Eo(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=tB(i,o);return t.bounds==="ticks"&&Vz(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return P$(t,this.chart.options.locale,this.options.ticks.format)}}class pp extends nB{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Br(t)?t:0,this.max=Br(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Xo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}tt(pp,"id","linear"),tt(pp,"defaults",{ticks:{callback:T$.formatters.numeric}});const Xf={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}},lr=Object.keys(Xf);function Xx(e,t){return e-t}function Yx(e,t){if(on(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Br(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(yc(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Qx(e,t,n,r){const i=lr.length;for(let o=lr.indexOf(e);o=lr.indexOf(n);o--){const a=lr[o];if(Xf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return lr[n?lr.indexOf(n):0]}function iB(e){for(let t=lr.indexOf(e)+1,n=lr.length;t=t?n[r]:n[i];e[o]=!0}}function oB(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Jx(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Nr(n,0,a),r=Nr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Qx(o.minUnit,n,r,this._getLabelCapacity(n)),s=it(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=yc(l)||l===!0,u={};let f=n,h,m;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(h=f,m=0;h+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Xe(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],h=r[n],m=c&&f&&h&&h.major;return this._adapter.format(t,i||(m?f:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Yo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Yo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class eS extends Qd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Iu(n,this.min),this._tableRange=Iu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Iu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Iu(this._table,r*this._tableRange+this._minPos,!0)}}tt(eS,"id","timeseries"),tt(eS,"defaults",Qd.defaults);const r2="label";function tS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aB(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function i2(e,t){e.labels=t}function o2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r2;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function sB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r2;const n={labels:[],datasets:[]};return i2(n,e.labels),o2(n,e.datasets,t),n}function lB(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...h}=e,m=d.useRef(null),y=d.useRef(),v=()=>{m.current&&(y.current=new qf(m.current,{type:a,data:sB(s,o),options:l&&{...l},plugins:c}),tS(t,y.current))},b=()=>{tS(t,null),y.current&&(y.current.destroy(),y.current=null)};return d.useEffect(()=>{!i&&y.current&&l&&aB(y.current,l)},[i,l]),d.useEffect(()=>{!i&&y.current&&i2(y.current.config.data,s.labels)},[i,s.labels]),d.useEffect(()=>{!i&&y.current&&s.datasets&&o2(y.current.config.data,s.datasets,o)},[i,s.datasets]),d.useEffect(()=>{y.current&&(i?(b(),setTimeout(v)):y.current.update(f))},[i,l,s.labels,s.datasets,f]),d.useEffect(()=>{y.current&&(b(),setTimeout(v))},[a]),d.useEffect(()=>(v(),()=>b()),[]),me.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},h),u)}const cB=d.forwardRef(lB);function uB(e,t){return qf.register(t),d.forwardRef((n,r)=>me.createElement(cB,Object.assign({},n,{ref:r,type:e})))}const dB=uB("line",od);function fB({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return Ce.jsx(dB,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{itemSort:(i,o)=>o.parsed.y-i.parsed.y,callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})}const Zd=(e,t,n)=>typeof n=="function"?n(e,t):n,nS=(e,t,n,r)=>{const i=Zd(n,t,r.fixedFee),o=Zd(n,t,r.percentageFee)/100;return e*(1-o)-i},hB=(e,t,n)=>{const i=Zd(t,e,n.annualPercentageFee)/100/12;return e*(1-i)},gB=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[Zd(e,0,e.baseInvestment)],i=[nS(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r*(1-n)}},patria:{name:"Patria",color:"#f59100",fixedFee:0,percentageFee:.8,annualPercentageFee:0},xtb:{name:"xtb",color:"#f73e4a",fixedFee:0,percentageFee:.5,annualPercentageFee:0},t212:{name:"T212",color:"#00a7e1",fixedFee:0,percentageFee:.15,annualPercentageFee:0},ibkr:{name:"IBKR",color:"#d91222",fixedFee:e=>e.numberOfProducts*mB,percentageFee:.03,annualPercentageFee:0},etoro:{name:"eToro",color:"#13c636",fixedFee:0,percentageFee:.75,annualPercentageFee:0},nofees:{name:"0% fees",color:"#d0d0d0",fixedFee:0,percentageFee:0,annualPercentageFee:0}};function pB(){return Ce.jsxs(ji.Footer,{className:"bg-white",children:[Ce.jsx("p",{className:"text-center text-sm text-gray-500 mb-3",children:"Disclaimer: This tool is for illustrative purposes only. The actual returns may vary. The tool does not take into account taxes, inflation, or other factors that may affect the investment. The tool is not investment advice."}),Ce.jsxs("p",{className:"text-center text-sm text-gray-500",children:["Built with"," ",Ce.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",children:["React ",Ce.jsx(cz,{})]})," ","and"," ",Ce.jsxs("a",{href:"https://ant.design/",target:"_blank",rel:"noopener noreferrer",children:["Ant Design ",Ce.jsx(rz,{})]}),"."]})]})}function vB(){return Ce.jsx(ji.Header,{className:"flex bg-white items-center",children:Ce.jsx(Bv,{iconPosition:"end",icon:Ce.jsx(az,{}),href:"https://github.com/sentisso/investment-plan",target:"_blank",className:"ml-auto",children:"See this on GitHub"})})}function yB({currency:e}){const t=(n,r)=>typeof n=="function"?"Dynamic":`${n}${r}`;return Ce.jsxs("div",{className:"mt-14",children:[Ce.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Platform Fees"}),Ce.jsx(Hd,{gutter:16,children:Object.keys(Ho).map(n=>Ce.jsx(mc,{span:6,children:Ce.jsxs(t0,{className:"mb-4",children:[Ce.jsx("h3",{className:"text-lg font-bold",children:Ho[n].name}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Fixed fee:"})," ",t(Ho[n].fixedFee,e)]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Percentage fee:"})," ",t(Ho[n].percentageFee,"%")]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Annual percentage fee:"})," ",t(Ho[n].annualPercentageFee,"% p.a.")]})]})}))}),Ce.jsxs(Hd,{children:[Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Fixed fee:"})," Fee that is charged as a fixed amount for each investment, regardless of the amount invested."]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Percentage fee:"})," Fee that is calculated as a percentage of the investment amount. Usually a currency conversion fee.",Ce.jsx("br",{}),"Example: investing $100 with a 0.75% fee will result in an actual investment of $99.25 after the fee is deducted."]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Annual percentage fee:"})," Fee that is calculated as a percentage of the total portfolio value. Fee is paid monthly as 1/12 of the annual fee.",Ce.jsx("br",{}),"Example: 1.5% p.a. fee will be charged as 0.125% (1.5/12) of the total portfolio value each month."]})]})]})}function bB(){const[e,t]=d.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=d.useState("Kč"),r=d.useMemo(()=>{const o=[];for(const a in Ho){const s=gB(e,Ho[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return Ce.jsxs(ji,{className:"max-w-screen-xl mx-auto bg-white px-3",children:[Ce.jsx(vB,{}),Ce.jsxs(ji.Content,{children:[Ce.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),Ce.jsx(fB,{data:r,currency:n}),Ce.jsxs(ar,{layout:"vertical",children:[Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Base Investment"," ",Ce.jsx(eo,{title:"The one-time investment you plan to make.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Monthly Investment"," ",Ce.jsx(eo,{title:"The amount of money you plan to invest each month.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Average Annual Return"," ",Ce.jsx(eo,{title:"The expected average annual return rate.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Years investing"," ",Ce.jsx(eo,{title:"The number of years you plan to invest. This also affects Portu fees.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsxs(Hd,{children:[Ce.jsx(mc,{span:8,children:Ce.jsx(h4,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),Ce.jsx(mc,{span:4,children:Ce.jsx(Fa,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Number of investment products"," ",Ce.jsx(eo,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]}),Ce.jsx(yB,{currency:n})]}),Ce.jsx(pB,{})]})}var a2={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function f($,T,L){return setTimeout(x($,L),T)}function h($,T,L){return Array.isArray($)?(m($,L[T],L),!0):!1}function m($,T,L){var q;if($)if($.forEach)$.forEach(T,L);else if($.length!==i)for(q=0;q<$.length;)T.call(L,$[q],q,$),q++;else for(q in $)$.hasOwnProperty(q)&&T.call(L,$[q],q,$)}function y($,T,L){var q="DEPRECATED METHOD: "+T+` +`+L+` AT +`;return function(){var ne=new Error("get-stack-trace"),ve=ne&&ne.stack?ne.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",et=t.console&&(t.console.warn||t.console.log);return et&&et.call(t.console,q,ve),$.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(T){if(T===i||T===null)throw new TypeError("Cannot convert undefined or null to object");for(var L=Object(T),q=1;q-1}function M($){return $.trim().split(/\s+/g)}function I($,T,L){if($.indexOf&&!L)return $.indexOf(T);for(var q=0;q<$.length;){if(L&&$[q][L]==T||!L&&$[q]===T)return q;q++}return-1}function k($){return Array.prototype.slice.call($,0)}function F($,T,L){for(var q=[],ne=[],ve=0;ve<$.length;){var et=$[ve][T];I(ne,et)<0&&q.push($[ve]),ne[ve]=et,ve++}return q=q.sort(function(nn,$t){return nn[T]>$t[T]}),q}function j($,T){for(var L,q,ne=T[0].toUpperCase()+T.slice(1),ve=0;ve1&&!L.firstMultiple?L.firstMultiple=Ve(T):ne===1&&(L.firstMultiple=!1);var ve=L.firstInput,et=L.firstMultiple,sn=et?et.center:ve.center,nn=T.center=Be(q);T.timeStamp=u(),T.deltaTime=T.timeStamp-ve.timeStamp,T.angle=ct(sn,nn),T.distance=We(sn,nn),Fe(L,T),T.offsetDirection=He(T.deltaX,T.deltaY);var $t=De(T.deltaTime,T.deltaX,T.deltaY);T.overallVelocityX=$t.x,T.overallVelocityY=$t.y,T.overallVelocity=c($t.x)>c($t.y)?$t.x:$t.y,T.scale=et?Ge(et.pointers,q):1,T.rotation=et?ht(et.pointers,q):0,T.maxPointers=L.prevInput?T.pointers.length>L.prevInput.maxPointers?T.pointers.length:L.prevInput.maxPointers:T.pointers.length,Se(L,T);var On=$.element;_(T.srcEvent.target,On)&&(On=T.srcEvent.target),T.target=On}function Fe($,T){var L=T.center,q=$.offsetDelta||{},ne=$.prevDelta||{},ve=$.prevInput||{};(T.eventType===U||ve.eventType===J)&&(ne=$.prevDelta={x:ve.deltaX||0,y:ve.deltaY||0},q=$.offsetDelta={x:L.x,y:L.y}),T.deltaX=ne.x+(L.x-q.x),T.deltaY=ne.y+(L.y-q.y)}function Se($,T){var L=$.lastInterval||T,q=T.timeStamp-L.timeStamp,ne,ve,et,sn;if(T.eventType!=re&&(q>ee||L.velocity===i)){var nn=T.deltaX-L.deltaX,$t=T.deltaY-L.deltaY,On=De(q,nn,$t);ve=On.x,et=On.y,ne=c(On.x)>c(On.y)?On.x:On.y,sn=He(nn,$t),$.lastInterval=T}else ne=L.velocity,ve=L.velocityX,et=L.velocityY,sn=L.direction;T.velocity=ne,T.velocityX=ve,T.velocityY=et,T.direction=sn}function Ve($){for(var T=[],L=0;L<$.pointers.length;)T[L]={clientX:l($.pointers[L].clientX),clientY:l($.pointers[L].clientY)},L++;return{timeStamp:u(),pointers:T,center:Be(T),deltaX:$.deltaX,deltaY:$.deltaY}}function Be($){var T=$.length;if(T===1)return{x:l($[0].clientX),y:l($[0].clientY)};for(var L=0,q=0,ne=0;ne=c(T)?$<0?he:xe:T<0?ie:de}function We($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.sqrt(q*q+ne*ne)}function ct($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.atan2(ne,q)*180/Math.PI}function ht($,T){return ct(T[1],T[0],$e)+ct($[1],$[0],$e)}function Ge($,T){return We(T[0],T[1],$e)/We($[0],$[1],$e)}var Ct={mousedown:U,mousemove:Y,mouseup:J},kt="mousedown",Et="mousemove mouseup";function gt(){this.evEl=kt,this.evWin=Et,this.pressed=!1,ue.apply(this,arguments)}g(gt,ue,{handler:function(T){var L=Ct[T.type];L&U&&T.button===0&&(this.pressed=!0),L&Y&&T.which!==1&&(L=J),this.pressed&&(L&J&&(this.pressed=!1),this.callback(this.manager,L,{pointers:[T],changedPointers:[T],pointerType:W,srcEvent:T}))}});var xn={pointerdown:U,pointermove:Y,pointerup:J,pointercancel:re,pointerout:re},vt={2:G,3:X,4:W,5:K},_t="pointerdown",Me="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(_t="MSPointerDown",Me="MSPointerMove MSPointerUp MSPointerCancel");function fe(){this.evEl=_t,this.evWin=Me,ue.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}g(fe,ue,{handler:function(T){var L=this.store,q=!1,ne=T.type.toLowerCase().replace("ms",""),ve=xn[ne],et=vt[T.pointerType]||T.pointerType,sn=et==G,nn=I(L,T.pointerId,"pointerId");ve&U&&(T.button===0||sn)?nn<0&&(L.push(T),nn=L.length-1):ve&(J|re)&&(q=!0),!(nn<0)&&(L[nn]=T,this.callback(this.manager,ve,{pointers:L,changedPointers:[T],pointerType:et,srcEvent:T}),q&&L.splice(nn,1))}});var Re={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},Ie="touchstart",ze="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=Ie,this.evWin=ze,this.started=!1,ue.apply(this,arguments)}g(Ee,ue,{handler:function(T){var L=Re[T.type];if(L===U&&(this.started=!0),!!this.started){var q=_e.call(this,T,L);L&(J|re)&&q[0].length-q[1].length===0&&(this.started=!1),this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}}});function _e($,T){var L=k($.touches),q=k($.changedTouches);return T&(J|re)&&(L=F(L.concat(q),"identifier")),[L,q]}var pe={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},ut="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=ut,this.targetIds={},ue.apply(this,arguments)}g(Nt,ue,{handler:function(T){var L=pe[T.type],q=mt.call(this,T,L);q&&this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}});function mt($,T){var L=k($.touches),q=this.targetIds;if(T&(U|Y)&&L.length===1)return q[L[0].identifier]=!0,[L,L];var ne,ve,et=k($.changedTouches),sn=[],nn=this.target;if(ve=L.filter(function($t){return _($t.target,nn)}),T===U)for(ne=0;ne-1&&q.splice(ve,1)};setTimeout(ne,nt)}}function Xn($){for(var T=$.srcEvent.clientX,L=$.srcEvent.clientY,q=0;q-1&&this.requireFail.splice(T,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function($){return!!this.simultaneous[$.id]},emit:function($){var T=this,L=this.state;function q(ne){T.manager.emit(ne,$)}L=Bt&&q(T.options.event+Yt(L))},tryEmit:function($){if(this.canEmit())return this.emit($);this.state=Dt},canEmit:function(){for(var $=0;$T.threshold&&ne&T.direction},attrTest:function($){return Vt.prototype.attrTest.call(this,$)&&(this.state&qe||!(this.state&qe)&&this.directionTest($))},emit:function($){this.pX=$.deltaX,this.pY=$.deltaY;var T=nr($.direction);T&&($.additionalEvent=this.options.event+T),this._super.emit.call(this,$)}});function _r(){Vt.apply(this,arguments)}g(_r,Vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.scale-1)>this.options.threshold||this.state&qe)},emit:function($){if($.scale!==1){var T=$.scale<1?"in":"out";$.additionalEvent=this.options.event+T}this._super.emit.call(this,$)}});function $r(){Rt.apply(this,arguments),this._timer=null,this._input=null}g($r,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distanceT.time;if(this._input=$,!q||!L||$.eventType&(J|re)&&!ne)this.reset();else if($.eventType&U)this.reset(),this._timer=f(function(){this.state=Lt,this.tryEmit()},T.time,this);else if($.eventType&J)return Lt;return Dt},reset:function(){clearTimeout(this._timer)},emit:function($){this.state===Lt&&($&&$.eventType&J?this.manager.emit(this.options.event+"up",$):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Bn(){Vt.apply(this,arguments)}g(Bn,Vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.rotation)>this.options.threshold||this.state&qe)}});function Ci(){Vt.apply(this,arguments)}g(Ci,Vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ye|be,pointers:1},getTouchAction:function(){return $n.prototype.getTouchAction.call(this)},attrTest:function($){var T=this.options.direction,L;return T&(ye|be)?L=$.overallVelocity:T&ye?L=$.overallVelocityX:T&be&&(L=$.overallVelocityY),this._super.attrTest.call(this,$)&&T&$.offsetDirection&&$.distance>this.options.threshold&&$.maxPointers==this.options.pointers&&c(L)>this.options.velocity&&$.eventType&J},emit:function($){var T=nr($.offsetDirection);T&&this.manager.emit(this.options.event+T,$),this.manager.emit(this.options.event,$)}});function xt(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}g(xt,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[jt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distancee&&e.enabled&&e.modifierKey,s2=(e,t)=>e&&t[e+"Key"],C0=(e,t)=>e&&!t[e+"Key"];function _o(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function lg(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function SB(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function CB({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function l2(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=CB(t,n),s=lg(r,n),l=lg(i,n);if(o){const u=lg(o,n);for(const f of["x","y"])u[f]&&(l[f]=s[f],s[f]=!1)}if(a&&l[a.axis])return[a];const c=[];return at(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const vp=new WeakMap;function fn(e){let t=vp.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},vp.set(e,t)),t}function wB(e){vp.delete(e)}function c2(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function rS(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=it(a.options,a.scale)}return it(o,i)}function EB(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function Fs(e,{min:t,max:n},r,i=!1){const o=fn(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,f=rS(o,e,c,"min",-1/0),h=rS(o,e,c,"max",1/0),m=i?Math.max(n-t,u):e.max-e.min,y=(m-n+t)/2;return t-=y,n+=y,th&&(n=h,t=Math.max(h-m,f)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function _B(e,t,n,r){const i=c2(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return Fs(e,o,r,!0)}function $B(e,t,n,r){Fs(e,EB(e,t,n),r,!0)}const iS=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function OB(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),Fs(e,{min:o,max:a},n)||u}const RB={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function u2(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=RB[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:f=-1/0,max:h=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||ch?!0:Fs(e,{min:c,max:u},n,r)}function oS(e,t,n){return u2(e,t,n,!0)}const yp={category:PB,default:_B},bp={default:$B},xp={category:TB,default:u2,logarithmic:oS,timeseries:oS};function IB(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function aS(e,t){at(e,(n,r)=>{t[r]||delete e[r]})}function As(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return at(n,function(o){IB(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),aS(r,n),aS(i,n),r}function sS(e,t,n,r){const i=yp[e.type]||yp.default;Xe(i,[e,t,n,r])}function lS(e,t,n,r,i){const o=bp[e.type]||bp.default;Xe(o,[e,t,n,r,i])}function kB(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function w0(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=kB(e)}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{limits:s,zoom:l}}=a;As(e,a);const c=r!==1,u=i!==1,f=l2(l,o,e);at(f||e.scales,function(h){h.isHorizontal()&&c?sS(h,r,o,s):!h.isHorizontal()&&u&&sS(h,i,o,s)}),e.update(n),Xe(l.onZoom,[{chart:e}])}function d2(e,t,n,r="none"){const i=fn(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;As(e,i);const l=_o(s,"x",e),c=_o(s,"y",e);at(e.scales,function(u){u.isHorizontal()&&l?lS(u,t.x,n.x,o):!u.isHorizontal()&&c&&lS(u,t.y,n.y,o)}),e.update(r),Xe(a.onZoom,[{chart:e}])}function NB(e,t,n,r="none"){As(e,fn(e));const i=e.scales[t];Fs(i,n,void 0,!0),e.update(r)}function FB(e,t="default"){const n=fn(e),r=As(e,n);at(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Xe(n.options.zoom.onZoomComplete,[{chart:e}])}function AB(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return it(i.options,i.scale)-it(r.options,r.scale)}function LB(e){const t=fn(e);let n=1,r=1;return at(e.scales,function(i){const o=AB(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function cS(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;Eo(o)===Eo(t)&&(t+=o);const a=xp[e.type]||xp.default;Xe(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function f2(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};As(e,a);const u=i!==0,f=o!==0;at(n||e.scales,function(h){h.isHorizontal()&&u?cS(h,i,l,a):!h.isHorizontal()&&f&&cS(h,o,l,a)}),e.update(r),Xe(c,[{chart:e}])}function h2(e){const t=fn(e);As(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function DB(e){const t=h2(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function sr(e,t){const{handlers:n}=fn(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function Al(e,t,n,r){const{handlers:i,options:o}=fn(e),a=i[n];a&&a.target===t||(sr(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function zB(e,t){const n=fn(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function jB(e,t){const n=fn(e);!n.dragStart||t.key!=="Escape"||(sr(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function g2(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=mi(t,e);if(Xe(r,[{chart:e,event:t,point:o}])===!1)return Xe(i,[{chart:e,event:t}]),!1}}function BB(e,t){const n=fn(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||s2(Cc(r),t)||C0(Cc(i.drag),t))return Xe(i.onZoomRejected,[{chart:e,event:t}]);g2(e,t,i)!==!1&&(n.dragStart=t,Al(e,e.canvas,"mousemove",zB),Al(e,window.document,"keydown",jB))}function m2(e,t,n,r){const i=_o(t,"x",e),o=_o(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:f}=e.chartArea;const h=mi(n,e),m=mi(r,e);i&&(s=Math.min(h.x,m.x),l=Math.max(h.x,m.x)),o&&(a=Math.min(h.y,m.y),c=Math.max(h.y,m.y));const y=l-s,v=c-a;return{left:s,top:a,right:l,bottom:c,width:y,height:v,zoomX:i&&y?1+(u-y)/u:1,zoomY:o&&v?1+(f-v)/f:1}}function HB(e,t){const n=fn(e);if(!n.dragStart)return;sr(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=m2(e,r,n.dragStart,t),s=_o(r,"x",e)?a.width:0,l=_o(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}d2(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Xe(i,[{chart:e}])}function VB(e,t,n){if(C0(Cc(n.wheel),t)){Xe(n.onZoomRejected,[{chart:e,event:t}]);return}if(g2(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function WB(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=fn(e);if(!VB(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};w0(e,a),n&&n()}function UB(e,t,n,r){n&&(fn(e).handlers[t]=SB(()=>Xe(n,[{chart:e}]),r))}function GB(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(Al(e,n,"wheel",WB),UB(e,"onZoomComplete",o,250)):sr(e,"wheel"),i.enabled?(Al(e,n,"mousedown",BB),Al(e,n.ownerDocument,"mouseup",HB)):(sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"keydown"))}function KB(e){sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"wheel"),sr(e,"click"),sr(e,"keydown")}function qB(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(C0(Cc(i),a)||s2(Cc(o.drag),a))?(Xe(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function XB(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function p2(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=XB(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&_o(l,"x",e)?o:1,y:s.y&&_o(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};w0(e,c),t.scale=n.scale}}function YB(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function QB(e,t,n){t.scale&&(p2(e,t,n),t.scale=null,Xe(t.options.zoom.onZoomComplete,[{chart:e}]))}function v2(e,t,n){const r=t.delta;r&&(t.panning=!0,f2(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function ZB(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Xe(i,[{chart:e,event:n,point:s}])===!1)return Xe(o,[{chart:e,event:n}]);t.panScales=l2(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),v2(e,t,n)}function JB(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Xe(t.options.pan.onPanComplete,[{chart:e}]))}const Sp=new WeakMap;function eH(e,t){const n=fn(e),r=e.canvas,{pan:i,zoom:o}=t,a=new Fl.Manager(r);o&&o.pinch.enabled&&(a.add(new Fl.Pinch),a.on("pinchstart",()=>YB(e,n)),a.on("pinch",s=>p2(e,n,s)),a.on("pinchend",s=>QB(e,n,s))),i&&i.enabled&&(a.add(new Fl.Pan({threshold:i.threshold,enable:qB(e,n)})),a.on("panstart",s=>ZB(e,n,s)),a.on("panmove",s=>v2(e,n,s)),a.on("panend",()=>JB(e,n))),Sp.set(e,a)}function tH(e){const t=Sp.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),Sp.delete(e))}var nH="2.0.1";function ku(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=fn(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=m2(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var rH={id:"zoom",version:nH,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=fn(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),Fl&&eH(e,n),e.pan=(i,o,a)=>f2(e,i,o,a),e.zoom=(i,o)=>w0(e,i,o),e.zoomRect=(i,o,a)=>d2(e,i,o,a),e.zoomScale=(i,o,a)=>NB(e,i,o,a),e.resetZoom=i=>FB(e,i),e.getZoomLevel=()=>LB(e),e.getInitialScaleBounds=()=>h2(e),e.isZoomedOrPanned=()=>DB(e)},beforeEvent(e){const t=fn(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=fn(e);r.options=n,GB(e,n)},beforeDatasetsDraw(e,t,n){ku(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){ku(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){ku(e,"beforeDraw",n)},afterDraw(e,t,n){ku(e,"afterDraw",n)},stop:function(e){KB(e),Fl&&tH(e),wB(e)},panFunctions:xp,zoomFunctions:yp,zoomRectFunctions:bp};qf.register(mp,pp,ld,fl,V6,Q6,B6,rH);ww(document.getElementById("root")).render(Ce.jsx(d.StrictMode,{children:Ce.jsx(bB,{})})); diff --git a/assets/index-DIy-qacd.js b/assets/index-DIy-qacd.js deleted file mode 100644 index 61bbf73..0000000 --- a/assets/index-DIy-qacd.js +++ /dev/null @@ -1,247 +0,0 @@ -var k_=Object.defineProperty;var I_=(e,t,n)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>I_(e,typeof t!="symbol"?t+"":t,n);function G1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q1={exports:{}},Sd={},X1={exports:{}},Ue={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jl=Symbol.for("react.element"),F_=Symbol.for("react.portal"),N_=Symbol.for("react.fragment"),A_=Symbol.for("react.strict_mode"),L_=Symbol.for("react.profiler"),D_=Symbol.for("react.provider"),z_=Symbol.for("react.context"),j_=Symbol.for("react.forward_ref"),H_=Symbol.for("react.suspense"),B_=Symbol.for("react.memo"),V_=Symbol.for("react.lazy"),Ev=Symbol.iterator;function W_(e){return e===null||typeof e!="object"?null:(e=Ev&&e[Ev]||e["@@iterator"],typeof e=="function"?e:null)}var K1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y1=Object.assign,Q1={};function as(e,t,n){this.props=e,this.context=t,this.refs=Q1,this.updater=n||K1}as.prototype.isReactComponent={};as.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};as.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z1(){}Z1.prototype=as.prototype;function Mp(e,t,n){this.props=e,this.context=t,this.refs=Q1,this.updater=n||K1}var Tp=Mp.prototype=new Z1;Tp.constructor=Mp;Y1(Tp,as.prototype);Tp.isPureReactComponent=!0;var _v=Array.isArray,J1=Object.prototype.hasOwnProperty,Pp={current:null},ex={key:!0,ref:!0,__self:!0,__source:!0};function tx(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)J1.call(t,r)&&!ex.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,G=$[H];if(0>>1;Hi(X,A))eei(q,X)?($[H]=q,$[ee]=A,H=ee):($[H]=X,$[U]=A,H=U);else if(eei(q,A))$[H]=q,$[ee]=A,H=ee;else break e}}return I}function i($,I){var A=$.sortIndex-I.sortIndex;return A!==0?A:$.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,v=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=$)r(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function S($){if(y=!1,x($),!v)if(n(l)!==null)v=!0,N(w);else{var I=n(c);I!==null&&R(S,I.startTime-$)}}function w($,I){v=!1,y&&(y=!1,m(M),M=-1),p=!0;var A=f;try{for(x(I),d=n(l);d!==null&&(!(d.expirationTime>I)||$&&!F());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var G=H(d.expirationTime<=I);I=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),x(I)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var U=n(c);U!==null&&R(S,U.startTime-I),Y=!1}return Y}finally{d=null,f=A,p=!1}}var C=!1,_=null,M=-1,T=5,P=-1;function F(){return!(e.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var A=f;f=I;try{return $()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,I){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var A=f;f=$;try{return I()}finally{f=A}},e.unstable_scheduleCallback=function($,I,A){var H=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0H?($.sortIndex=A,t(c,$),n(l)===null&&$===n(c)&&(y?(m(M),M=-1):y=!0,R(S,A-H))):($.sortIndex=G,t(l,$),v||p||(v=!0,N(w))),$},e.unstable_shouldYield=F,e.unstable_wrapCallback=function($){var I=f;return function(){var A=f;f=I;try{return $.apply(this,arguments)}finally{f=A}}}})(ax);ox.exports=ax;var t2=ox.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n2=h,ar=t2;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xh=Object.prototype.hasOwnProperty,r2=/^[: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]*$/,Mv={},Tv={};function i2(e){return xh.call(Tv,e)?!0:xh.call(Mv,e)?!1:r2.test(e)?Tv[e]=!0:(Mv[e]=!0,!1)}function o2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function a2(e,t,n,r){if(t===null||typeof t>"u"||o2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xn[e]=new zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xn[t]=new zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xn[e]=new zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xn[e]=new zn(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){xn[e]=new zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xn[e]=new zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xn[e]=new zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xn[e]=new zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xn[e]=new zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rp=/[\-:]([a-z])/g;function kp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Rp,kp);xn[t]=new zn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rp,kp);xn[t]=new zn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rp,kp);xn[t]=new zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xn[e]=new zn(e,1,!1,e.toLowerCase(),null,!1,!1)});xn.xlinkHref=new zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xn[e]=new zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ip(e,t,n,r){var i=xn.hasOwnProperty(t)?xn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{gf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?As(e):""}function s2(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=pf(e.type,!1),e;case 11:return e=pf(e.type.render,!1),e;case 1:return e=pf(e.type,!0),e;default:return""}}function Eh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sa:return"Fragment";case xa:return"Portal";case Sh:return"Profiler";case Fp:return"StrictMode";case wh:return"Suspense";case Ch:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cx:return(e.displayName||"Context")+".Consumer";case lx:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ap:return t=e.displayName||null,t!==null?t:Eh(e.type)||"Memo";case Li:t=e._payload,e=e._init;try{return Eh(e(t))}catch{}}return null}function l2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Eh(t);case 8:return t===Fp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c2(e){var t=dx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){e._valueTracker||(e._valueTracker=c2(e))}function fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ru(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _h(e,t){var n=t.checked;return $t({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $v(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=io(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hx(e,t){t=t.checked,t!=null&&Ip(e,"checked",t,!1)}function Oh(e,t){hx(e,t);var n=io(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Mh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mh(e,t.type,io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Mh(e,t,n){(t!=="number"||Ru(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ls=Array.isArray;function Aa(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gs={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},u2=["Webkit","ms","Moz","O"];Object.keys(Gs).forEach(function(e){u2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gs[t]=Gs[e]})});function vx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gs.hasOwnProperty(e)&&Gs[e]?(""+t).trim():t+"px"}function yx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var d2=$t({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 $h(e,t){if(t){if(d2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function Rh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kh=null;function Lp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ih=null,La=null,Da=null;function Fv(e){if(e=nc(e)){if(typeof Ih!="function")throw Error(J(280));var t=e.stateNode;t&&(t=Md(t),Ih(e.stateNode,e.type,t))}}function bx(e){La?Da?Da.push(e):Da=[e]:La=e}function xx(){if(La){var e=La,t=Da;if(Da=La=null,Fv(e),t)for(e=0;e>>=0,e===0?32:31-(w2(e)/C2|0)|0}var yc=64,bc=4194304;function Ds(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Ds(s):(o&=a,o!==0&&(r=Ds(o)))}else a=n&~i,a!==0?r=Ds(a):o!==0&&(r=Ds(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wr(t),e[t]=n}function M2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xs),Vv=" ",Wv=!1;function jx(e,t){switch(e){case"keyup":return tO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function rO(e,t){switch(e){case"compositionend":return Hx(t);case"keypress":return t.which!==32?null:(Wv=!0,Vv);case"textInput":return e=t.data,e===Vv&&Wv?null:e;default:return null}}function iO(e,t){if(wa)return e==="compositionend"||!Up&&jx(e,t)?(e=Dx(),cu=Bp=Bi=null,wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xv(n)}}function Ux(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ux(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gx(){for(var e=window,t=Ru();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ru(e.document)}return t}function Gp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hO(e){var t=Gx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ux(n.ownerDocument.documentElement,n)){if(r!==null&&Gp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Kv(n,o);var a=Kv(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ca=null,zh=null,Ys=null,jh=!1;function Yv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jh||Ca==null||Ca!==Ru(r)||(r=Ca,"selectionStart"in r&&Gp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ys&&wl(Ys,r)||(Ys=r,r=Du(zh,"onSelect"),0Oa||(e.current=Gh[Oa],Gh[Oa]=null,Oa--)}function pt(e,t){Oa++,Gh[Oa]=e.current,e.current=t}var oo={},Pn=uo(oo),Kn=uo(!1),Ho=oo;function Ua(e,t){var n=e.type.contextTypes;if(!n)return oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yn(e){return e=e.childContextTypes,e!=null}function ju(){vt(Kn),vt(Pn)}function r0(e,t,n){if(Pn.current!==oo)throw Error(J(168));pt(Pn,t),pt(Kn,n)}function tS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(J(108,l2(e)||"Unknown",i));return $t({},n,r)}function Hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oo,Ho=Pn.current,pt(Pn,e),pt(Kn,Kn.current),!0}function i0(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=tS(e,t,Ho),r.__reactInternalMemoizedMergedChildContext=e,vt(Kn),vt(Pn),pt(Pn,e)):vt(Kn),pt(Kn,n)}var vi=null,Td=!1,Pf=!1;function nS(e){vi===null?vi=[e]:vi.push(e)}function _O(e){Td=!0,nS(e)}function fo(){if(!Pf&&vi!==null){Pf=!0;var e=0,t=st;try{var n=vi;for(st=1;e>=a,i-=a,bi=1<<32-Wr(t)+i|n<M?(T=_,_=null):T=_.sibling;var P=f(m,_,x[M],S);if(P===null){_===null&&(_=T);break}e&&_&&P.alternate===null&&t(m,_),g=o(P,g,M),C===null?w=P:C.sibling=P,C=P,_=T}if(M===x.length)return n(m,_),St&&Eo(m,M),w;if(_===null){for(;MM?(T=_,_=null):T=_.sibling;var F=f(m,_,P.value,S);if(F===null){_===null&&(_=T);break}e&&_&&F.alternate===null&&t(m,_),g=o(F,g,M),C===null?w=F:C.sibling=F,C=F,_=T}if(P.done)return n(m,_),St&&Eo(m,M),w;if(_===null){for(;!P.done;M++,P=x.next())P=d(m,P.value,S),P!==null&&(g=o(P,g,M),C===null?w=P:C.sibling=P,C=P);return St&&Eo(m,M),w}for(_=r(m,_);!P.done;M++,P=x.next())P=p(_,m,M,P.value,S),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?M:P.key),g=o(P,g,M),C===null?w=P:C.sibling=P,C=P);return e&&_.forEach(function(D){return t(m,D)}),St&&Eo(m,M),w}function b(m,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Sa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case pc:e:{for(var w=x.key,C=g;C!==null;){if(C.key===w){if(w=x.type,w===Sa){if(C.tag===7){n(m,C.sibling),g=i(C,x.props.children),g.return=m,m=g;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Li&&s0(w)===C.type){n(m,C.sibling),g=i(C,x.props),g.ref=_s(m,C,x),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}x.type===Sa?(g=Lo(x.props.children,m.mode,S,x.key),g.return=m,m=g):(S=vu(x.type,x.key,x.props,null,m.mode,S),S.ref=_s(m,g,x),S.return=m,m=S)}return a(m);case xa:e:{for(C=x.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),g=i(g,x.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Lf(x,m.mode,S),g.return=m,m=g}return a(m);case Li:return C=x._init,b(m,g,C(x._payload),S)}if(Ls(x))return v(m,g,x,S);if(xs(x))return y(m,g,x,S);Oc(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,x),g.return=m,m=g):(n(m,g),g=Af(x,m.mode,S),g.return=m,m=g),a(m)):n(m,g)}return b}var qa=aS(!0),sS=aS(!1),Wu=uo(null),Uu=null,Pa=null,Yp=null;function Qp(){Yp=Pa=Uu=null}function Zp(e){var t=Wu.current;vt(Wu),e._currentValue=t}function Kh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ja(e,t){Uu=e,Yp=Pa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xn=!0),e.firstContext=null)}function _r(e){var t=e._currentValue;if(Yp!==e)if(e={context:e,memoizedValue:t,next:null},Pa===null){if(Uu===null)throw Error(J(308));Pa=e,Uu.dependencies={lanes:0,firstContext:e}}else Pa=Pa.next=e;return t}var Po=null;function Jp(e){Po===null?Po=[e]:Po.push(e)}function lS(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Jp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Di=!1;function em(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cS(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 Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ji(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oi(e,n)}return i=r.interleaved,i===null?(t.next=t,Jp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oi(e,n)}function du(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zp(e,n)}}function l0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gu(e,t,n,r){var i=e.updateQueue;Di=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(f=t,p=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(p,d,f):v,f==null)break e;d=$t({},d,f);break e;case 2:Di=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Wo|=a,e.lanes=a,e.memoizedState=d}}function c0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rf.transition;Rf.transition={};try{e(!1),t()}finally{st=n,Rf.transition=r}}function OS(){return Or().memoizedState}function PO(e,t,n){var r=to(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MS(e))TS(t,n);else if(n=lS(e,t,n,r),n!==null){var i=An();Ur(n,e,r,i),PS(n,t,r)}}function $O(e,t,n){var r=to(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MS(e))TS(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Xr(s,a)){var l=t.interleaved;l===null?(i.next=i,Jp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=lS(e,t,i,r),n!==null&&(i=An(),Ur(n,e,r,i),PS(n,t,r))}}function MS(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function TS(e,t){Qs=Xu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function PS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zp(e,n)}}var Ku={readContext:_r,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},RO={readContext:_r,useCallback:function(e,t){return ti().memoizedState=[e,t===void 0?null:t],e},useContext:_r,useEffect:d0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hu(4194308,4,SS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return hu(4,2,e,t)},useMemo:function(e,t){var n=ti();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ti();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=PO.bind(null,Pt,e),[r.memoizedState,e]},useRef:function(e){var t=ti();return e={current:e},t.memoizedState=e},useState:u0,useDebugValue:lm,useDeferredValue:function(e){return ti().memoizedState=e},useTransition:function(){var e=u0(!1),t=e[0];return e=TO.bind(null,e[1]),ti().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pt,i=ti();if(St){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),un===null)throw Error(J(349));Vo&30||hS(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,d0(pS.bind(null,r,o,e),[e]),r.flags|=2048,$l(9,gS.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ti(),t=un.identifierPrefix;if(St){var n=xi,r=bi;n=(r&~(1<<32-Wr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[oi]=t,e[_l]=r,zS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rh(n,r),n){case"dialog":mt("cancel",e),mt("close",e),i=r;break;case"iframe":case"object":case"embed":mt("load",e),i=r;break;case"video":case"audio":for(i=0;iYa&&(t.flags|=128,r=!0,Os(o,!1),t.lanes=4194304)}else{if(!r)if(e=qu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Os(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!St)return En(t),null}else 2*Ht()-o.renderingStartTime>Ya&&n!==1073741824&&(t.flags|=128,r=!0,Os(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ht(),t.sibling=null,n=Tt.current,pt(Tt,r?n&1|2:n&1),t):(En(t),null);case 22:case 23:return gm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(En(t),t.subtreeFlags&6&&(t.flags|=8192)):En(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function zO(e,t){switch(Xp(t),t.tag){case 1:return Yn(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(),vt(Kn),vt(Pn),rm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nm(t),null;case 13:if(vt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(Tt),null;case 4:return Xa(),null;case 10:return Zp(t.type._context),null;case 22:case 23:return gm(),null;case 24:return null;default:return null}}var Tc=!1,On=!1,jO=typeof WeakSet=="function"?WeakSet:Set,ue=null;function $a(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nt(e,t,r)}else n.current=null}function ig(e,t,n){try{n()}catch(r){Nt(e,t,r)}}var w0=!1;function HO(e,t){if(Hh=Au,e=Gx(),Gp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bh={focusedElem:e,selectionRange:n},Au=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,b=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Lr(t.type,y),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(S){Nt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return v=w0,w0=!1,v}function Zs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ig(t,n,o)}i=i.next}while(i!==r)}}function Rd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function og(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function BS(e){var t=e.alternate;t!==null&&(e.alternate=null,BS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[_l],delete t[Uh],delete t[CO],delete t[EO])),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 VS(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ag(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zu));else if(r!==4&&(e=e.child,e!==null))for(ag(e,t,n),e=e.sibling;e!==null;)ag(e,t,n),e=e.sibling}function sg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sg(e,t,n),e=e.sibling;e!==null;)sg(e,t,n),e=e.sibling}var pn=null,Dr=!1;function ki(e,t,n){for(n=n.child;n!==null;)WS(e,t,n),n=n.sibling}function WS(e,t,n){if(si&&typeof si.onCommitFiberUnmount=="function")try{si.onCommitFiberUnmount(Cd,n)}catch{}switch(n.tag){case 5:On||$a(n,t);case 6:var r=pn,i=Dr;pn=null,ki(e,t,n),pn=r,Dr=i,pn!==null&&(Dr?(e=pn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pn.removeChild(n.stateNode));break;case 18:pn!==null&&(Dr?(e=pn,n=n.stateNode,e.nodeType===8?Tf(e.parentNode,n):e.nodeType===1&&Tf(e,n),xl(e)):Tf(pn,n.stateNode));break;case 4:r=pn,i=Dr,pn=n.stateNode.containerInfo,Dr=!0,ki(e,t,n),pn=r,Dr=i;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&ig(n,t,a),i=i.next}while(i!==r)}ki(e,t,n);break;case 1:if(!On&&($a(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nt(n,t,s)}ki(e,t,n);break;case 21:ki(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,ki(e,t,n),On=r):ki(e,t,n);break;default:ki(e,t,n)}}function E0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jO),t.forEach(function(r){var i=YO.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VO(r/1960))-r,10e?16:e,Vi===null)var r=!1;else{if(e=Vi,Vi=null,Zu=0,et&6)throw Error(J(331));var i=et;for(et|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lHt()-fm?Ao(e,0):dm|=n),Qn(e,t)}function ZS(e,t){t===0&&(e.mode&1?(t=bc,bc<<=1,!(bc&130023424)&&(bc=4194304)):t=1);var n=An();e=Oi(e,t),e!==null&&(ec(e,t,n),Qn(e,n))}function KO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ZS(e,n)}function YO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),ZS(e,n)}var JS;JS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)Xn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xn=!1,LO(e,t,n);Xn=!!(e.flags&131072)}else Xn=!1,St&&t.flags&1048576&&rS(t,Vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gu(e,t),e=t.pendingProps;var i=Ua(t,Pn.current);ja(t,n),i=om(null,t,r,e,i,n);var o=am();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yn(r)?(o=!0,Hu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,em(t),i.updater=$d,t.stateNode=i,i._reactInternals=t,Qh(t,r,e,n),t=eg(null,t,r,!0,o,n)):(t.tag=0,St&&o&&qp(t),Nn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ZO(r),e=Lr(r,e),i){case 0:t=Jh(null,t,r,e,n);break e;case 1:t=b0(null,t,r,e,n);break e;case 11:t=v0(null,t,r,e,n);break e;case 14:t=y0(null,t,r,Lr(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),Jh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),b0(e,t,r,i,n);case 3:e:{if(AS(t),e===null)throw Error(J(387));r=t.pendingProps,o=t.memoizedState,i=o.element,cS(e,t),Gu(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ka(Error(J(423)),t),t=x0(e,t,r,n,i);break e}else if(r!==i){i=Ka(Error(J(424)),t),t=x0(e,t,r,n,i);break e}else for(rr=Zi(t.stateNode.containerInfo.firstChild),or=t,St=!0,Hr=null,n=sS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ga(),r===i){t=Mi(e,t,n);break e}Nn(e,t,r,n)}t=t.child}return t;case 5:return uS(t),e===null&&Xh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Vh(r,i)?a=null:o!==null&&Vh(r,o)&&(t.flags|=32),NS(e,t),Nn(e,t,a,n),t.child;case 6:return e===null&&Xh(t),null;case 13:return LS(e,t,n);case 4:return tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qa(t,null,r,n):Nn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),v0(e,t,r,i,n);case 7:return Nn(e,t,t.pendingProps,n),t.child;case 8:return Nn(e,t,t.pendingProps.children,n),t.child;case 12:return Nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,pt(Wu,r._currentValue),r._currentValue=a,o!==null)if(Xr(o.value,a)){if(o.children===i.children&&!Kn.current){t=Mi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Si(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Kh(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(J(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Kh(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Nn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ja(t,n),i=_r(i),r=r(i),t.flags|=1,Nn(e,t,r,n),t.child;case 14:return r=t.type,i=Lr(r,t.pendingProps),i=Lr(r.type,i),y0(e,t,r,i,n);case 15:return IS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),gu(e,t),t.tag=1,Yn(r)?(e=!0,Hu(t)):e=!1,ja(t,n),$S(t,r,i),Qh(t,r,i,n),eg(null,t,r,!0,e,n);case 19:return DS(e,t,n);case 22:return FS(e,t,n)}throw Error(J(156,t.tag))};function ew(e,t){return Mx(e,t)}function QO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(e,t,n,r){return new QO(e,t,n,r)}function mm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZO(e){if(typeof e=="function")return mm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Ap)return 14}return 2}function no(e,t){var n=e.alternate;return n===null?(n=Sr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vu(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")mm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Sa:return Lo(n.children,i,o,t);case Fp:a=8,i|=8;break;case Sh:return e=Sr(12,n,t,i|2),e.elementType=Sh,e.lanes=o,e;case wh:return e=Sr(13,n,t,i),e.elementType=wh,e.lanes=o,e;case Ch:return e=Sr(19,n,t,i),e.elementType=Ch,e.lanes=o,e;case ux:return Id(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lx:a=10;break e;case cx:a=9;break e;case Np:a=11;break e;case Ap:a=14;break e;case Li:a=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=Sr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Lo(e,t,n,r){return e=Sr(7,e,r,t),e.lanes=n,e}function Id(e,t,n,r){return e=Sr(22,e,r,t),e.elementType=ux,e.lanes=n,e.stateNode={isHidden:!1},e}function Af(e,t,n){return e=Sr(6,e,null,t),e.lanes=n,e}function Lf(e,t,n){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JO(e,t,n,r,i){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=vf(0),this.expirationTimes=vf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vm(e,t,n,r,i,o,a,s,l){return e=new JO(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Sr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(o),e}function eM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iw)}catch(e){console.error(e)}}iw(),ix.exports=lr;var ic=ix.exports;const fg=xd(ic),oM=G1({__proto__:null,default:fg},[ic]);var ow,k0=ic;ow=k0.createRoot,k0.hydrateRoot;var aw={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Qa(r)):tl.isFragment(r)&&r.props?n=n.concat(Qa(r.props.children,t)):n.push(r))}),n}var hg={},cM=function(t){};function uM(e,t){}function dM(e,t){}function fM(){hg={}}function cw(e,t,n){!t&&!hg[n]&&(e(!1,n),hg[n]=!0)}function Tn(e,t){cw(uM,e,t)}function hM(e,t){cw(dM,e,t)}Tn.preMessage=cM;Tn.resetWarned=fM;Tn.noteOnce=hM;function Re(e){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function gM(e,t){if(Re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uw(e){var t=gM(e,"string");return Re(t)=="symbol"?t:t+""}function L(e,t,n){return(t=uw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var gg=h.createContext(null);function pM(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),i=h.useRef([]),o=h.useContext(gg),a=h.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return h.createElement(gg.Provider,{value:a},t)}var fw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}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(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!pg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SM?(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(){!pg||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=xM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hw=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Za(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $M(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Za(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new RM(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pw=typeof WeakMap<"u"?new WeakMap:new fw,mw=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=wM.getInstance(),r=new kM(t,n,this);pw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mw.prototype[e]=function(){var t;return(t=pw.get(this))[e].apply(t,arguments)}});var IM=function(){return typeof td.ResizeObserver<"u"?td.ResizeObserver:mw}(),Wi=new Map;function FM(e){e.forEach(function(t){var n,r=t.target;(n=Wi.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var vw=new IM(FM);function NM(e,t){Wi.has(e)||(Wi.set(e,new Set),vw.observe(e)),Wi.get(e).add(t)}function AM(e,t){Wi.has(e)&&(Wi.get(e).delete(t),Wi.get(e).size||(vw.unobserve(e),Wi.delete(e)))}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;L0+=1;var r=L0;function i(o){if(o===0)Sw(r),t();else{var a=bw(function(){i(o-1)});Pm.set(r,a)}}return i(n),r};fn.cancel=function(e){var t=Pm.get(e);return Sw(e),xw(t)};function ww(e){if(Array.isArray(e))return e}function UM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Cw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){return ww(e)||UM(e,t)||Tm(e,t)||Cw()}function Nl(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function GM(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var D0="data-rc-order",z0="data-rc-priority",qM="rc-util-key",vg=new Map;function Ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qM}function Kd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function XM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $m(e){return Array.from((vg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _w(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=XM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(D0,a),s&&o&&l.setAttribute(z0,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Kd(t),u=c.firstChild;if(r){if(s){var d=(t.styles||$m(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(D0)))return!1;var p=Number(f.getAttribute(z0)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Kd(t);return(t.styles||$m(n)).find(function(r){return r.getAttribute(Ew(t))===e})}function Al(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ow(e,t);if(n){var r=Kd(t);r.removeChild(n)}}function KM(e,t){var n=vg.get(e);if(!n||!GM(document,n)){var r=_w("",t),i=r.parentNode;vg.set(e,i),e.removeChild(r)}}function wi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kd(n),i=$m(r),o=V(V({},n),{},{styles:i});KM(r,o);var a=Ow(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=_w(e,o);return u.setAttribute(Ew(o),t),u}function YM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function $n(e,t){if(e==null)return{};var n,r,i=YM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Tn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=te(c,2),f=d[1];return i.internalGet(u)[1]0,void 0),j0+=1}return Yt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Df=new Rm;function bg(e){var t=Array.isArray(e)?e:[e];return Df.has(t)||Df.set(t,new Mw(t)),Df.get(t)}var tT=new WeakMap,zf={};function nT(e,t){for(var n=tT,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=H0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof Mw?n+=i.id:i&&Re(i)==="object"?n+=nl(i,t):n+=i}),t&&(n=Nl(n)),H0.set(e,n)),n}function B0(e,t){return Nl("".concat(t,"_").concat(nl(e,!0)))}var xg=sr();function ae(e){return typeof e=="number"?"".concat(e,"px"):e}function id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},L(L({},Ja,t),Gr,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var bu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},rT=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=te(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Tw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=te(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,p=bu(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,rT(i,n,{scope:r==null?void 0:r.scope})]},V0=sr()?h.useLayoutEffect:h.useEffect,mn=function(t,n){var r=h.useRef(!0);V0(function(){return t(r.current)},n),V0(function(){return r.current=!1,function(){r.current=!0}},[])},rl=function(t,n){mn(function(r){if(!r)return t()},n)},iT=V({},wd),W0=iT.useInsertionEffect,oT=function(t,n,r){h.useMemo(t,r),mn(function(){return n(!0)},r)},aT=W0?function(e,t,n){return W0(function(){return e(),t()},n)}:oT,sT=V({},wd),lT=sT.useInsertionEffect,cT=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},uT=function(){return function(t){t()}},dT=typeof lT<"u"?cT:uT;function km(e,t,n,r,i){var o=h.useContext(Yd),a=o.cache,s=[e].concat(le(t)),l=yg(s),c=dT([l]),u=function(v){a.opUpdate(l,function(y){var b=y||[void 0,void 0],m=te(b,2),g=m[0],x=g===void 0?0:g,S=m[1],w=S,C=w||n(),_=[x,C];return v?v(_):_})};h.useMemo(function(){u()},[l]);var d=a.opGet(l),f=d[1];return aT(function(){i==null||i(f)},function(p){return u(function(v){var y=te(v,2),b=y[0],m=y[1];return p&&b===0&&(i==null||i(f)),[b+1,m]}),function(){a.opUpdate(l,function(v){var y=v||[],b=te(y,2),m=b[0],g=m===void 0?0:m,x=b[1],S=g-1;return S===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(x,!1))}),null):[g-1,x]})}},[l]),f}var fT={},hT="css",Mo=new Map;function gT(e){Mo.set(e,(Mo.get(e)||0)+1)}function pT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ja,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ui]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var mT=0;function vT(e,t){Mo.set(e,(Mo.get(e)||0)-1);var n=Array.from(Mo.keys()),r=n.filter(function(i){var o=Mo.get(i)||0;return o<=0});n.length-r.length>mT&&r.forEach(function(i){pT(i,t),Mo.delete(i)})}var yT=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},Pw="token";function bT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(Yd),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?fT:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=nT(function(){return Object.assign.apply(Object,[{}].concat(le(t)))},t),v=nl(p),y=nl(c),b=f?nl(f):"",m=km(Pw,[s,e.id,v,y,b],function(){var g,x=d?d(p,c,e):yT(p,c,e,u),S=V({},x),w="";if(f){var C=Tw(x,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),_=te(C,2);x=_[0],w=_[1]}var M=B0(x,s);x._tokenKey=M,S._tokenKey=B0(S,s);var T=(g=f==null?void 0:f.key)!==null&&g!==void 0?g:M;x._themeKey=T,gT(T);var P="".concat(hT,"-").concat(Nl(M));return x._hashId=P,[x,P,S,w,(f==null?void 0:f.key)||""]},function(g){vT(g[0]._themeKey,i)},function(g){var x=te(g,4),S=x[0],w=x[3];if(f&&w){var C=wi(w,Nl("css-variables-".concat(S._themeKey)),{mark:Gr,prepend:"queue",attachTo:o,priority:-999});C[Ui]=i,C.setAttribute(Ja,S._themeKey)}});return m}var xT=function(t,n,r){var i=te(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=id(a,s,u,f,c);return[d,u,p]},ST={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},$w="comm",Rw="rule",kw="decl",wT="@import",CT="@keyframes",ET="@layer",Iw=Math.abs,Im=String.fromCharCode;function Fw(e){return e.trim()}function xu(e,t,n){return e.replace(t,n)}function _T(e,t,n){return e.indexOf(t,n)}function Ll(e,t){return e.charCodeAt(t)|0}function es(e,t,n){return e.slice(t,n)}function ri(e){return e.length}function OT(e){return e.length}function Rc(e,t){return t.push(e),e}var Qd=1,ts=1,Nw=0,Mr=0,qt=0,us="";function Fm(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qd,column:ts,length:a,return:"",siblings:s}}function MT(){return qt}function TT(){return qt=Mr>0?Ll(us,--Mr):0,ts--,qt===10&&(ts=1,Qd--),qt}function qr(){return qt=Mr2||Dl(qt)>3?"":" "}function kT(e,t){for(;--t&&qr()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Zd(e,Su()+(t<6&&Gi()==32&&qr()==32))}function Sg(e){for(;qr();)switch(qt){case e:return Mr;case 34:case 39:e!==34&&e!==39&&Sg(qt);break;case 40:e===41&&Sg(e);break;case 92:qr();break}return Mr}function IT(e,t){for(;qr()&&e+qt!==57;)if(e+qt===84&&Gi()===47)break;return"/*"+Zd(t,Mr-1)+"*"+Im(e===47?e:qr())}function FT(e){for(;!Dl(Gi());)qr();return Zd(e,Mr)}function NT(e){return $T(wu("",null,null,null,[""],e=PT(e),0,[0],e))}function wu(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,v=0,y=1,b=1,m=1,g=0,x="",S=i,w=o,C=r,_=x;b;)switch(v=g,g=qr()){case 40:if(v!=108&&Ll(_,d-1)==58){_T(_+=xu(jf(g),"&","&\f"),"&\f",Iw(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:_+=jf(g);break;case 9:case 10:case 13:case 32:_+=RT(v);break;case 92:_+=kT(Su()-1,7);continue;case 47:switch(Gi()){case 42:case 47:Rc(AT(IT(qr(),Su()),t,n,l),l),(Dl(v||1)==5||Dl(Gi()||1)==5)&&ri(_)&&es(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*y:s[c++]=ri(_)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:m==-1&&(_=xu(_,/\f/g,"")),p>0&&(ri(_)-d||y===0&&v===47)&&Rc(p>32?G0(_+";",r,n,d-1,l):G0(xu(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(Rc(C=U0(_,t,n,c,u,i,s,x,S=[],w=[],d,o),o),g===123)if(u===0)wu(_,t,C,C,S,o,d,s,w);else switch(f===99&&Ll(_,3)===110?100:f){case 100:case 108:case 109:case 115:wu(e,C,C,r&&Rc(U0(e,C,C,0,0,i,s,x,i,S=[],d,w),w),i,w,d,s,r?S:w);break;default:wu(_,C,C,C,[""],w,0,s,w)}}c=u=p=0,y=m=1,x=_="",d=a;break;case 58:d=1+ri(_),p=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&TT()==125)continue}switch(_+=Im(g),g*y){case 38:m=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(ri(_)-1)*m,m=1;break;case 64:Gi()===45&&(_+=jf(qr())),f=Gi(),u=d=ri(x=_+=FT(Su())),g++;break;case 45:v===45&&ri(_)==2&&(y=0)}}return o}function U0(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,p=i===0?o:[""],v=OT(p),y=0,b=0,m=0;y0?p[g]+" "+x:xu(x,/&\f/g,p[g])))&&(l[m++]=S);return Fm(e,t,n,i===0?Rw:s,l,c,u,d)}function AT(e,t,n,r){return Fm(e,t,n,$w,Im(MT()),es(e,2,-2),0,r)}function G0(e,t,n,r,i){return Fm(e,t,n,kw,es(e,0,r),es(e,r+1,-1),r,i)}function wg(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",p={};function v(m){var g=m.getName(s);if(!p[g]){var x=e(m.style,n,{root:!1,parentSelectors:a}),S=te(x,1),w=S[0];p[g]="@keyframes ".concat(m.getName(s)).concat(w)}}function y(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(x){Array.isArray(x)?y(x,g):x&&g.push(x)}),g}var b=y(Array.isArray(t)?t:[t]);return b.forEach(function(m){var g=typeof m=="string"&&!i?{}:m;if(typeof g=="string")f+="".concat(g,` -`);else if(g._keyframe)v(g);else{var x=d.reduce(function(S,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,S))||S},g);Object.keys(x).forEach(function(S){var w=x[S];if(Re(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!BT(w)){var C=!1,_=S.trim(),M=!1;(i||o)&&s?_.startsWith("@")?C=!0:_==="&"?_=X0("",s,c):_=X0(S,s,c):i&&!s&&(_==="&"||_==="")&&(_="",M=!0);var T=e(w,n,{root:M,injectHash:C,parentSelectors:[].concat(le(a),[_])}),P=te(T,2),F=P[0],D=P[1];p=V(V({},p),D),f+="".concat(_).concat(F)}else{let W=function(N,R){var $=N.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),I=R;!ST[N]&&typeof I=="number"&&I!==0&&(I="".concat(I,"px")),N==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(v(R),I=R.getName(s)),f+="".concat($,":").concat(I,";")};var z,j=(z=w==null?void 0:w.value)!==null&&z!==void 0?z:w;Re(w)==="object"&&w!==null&&w!==void 0&&w[Dw]&&Array.isArray(j)?j.forEach(function(N){W(S,N)}):W(S,j)}})}}),i?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(` -`))):f="{".concat(f,"}"),[f,p]};function zw(e,t){return Nl("".concat(e.join("%")).concat(t))}function WT(){return null}var jw="style";function Cg(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(Yd),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,v=u.container,y=u.ssrInline,b=u.transformers,m=u.linters,g=u.cache,x=u.layer,S=n._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,le(r));var C=xg,_=km(jw,w,function(){var D=w.join("|");if(zT(D)){var z=jT(D),j=te(z,2),W=j[0],N=j[1];if(W)return[W,S,N,{},s,c]}var R=t(),$=VT(R,{hashId:i,hashPriority:p,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:m}),I=te($,2),A=I[0],H=I[1],G=Cu(A),Y=zw(w,G);return[G,S,Y,H,s,c]},function(D,z){var j=te(D,3),W=j[2];(z||d)&&xg&&Al(W,{mark:Gr})},function(D){var z=te(D,4),j=z[0];z[1];var W=z[2],N=z[3];if(C&&j!==Aw){var R={mark:Gr,prepend:x?!1:"queue",attachTo:v,priority:c},$=typeof a=="function"?a():a;$&&(R.csp={nonce:$});var I=[],A=[];Object.keys(N).forEach(function(G){G.startsWith("@layer")?I.push(G):A.push(G)}),I.forEach(function(G){wi(Cu(N[G]),"_layer-".concat(G),V(V({},R),{},{prepend:!0}))});var H=wi(j,W,R);H[Ui]=g.instanceId,H.setAttribute(Ja,S),A.forEach(function(G){wi(Cu(N[G]),"_effect-".concat(G),R)})}}),M=te(_,3),T=M[0],P=M[1],F=M[2];return function(D){var z;return!y||C||!f?z=h.createElement(WT,null):z=h.createElement("style",nt({},L(L({},Ja,P),Gr,F),{dangerouslySetInnerHTML:{__html:T}})),h.createElement(h.Fragment,null,z,D)}}var UT=function(t,n,r){var i=te(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var p=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=id(o,a,s,v,f),l&&Object.keys(l).forEach(function(y){if(!n[y]){n[y]=!0;var b=Cu(l[y]),m=id(b,a,"_effect-".concat(y),v,f);y.startsWith("@layer")?p=m+p:p+=m}}),[u,s,p]},Hw="cssVar",GT=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=h.useContext(Yd),d=u.cache.instanceId,f=u.container,p=s._tokenKey,v=[].concat(le(t.path),[r,c,p]),y=km(Hw,v,function(){var b=n(),m=Tw(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=te(m,2),x=g[0],S=g[1],w=zw(v,S);return[x,S,w,r]},function(b){var m=te(b,3),g=m[2];xg&&Al(g,{mark:Gr})},function(b){var m=te(b,3),g=m[1],x=m[2];if(g){var S=wi(g,x,{mark:Gr,prepend:"queue",attachTo:f,priority:-999});S[Ui]=d,S.setAttribute(Ja,r)}});return y},qT=function(t,n,r){var i=te(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=id(o,s,a,d,c);return[u,a,f]};L(L(L({},jw,UT),Pw,xT),Hw,qT);var Rr=function(){function e(t,n){Kt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return Yt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function ua(e){return e.notSplit=!0,e}ua(["borderTop","borderBottom"]),ua(["borderTop"]),ua(["borderBottom"]),ua(["borderLeft","borderRight"]),ua(["borderLeft"]),ua(["borderRight"]);var Nm=h.createContext({});function XT(e){return ww(e)||yw(e)||Tm(e)||Cw()}function ai(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ai(e,t.slice(0,-1))?e:Bw(e,t,n,r)}function KT(e){return Re(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function K0(e){return Array.isArray(e)?[]:{}}var YT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=QT,e},Vw=h.createContext(void 0);var JT={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"},eP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},tP=V(V({},eP),{},{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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Ww={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y0={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"]},tP),timePickerLocale:Object.assign({},Ww)},Jn="${label} is not a valid ${type}",Go={locale:"en",Pagination:JT,DatePicker:Y0,TimePicker:Ww,Calendar:Y0,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,url:Jn,hex:Jn},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Go.Modal);let Eu=[];const Q0=()=>Eu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Go.Modal);function nP(e){if(e){const t=Object.assign({},e);return Eu.push(t),Q0(),()=>{Eu=Eu.filter(n=>n!==t),Q0()}}Object.assign({},Go.Modal)}const Lm=h.createContext(void 0),rP=(e,t)=>{const n=h.useContext(Lm),r=h.useMemo(()=>{var o;const a=Go[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=h.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Go.locale:o},[n]);return[r,i]},iP="internalMark",oP=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>nP(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Lm.Provider,{value:i},n)};function bn(e,t){aP(e)&&(e="100%");var n=sP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kc(e){return Math.min(1,Math.max(0,e))}function aP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Uw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ic(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ro(e){return e.length===1?"0"+e:String(e)}function lP(e,t,n){return{r:bn(e,255)*255,g:bn(t,255)*255,b:bn(n,255)*255}}function Z0(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cP(e,t,n){var r,i,o;if(e=bn(e,360),t=bn(t,100),n=bn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Hf(s,a,e+1/3),i=Hf(s,a,e),o=Hf(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Eg(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Og={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 va(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=mP(e)),typeof e=="object"&&(fi(e.r)&&fi(e.g)&&fi(e.b)?(t=lP(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fi(e.h)&&fi(e.s)&&fi(e.v)?(r=Ic(e.s),i=Ic(e.v),t=uP(e.h,r,i),a=!0,s="hsv"):fi(e.h)&&fi(e.s)&&fi(e.l)&&(r=Ic(e.s),o=Ic(e.l),t=cP(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Uw(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gP="[-\\+]?\\d+%?",pP="[-\\+]?\\d*\\.\\d+%?",qi="(?:".concat(pP,")|(?:").concat(gP,")"),Bf="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),Vf="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),Nr={CSS_UNIT:new RegExp(qi),rgb:new RegExp("rgb"+Bf),rgba:new RegExp("rgba"+Vf),hsl:new RegExp("hsl"+Bf),hsla:new RegExp("hsla"+Vf),hsv:new RegExp("hsv"+Bf),hsva:new RegExp("hsva"+Vf),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 mP(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Og[e])e=Og[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Nr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Nr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Nr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Nr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Nr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Nr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Nr.hex8.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),a:J0(n[4]),format:t?"name":"hex8"}:(n=Nr.hex6.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),format:t?"name":"hex"}:(n=Nr.hex4.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),a:J0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Nr.hex3.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function fi(e){return!!Nr.CSS_UNIT.exec(String(e))}var cn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=hP(t)),this.originalInput=t;var i=va(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Uw(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Eg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Eg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Z0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Z0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_g(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),dP(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(bn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(bn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+_g(this.r,this.g,this.b,!1),n=0,r=Object.entries(Og);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=kc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=kc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=kc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=kc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Fc*t:Math.round(e.h)+Fc*t:r=n?Math.round(e.h)+Fc*t:Math.round(e.h)-Fc*t,r<0?r+=360:r>=360&&(r-=360),r}function ry(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ey*t:t===qw?r=e.s+ey:r=e.s+vP*t,r>1&&(r=1),n&&t===Gw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function iy(e,t,n){var r;return n?r=e.v+yP*t:r=e.v-bP*t,r>1&&(r=1),Number(r.toFixed(2))}function zl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=va(e),i=Gw;i>0;i-=1){var o=ty(r),a=Nc(va({h:ny(o,i,!0),s:ry(o,i,!0),v:iy(o,i,!0)}));n.push(a)}n.push(Nc(r));for(var s=1;s<=qw;s+=1){var l=ty(r),c=Nc(va({h:ny(l,s),s:ry(l,s),v:iy(l,s)}));n.push(c)}return t.theme==="dark"?xP.map(function(u){var d=u.index,f=u.opacity,p=Nc(SP(va(t.backgroundColor||"#141414"),va(n[d]),f*100));return p}):n}var Wf={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"},Mg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Mg.primary=Mg[5];var Tg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tg.primary=Tg[5];var Pg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Pg.primary=Pg[5];var $g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$g.primary=$g[5];var Rg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Rg.primary=Rg[5];var kg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];kg.primary=kg[5];var Ig=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ig.primary=Ig[5];var Fg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fg.primary=Fg[5];var od=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];od.primary=od[5];var Ng=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ng.primary=Ng[5];var Ag=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ag.primary=Ag[5];var Lg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Lg.primary=Lg[5];var Dg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Dg.primary=Dg[5];var Uf={red:Mg,volcano:Tg,orange:Pg,gold:$g,yellow:Rg,lime:kg,green:Ig,cyan:Fg,blue:od,geekblue:Ng,purple:Ag,magenta:Lg,grey:Dg};const Xw={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"},jl=Object.assign(Object.assign({},Xw),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function wP(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),p=n(o),v=n(a),y=n(s),b=r(c,u),m=e.colorLink||e.colorInfo,g=n(m),x=new cn(v[1]).mix(new cn(v[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg: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:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:x,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg: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:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new cn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const CP=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function EP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},CP(r))}const _P=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function _u(e){return(e+8)/e}function OP(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:_u(n)}))}const MP=e=>{const t=OP(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function TP(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const pr=(e,t)=>new cn(e).setAlpha(t).toRgbString(),Ts=(e,t)=>new cn(e).darken(t).toHexString(),PP=e=>{const t=zl(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]}},$P=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:pr(r,.88),colorTextSecondary:pr(r,.65),colorTextTertiary:pr(r,.45),colorTextQuaternary:pr(r,.25),colorFill:pr(r,.15),colorFillSecondary:pr(r,.06),colorFillTertiary:pr(r,.04),colorFillQuaternary:pr(r,.02),colorBgSolid:pr(r,1),colorBgSolidHover:pr(r,.75),colorBgSolidActive:pr(r,.95),colorBgLayout:Ts(n,4),colorBgContainer:Ts(n,0),colorBgElevated:Ts(n,0),colorBgSpotlight:pr(r,.85),colorBgBlur:"transparent",colorBorder:Ts(n,15),colorBorderSecondary:Ts(n,6)}};function RP(e){Wf.pink=Wf.magenta,Uf.pink=Uf.magenta;const t=Object.keys(Xw).map(n=>{const r=e[n]===Wf[n]?Uf[n]:zl(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wP(e,{generateColorPalettes:PP,generateNeutralColorPalettes:$P})),MP(e.fontSize)),TP(e)),_P(e)),EP(e))}const Kw=bg(RP),zg={token:jl,override:{override:jl},hashed:!0},Yw=de.createContext(zg),Hl="ant",Qw="anticon",kP=["outlined","borderless","filled"],IP=(e,t)=>t||(e?`${Hl}-${e}`:Hl),Rt=h.createContext({getPrefixCls:IP,iconPrefixCls:Qw}),FP=`-ant-${Date.now()}-${Math.random()}`;function NP(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new cn(a),c=zl(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new cn(t.primaryColor),s=zl(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new cn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` -`)} - } - `.trim()}function AP(e,t){const n=NP(e,t);sr()&&wi(n,`${FP}-dynamic-theme`)}const qo=h.createContext(!1),Zw=e=>{let{children:t,disabled:n}=e;const r=h.useContext(qo);return h.createElement(qo.Provider,{value:n??r},t)},Xo=h.createContext(void 0),LP=e=>{let{children:t,size:n}=e;const r=h.useContext(Xo);return h.createElement(Xo.Provider,{value:n||r},t)};function DP(){const e=h.useContext(qo),t=h.useContext(Xo);return{componentDisabled:e,componentSize:t}}var Jw=Yt(function e(){Kt(this,e)}),eC="CALC_UNIT",zP=new RegExp(eC,"g");function Gf(e){return typeof e=="number"?"".concat(e).concat(eC):e}var jP=function(e){go(n,e);var t=po(n);function n(r,i){var o;Kt(this,n),o=t.call(this),L(He(o),"result",""),L(He(o),"unitlessCssVar",void 0),L(He(o),"lowPriority",void 0);var a=Re(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Gf(r):a==="string"&&(o.result=r),o}return Yt(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Gf(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Gf(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(zP,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Jw),HP=function(e){go(n,e);var t=po(n);function n(r){var i;return Kt(this,n),i=t.call(this),L(He(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Yt(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(Jw),BP=function(t,n){var r=t==="css"?jP:HP;return function(i){return new r(i,n)}},oy=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function vn(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>GP&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),cy=new qP;function XP(e,t){return de.useMemo(function(){var n=cy.get(t);if(n)return n;var r=e();return cy.set(t,r),r},t)}var KP=function(){return{}};function YP(e){var t=e.useCSP,n=t===void 0?KP:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,v,y){var b=Array.isArray(f)?f[0]:f;function m(M){return"".concat(String(b)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var g=(y==null?void 0:y.unitless)||{},x=typeof s=="function"?s(f):{},S=V(V({},x),{},L({},m("zIndexPopup"),!0));Object.keys(g).forEach(function(M){S[m(M)]=g[M]});var w=V(V({},y),{},{unitless:S,prefixToken:m}),C=u(f,p,v,w),_=c(b,v,w);return function(M){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,P=C(M,T),F=te(P,2),D=F[1],z=_(T),j=te(z,2),W=j[0],N=j[1];return[W,D,N]}}function c(f,p,v){var y=v.unitless,b=v.injectStyle,m=b===void 0?!0:b,g=v.prefixToken,x=v.ignore,S=function(_){var M=_.rootCls,T=_.cssVar,P=T===void 0?{}:T,F=r(),D=F.realToken;return GT({path:[f],prefix:P.prefix,key:P.key,unitless:y,ignore:x,token:D,scope:M},function(){var z=ly(f,D,p),j=ay(f,D,z,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(z).forEach(function(W){j[g(W)]=j[W],delete j[W]}),j}),null},w=function(_){var M=r(),T=M.cssVar;return[function(P){return m&&T?de.createElement(de.Fragment,null,de.createElement(S,{rootCls:_,cssVar:T,component:f}),P):P},T==null?void 0:T.key]};return w}function u(f,p,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(f)?f:[f,f],m=te(b,1),g=m[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,_=r(),M=_.theme,T=_.realToken,P=_.hashId,F=_.token,D=_.cssVar,z=i(),j=z.rootPrefixCls,W=z.iconPrefixCls,N=n(),R=D?"css":"js",$=XP(function(){var U=new Set;return D&&Object.keys(y.unitless||{}).forEach(function(X){U.add(bu(X,D.prefix)),U.add(bu(X,oy(g,D.prefix)))}),BP(R,U)},[R,g,D==null?void 0:D.prefix]),I=UP(R),A=I.max,H=I.min,G={theme:M,token:F,hashId:P,nonce:function(){return N.nonce},clientOnly:y.clientOnly,layer:S,order:y.order||-999};Cg(V(V({},G),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(F):[]});var Y=Cg(V(V({},G),{},{path:[x,w,W]}),function(){if(y.injectStyle===!1)return[];var U=WP(F),X=U.token,ee=U.flush,q=ly(g,T,v),K=".".concat(w),Z=ay(g,T,q,{deprecatedTokens:y.deprecatedTokens});D&&q&&Re(q)==="object"&&Object.keys(q).forEach(function(xe){q[xe]="var(".concat(bu(xe,oy(g,D.prefix)),")")});var ne=jn(X,{componentCls:K,prefixCls:w,iconCls:".".concat(W),antCls:".".concat(j),calc:$,max:A,min:H},D?q:Z),pe=p(ne,{hashId:P,prefixCls:w,rootPrefixCls:j,iconPrefixCls:W});ee(g,Z);var ye=typeof a=="function"?a(ne,w,C,y.resetFont):null;return[y.resetStyle===!1?null:ye,pe]});return[Y,P]}}function d(f,p,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(f,p,v,V({resetStyle:!1,order:-998},y)),m=function(x){var S=x.prefixCls,w=x.rootCls,C=w===void 0?S:w;return b(S,C),null};return m}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const ad=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],QP="5.21.0";function Xf(e){return e>=0&&e<=255}function Ac(e,t){const{r:n,g:r,b:i,a:o}=new cn(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new cn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(Xf(u)&&Xf(d)&&Xf(f))return new cn({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new cn({r:n,g:r,b:i,a:1}).toRgbString()}var ZP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[f]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ac(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ac(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ac(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ac(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new cn("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new cn("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var uy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=uy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=rC(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=uy(c,["theme"]);let f=d;u&&(f=oC(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};function Ri(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=de.useContext(Yw),o=`${QP}-${t||""}`,a=n||Kw,[s,l,c]=bT(a,[jl,e],{salt:o,override:r,getComputedToken:oC,formatToken:rC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:iC,ignore:JP,preserve:e$}});return[a,c,t?l:"",s,i]}const Ci=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},aC=()=>({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"}}),t$=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n$=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),r$=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},i$=e=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),o$=e=>({"&:focus-visible":Object.assign({},i$(e))}),sC=(e,t)=>{const[n,r]=Ri();return Cg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},aC()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:ui,genComponentStyleHook:a$,genSubStyleComponent:lC}=YP({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Ri();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=h.useContext(Rt);return sC(t,e),e??{}},getResetStyles:e=>[{"&":n$(e)}],getCommonStyle:r$,getCompUnitless:()=>iC});function s$(e,t){return ad.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const l$=Object.assign({},wd),{useId:dy}=l$,c$=()=>"",u$=typeof dy>"u"?c$:dy;function d$(e,t,n){var r;Am();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},zg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:zg.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=u$();return Cm(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!rd(c,d,!0)}))}var f$=["children"],cC=h.createContext({});function h$(e){var t=e.children,n=$n(e,f$);return h.createElement(cC.Provider,{value:n},t)}var g$=function(e){go(n,e);var t=po(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function p$(e){var t=h.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],i=h.useRef(e),o=vn(function(){return i.current}),a=vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var Ni="none",Lc="appear",Dc="enter",zc="leave",fy="none",jr="prepare",Ia="start",Fa="active",Dm="end",uC="prepared";function hy(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function m$(e,t){var n={animationend:hy("Animation","AnimationEnd"),transitionend:hy("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var v$=m$(sr(),typeof window<"u"?window:{}),dC={};if(sr()){var y$=document.createElement("div");dC=y$.style}var jc={};function fC(e){if(jc[e])return jc[e];var t=v$[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=fn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var S$=[jr,Ia,Fa,Dm],w$=[jr,uC],vC=!1,C$=!0;function yC(e){return e===Fa||e===Dm}const E$=function(e,t,n){var r=ns(fy),i=te(r,2),o=i[0],a=i[1],s=x$(),l=te(s,2),c=l[0],u=l[1];function d(){a(jr,!0)}var f=t?w$:S$;return mC(function(){if(o!==fy&&o!==Dm){var p=f.indexOf(o),v=f[p+1],y=n(o);y===vC?a(v,!0):v&&c(function(b){function m(){b.isCanceled()||a(v,!0)}y===!0?m():Promise.resolve(y).then(m)})}},[e,o]),h.useEffect(function(){return function(){u()}},[]),[d,o]};function _$(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,v=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,m=r.onLeaveStart,g=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,C=r.onEnterEnd,_=r.onLeaveEnd,M=r.onVisibleChanged,T=ns(),P=te(T,2),F=P[0],D=P[1],z=p$(Ni),j=te(z,2),W=j[0],N=j[1],R=ns(null),$=te(R,2),I=$[0],A=$[1],H=W(),G=h.useRef(!1),Y=h.useRef(null);function U(){return n()}var X=h.useRef(!1);function ee(){N(Ni),A(null,!0)}var q=vn(function(Ee){var ie=W();if(ie!==Ni){var Ie=U();if(!(Ee&&!Ee.deadline&&Ee.target!==Ie)){var oe=X.current,Be;ie===Lc&&oe?Be=w==null?void 0:w(Ie,Ee):ie===Dc&&oe?Be=C==null?void 0:C(Ie,Ee):ie===zc&&oe&&(Be=_==null?void 0:_(Ie,Ee)),oe&&Be!==!1&&ee()}}}),K=b$(q),Z=te(K,1),ne=Z[0],pe=function(ie){switch(ie){case Lc:return L(L(L({},jr,f),Ia,y),Fa,g);case Dc:return L(L(L({},jr,p),Ia,b),Fa,x);case zc:return L(L(L({},jr,v),Ia,m),Fa,S);default:return{}}},ye=h.useMemo(function(){return pe(H)},[H]),xe=E$(H,!e,function(Ee){if(Ee===jr){var ie=ye[jr];return ie?ie(U()):vC}if(be in ye){var Ie;A(((Ie=ye[be])===null||Ie===void 0?void 0:Ie.call(ye,U(),null))||null)}return be===Fa&&H!==Ni&&(ne(U()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){q({deadline:!0})},u))),be===uC&&ee(),C$}),me=te(xe,2),fe=me[0],be=me[1],he=yC(be);X.current=he,mC(function(){D(t);var Ee=G.current;G.current=!0;var ie;!Ee&&t&&s&&(ie=Lc),Ee&&t&&o&&(ie=Dc),(Ee&&!t&&c||!Ee&&d&&!t&&c)&&(ie=zc);var Ie=pe(ie);ie&&(e||Ie[jr])?(N(ie),fe()):N(Ni)},[t]),h.useEffect(function(){(H===Lc&&!s||H===Dc&&!o||H===zc&&!c)&&N(Ni)},[s,o,c]),h.useEffect(function(){return function(){G.current=!1,clearTimeout(Y.current)}},[]);var we=h.useRef(!1);h.useEffect(function(){F&&(we.current=!0),F!==void 0&&H===Ni&&((we.current||F)&&(M==null||M(F)),we.current=!0)},[F,H]);var Ae=I;return ye[jr]&&be===Ia&&(Ae=V({transition:"none"},Ae)),[H,be,Ae,F??t]}function O$(e){var t=e;Re(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=h.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,p=i.leavedClassName,v=i.eventProps,y=h.useContext(cC),b=y.motion,m=n(i,b),g=h.useRef(),x=h.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:yu(x.current)}catch{return null}}var w=_$(m,s,S,i),C=te(w,4),_=C[0],M=C[1],T=C[2],P=C[3],F=h.useRef(P);P&&(F.current=!0);var D=h.useCallback(function(I){g.current=I,Em(o,I)},[o]),z,j=V(V({},v),{},{visible:s});if(!d)z=null;else if(_===Ni)P?z=d(V({},j),D):!c&&F.current&&p?z=d(V(V({},j),{},{className:p}),D):u||!c&&!p?z=d(V(V({},j),{},{style:{display:"none"}}),D):z=null;else{var W;M===jr?W="prepare":yC(M)?W="active":M===Ia&&(W="start");var N=my(f,"".concat(_,"-").concat(W));z=d(V(V({},j),{},{className:ve(my(f,_),L(L({},N,N&&W),f,typeof f=="string")),style:T}),D)}if(h.isValidElement(z)&&cs(z)){var R=z,$=R.ref;$||(z=h.cloneElement(z,{ref:D}))}return h.createElement(g$,{ref:x},z)});return r.displayName="CSSMotion",r}const ds=O$(pC);var Hg="add",Bg="keep",Vg="remove",Kf="removed";function M$(e){var t;return e&&Re(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function Wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(M$)}function T$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=Wg(e),a=Wg(t);o.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Vg}),n.forEach(function(u){u.key===c&&(u.status=Bg)})}),n}var P$=["component","children","onVisibleChanged","onAllRemoved"],$$=["status"],R$=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function k$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ds,n=function(r){go(o,r);var i=po(o);function o(){var a;Kt(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var A$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const j$=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(bC=t),r&&z$(r)&&AP(D$(),r)},H$=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,popupOverflow:y,legacyLocale:b,parentContext:m,iconPrefixCls:g,theme:x,componentDisabled:S,segmented:w,statistic:C,spin:_,calendar:M,carousel:T,cascader:P,collapse:F,typography:D,checkbox:z,descriptions:j,divider:W,drawer:N,skeleton:R,steps:$,image:I,layout:A,list:H,mentions:G,modal:Y,progress:U,result:X,slider:ee,breadcrumb:q,menu:K,pagination:Z,input:ne,textArea:pe,empty:ye,badge:xe,radio:me,rate:fe,switch:be,transfer:he,avatar:we,message:Ae,tag:Ee,table:ie,card:Ie,tabs:oe,timeline:Be,timePicker:Pe,upload:Fe,notification:je,tree:Ge,colorPicker:ct,datePicker:Qe,rangePicker:tt,flex:ft,wave:Wt,dropdown:wt,warning:ur,tour:hn,floatButtonGroup:kt,variant:ht,inputNumber:kr,treeSelect:gt}=e,nn=h.useCallback((it,Ze)=>{const{prefixCls:Gt}=e;if(Ze)return Ze;const Ct=Gt||m.getPrefixCls("");return it?`${Ct}-${it}`:Ct},[m.getPrefixCls,e.prefixCls]),Se=g||m.iconPrefixCls||Qw,se=n||m.csp;sC(Se,se);const Oe=d$(x,m.theme,{prefixCls:nn("")}),Me={csp:se,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:v??p,popupOverflow:y,getPrefixCls:nn,iconPrefixCls:Se,theme:Oe,segmented:w,statistic:C,spin:_,calendar:M,carousel:T,cascader:P,collapse:F,typography:D,checkbox:z,descriptions:j,divider:W,drawer:N,skeleton:R,steps:$,image:I,input:ne,textArea:pe,layout:A,list:H,mentions:G,modal:Y,progress:U,result:X,slider:ee,breadcrumb:q,menu:K,pagination:Z,empty:ye,badge:xe,radio:me,rate:fe,switch:be,transfer:he,avatar:we,message:Ae,tag:Ee,table:ie,card:Ie,tabs:oe,timeline:Be,timePicker:Pe,upload:Fe,notification:je,tree:Ge,colorPicker:ct,datePicker:Qe,rangePicker:tt,flex:ft,wave:Wt,dropdown:wt,warning:ur,tour:hn,floatButtonGroup:kt,variant:ht,inputNumber:kr,treeSelect:gt},Le=Object.assign({},m);Object.keys(Me).forEach(it=>{Me[it]!==void 0&&(Le[it]=Me[it])}),L$.forEach(it=>{const Ze=e[it];Ze&&(Le[it]=Ze)}),typeof r<"u"&&(Le.button=Object.assign({autoInsertSpace:r},Le.button));const dt=Cm(()=>Le,Le,(it,Ze)=>{const Gt=Object.keys(it),Ct=Object.keys(Ze);return Gt.length!==Ct.length||Gt.some(Qt=>it[Qt]!==Ze[Qt])}),qe=h.useMemo(()=>({prefixCls:Se,csp:se}),[Se,se]);let ke=h.createElement(h.Fragment,null,h.createElement(N$,{dropdownMatchSelectWidth:p}),t);const Ut=h.useMemo(()=>{var it,Ze,Gt,Ct;return ka(((it=Go.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((Gt=(Ze=dt.locale)===null||Ze===void 0?void 0:Ze.Form)===null||Gt===void 0?void 0:Gt.defaultValidateMessages)||{},((Ct=dt.form)===null||Ct===void 0?void 0:Ct.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[dt,a==null?void 0:a.validateMessages]);Object.keys(Ut).length>0&&(ke=h.createElement(Vw.Provider,{value:Ut},ke)),s&&(ke=h.createElement(oP,{locale:s,_ANT_MARK__:iP},ke)),(Se||se)&&(ke=h.createElement(Nm.Provider,{value:qe},ke)),l&&(ke=h.createElement(LP,{size:l},ke)),ke=h.createElement(F$,null,ke);const gn=h.useMemo(()=>{const it=Oe||{},{algorithm:Ze,token:Gt,components:Ct,cssVar:Qt}=it,dr=A$(it,["algorithm","token","components","cssVar"]),Kr=Ze&&(!Array.isArray(Ze)||Ze.length>0)?bg(Ze):Kw,Hn={};Object.entries(Ct||{}).forEach(Zn=>{let[rn,In]=Zn;const ot=Object.assign({},In);"algorithm"in ot&&(ot.algorithm===!0?ot.theme=Kr:(Array.isArray(ot.algorithm)||typeof ot.algorithm=="function")&&(ot.theme=bg(ot.algorithm)),delete ot.algorithm),Hn[rn]=ot});const kn=Object.assign(Object.assign({},jl),Gt);return Object.assign(Object.assign({},dr),{theme:Kr,token:kn,components:Hn,override:Object.assign({override:kn},Hn),cssVar:Qt})},[Oe]);return x&&(ke=h.createElement(Yw.Provider,{value:gn},ke)),dt.warning&&(ke=h.createElement(ZT.Provider,{value:dt.warning},ke)),S!==void 0&&(ke=h.createElement(Zw,{disabled:S},ke)),h.createElement(Rt.Provider,{value:dt},ke)},fs=e=>{const t=h.useContext(Rt),n=h.useContext(Lm);return h.createElement(H$,Object.assign({parentContext:t,legacyLocale:n},e))};fs.ConfigContext=Rt;fs.SizeContext=Xo;fs.config=j$;fs.useConfig=DP;Object.defineProperty(fs,"SizeContext",{get:()=>Xo});var B$={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"};function xC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function V$(e){return xC(e)instanceof ShadowRoot}function sd(e){return V$(e)?xC(e):null}function W$(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function U$(e,t){Tn(e,"[@ant-design/icons] ".concat(t))}function vy(e){return Re(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Re(e.icon)==="object"||typeof e.icon=="function")}function yy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[W$(n)]=r}return t},{})}function Ug(e,t,n){return n?de.createElement(e.tag,V(V({key:t},yy(e.attrs)),n),(e.children||[]).map(function(r,i){return Ug(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):de.createElement(e.tag,V({key:t},yy(e.attrs)),(e.children||[]).map(function(r,i){return Ug(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function SC(e){return zl(e)[0]}function wC(e){return e?Array.isArray(e)?e:[e]:[]}var G$=` -.anticon { - display: inline-flex; - align-items: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,q$=function(t){var n=h.useContext(Nm),r=n.csp,i=n.prefixCls,o=G$;i&&(o=o.replace(/anticon/g,i)),h.useEffect(function(){var a=t.current,s=sd(a);wi(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},X$=["icon","className","onClick","style","primaryColor","secondaryColor"],il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function K$(e){var t=e.primaryColor,n=e.secondaryColor;il.primaryColor=t,il.secondaryColor=n||SC(t),il.calculated=!!n}function Y$(){return V({},il)}var hs=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=$n(t,X$),c=h.useRef(),u=il;if(a&&(u={primaryColor:a,secondaryColor:s||SC(a)}),q$(c),U$(vy(n),"icon should be icon definiton, but got ".concat(n)),!vy(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=V(V({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Ug(d.icon,"svg-".concat(d.name),V(V({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};hs.displayName="IconReact";hs.getTwoToneColors=Y$;hs.setTwoToneColors=K$;function CC(e){var t=wC(e),n=te(t,2),r=n[0],i=n[1];return hs.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Q$(){var e=hs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z$=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];CC(od.primary);var Rn=h.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=$n(e,Z$),u=h.useContext(Nm),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,v=ve(p,f,L(L({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),y=a;y===void 0&&s&&(y=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=wC(l),g=te(m,2),x=g[0],S=g[1];return h.createElement("span",nt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:y,onClick:s,className:v}),h.createElement(hs,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});Rn.displayName="AntdIcon";Rn.getTwoToneColor=Q$;Rn.setTwoToneColor=CC;var J$=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:B$}))},eR=h.forwardRef(J$),tR={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"},nR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:tR}))},rR=h.forwardRef(nR),iR={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"},oR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:iR}))},aR=h.forwardRef(oR);function EC(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const sR=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Jd(e,t){return sR(e,e,t)}const by=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xy=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Yf=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,lR=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Sy=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:N=>N!==c;if(!by(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let v=e;for(;by(v)&&d(v);){if(v=lR(v),v===f){p.push(v);break}v!=null&&v===document.body&&Yf(v)&&!Yf(document.documentElement)||v!=null&&Yf(v,u)&&p.push(v)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:m,scrollY:g}=window,{height:x,width:S,top:w,right:C,bottom:_,left:M}=e.getBoundingClientRect(),{top:T,right:P,bottom:F,left:D}=(N=>{const R=window.getComputedStyle(N);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let z=s==="start"||s==="nearest"?w-T:s==="end"?_+F:w+x/2-T+F,j=l==="center"?M+S/2-D+P:l==="end"?C+P:M-D;const W=[];for(let N=0;N=0&&M>=0&&_<=b&&C<=y&&w>=A&&_<=G&&M>=Y&&C<=H)return W;const U=getComputedStyle(R),X=parseInt(U.borderLeftWidth,10),ee=parseInt(U.borderTopWidth,10),q=parseInt(U.borderRightWidth,10),K=parseInt(U.borderBottomWidth,10);let Z=0,ne=0;const pe="offsetWidth"in R?R.offsetWidth-R.clientWidth-X-q:0,ye="offsetHeight"in R?R.offsetHeight-R.clientHeight-ee-K:0,xe="offsetWidth"in R?R.offsetWidth===0?0:I/R.offsetWidth:0,me="offsetHeight"in R?R.offsetHeight===0?0:$/R.offsetHeight:0;if(f===R)Z=s==="start"?z:s==="end"?z-b:s==="nearest"?Hc(g,g+b,b,ee,K,g+z,g+z+x,x):z-b/2,ne=l==="start"?j:l==="center"?j-y/2:l==="end"?j-y:Hc(m,m+y,y,X,q,m+j,m+j+S,S),Z=Math.max(0,Z+g),ne=Math.max(0,ne+m);else{Z=s==="start"?z-A-ee:s==="end"?z-G+K+ye:s==="nearest"?Hc(A,G,$,ee,K+ye,z,z+x,x):z-(A+$/2)+ye/2,ne=l==="start"?j-Y-X:l==="center"?j-(Y+I/2)+pe/2:l==="end"?j-H+q+pe:Hc(Y,H,I,X,q+pe,j,j+S,S);const{scrollLeft:fe,scrollTop:be}=R;Z=me===0?0:Math.max(0,Math.min(be+Z/me,R.scrollHeight-$/me+ye)),ne=xe===0?0:Math.max(0,Math.min(fe+ne/xe,R.scrollWidth-I/xe+pe)),z+=be-Z,j+=fe-ne}W.push({el:R,top:Z,left:ne})}return W},cR=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function uR(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Sy(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Sy(e,cR(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const ef=e=>{const[,,,,t]=Ri();return t?`${e}-css-var`:""};var ce={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},dR={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"},fR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:dR}))},_C=h.forwardRef(fR);const OC=de.createContext(void 0),xo=100,MC={Modal:xo,Drawer:xo,Popover:xo,Popconfirm:xo,Tooltip:xo,Tour:xo,FloatButton:xo},hR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function gR(e){return e in MC}const pR=(e,t)=>{const[,n]=Ri(),r=de.useContext(OC),i=gR(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+MC[e]:a+=hR[e],o=[r===void 0?t:a,a]}return o};function Ln(){Ln=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(N,R,$){N[R]=$.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,R,$){return Object.defineProperty(N,R,{value:$,enumerable:!0,configurable:!0,writable:!0}),N[R]}try{c({},"")}catch{c=function($,I,A){return $[I]=A}}function u(N,R,$,I){var A=R&&R.prototype instanceof m?R:m,H=Object.create(A.prototype),G=new j(I||[]);return i(H,"_invoke",{value:P(N,$,G)}),H}function d(N,R,$){try{return{type:"normal",arg:N.call(R,$)}}catch(I){return{type:"throw",arg:I}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",v="executing",y="completed",b={};function m(){}function g(){}function x(){}var S={};c(S,a,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(W([])));C&&C!==n&&r.call(C,a)&&(S=C);var _=x.prototype=m.prototype=Object.create(S);function M(N){["next","throw","return"].forEach(function(R){c(N,R,function($){return this._invoke(R,$)})})}function T(N,R){function $(A,H,G,Y){var U=d(N[A],N,H);if(U.type!=="throw"){var X=U.arg,ee=X.value;return ee&&Re(ee)=="object"&&r.call(ee,"__await")?R.resolve(ee.__await).then(function(q){$("next",q,G,Y)},function(q){$("throw",q,G,Y)}):R.resolve(ee).then(function(q){X.value=q,G(X)},function(q){return $("throw",q,G,Y)})}Y(U.arg)}var I;i(this,"_invoke",{value:function(H,G){function Y(){return new R(function(U,X){$(H,G,U,X)})}return I=I?I.then(Y,Y):Y()}})}function P(N,R,$){var I=f;return function(A,H){if(I===v)throw Error("Generator is already running");if(I===y){if(A==="throw")throw H;return{value:e,done:!0}}for($.method=A,$.arg=H;;){var G=$.delegate;if(G){var Y=F(G,$);if(Y){if(Y===b)continue;return Y}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(I===f)throw I=y,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);I=v;var U=d(N,R,$);if(U.type==="normal"){if(I=$.done?y:p,U.arg===b)continue;return{value:U.arg,done:$.done}}U.type==="throw"&&(I=y,$.method="throw",$.arg=U.arg)}}}function F(N,R){var $=R.method,I=N.iterator[$];if(I===e)return R.delegate=null,$==="throw"&&N.iterator.return&&(R.method="return",R.arg=e,F(N,R),R.method==="throw")||$!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+$+"' method")),b;var A=d(I,N.iterator,R.arg);if(A.type==="throw")return R.method="throw",R.arg=A.arg,R.delegate=null,b;var H=A.arg;return H?H.done?(R[N.resultName]=H.value,R.next=N.nextLoc,R.method!=="return"&&(R.method="next",R.arg=e),R.delegate=null,b):H:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,b)}function D(N){var R={tryLoc:N[0]};1 in N&&(R.catchLoc=N[1]),2 in N&&(R.finallyLoc=N[2],R.afterLoc=N[3]),this.tryEntries.push(R)}function z(N){var R=N.completion||{};R.type="normal",delete R.arg,N.completion=R}function j(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(D,this),this.reset(!0)}function W(N){if(N||N===""){var R=N[a];if(R)return R.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var $=-1,I=function A(){for(;++$=0;--A){var H=this.tryEntries[A],G=H.completion;if(H.tryLoc==="root")return I("end");if(H.tryLoc<=this.prev){var Y=r.call(H,"catchLoc"),U=r.call(H,"finallyLoc");if(Y&&U){if(this.prev=0;--I){var A=this.tryEntries[I];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev=0;--$){var I=this.tryEntries[$];if(I.finallyLoc===R)return this.complete(I.completion,I.afterLoc),z(I),b}},catch:function(R){for(var $=this.tryEntries.length-1;$>=0;--$){var I=this.tryEntries[$];if(I.tryLoc===R){var A=I.completion;if(A.type==="throw"){var H=A.arg;z(I)}return H}}throw Error("illegal catch attempt")},delegateYield:function(R,$,I){return this.delegate={iterator:W(R),resultName:$,nextLoc:I},this.method==="next"&&(this.arg=e),b}},t}function wy(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function ea(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){wy(o,r,i,a,s,"next",l)}function s(l){wy(o,r,i,a,s,"throw",l)}a(void 0)})}}var ac=V({},oM),mR=ac.version,vR=ac.render,yR=ac.unmountComponentAtNode,tf;try{var bR=Number((mR||"").split(".")[0]);bR>=18&&(tf=ac.createRoot)}catch{}function Cy(e){var t=ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Re(t)==="object"&&(t.usingClientEntryPoint=e)}var ld="__rc_react_root__";function xR(e,t){Cy(!0);var n=t[ld]||tf(t);Cy(!1),n.render(e),t[ld]=n}function SR(e,t){vR(e,t)}function wR(e,t){if(tf){xR(e,t);return}SR(e,t)}function CR(e){return Gg.apply(this,arguments)}function Gg(){return Gg=ea(Ln().mark(function e(t){return Ln().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[ld])===null||i===void 0||i.unmount(),delete t[ld]}));case 1:case"end":return r.stop()}},e)})),Gg.apply(this,arguments)}function ER(e){yR(e)}function _R(e){return qg.apply(this,arguments)}function qg(){return qg=ea(Ln().mark(function e(t){return Ln().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(tf===void 0){r.next=2;break}return r.abrupt("return",CR(t));case 2:ER(t);case 3:case"end":return r.stop()}},e)})),qg.apply(this,arguments)}const Qf=()=>({height:0,opacity:0}),Ey=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},OR=e=>({height:e?e.offsetHeight:0}),Zf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_y=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hl}-motion-collapse`,onAppearStart:Qf,onEnterStart:Qf,onAppearActive:Ey,onEnterActive:Ey,onLeaveStart:OR,onLeaveActive:Qf,onAppearEnd:Zf,onEnterEnd:Zf,onLeaveEnd:Zf,motionDeadline:500}},MR=(e,t,n)=>n!==void 0?n:`${e}-${t}`,zm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},TR=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},PR=a$("Wave",e=>[TR(e)]),TC=`${Hl}-wave-target`;function Jf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function $R(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Jf(t)?t:Jf(n)?n:Jf(r)?r:null}function eh(e){return Number.isNaN(e)?0:e}const RR=e=>{const{className:t,target:n,component:r}=e,i=h.useRef(null),[o,a]=h.useState(null),[s,l]=h.useState([]),[c,u]=h.useState(0),[d,f]=h.useState(0),[p,v]=h.useState(0),[y,b]=h.useState(0),[m,g]=h.useState(!1),x={left:c,top:d,width:p,height:y,borderRadius:s.map(C=>`${C}px`).join(" ")};o&&(x["--wave-color"]=o);function S(){const C=getComputedStyle(n);a($R(n));const _=C.position==="static",{borderLeftWidth:M,borderTopWidth:T}=C;u(_?n.offsetLeft:eh(-parseFloat(M))),f(_?n.offsetTop:eh(-parseFloat(T))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:z}=C;l([P,F,z,D].map(j=>eh(parseFloat(j))))}if(h.useEffect(()=>{if(n){const C=fn(()=>{S(),g(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(S),_.observe(n)),()=>{fn.cancel(C),_==null||_.disconnect()}}},[]),!m)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(TC));return h.createElement(ds,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,_)=>{var M;if(_.deadline||_.propertyName==="opacity"){const T=(M=i.current)===null||M===void 0?void 0:M.parentElement;_R(T).then(()=>{T==null||T.remove()})}return!1}},(C,_)=>{let{className:M}=C;return h.createElement("div",{ref:ho(i,_),className:ve(t,M,{"wave-quick":w}),style:x})})},kR=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),wR(h.createElement(RR,Object.assign({},t,{target:e})),i)},IR=(e,t,n)=>{const{wave:r}=h.useContext(Rt),[,i,o]=Ri(),a=vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${TC}`)||u,{showEffect:f}=r||{};(f||kR)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=h.useRef();return c=>{fn.cancel(s.current),s.current=fn(()=>{a(c)})}},FR=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=h.useContext(Rt),o=h.useRef(null),a=i("wave"),[,s]=PR(a),l=IR(o,ve(a,s),r);if(de.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!zm(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!de.isValidElement(t))return t??null;const c=cs(t)?ho(t.ref,o):o;return Jd(t,{ref:c})},jm=e=>{const t=de.useContext(Xo);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},PC=h.createContext(null),$C=(e,t)=>{const n=h.useContext(PC),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return ve(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},NR=e=>{let{children:t}=e;return h.createElement(PC.Provider,{value:null},t)};var AR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=h.useContext(Rt),{prefixCls:r,size:i,className:o}=e,a=AR(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ri();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=ve(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return h.createElement(RC.Provider,{value:i},h.createElement("div",Object.assign({},a,{className:u})))},Oy=/^[\u4E00-\u9FA5]{2}$/,Xg=Oy.test.bind(Oy);function My(e){return typeof e=="string"}function th(e){return e==="text"||e==="link"}function DR(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&My(e.type)&&Xg(e.props.children)?Jd(e,{children:e.props.children.split("").join(n)}):My(e)?Xg(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):EC(e)?de.createElement("span",null,e):e}function zR(e,t){let n=!1;const r=[];return de.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),de.Children.map(r,i=>DR(i,t))}const kC=h.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=ve(`${o}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},i)}),Ty=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=ve(`${n}-loading-icon`,r);return de.createElement(kC,{prefixCls:n,className:a,style:i,ref:t},de.createElement(_C,{className:o}))}),nh=()=>({width:0,opacity:0,transform:"scale(0)"}),rh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jR=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?de.createElement(Ty,{prefixCls:t,className:i,style:o}):de.createElement(ds,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:nh,onAppearActive:rh,onEnterStart:nh,onEnterActive:rh,onLeaveStart:rh,onLeaveActive:nh},(s,l)=>{let{className:c,style:u}=s;return de.createElement(Ty,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},Py=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HR=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Py(`${t}-primary`,i),Py(`${t}-danger`,o)]}},an=Math.round;function ih(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const $y=(e,t,n)=>n===0?e:e/100;function Ps(e,t){const n=t||255;return e>n?n:e<0?0:e}class nf{constructor(t){L(this,"isValid",!0),L(this,"r",0),L(this,"g",0),L(this,"b",0),L(this,"a",1),L(this,"_h",void 0),L(this,"_s",void 0),L(this,"_l",void 0),L(this,"_v",void 0),L(this,"_max",void 0),L(this,"_min",void 0),L(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof nf)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ps(t.r),this.g=Ps(t.g),this.b=Ps(t.b),this.a=typeof t.a=="number"?Ps(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=an(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:an(o("r")),g:an(o("g")),b:an(o("b")),a:an(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>an((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=an(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=an(this.getSaturation()*100),r=an(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ps(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const f=an(r*255);this.r=f,this.g=f,this.b=f}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=an((o+d)*255),this.g=an((a+d)*255),this.b=an((s+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=an(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=an(r*(1-n)*255),u=an(r*(1-n*l)*255),d=an(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=ih(t,$y);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ih(t,$y);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ih(t,(r,i)=>i.includes("%")?an(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var BR=["b"],VR=["v"],oh=function(t){return Math.round(Number(t||0))},WR=function(t){if(t instanceof nf)return t;if(t&&Re(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=$n(n,BR);return V(V({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bl=function(e){go(n,e);var t=po(n);function n(r){return Kt(this,n),t.call(this,WR(r))}return Yt(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=oh(i.s*100),a=oh(i.b*100),s=oh(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=$n(i,VR);return V(V({},a),{},{b:o,a:this.a})}}]),n}(nf),UR=function(t){return t instanceof Bl?t:new Bl(t)};UR("#1677ff");const GR=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",qR=(e,t)=>e?GR(e,t):"";let XR=function(){function e(t){Kt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new Bl(this.colors[0].color.metaColor)):this.metaColor=new Bl(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Yt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qR(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var KR={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"},YR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:KR}))},Ry=h.forwardRef(YR);const QR=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ZR=e=>({animationDuration:e,animationFillMode:"both"}),JR=e=>({animationDuration:e,animationFillMode:"both"}),ek=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${o}${e}-enter, - ${o}${e}-appear - `]:Object.assign(Object.assign({},ZR(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},JR(r)),{animationPlayState:"paused"}),[` - ${o}${e}-enter${e}-enter-active, - ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Hm=new Rr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tk=new Rr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ky=new Rr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Iy=new Rr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nk=new Rr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rk=new Rr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ik=new Rr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ok=new Rr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ak=new Rr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),sk=new Rr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lk=new Rr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ck=new Rr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uk={zoom:{inKeyframes:Hm,outKeyframes:tk},"zoom-big":{inKeyframes:ky,outKeyframes:Iy},"zoom-big-fast":{inKeyframes:ky,outKeyframes:Iy},"zoom-left":{inKeyframes:ik,outKeyframes:ok},"zoom-right":{inKeyframes:ak,outKeyframes:sk},"zoom-up":{inKeyframes:nk,outKeyframes:rk},"zoom-down":{inKeyframes:lk,outKeyframes:ck}},dk=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=uk[t];return[ek(r,i,o,e.motionDurationFast),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fk=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Bl(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},IC=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return jn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},FC=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:_u(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:_u(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:_u(c),p=fk(new XR(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,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,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},hk=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},o$(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},NC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),gk=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pk=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mk=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Bm=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},NC(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),vk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mk(e))}),yk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rf=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?yk:vk;return Object.assign(Object.assign({},o(e)),NC(e.componentCls,t,n))},Vm=(e,t,n,r,i)=>({[`&${e.componentCls}-solid`]:Object.assign({color:t,background:n},rf(e,r,i))}),Wm=(e,t,n,r,i)=>({[`&${e.componentCls}-outlined, &${e.componentCls}-dashed`]:Object.assign({borderColor:t,background:n},rf(e,r,i))}),Um=e=>({[`&${e.componentCls}-dashed`]:{borderStyle:"dashed"}}),Gm=(e,t,n,r)=>({[`&${e.componentCls}-filled`]:Object.assign({boxShadow:"none",background:t},rf(e,n,r))}),rs=(e,t,n,r,i)=>({[`&${e.componentCls}-${n}`]:Object.assign({color:t,boxShadow:"none"},rf(e,r,i,n))}),bk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Vm(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Wm(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Um(e)),Gm(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),rs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),rs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bm(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),xk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Vm(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover},{background:e.colorPrimaryActive})),Wm(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Um(e)),Gm(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),rs(e,e.colorPrimary,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rs(e,e.colorPrimary,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Bm(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Sk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Vm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wm(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Um(e)),Gm(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),rs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),rs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Bm(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wk=e=>{const{componentCls:t}=e;return{[`${t}-default`]:bk(e),[`${t}-primary`]:xk(e),[`${t}-dangerous`]:Sk(e)}},qm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${ae(c)} ${ae(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:gk(e)},{[`${n}${n}-round${t}`]:pk(e)}]},Ck=e=>{const t=jn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return qm(t,e.componentCls)},Ek=e=>{const t=jn(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 qm(t,`${e.componentCls}-sm`)},_k=e=>{const t=jn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qm(t,`${e.componentCls}-lg`)},Ok=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Mk=ui("Button",e=>{const t=IC(e);return[hk(t),Ck(t),Ek(t),_k(t),Ok(t),wk(t),HR(t)]},FC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tk(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Pk(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Tk(e,r,t)),Pk(n,r,t))}}function $k(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Rk(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function kk(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$k(e,t)),Rk(e.componentCls,t))}}const Ik=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ae(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ae(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Fk=lC(["Button","compact"],e=>{const t=IC(e);return[Xm(t),kk(t),Ik(t)]},FC);var Nk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:o=!1,prefixCls:a,color:s,variant:l,type:c,danger:u=!1,shape:d="default",size:f,styles:p,disabled:v,className:y,rootClassName:b,children:m,icon:g,iconPosition:x="start",ghost:S=!1,block:w=!1,htmlType:C="button",classNames:_,style:M={},autoInsertSpace:T}=e,P=Nk(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),F=c||"default",[D,z]=h.useMemo(()=>{if(s&&l)return[s,l];const Qe=Lk[F]||[];return u?["danger",Qe[1]]:Qe},[c,s,l,u]),W=D==="danger"?"dangerous":D,{getPrefixCls:N,direction:R,button:$}=h.useContext(Rt),I=(n=T??($==null?void 0:$.autoInsertSpace))!==null&&n!==void 0?n:!0,A=N("btn",a),[H,G,Y]=Mk(A),U=h.useContext(qo),X=v??U,ee=h.useContext(RC),q=h.useMemo(()=>Ak(o),[o]),[K,Z]=h.useState(q.loading),[ne,pe]=h.useState(!1),xe=ho(t,h.createRef()),me=h.Children.count(m)===1&&!g&&!th(z);h.useEffect(()=>{let Qe=null;q.delay>0?Qe=setTimeout(()=>{Qe=null,Z(!0)},q.delay):Z(q.loading);function tt(){Qe&&(clearTimeout(Qe),Qe=null)}return tt},[q]),h.useEffect(()=>{if(!xe||!xe.current||!I)return;const Qe=xe.current.textContent;me&&Xg(Qe)?ne||pe(!0):ne&&pe(!1)},[xe]);const fe=Qe=>{const{onClick:tt}=e;if(K||X){Qe.preventDefault();return}tt==null||tt(Qe)},{compactSize:be,compactItemClassnames:he}=$C(A,R),we={large:"lg",small:"sm",middle:void 0},Ae=jm(Qe=>{var tt,ft;return(ft=(tt=f??be)!==null&&tt!==void 0?tt:ee)!==null&&ft!==void 0?ft:Qe}),Ee=Ae&&we[Ae]||"",ie=K?"loading":g,Ie=oc(P,["navigate"]),oe=ve(A,G,Y,{[`${A}-${d}`]:d!=="default"&&d,[`${A}-${W}`]:W,[`${A}-${z}`]:z,[`${A}-${Ee}`]:Ee,[`${A}-icon-only`]:!m&&m!==0&&!!ie,[`${A}-background-ghost`]:S&&!th(z),[`${A}-loading`]:K,[`${A}-two-chinese-chars`]:ne&&I&&!K,[`${A}-block`]:w,[`${A}-rtl`]:R==="rtl",[`${A}-icon-end`]:x==="end"},he,y,b,$==null?void 0:$.className),Be=Object.assign(Object.assign({},$==null?void 0:$.style),M),Pe=ve(_==null?void 0:_.icon,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.icon),Fe=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((i=$==null?void 0:$.styles)===null||i===void 0?void 0:i.icon)||{}),je=g&&!K?de.createElement(kC,{prefixCls:A,className:Pe,style:Fe},g):de.createElement(jR,{existIcon:!!g,prefixCls:A,loading:K}),Ge=m||m===0?zR(m,me&&I):null;if(Ie.href!==void 0)return H(de.createElement("a",Object.assign({},Ie,{className:ve(oe,{[`${A}-disabled`]:X}),href:X?void 0:Ie.href,style:Be,onClick:fe,ref:xe,tabIndex:X?-1:0}),je,Ge));let ct=de.createElement("button",Object.assign({},P,{type:C,className:oe,style:Be,onClick:fe,disabled:X,ref:xe}),je,Ge,!!he&&de.createElement(Fk,{key:"compact",prefixCls:A}));return th(z)||(ct=de.createElement(FR,{component:"Button",disabled:K},ct)),H(ct)}),Km=Dk;Km.Group=LR;Km.__ANT_BUTTON=!0;var AC=h.createContext(null),Fy=[];function zk(e,t){var n=h.useState(function(){if(!sr())return null;var v=document.createElement("div");return v}),r=te(n,1),i=r[0],o=h.useRef(!1),a=h.useContext(AC),s=h.useState(Fy),l=te(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(v){u(function(y){var b=[v].concat(le(y));return b})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return mn(function(){return e?a?a(f):f():p(),p},[e]),mn(function(){c.length&&(c.forEach(function(v){return v()}),u(Fy))},[c]),[i,d]}function jk(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";wi(` -#`.concat(t,`::-webkit-scrollbar { -`).concat(u,` -`).concat(d,` -}`),t)}catch(v){console.error(v),i=l,o=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Al(t),{width:f,height:p}}function Hk(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:jk(e)}function Bk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Vk="rc-util-locker-".concat(Date.now()),Ny=0;function Wk(e){var t=!!e,n=h.useState(function(){return Ny+=1,"".concat(Vk,"_").concat(Ny)}),r=te(n,1),i=r[0];mn(function(){if(t){var o=Hk(document.body).width,a=Bk();wi(` -html body { - overflow-y: hidden; - `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` -}`),i)}else Al(i);return function(){Al(i)}},[t,i])}var Uk=!1;function Gk(e){return Uk}var Ay=function(t){return t===!1?!1:!sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},LC=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=h.useState(n),c=te(l,2),u=c[0],d=c[1],f=u||n;h.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=h.useState(function(){return Ay(i)}),v=te(p,2),y=v[0],b=v[1];h.useEffect(function(){var F=Ay(i);b(F??null)});var m=zk(f&&!y),g=te(m,2),x=g[0],S=g[1],w=y??x;Wk(r&&n&&sr()&&(w===x||w===document.body));var C=null;if(s&&cs(s)&&t){var _=s;C=_.ref}var M=_m(C,t);if(!f||!sr()||y===void 0)return null;var T=w===!1||Gk(),P=s;return t&&(P=h.cloneElement(s,{ref:M})),h.createElement(AC.Provider,{value:S},T?P:ic.createPortal(P,w))});function qk(){var e=V({},wd);return e.useId}var Ly=0,Dy=qk();const Xk=Dy?function(t){var n=Dy();return t||n}:function(t){var n=h.useState("ssr-id"),r=te(n,2),i=r[0],o=r[1];return h.useEffect(function(){var a=Ly;Ly+=1,o("rc_unique_".concat(a))},[]),t||i};var ko="RC_FORM_INTERNAL_HOOKS",ut=function(){Tn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ko=h.createContext({getFieldValue:ut,getFieldsValue:ut,getFieldError:ut,getFieldWarning:ut,getFieldsError:ut,isFieldsTouched:ut,isFieldTouched:ut,isFieldValidating:ut,isFieldsValidating:ut,resetFields:ut,setFields:ut,setFieldValue:ut,setFieldsValue:ut,validateFields:ut,submit:ut,getInternalHooks:function(){return ut(),{dispatch:ut,initEntityValue:ut,registerField:ut,useSubscribe:ut,setInitialValues:ut,destroyForm:ut,setCallbacks:ut,registerWatch:ut,getFields:ut,setValidateMessages:ut,setPreserve:ut,getInitialValue:ut}}}),Vl=h.createContext(null);function Kg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Kk(e){return e&&!!e._init}function Yg(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Qg=Yg();function Yk(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Qk(e,t,n){if(Om())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Il(i,n.prototype),i}function Zg(e){var t=typeof Map=="function"?new Map:void 0;return Zg=function(r){if(r===null||!Yk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Qk(r,arguments,Fl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Il(i,r)},Zg(e)}var Zk=/%[sdj%]/g,Jk=function(){};function Jg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function eI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eI(t)&&typeof e=="string"&&!e)}function tI(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,le(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function zy(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(ir(o.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(ir(o.messages[d].range,t.fullField,t.min,t.max))},DC=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||tn(n,a||t.type))&&i.push(ir(o.messages.required,t.fullField))},Bc;const cI=function(){if(Bc)return Bc;var e="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,v=u.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(v,"|").concat(y).concat(b).concat(m,")").concat(g).concat(x);return Bc=new RegExp("(?:^".concat(S,"$)"),"i"),Bc};var Vy={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},js={integer:function(t){return js.number(t)&&parseInt(t,10)===t},float:function(t){return js.number(t)&&!js.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Re(t)==="object"&&!js.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cI())},hex:function(t){return typeof t=="string"&&!!t.match(Vy.hex)}},uI=function(t,n,r,i,o){if(t.required&&n===void 0){DC(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?js[s](n)||i.push(ir(o.messages.types[s],t.fullField,t.type)):s&&Re(n)!==t.type&&i.push(ir(o.messages.types[s],t.fullField,t.type))},dI=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(ir(o.messages.whitespace,t.fullField))};const Ye={required:DC,whitespace:dI,type:uI,range:lI,enum:aI,pattern:sI};var fI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o)}r(a)},hI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ye.required(t,n,i,a,o,"array"),n!=null&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},gI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},pI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"date")&&!t.required)return r();if(Ye.required(t,n,i,a,o),!tn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ye.type(t,l,i,a,o),l&&Ye.range(t,l.getTime(),i,a,o)}}r(a)},mI="enum",vI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye[mI](t,n,i,a,o)}r(a)},yI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},bI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},xI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},SI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},wI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},CI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();Ye.required(t,n,i,a,o),tn(n,"string")||Ye.pattern(t,n,i,a,o)}r(a)},EI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),tn(n)||Ye.type(t,n,i,a,o)}r(a)},_I=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":Re(n);Ye.required(t,n,i,a,o,s),r(a)},OI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();Ye.required(t,n,i,a,o,"string"),tn(n,"string")||(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o),Ye.pattern(t,n,i,a,o),t.whitespace===!0&&Ye.whitespace(t,n,i,a,o))}r(a)},ah=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tn(n,a)&&!t.required)return r();Ye.required(t,n,i,s,o,a),tn(n,a)||Ye.type(t,n,i,s,o)}r(s)};const ol={string:OI,method:xI,number:SI,boolean:gI,regexp:EI,integer:bI,float:yI,array:hI,object:wI,enum:vI,pattern:CI,date:pI,url:ah,hex:ah,email:ah,required:_I,any:fI};var sc=function(){function e(t){Kt(this,e),L(this,"rules",null),L(this,"_messages",Qg),this.define(t)}return Yt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Re(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=By(Yg(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(v){var y=[],b={};function m(x){if(Array.isArray(x)){var S;y=(S=y).concat.apply(S,le(x))}else y.push(x)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(_)?_:[_];!s.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&b.message!==void 0&&(M=[].concat(b.message));var T=M.map(Hy(b,a));if(s.first&&T.length)return p[b.field]=1,y(T);if(!m)y(T);else{if(b.required&&!v.value)return b.message!==void 0?T=[].concat(b.message).map(Hy(b,a)):s.error&&(T=[s.error(b,ir(s.messages.required,b.field))]),y(T);var P={};b.defaultField&&Object.keys(v.value).map(function(z){P[z]=b.defaultField}),P=V(V({},P),v.rule.fields);var F={};Object.keys(P).forEach(function(z){var j=P[z],W=Array.isArray(j)?j:[j];F[z]=W.map(g.bind(null,z))});var D=new e(F);D.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),D.validate(v.value,v.rule.options||s,function(z){var j=[];T&&T.length&&j.push.apply(j,le(T)),z&&z.length&&j.push.apply(j,le(z)),y(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,v.value,x,v.source,s);else if(b.validator){try{S=b.validator(b,v.value,x,v.source,s)}catch(_){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,_),s.suppressValidatorError||setTimeout(function(){throw _},0),x(_.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(_){return x(_)})},function(v){c(v)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ol.hasOwnProperty(n.type))throw new Error(ir("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?ol.required:ol[this.getType(n)]||void 0}}]),e}();L(sc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ol[t]=n});L(sc,"warning",Jk);L(sc,"messages",Qg);L(sc,"validators",ol);var er="'${name}' is not a valid ${type}",zC={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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}"}},Wy=sc;function MI(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Uy="CODE_LOGIC_ERROR";function ep(e,t,n,r,i){return tp.apply(this,arguments)}function tp(){return tp=ea(Ln().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,f,p,v;return Ln().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,Wy.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Uy)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Wy(L({},t,[a])),u=ka(zC,i.validateMessages),c.messages(u),d=[],b.prev=10,b.next=13,Promise.resolve(c.validate(L({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(d=b.t0.errors.map(function(m,g){var x=m.message,S=x===Uy?u.default:x;return h.isValidElement(S)?h.cloneElement(S,{key:"error_".concat(g)}):S}));case 18:if(!(!d.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(m,g){return ep("".concat(t,".").concat(g),m,l,i,o)}));case 21:return f=b.sent,b.abrupt("return",f.reduce(function(m,g){return[].concat(le(m),le(g))},[]));case 23:return p=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),v=d.map(function(m){return typeof m=="string"?MI(m,p):m}),b.abrupt("return",v);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),tp.apply(this,arguments)}function TI(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=V(V({},u),{},{ruleIndex:d});return f&&(p.validator=function(v,y,b){var m=!1,g=function(){for(var w=arguments.length,C=new Array(w),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return jC(t,r,n)})}function jC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function RI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Re(e)!=="object"||Re(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return le(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function kI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Re(t.target)==="object"&&e in t.target?t.target[e]:t}function qy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(le(e.slice(0,n)),[i],le(e.slice(n,t)),le(e.slice(t+1,r))):o<0?[].concat(le(e.slice(0,t)),le(e.slice(t+1,n+1)),[i],le(e.slice(n+1,r))):e}var II=["name"],mr=[];function sh(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Ym=function(e){go(n,e);var t=po(n);function n(r){var i;if(Kt(this,n),i=t.call(this,r),L(He(i),"state",{resetCount:0}),L(He(i),"cancelRegisterFunc",null),L(He(i),"mounted",!1),L(He(i),"touched",!1),L(He(i),"dirty",!1),L(He(i),"validatePromise",void 0),L(He(i),"prevValidating",void 0),L(He(i),"errors",mr),L(He(i),"warnings",mr),L(He(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,jt(d)),i.cancelRegisterFunc=null}),L(He(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(le(f),le(c)):[]}),L(He(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),L(He(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),L(He(i),"metaCache",null),L(He(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});rd(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),L(He(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,p=d.dependencies,v=p===void 0?[]:p,y=d.onReset,b=u.store,m=i.getNamePath(),g=i.getValue(l),x=i.getValue(b),S=c&&Ba(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!rd(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=mr,i.warnings=mr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=mr,i.warnings=mr,i.triggerMetaEvent(),y==null||y(),i.refresh();return}break;case"remove":{if(f&&sh(f,l,b,g,x,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||mr),"warnings"in w&&(i.warnings=w.warnings||mr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Ba(c,m,!0)){i.reRender();return}if(f&&!m.length&&sh(f,l,b,g,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var C=v.map(jt);if(C.some(function(_){return Ba(u.relatedFields,_)})){i.reRender();return}break}default:if(S||(!v.length||m.length||f)&&sh(f,l,b,g,x,u)){i.reRender();return}break}f===!0&&i.reRender()}),L(He(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,v=p===void 0?!1:p,y=Promise.resolve().then(ea(Ln().mark(function b(){var m,g,x,S,w,C,_;return Ln().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(m=i.props,g=m.validateFirst,x=g===void 0?!1:g,S=m.messageVariables,w=m.validateDebounce,C=i.getRules(),f&&(C=C.filter(function(P){return P}).filter(function(P){var F=P.validateTrigger;if(!F)return!0;var D=Kg(F);return D.includes(f)})),!(w&&f)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(i.validatePromise===y){T.next=10;break}return T.abrupt("return",[]);case 10:return _=TI(c,u,C,l,x,S),_.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(i.validatePromise===y){var F;i.validatePromise=null;var D=[],z=[];(F=P.forEach)===null||F===void 0||F.call(P,function(j){var W=j.rule.warningOnly,N=j.errors,R=N===void 0?mr:N;W?z.push.apply(z,le(R)):D.push.apply(D,le(R))}),i.errors=D,i.warnings=z,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",_);case 13:case"end":return T.stop()}},b)})));return v||(i.validatePromise=y,i.dirty=!0,i.errors=mr,i.warnings=mr,i.triggerMetaEvent(),i.reRender()),y}),L(He(i),"isFieldValidating",function(){return!!i.validatePromise}),L(He(i),"isFieldTouched",function(){return i.touched}),L(He(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(ko),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),L(He(i),"getErrors",function(){return i.errors}),L(He(i),"getWarnings",function(){return i.warnings}),L(He(i),"isListField",function(){return i.props.isListField}),L(He(i),"isList",function(){return i.props.isList}),L(He(i),"isPreserve",function(){return i.props.preserve}),L(He(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),L(He(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Qa(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),L(He(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return ai(l||c(!0),u)}),L(He(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,v=c.normalize,y=c.valuePropName,b=c.getValueProps,m=c.fieldContext,g=f!==void 0?f:m.validateTrigger,x=i.getNamePath(),S=m.getInternalHooks,w=m.getFieldsValue,C=S(ko),_=C.dispatch,M=i.getValue(),T=b||function(j){return L({},y,j)},P=l[d],F=u!==void 0?T(M):{},D=V(V({},l),F);D[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,W=arguments.length,N=new Array(W),R=0;R=0&&P<=F.length?(u.keys=[].concat(le(u.keys.slice(0,P)),[u.id],le(u.keys.slice(P))),x([].concat(le(F.slice(0,P)),[T],le(F.slice(P))))):(u.keys=[].concat(le(u.keys),[u.id]),x([].concat(le(F),[T]))),u.id+=1},remove:function(T){var P=w(),F=new Set(Array.isArray(T)?T:[T]);F.size<=0||(u.keys=u.keys.filter(function(D,z){return!F.has(z)}),x(P.filter(function(D,z){return!F.has(z)})))},move:function(T,P){if(T!==P){var F=w();T<0||T>=F.length||P<0||P>=F.length||(u.keys=qy(u.keys,T,P),x(qy(F,T,P)))}}},_=g||[];return Array.isArray(_)||(_=[]),r(_.map(function(M,T){var P=u.keys[T];return P===void 0&&(u.keys[T]=u.id,P=u.keys[T],u.id+=1),{name:T,key:P,isListField:!0}}),C,b)})))}function FI(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var BC="__@field_split__";function lh(e){return e.map(function(t){return"".concat(Re(t),":").concat(t)}).join(BC)}var fa=function(){function e(){Kt(this,e),L(this,"kvs",new Map)}return Yt(e,[{key:"set",value:function(n,r){this.kvs.set(lh(n),r)}},{key:"get",value:function(n){return this.kvs.get(lh(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(lh(n))}},{key:"map",value:function(n){return le(this.kvs.entries()).map(function(r){var i=te(r,2),o=i[0],a=i[1],s=o.split(BC);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=te(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),NI=["name"],AI=Yt(function e(t){var n=this;Kt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(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}}),L(this,"getInternalHooks",function(r){return r===ko?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Tn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(r){n.subscribable=r}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=ka(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=zr(a,l,ai(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new fa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),L(this,"getInitialValue",function(r){var i=ai(n.initialValues,r);return r.length?ka(i):i}),L(this,"setCallbacks",function(r){n.callbacks=r}),L(this,"setValidateMessages",function(r){n.validateMessages=r}),L(this,"setPreserve",function(r){n.preserve=r}),L(this,"watchList",[]),L(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),L(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){}),L(this,"updateStore",function(r){n.store=r}),L(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),L(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new fa;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=jt(o);return i.get(a)||{INVALIDATE_NAME_PATH:jt(o)}})}),L(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Re(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,f,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,y;if((v=(y=u).isList)!==null&&v!==void 0&&v.call(y))return}else if(!o&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(p);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(p)}}),Gy(n.store,c.map(jt))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var i=jt(r);return ai(n.store,i)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:jt(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var i=jt(r),o=n.getFieldsError([i])[0];return o.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var i=jt(r),o=n.getFieldsError([i])[0];return o.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new fa,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Tn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=i.get(f);if(v&&v.size>1)Tn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var y=n.getFieldValue(f),b=u.isListField();!b&&(!r.skipExist||y===void 0)&&n.updateStore(zr(n.store,f,le(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,le(le(c).map(function(d){return d.entity})))}})):s=o,a(s)}),L(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(jt);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(zr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),L(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=$n(a,NI),c=jt(s);o.push(c),"value"in l&&n.updateStore(zr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),L(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=ai(n.store,o);a===void 0&&n.updateStore(zr(n.store,o,i))}}),L(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),L(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!jC(d.getNamePath(),i)})){var u=n.store;n.updateStore(zr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),L(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),L(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(le(o))}),o}),L(this,"updateValue",function(r,i){var o=jt(r),a=n.store;n.updateStore(zr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=Gy(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(le(s)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=ka(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),L(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),L(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new fa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=jt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f))}})};return s(r),o}),L(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new fa;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ba(r,u)});l.length&&o(l,a)}}),L(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(jt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},p=f.recursive,v=f.dirty;n.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(v&&!g.isFieldDirty())){var x=g.getNamePath();if(d.add(x.join(u)),!s||Ba(l,x,p)){var S=g.validateRules(V({validateMessages:V(V({},zC),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var C,_=[],M=[];return(C=w.forEach)===null||C===void 0||C.call(w,function(T){var P=T.rule.warningOnly,F=T.errors;P?M.push.apply(M,le(F)):_.push.apply(_,le(F))}),_.length?Promise.reject({name:x,errors:_,warnings:M}):{name:x,errors:_,warnings:M}}))}}});var y=FI(c);n.lastValidatePromise=y,y.catch(function(g){return g}).then(function(g){var x=g.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,g)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var x=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==y})});b.catch(function(g){return g});var m=l.filter(function(g){return d.has(g.join(u))});return n.triggerOnFieldsChange(m),b}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function Zm(e){var t=h.useRef(),n=h.useState({}),r=te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new AI(o);t.current=a.getForm()}return[t.current]}var ip=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),VC=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=h.useContext(ip),s=h.useRef({});return h.createElement(ip.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},L({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},LI=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],DI=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,v=t.onValuesChange,y=t.onFieldsChange,b=t.onFinish,m=t.onFinishFailed,g=t.clearOnDestroy,x=$n(t,LI),S=h.useRef(null),w=h.useContext(ip),C=Zm(a),_=te(C,1),M=_[0],T=M.getInternalHooks(ko),P=T.useSubscribe,F=T.setInitialValues,D=T.setCallbacks,z=T.setValidateMessages,j=T.setPreserve,W=T.destroyForm;h.useImperativeHandle(n,function(){return V(V({},M),{},{nativeElement:S.current})}),h.useEffect(function(){return w.registerForm(r,M),function(){w.unregisterForm(r)}},[w,M,r]),z(V(V({},w.validateMessages),d)),D({onValuesChange:v,onFieldsChange:function(U){if(w.triggerFormChange(r,U),y){for(var X=arguments.length,ee=new Array(X>1?X-1:0),q=1;q{}}),UC=h.createContext(null),GC=e=>{const t=oc(e,["prefixCls"]);return h.createElement(VC,Object.assign({},t))},Jm=h.createContext({prefixCls:""}),Yo=h.createContext({}),jI=e=>{let{children:t,status:n,override:r}=e;const i=h.useContext(Yo),o=h.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return h.createElement(Yo.Provider,{value:o},t)},qC=h.createContext(void 0),op=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=de.createElement(jI,{override:!0,status:!0},i)),t&&(i=de.createElement(NR,null,i)),i},XC=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function HI(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],y=n.points[1],b=v[0],m=v[1],g=y[0],x=y[1];b===g||!["t","b"].includes(b)?p.top=d:b==="t"?p.top=0:p.bottom=0,m===x||!["l","r"].includes(m)?p.left=c:m==="l"?p.left=0:p.right=0}return h.createElement("div",{ref:f,className:ve("".concat(t,"-arrow"),a),style:p},s)}function BI(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?h.createElement(ds,nt({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:ve("".concat(t,"-mask"),s)})}):null}var VI=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),WI=h.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,v=e.arrowPos,y=e.align,b=e.motion,m=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,w=e.portal,C=e.zIndex,_=e.onMouseEnter,M=e.onMouseLeave,T=e.onPointerEnter,P=e.ready,F=e.offsetX,D=e.offsetY,z=e.offsetR,j=e.offsetB,W=e.onAlign,N=e.onPrepare,R=e.stretch,$=e.targetWidth,I=e.targetHeight,A=typeof n=="function"?n():n,H=l||c,G=(x==null?void 0:x.length)>0,Y=h.useState(!x||!G),U=te(Y,2),X=U[0],ee=U[1];if(mn(function(){!X&&G&&a&&ee(!0)},[X,G,a]),!X)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var Z,ne=y.points,pe=y.dynamicInset||((Z=y._experimental)===null||Z===void 0?void 0:Z.dynamicInset),ye=pe&&ne[0][1]==="r",xe=pe&&ne[0][0]==="b";ye?(K.right=z,K.left=q):(K.left=F,K.right=q),xe?(K.bottom=j,K.top=q):(K.top=D,K.bottom=q)}var me={};return R&&(R.includes("height")&&I?me.height=I:R.includes("minHeight")&&I&&(me.minHeight=I),R.includes("width")&&$?me.width=$:R.includes("minWidth")&&$&&(me.minWidth=$)),l||(me.pointerEvents="none"),h.createElement(w,{open:g||H,getContainer:x&&function(){return x(a)},autoDestroy:S},h.createElement(BI,{prefixCls:i,open:l,zIndex:C,mask:f,motion:m}),h.createElement(Mm,{onResize:W,disabled:!l},function(fe){return h.createElement(ds,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(he){var we;b==null||(we=b.onVisibleChanged)===null||we===void 0||we.call(b,he),s(he)}}),function(be,he){var we=be.className,Ae=be.style,Ee=ve(i,we,r);return h.createElement("div",{ref:ho(fe,t,he),className:Ee,style:V(V(V(V({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},K),me),Ae),{},{boxSizing:"border-box",zIndex:C},o),onMouseEnter:_,onMouseLeave:M,onPointerEnter:T,onClick:d},p&&h.createElement(HI,{prefixCls:i,arrow:p,arrowPos:v,align:y}),h.createElement(VI,{cache:!l&&!u},A))})}))}),UI=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=cs(n),o=h.useCallback(function(s){Em(t,r?r(s):s)},[r]),a=_m(o,n.ref);return i?h.cloneElement(n,{ref:a}):n}),Ky=h.createContext(null);function Yy(e){return e?Array.isArray(e)?e:[e]:[]}function GI(e,t,n,r){return h.useMemo(function(){var i=Yy(n??t),o=Yy(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function qI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function XI(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function $s(e){return Wl(parseFloat(e),0)}function Zy(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=lc(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,v=r.offsetWidth,y=r.clientWidth,b=$s(s),m=$s(l),g=$s(c),x=$s(u),S=Wl(Math.round(d.width/v*1e3)/1e3),w=Wl(Math.round(d.height/f*1e3)/1e3),C=(v-y-g-x)*S,_=(f-p-b-m)*w,M=b*w,T=m*w,P=g*S,F=x*S,D=0,z=0;if(o==="clip"){var j=$s(a);D=j*S,z=j*w}var W=d.x+P-D,N=d.y+M-z,R=W+d.width+2*D-P-F-C,$=N+d.height+2*z-M-T-_;n.left=Math.max(n.left,W),n.top=Math.max(n.top,N),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,$)}}),n}function Jy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function eb(e,t){var n=t||[],r=te(n,2),i=r[0],o=r[1];return[Jy(e.width,i),Jy(e.height,o)]}function tb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ha(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Ii(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function KI(e,t,n,r,i,o,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=te(s,2),c=l[0],u=l[1],d=h.useRef(0),f=h.useMemo(function(){return t?ap(t):[]},[t]),p=h.useRef({}),v=function(){p.current={}};e||v();var y=vn(function(){if(t&&n&&e){let at=function(bs,bo){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be,dc=U.x+bs,fc=U.y+bo,ge=dc+xe,$e=fc+ye,bt=Math.max(dc,sa.left),zt=Math.max(fc,sa.top),xt=Math.min(ge,sa.right),la=Math.min($e,sa.bottom);return Math.max(0,(xt-bt)*(la-zt))},on=function(){rn=U.y+ke,In=rn+ye,ot=U.x+qe,Fn=ot+xe};var Dt=at,Ft=on,g,x,S,w,C=t,_=C.ownerDocument,M=lc(C),T=M.getComputedStyle(C),P=T.width,F=T.height,D=T.position,z=C.style.left,j=C.style.top,W=C.style.right,N=C.style.bottom,R=C.style.overflow,$=V(V({},i[r]),o),I=_.createElement("div");(g=C.parentElement)===null||g===void 0||g.appendChild(I),I.style.left="".concat(C.offsetLeft,"px"),I.style.top="".concat(C.offsetTop,"px"),I.style.position=D,I.style.height="".concat(C.offsetHeight,"px"),I.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var H,G,Y=n.getBoundingClientRect();Y.x=(H=Y.x)!==null&&H!==void 0?H:Y.left,Y.y=(G=Y.y)!==null&&G!==void 0?G:Y.top,A={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var U=C.getBoundingClientRect();U.x=(x=U.x)!==null&&x!==void 0?x:U.left,U.y=(S=U.y)!==null&&S!==void 0?S:U.top;var X=_.documentElement,ee=X.clientWidth,q=X.clientHeight,K=X.scrollWidth,Z=X.scrollHeight,ne=X.scrollTop,pe=X.scrollLeft,ye=U.height,xe=U.width,me=A.height,fe=A.width,be={left:0,top:0,right:ee,bottom:q},he={left:-pe,top:-ne,right:K-pe,bottom:Z-ne},we=$.htmlRegion,Ae="visible",Ee="visibleFirst";we!=="scroll"&&we!==Ee&&(we=Ae);var ie=we===Ee,Ie=Zy(he,f),oe=Zy(be,f),Be=we===Ae?oe:Ie,Pe=ie?oe:Be;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Fe=C.getBoundingClientRect();C.style.left=z,C.style.top=j,C.style.right=W,C.style.bottom=N,C.style.overflow=R,(w=C.parentElement)===null||w===void 0||w.removeChild(I);var je=Wl(Math.round(xe/parseFloat(P)*1e3)/1e3),Ge=Wl(Math.round(ye/parseFloat(F)*1e3)/1e3);if(je===0||Ge===0||kl(n)&&!zm(n))return;var ct=$.offset,Qe=$.targetOffset,tt=eb(U,ct),ft=te(tt,2),Wt=ft[0],wt=ft[1],ur=eb(A,Qe),hn=te(ur,2),kt=hn[0],ht=hn[1];A.x-=kt,A.y-=ht;var kr=$.points||[],gt=te(kr,2),nn=gt[0],Se=gt[1],se=tb(Se),Oe=tb(nn),Me=ha(A,se),Le=ha(U,Oe),dt=V({},$),qe=Me.x-Le.x+Wt,ke=Me.y-Le.y+wt,Ut=at(qe,ke),gn=at(qe,ke,oe),it=ha(A,["t","l"]),Ze=ha(U,["t","l"]),Gt=ha(A,["b","r"]),Ct=ha(U,["b","r"]),Qt=$.overflow||{},dr=Qt.adjustX,Kr=Qt.adjustY,Hn=Qt.shiftX,kn=Qt.shiftY,Zn=function(bo){return typeof bo=="boolean"?bo:bo>=0},rn,In,ot,Fn;on();var Sn=Zn(Kr),Ir=Oe[0]===se[0];if(Sn&&Oe[0]==="t"&&(In>Pe.bottom||p.current.bt)){var _e=ke;Ir?_e-=ye-me:_e=it.y-Ct.y-wt;var Ce=at(qe,_e),Je=at(qe,_e,oe);Ce>Ut||Ce===Ut&&(!ie||Je>=gn)?(p.current.bt=!0,ke=_e,wt=-wt,dt.points=[Ii(Oe,0),Ii(se,0)]):p.current.bt=!1}if(Sn&&Oe[0]==="b"&&(rnUt||Ke===Ut&&(!ie||Zt>=gn)?(p.current.tb=!0,ke=Xe,wt=-wt,dt.points=[Ii(Oe,0),Ii(se,0)]):p.current.tb=!1}var Et=Zn(dr),yt=Oe[1]===se[1];if(Et&&Oe[1]==="l"&&(Fn>Pe.right||p.current.rl)){var _t=qe;yt?_t-=xe-fe:_t=it.x-Ct.x-Wt;var Ot=at(_t,ke),Mt=at(_t,ke,oe);Ot>Ut||Ot===Ut&&(!ie||Mt>=gn)?(p.current.rl=!0,qe=_t,Wt=-Wt,dt.points=[Ii(Oe,1),Ii(se,1)]):p.current.rl=!1}if(Et&&Oe[1]==="r"&&(otUt||fr===Ut&&(!ie||hr>=gn)?(p.current.lr=!0,qe=Lt,Wt=-Wt,dt.points=[Ii(Oe,1),Ii(se,1)]):p.current.lr=!1}on();var It=Hn===!0?0:Hn;typeof It=="number"&&(otoe.right&&(qe-=Fn-oe.right-Wt,A.x>oe.right-It&&(qe+=A.x-oe.right+It)));var wn=kn===!0?0:kn;typeof wn=="number"&&(rnoe.bottom&&(ke-=In-oe.bottom-wt,A.y>oe.bottom-wn&&(ke+=A.y-oe.bottom+wn)));var Yr=U.x+qe,Qr=Yr+xe,Bn=U.y+ke,mo=Bn+ye,di=A.x,gr=di+fe,vo=A.y,ia=vo+me,yo=Math.max(Yr,di),oa=Math.min(Qr,gr),aa=(yo+oa)/2,ys=aa-Yr,E=Math.max(Bn,vo),O=Math.min(mo,ia),k=(E+O)/2,B=k-Bn;a==null||a(t,dt);var Q=Fe.right-U.x-(qe+U.width),re=Fe.bottom-U.y-(ke+U.height);je===1&&(qe=Math.round(qe),Q=Math.round(Q)),Ge===1&&(ke=Math.round(ke),re=Math.round(re));var De={ready:!0,offsetX:qe/je,offsetY:ke/Ge,offsetR:Q/je,offsetB:re/Ge,arrowX:ys/je,arrowY:B/Ge,scaleX:je,scaleY:Ge,align:dt};u(De)}}),b=function(){d.current+=1;var x=d.current;Promise.resolve().then(function(){d.current===x&&y()})},m=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return mn(m,[r]),mn(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function YI(e,t,n,r,i){mn(function(){if(e&&t&&n){let f=function(){r(),i()};var d=f,o=t,a=n,s=ap(o),l=ap(a),c=lc(a),u=new Set([c].concat(le(s),le(l)));return u.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function QI(e,t,n,r,i,o,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!i||o)){var c=function(p){var v;l.current&&!a(((v=p.composedPath)===null||v===void 0||(v=v.call(p))===null||v===void 0?void 0:v[0])||p.target)&&s(!1)},u=lc(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var d=sd(n);return d&&(d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),d&&(d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var ZI=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function JI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LC,t=h.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,m=b===void 0?.1:b,g=n.focusDelay,x=n.blurDelay,S=n.mask,w=n.maskClosable,C=w===void 0?!0:w,_=n.getPopupContainer,M=n.forceRender,T=n.autoDestroy,P=n.destroyPopupOnHide,F=n.popup,D=n.popupClassName,z=n.popupStyle,j=n.popupPlacement,W=n.builtinPlacements,N=W===void 0?{}:W,R=n.popupAlign,$=n.zIndex,I=n.stretch,A=n.getPopupClassNameFromAlign,H=n.fresh,G=n.alignPoint,Y=n.onPopupClick,U=n.onPopupAlign,X=n.arrow,ee=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,Z=n.popupAnimation,ne=n.maskTransitionName,pe=n.maskAnimation,ye=n.className,xe=n.getTriggerDOMNode,me=$n(n,ZI),fe=T||P||!1,be=h.useState(!1),he=te(be,2),we=he[0],Ae=he[1];mn(function(){Ae(XC())},[]);var Ee=h.useRef({}),ie=h.useContext(Ky),Ie=h.useMemo(function(){return{registerSubPopup:function($e,bt){Ee.current[$e]=bt,ie==null||ie.registerSubPopup($e,bt)}}},[ie]),oe=Xk(),Be=h.useState(null),Pe=te(Be,2),Fe=Pe[0],je=Pe[1],Ge=h.useRef(null),ct=vn(function(ge){Ge.current=ge,kl(ge)&&Fe!==ge&&je(ge),ie==null||ie.registerSubPopup(oe,ge)}),Qe=h.useState(null),tt=te(Qe,2),ft=tt[0],Wt=tt[1],wt=h.useRef(null),ur=vn(function(ge){kl(ge)&&ft!==ge&&(Wt(ge),wt.current=ge)}),hn=h.Children.only(a),kt=(hn==null?void 0:hn.props)||{},ht={},kr=vn(function(ge){var $e,bt,zt=ft;return(zt==null?void 0:zt.contains(ge))||(($e=sd(zt))===null||$e===void 0?void 0:$e.host)===ge||ge===zt||(Fe==null?void 0:Fe.contains(ge))||((bt=sd(Fe))===null||bt===void 0?void 0:bt.host)===ge||ge===Fe||Object.values(Ee.current).some(function(xt){return(xt==null?void 0:xt.contains(ge))||ge===xt})}),gt=Qy(o,ee,Z,K),nn=Qy(o,q,pe,ne),Se=h.useState(f||!1),se=te(Se,2),Oe=se[0],Me=se[1],Le=d??Oe,dt=vn(function(ge){d===void 0&&Me(ge)});mn(function(){Me(d||!1)},[d]);var qe=h.useRef(Le);qe.current=Le;var ke=h.useRef([]);ke.current=[];var Ut=vn(function(ge){var $e;dt(ge),(($e=ke.current[ke.current.length-1])!==null&&$e!==void 0?$e:Le)!==ge&&(ke.current.push(ge),p==null||p(ge))}),gn=h.useRef(),it=function(){clearTimeout(gn.current)},Ze=function($e){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;it(),bt===0?Ut($e):gn.current=setTimeout(function(){Ut($e)},bt*1e3)};h.useEffect(function(){return it},[]);var Gt=h.useState(!1),Ct=te(Gt,2),Qt=Ct[0],dr=Ct[1];mn(function(ge){(!ge||Le)&&dr(!0)},[Le]);var Kr=h.useState(null),Hn=te(Kr,2),kn=Hn[0],Zn=Hn[1],rn=h.useState(null),In=te(rn,2),ot=In[0],Fn=In[1],Sn=function($e){Fn([$e.clientX,$e.clientY])},Ir=KI(Le,Fe,G&&ot!==null?ot:ft,j,N,R,U),_e=te(Ir,11),Ce=_e[0],Je=_e[1],Xe=_e[2],Ke=_e[3],Zt=_e[4],Et=_e[5],yt=_e[6],_t=_e[7],Ot=_e[8],Mt=_e[9],Lt=_e[10],fr=GI(we,l,c,u),hr=te(fr,2),It=hr[0],wn=hr[1],Yr=It.has("click"),Qr=wn.has("click")||wn.has("contextMenu"),Bn=vn(function(){Qt||Lt()}),mo=function(){qe.current&&G&&Qr&&Ze(!1)};YI(Le,ft,Fe,Bn,mo),mn(function(){Bn()},[ot,j]),mn(function(){Le&&!(N!=null&&N[j])&&Bn()},[JSON.stringify(R)]);var di=h.useMemo(function(){var ge=XI(N,o,Mt,G);return ve(ge,A==null?void 0:A(Mt))},[Mt,A,N,o,G]);h.useImperativeHandle(r,function(){return{nativeElement:wt.current,popupElement:Ge.current,forceAlign:Bn}});var gr=h.useState(0),vo=te(gr,2),ia=vo[0],yo=vo[1],oa=h.useState(0),aa=te(oa,2),ys=aa[0],E=aa[1],O=function(){if(I&&ft){var $e=ft.getBoundingClientRect();yo($e.width),E($e.height)}},k=function(){O(),Bn()},B=function($e){dr(!1),Lt(),v==null||v($e)},Q=function(){return new Promise(function($e){O(),Zn(function(){return $e})})};mn(function(){kn&&(Lt(),kn(),Zn(null))},[kn]);function re(ge,$e,bt,zt){ht[ge]=function(xt){var la;zt==null||zt(xt),Ze($e,bt);for(var df=arguments.length,Cv=new Array(df>1?df-1:0),hc=1;hc1?bt-1:0),xt=1;xt1?bt-1:0),xt=1;xtt||e,nF=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=h.useContext(Rt),s=h.useContext(qC),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=kP.includes(c);return[c,u]};var rF={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"},iF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:rF}))},oF=h.forwardRef(iF);const Ul=["xxl","xl","lg","md","sm","xs"],aF=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),sF=e=>{const t=e,n=[].concat(Ul).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function KC(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return h.createElement("div",{className:ve("".concat(n,"-content"),o),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var ga={shiftX:64,adjustY:1},pa={adjustX:1,shiftY:!0},vr=[0,0],cF={left:{points:["cr","cl"],overflow:pa,offset:[-4,0],targetOffset:vr},right:{points:["cl","cr"],overflow:pa,offset:[4,0],targetOffset:vr},top:{points:["bc","tc"],overflow:ga,offset:[0,-4],targetOffset:vr},bottom:{points:["tc","bc"],overflow:ga,offset:[0,4],targetOffset:vr},topLeft:{points:["bl","tl"],overflow:ga,offset:[0,-4],targetOffset:vr},leftTop:{points:["tr","tl"],overflow:pa,offset:[-4,0],targetOffset:vr},topRight:{points:["br","tr"],overflow:ga,offset:[0,-4],targetOffset:vr},rightTop:{points:["tl","tr"],overflow:pa,offset:[4,0],targetOffset:vr},bottomRight:{points:["tr","br"],overflow:ga,offset:[0,4],targetOffset:vr},rightBottom:{points:["bl","br"],overflow:pa,offset:[4,0],targetOffset:vr},bottomLeft:{points:["tl","bl"],overflow:ga,offset:[0,4],targetOffset:vr},leftBottom:{points:["br","bl"],overflow:pa,offset:[-4,0],targetOffset:vr}},uF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],dF=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,b=t.transitionName,m=t.animation,g=t.motion,x=t.placement,S=x===void 0?"right":x,w=t.align,C=w===void 0?{}:w,_=t.destroyTooltipOnHide,M=_===void 0?!1:_,T=t.defaultVisible,P=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,z=t.id,j=t.showArrow,W=j===void 0?!0:j,N=$n(t,uF),R=h.useRef(null);h.useImperativeHandle(n,function(){return R.current});var $=V({},N);"visible"in t&&($.popupVisible=t.visible);var I=function(){return h.createElement(KC,{key:"content",prefixCls:f,id:z,overlayInnerStyle:F},D)};return h.createElement(eF,nt({popupClassName:r,prefixCls:f,popup:I,action:o,builtinPlacements:cF,popupPlacement:S,ref:R,popupAlign:C,getPopupContainer:P,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:m,popupMotion:g,defaultPopupVisible:T,autoDestroy:M,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:W},$),p)};const fF=h.forwardRef(dF);function hF(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-s,v=l,y=2*i-o,b=a,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${v} A ${r} ${r} 0 0 0 ${y} ${b} Z')`;return{arrowShadowWidth:m,arrowPath:S,arrowPolygon:x}}const gF=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},YC=8;function QC(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?YC:r}}function Vc(e,t){return e?t:{}}function pF(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gF(e,t,i)),{"&:before":{background:t}})]},Vc(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vc(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vc(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Vc(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function mF(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const rb={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"]}},vF={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"]}},yF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(rb).forEach(c=>{const u=r&&vF[c]||rb[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,yF.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const f=QC({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-s;break}d.overflow=mF(c,f,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const xF=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ae(e.calc(c).div(2).equal())} ${ae(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,YC)}},[`${t}-content`]:{position:"relative"}}),s$(e,(d,f)=>{let{darkColor:p}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},pF(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},SF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},QC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),hF(jn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ui("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=jn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[xF(s),dk(r,"zoom-big-fast")]},SF,{resetStyle:!1,injectStyle:t})(e)},wF=ad.map(e=>`${e}-inverse`);function CF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(le(wF),le(ad)).includes(e):ad.includes(e)}function JC(e,t){const n=CF(t),r=ve({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const EF=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Rt),l=s("tooltip",t),[c,u,d]=ZC(l),f=JC(l,o),p=f.arrowStyle,v=Object.assign(Object.assign({},a),f.overlayStyle),y=ve(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(h.createElement("div",{className:y,style:p},h.createElement("div",{className:`${l}-arrow`}),h.createElement(KC,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:v}),i)))};var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:v=!0,title:y,overlay:b,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0}=e,S=!!v,[,w]=Ri(),{getPopupContainer:C,getPrefixCls:_,direction:M}=h.useContext(Rt),T=Am(),P=h.useRef(null),F=()=>{var oe;(oe=P.current)===null||oe===void 0||oe.forceAlign()};h.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=P.current)===null||oe===void 0?void 0:oe.nativeElement}});const[D,z]=tC(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!y&&!b&&y!==0,W=oe=>{var Be,Pe;z(j?!1:oe),j||((Be=e.onOpenChange)===null||Be===void 0||Be.call(e,oe),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,oe))},N=h.useMemo(()=>{var oe,Be;let Pe=g;return typeof v=="object"&&(Pe=(Be=(oe=v.pointAtCenter)!==null&&oe!==void 0?oe:v.arrowPointAtCenter)!==null&&Be!==void 0?Be:g),m||bF({arrowPointAtCenter:Pe,autoAdjustOverflow:x,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[g,v,m,w]),R=h.useMemo(()=>y===0?y:b||y||"",[b,y]),$=h.createElement(op,{space:!0},typeof R=="function"?R():R),{getPopupContainer:I,placement:A="top",mouseEnterDelay:H=.1,mouseLeaveDelay:G=.1,overlayStyle:Y,rootClassName:U}=e,X=_F(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=_("tooltip",i),q=_(),K=e["data-popover-inject"];let Z=D;!("open"in e)&&!("visible"in e)&&j&&(Z=!1);const ne=h.isValidElement(u)&&!EC(u)?u:h.createElement("span",null,u),pe=ne.props,ye=!pe.className||typeof pe.className=="string"?ve(pe.className,o||`${ee}-open`):pe.className,[xe,me,fe]=ZC(ee,!K),be=JC(ee,l),he=be.arrowStyle,we=Object.assign(Object.assign({},c),be.overlayStyle),Ae=ve(s,{[`${ee}-rtl`]:M==="rtl"},be.className,U,me,fe),[Ee,ie]=pR("Tooltip",X.zIndex),Ie=h.createElement(fF,Object.assign({},X,{zIndex:Ee,showArrow:S,placement:A,mouseEnterDelay:H,mouseLeaveDelay:G,prefixCls:ee,overlayClassName:Ae,overlayStyle:Object.assign(Object.assign({},he),Y),getTooltipContainer:I||a||C,ref:P,builtinPlacements:N,overlay:$,visible:Z,onVisibleChange:W,afterVisibleChange:d??f,overlayInnerStyle:we,arrowContent:h.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:MR(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),Z?Jd(ne,{className:ye}):ne);return xe(h.createElement(OC.Provider,{value:ie},Ie))}),Hi=OF;Hi._InternalPanelDoNotUseOrYouWillBeFired=EF;var MF={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"},TF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:MF}))},PF=h.forwardRef(TF),$F={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"},RF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:$F}))},ib=h.forwardRef(RF);const kF=e=>!isNaN(parseFloat(e))&&isFinite(e),eE=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),IF=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:ae(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},tE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},nE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],rE=ui("Layout",e=>[IF(e)],tE,{deprecatedTokens:nE}),FF=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:v,lightTriggerBg:y,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:ae(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,[`${t}-trigger`]:{color:v,background:y},[`${t}-zero-width-trigger`]:{color:v,background:y,border:`1px solid ${b}`,borderInlineStart:0}}}}},NF=ui(["Layout","Sider"],e=>[FF(e)],tE,{deprecatedTokens:nE});var AF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),oE=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:v,onCollapse:y,onBreakpoint:b}=e,m=AF(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=h.useContext(eE),[x,S]=h.useState("collapsed"in e?e.collapsed:a),[w,C]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const _=(R,$)=>{"collapsed"in e||S(R),y==null||y(R,$)},{getPrefixCls:M}=h.useContext(Rt),T=M("layout-sider",n),[P,F,D]=NF(T),z=h.useRef();z.current=R=>{C(R.matches),b==null||b(R.matches),x!==R.matches&&_(R.matches,"responsive")},h.useEffect(()=>{function R(I){return z.current(I)}let $;if(typeof window<"u"){const{matchMedia:I}=window;if(I&&v&&v in ob){$=I(`screen and (max-width: ${ob[v]})`);try{$.addEventListener("change",R)}catch{$.addListener(R)}R($)}}return()=>{try{$==null||$.removeEventListener("change",R)}catch{$==null||$.removeListener(R)}}},[v]),h.useEffect(()=>{const R=LF("ant-sider-");return g.addSider(R),()=>g.removeSider(R)},[]);const j=()=>{_(!x,"clickTrigger")},W=()=>{const R=oc(m,["collapsed"]),$=x?f:d,I=kF($)?`${$}px`:String($),A=parseFloat(String(f||0))===0?h.createElement("span",{onClick:j,className:ve(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${u?"right":"left"}`),style:p},i||h.createElement(PF,null)):null,Y={expanded:u?h.createElement(Ry,null):h.createElement(ib,null),collapsed:u?h.createElement(ib,null):h.createElement(Ry,null)}[x?"collapsed":"expanded"],U=i!==null?A||h.createElement("div",{className:`${T}-trigger`,onClick:j,style:{width:I}},i||Y):null,X=Object.assign(Object.assign({},l),{flex:`0 0 ${I}`,maxWidth:I,minWidth:I,width:I}),ee=ve(T,`${T}-${s}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:c&&i!==null&&!A,[`${T}-below`]:!!w,[`${T}-zero-width`]:parseFloat(I)===0},r,F,D);return h.createElement("aside",Object.assign({className:ee},R,{style:X,ref:t}),h.createElement("div",{className:`${T}-children`},o),c||w&&A?U:null)},N=h.useMemo(()=>({siderCollapsed:x}),[x]);return P(h.createElement(iE.Provider,{value:N},W()))});function aE(e){return jn(e,{inputAffixPadding:e.paddingXXS})}const sE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:v,controlOutlineWidth:y,controlOutline:b,colorErrorOutline:m,colorWarningOutline:g,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:v,hoverBorderColor:p,activeShadow:`0 0 0 ${y}px ${b}`,errorActiveShadow:`0 0 0 ${y}px ${m}`,warningActiveShadow:`0 0 0 ${y}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},DF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ev=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},DF(jn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),lE=(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}}),ab=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),cE=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),ab(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ab(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),uE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ev(e))}})}),dE=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},fE=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),lb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hE=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),lb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),lb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),cb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gE=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},cb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),cb(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),pE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mE=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vE=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),of=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},pE(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},mE(e)),"&-sm":Object.assign({},vE(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yE=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vE(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},t$()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},zF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),of(e)),cE(e)),hE(e)),dE(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},jF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},HF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},of(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),jF(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},BF=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ci(e)),yE(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},uE(e)),gE(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},VF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},WF=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` - &-allow-clear > ${t}, - &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},UF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};ui("Input",e=>{const t=jn(e,aE(e));return[zF(t),WF(t),HF(t),BF(t),VF(t),UF(t),Xm(t)]},sE,{resetFont:!1});const bE=h.createContext({}),GF=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"}}}},qF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},XF=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},sp=(e,t)=>XF(e,t),KF=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},sp(e,n))}),YF=()=>({}),QF=()=>({}),ZF=ui("Grid",GF,YF),JF=ui("Grid",e=>{const t=jn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[qF(t),sp(t,""),sp(t,"-xs"),Object.keys(n).map(r=>KF(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},QF);var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=h.useContext(Rt),{gutter:i,wrap:o}=h.useContext(bE),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:v,style:y}=e,b=eN(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",a),[g,x,S]=JF(m),w={};let C={};tN.forEach(T=>{let P={};const F=e[T];typeof F=="number"?P.span=F:typeof F=="object"&&(P=F||{}),delete b[T],C=Object.assign(Object.assign({},C),{[`${m}-${T}-${P.span}`]:P.span!==void 0,[`${m}-${T}-order-${P.order}`]:P.order||P.order===0,[`${m}-${T}-offset-${P.offset}`]:P.offset||P.offset===0,[`${m}-${T}-push-${P.push}`]:P.push||P.push===0,[`${m}-${T}-pull-${P.pull}`]:P.pull||P.pull===0,[`${m}-rtl`]:r==="rtl"}),P.flex&&(C[`${m}-${T}-flex`]=!0,w[`--${m}-${T}-flex`]=ub(P.flex))});const _=ve(m,{[`${m}-${s}`]:s!==void 0,[`${m}-order-${l}`]:l,[`${m}-offset-${c}`]:c,[`${m}-push-${u}`]:u,[`${m}-pull-${d}`]:d},f,C,x,S),M={};if(i&&i[0]>0){const T=i[0]/2;M.paddingLeft=T,M.paddingRight=T}return v&&(M.flex=ub(v),o===!1&&!M.minWidth&&(M.minWidth=0)),g(h.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},M),y),w),className:_,ref:t}),p))});var nN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const xE=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=nN(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=h.useContext(Rt),[p,v]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=db(i,y),g=db(r,y),x=h.useRef(l),S=lF();h.useEffect(()=>{const R=S.subscribe($=>{b($);const I=x.current||0;(!Array.isArray(I)&&typeof I=="object"||Array.isArray(I)&&(typeof I[0]=="object"||typeof I[1]=="object"))&&v($)});return()=>S.unsubscribe(R)},[]);const w=()=>{const R=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((I,A)=>{if(typeof I=="object")for(let H=0;H0?P[0]/-2:void 0;z&&(D.marginLeft=z,D.marginRight=z);const[j,W]=P;D.rowGap=W;const N=h.useMemo(()=>({gutter:[j,W],wrap:c}),[j,W,c]);return _(h.createElement(bE.Provider,{value:N},h.createElement("div",Object.assign({},u,{className:F,style:Object.assign(Object.assign({},D),a),ref:t}),s)))});var rN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},iN=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:rN}))},oN=h.forwardRef(iN);function lp(){return typeof BigInt=="function"}function SE(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function zo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function tv(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Io(e){var t=String(e);if(tv(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&nv(t)?t.length-t.indexOf(".")-1:0}function af(e){var t=String(e);if(tv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(lp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":zo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sN=function(){function e(t){if(Kt(this,e),L(this,"origin",""),L(this,"number",void 0),L(this,"empty",void 0),SE(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Yt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":af(this.number):this.origin}}]),e}();function Ar(e){return lp()?new aN(e):new sN(e)}function Ou(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=zo(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ar(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return Ou(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function lN(e){return!!(e.addonBefore||e.addonAfter)}function cN(e){return!!(e.prefix||e.suffix||e.allowClear)}function uN(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var dN=de.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.style,p=e.disabled,v=e.readOnly,y=e.focused,b=e.triggerFocus,m=e.allowClear,g=e.value,x=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,_=e.dataAttrs,M=e.styles,T=e.components,P=e.onClear,F=o??i,D=(T==null?void 0:T.affixWrapper)||"span",z=(T==null?void 0:T.groupWrapper)||"span",j=(T==null?void 0:T.wrapper)||"span",W=(T==null?void 0:T.groupAddon)||"span",N=h.useRef(null),R=function(me){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(me.target)&&(b==null||b())},$=cN(e),I=h.cloneElement(F,{value:g,className:ve(F.props.className,!$&&(C==null?void 0:C.variant))||null}),A=h.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:A.current||N.current}}),$){var H=null;if(m){var G=!p&&!v&&g,Y="".concat(a,"-clear-icon"),U=Re(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";H=de.createElement("span",{onClick:function(me){x==null||x(me),P==null||P()},onMouseDown:function(me){return me.preventDefault()},className:ve(Y,L(L({},"".concat(Y,"-hidden"),!G),"".concat(Y,"-has-suffix"),!!l)),role:"button",tabIndex:-1},U)}var X="".concat(a,"-affix-wrapper"),ee=ve(X,L(L(L(L(L({},"".concat(a,"-disabled"),p),"".concat(X,"-disabled"),p),"".concat(X,"-focused"),y),"".concat(X,"-readonly"),v),"".concat(X,"-input-with-clear-btn"),l&&m&&g),w==null?void 0:w.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),q=(l||m)&&de.createElement("span",{className:ve("".concat(a,"-suffix"),C==null?void 0:C.suffix),style:M==null?void 0:M.suffix},H,l);I=de.createElement(D,nt({className:ee,style:M==null?void 0:M.affixWrapper,onClick:R},_==null?void 0:_.affixWrapper,{ref:N}),s&&de.createElement("span",{className:ve("".concat(a,"-prefix"),C==null?void 0:C.prefix),style:M==null?void 0:M.prefix},s),I,q)}if(lN(e)){var K="".concat(a,"-group"),Z="".concat(K,"-addon"),ne="".concat(K,"-wrapper"),pe=ve("".concat(a,"-wrapper"),K,w==null?void 0:w.wrapper,C==null?void 0:C.wrapper),ye=ve(ne,L({},"".concat(ne,"-disabled"),p),w==null?void 0:w.group,C==null?void 0:C.groupWrapper);I=de.createElement(z,{className:ye,ref:A},de.createElement(j,{className:pe},c&&de.createElement(W,{className:Z},c),I,u&&de.createElement(W,{className:Z},u)))}return de.cloneElement(I,{className:ve((n=I.props)===null||n===void 0?void 0:n.className,d)||null,style:V(V({},(r=I.props)===null||r===void 0?void 0:r.style),f),hidden:S})});function fN(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function hN(e,t){var n=h.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],f=o.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(p){Tn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var gN=function(){var t=h.useState(!1),n=te(t,2),r=n[0],i=n[1];return mn(function(){i(XC())},[]),r},pN=200,mN=600;function vN(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=h.useRef(),l=h.useRef([]),c=h.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(x,S){x.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,pN)}s.current=setTimeout(w,mN)};h.useEffect(function(){return function(){u(),l.current.forEach(function(g){return fn.cancel(g)})}},[]);var f=gN();if(f)return null;var p="".concat(t,"-handler"),v=ve(p,"".concat(p,"-up"),L({},"".concat(p,"-up-disabled"),i)),y=ve(p,"".concat(p,"-down"),L({},"".concat(p,"-down-disabled"),o)),b=function(){return l.current.push(fn(u))},m={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return h.createElement("div",{className:"".concat(p,"-wrap")},h.createElement("span",nt({},m,{onMouseDown:function(x){d(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h.createElement("span",nt({},m,{onMouseDown:function(x){d(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:y}),r||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function fb(e){var t=typeof e=="number"?af(e):zo(e).fullStr,n=t.includes(".");return n?zo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const yN=function(){var e=h.useRef(0),t=function(){fn.cancel(e.current)};return h.useEffect(function(){return t},[]),function(n){t(),e.current=fn(function(){n()})}};var bN=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],xN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],hb=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},gb=function(t){var n=Ar(t);return n.isInvalidate()?null:n},SN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,p=e.upHandler,v=e.downHandler,y=e.keyboard,b=e.changeOnWheel,m=b===void 0?!1:b,g=e.controls,x=g===void 0?!0:g;e.classNames;var S=e.stringMode,w=e.parser,C=e.formatter,_=e.precision,M=e.decimalSeparator,T=e.onChange,P=e.onInput,F=e.onPressEnter,D=e.onStep,z=e.changeOnBlur,j=z===void 0?!0:z,W=e.domRef,N=$n(e,bN),R="".concat(n,"-input"),$=h.useRef(null),I=h.useState(!1),A=te(I,2),H=A[0],G=A[1],Y=h.useRef(!1),U=h.useRef(!1),X=h.useRef(!1),ee=h.useState(function(){return Ar(u??c)}),q=te(ee,2),K=q[0],Z=q[1];function ne(Se){u===void 0&&Z(Se)}var pe=h.useCallback(function(Se,se){if(!se)return _>=0?_:Math.max(Io(Se),Io(l))},[_,l]),ye=h.useCallback(function(Se){var se=String(Se);if(w)return w(se);var Oe=se;return M&&(Oe=Oe.replace(M,".")),Oe.replace(/[^\w.-]+/g,"")},[w,M]),xe=h.useRef(""),me=h.useCallback(function(Se,se){if(C)return C(Se,{userTyping:se,input:String(xe.current)});var Oe=typeof Se=="number"?af(Se):Se;if(!se){var Me=pe(Oe,se);if(nv(Oe)&&(M||Me>=0)){var Le=M||".";Oe=Ou(Oe,Le,Me)}}return Oe},[C,pe,M]),fe=h.useState(function(){var Se=c??u;return K.isInvalidate()&&["string","number"].includes(Re(Se))?Number.isNaN(Se)?"":Se:me(K.toString(),!1)}),be=te(fe,2),he=be[0],we=be[1];xe.current=he;function Ae(Se,se){we(me(Se.isInvalidate()?Se.toString(!1):Se.toString(!se),se))}var Ee=h.useMemo(function(){return gb(a)},[a,_]),ie=h.useMemo(function(){return gb(o)},[o,_]),Ie=h.useMemo(function(){return!Ee||!K||K.isInvalidate()?!1:Ee.lessEquals(K)},[Ee,K]),oe=h.useMemo(function(){return!ie||!K||K.isInvalidate()?!1:K.lessEquals(ie)},[ie,K]),Be=hN($.current,H),Pe=te(Be,2),Fe=Pe[0],je=Pe[1],Ge=function(se){return Ee&&!se.lessEquals(Ee)?Ee:ie&&!ie.lessEquals(se)?ie:null},ct=function(se){return!Ge(se)},Qe=function(se,Oe){var Me=se,Le=ct(Me)||Me.isEmpty();if(!Me.isEmpty()&&!Oe&&(Me=Ge(Me)||Me,Le=!0),!f&&!d&&Le){var dt=Me.toString(),qe=pe(dt,Oe);return qe>=0&&(Me=Ar(Ou(dt,".",qe)),ct(Me)||(Me=Ar(Ou(dt,".",qe,!0)))),Me.equals(K)||(ne(Me),T==null||T(Me.isEmpty()?null:hb(S,Me)),u===void 0&&Ae(Me,Oe)),Me}return K},tt=yN(),ft=function Se(se){if(Fe(),xe.current=se,we(se),!U.current){var Oe=ye(se),Me=Ar(Oe);Me.isNaN()||Qe(Me,!0)}P==null||P(se),tt(function(){var Le=se;w||(Le=se.replace(/。/g,".")),Le!==se&&Se(Le)})},Wt=function(){U.current=!0},wt=function(){U.current=!1,ft($.current.value)},ur=function(se){ft(se.target.value)},hn=function(se){var Oe;if(!(se&&Ie||!se&&oe)){Y.current=!1;var Me=Ar(X.current?fb(l):l);se||(Me=Me.negate());var Le=(K||Ar(0)).add(Me.toString()),dt=Qe(Le,!1);D==null||D(hb(S,dt),{offset:X.current?fb(l):l,type:se?"up":"down"}),(Oe=$.current)===null||Oe===void 0||Oe.focus()}},kt=function(se){var Oe=Ar(ye(he)),Me;Oe.isNaN()?Me=Qe(K,se):Me=Qe(Oe,se),u!==void 0?Ae(K,!1):Me.isNaN()||Ae(Me,!1)},ht=function(){Y.current=!0},kr=function(se){var Oe=se.key,Me=se.shiftKey;Y.current=!0,X.current=Me,Oe==="Enter"&&(U.current||(Y.current=!1),kt(!1),F==null||F(se)),y!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Oe)&&(hn(Oe==="Up"||Oe==="ArrowUp"),se.preventDefault())},gt=function(){Y.current=!1,X.current=!1};h.useEffect(function(){if(m&&H){var Se=function(Me){hn(Me.deltaY<0),Me.preventDefault()},se=$.current;if(se)return se.addEventListener("wheel",Se,{passive:!1}),function(){return se.removeEventListener("wheel",Se)}}});var nn=function(){j&&kt(!1),G(!1),Y.current=!1};return rl(function(){K.isInvalidate()||Ae(K,!1)},[_,C]),rl(function(){var Se=Ar(u);Z(Se);var se=Ar(ye(he));(!Se.equals(se)||!Y.current||C)&&Ae(Se,Y.current)},[u]),rl(function(){C&&je()},[he]),h.createElement("div",{ref:W,className:ve(n,r,L(L(L(L(L({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!ct(K))),style:i,onFocus:function(){G(!0)},onBlur:nn,onKeyDown:kr,onKeyUp:gt,onCompositionStart:Wt,onCompositionEnd:wt,onBeforeInput:ht},x&&h.createElement(vN,{prefixCls:n,upNode:p,downNode:v,upDisabled:Ie,downDisabled:oe,onStep:hn}),h.createElement("div",{className:"".concat(R,"-wrap")},h.createElement("input",nt({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},N,{ref:ho($,t),className:R,value:he,onChange:ur,disabled:d,readOnly:f}))))}),wN=h.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,p=$n(e,xN),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),m=function(x){b.current&&uN(b.current,x)};return h.useImperativeHandle(t,function(){return fN(b.current,{nativeElement:v.current.nativeElement||y.current})}),h.createElement(dN,{className:d,triggerFocus:m,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},h.createElement(SN,nt({prefixCls:o,disabled:n,ref:b,domRef:y,className:f==null?void 0:f.input},p)))});const CN=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},sE(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},pb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},EN=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:v,motionDurationMid:y,handleHoverColor:b,handleOpacity:m,paddingInline:g,paddingBlock:x,handleBg:S,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:_,borderRadiusLG:M,controlWidth:T,handleBorderColor:P,filledHandleBg:F,lineHeightLG:D,calc:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),of(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:i}),cE(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${P}`}}})),hE(e,{[`${t}-handler-wrap`]:{background:F,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),dE(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:D,borderRadius:M,[`input${t}-input`]:{height:z(s).sub(z(n).mul(2)).equal(),padding:`${ae(f)} ${ae(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:_,[`input${t}-input`]:{height:z(l).sub(z(n).mul(2)).equal(),padding:`${ae(d)} ${ae(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ci(e)),yE(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},uE(e)),gE(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{width:"100%",padding:`${ae(x)} ${ae(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),pE(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ae(n)} ${r} ${P}`,transition:`all ${y} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},aC()),{color:v,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},pb(e,"lg")),pb(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:C}})}]},_N=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},of(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ae(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ae(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},ON=ui("InputNumber",e=>{const t=jn(e,aE(e));return[EN(t),_N(t),Xm(t)]},CN,{unitless:{handleOpacity:!0}});var MN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=h.useContext(Rt),i=h.useRef(null);h.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:p,bordered:v,readOnly:y,status:b,controls:m,variant:g}=e,x=MN(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=ef(S),[C,_,M]=ON(S,w),{compactSize:T,compactItemClassnames:P}=$C(S,r);let F=h.createElement(oN,{className:`${S}-handler-up-inner`}),D=h.createElement(oF,{className:`${S}-handler-down-inner`});const z=typeof m=="boolean"?m:void 0;typeof m=="object"&&(F=typeof m.upIcon>"u"?F:h.createElement("span",{className:`${S}-handler-up-inner`},m.upIcon),D=typeof m.downIcon>"u"?D:h.createElement("span",{className:`${S}-handler-down-inner`},m.downIcon));const{hasFeedback:j,status:W,isFormItemInput:N,feedbackIcon:R}=h.useContext(Yo),$=tF(W,b),I=jm(K=>{var Z;return(Z=s??T)!==null&&Z!==void 0?Z:K}),A=h.useContext(qo),H=l??A,[G,Y]=nF("inputNumber",g,v),U=j&&h.createElement(h.Fragment,null,R),X=ve({[`${S}-lg`]:I==="large",[`${S}-sm`]:I==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:N},_),ee=`${S}-group`,q=h.createElement(wN,Object.assign({ref:i,disabled:H,className:ve(M,w,o,a,P),upHandler:F,downHandler:D,prefixCls:S,readOnly:y,controls:z,prefix:f,suffix:U||p,addonBefore:u&&h.createElement(op,{form:!0,space:!0},u),addonAfter:d&&h.createElement(op,{form:!0,space:!0},d),classNames:{input:X,variant:ve({[`${S}-${G}`]:Y},nb(S,$,j)),affixWrapper:ve({[`${S}-affix-wrapper-sm`]:I==="small",[`${S}-affix-wrapper-lg`]:I==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:m===!1},_),wrapper:ve({[`${ee}-rtl`]:r==="rtl"},_),groupWrapper:ve({[`${S}-group-wrapper-sm`]:I==="small",[`${S}-group-wrapper-lg`]:I==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${G}`]:Y},nb(`${S}-group-wrapper`,$,j),_)}},x));return C(q)}),ya=wE,TN=e=>h.createElement(fs,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(wE,Object.assign({},e)));ya._InternalPanelDoNotUseOrYouWillBeFired=TN;function cp(e,t,n){return(e-t)/(n-t)}function rv(e,t,n,r){var i=cp(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Na(e,t){return Array.isArray(e)?e[t]:e}var ta=h.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),PN=h.createContext({}),$N=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],mb=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,f=e.onChangeComplete,p=e.onFocus,v=e.onMouseEnter,y=$n(e,$N),b=h.useContext(ta),m=b.min,g=b.max,x=b.direction,S=b.disabled,w=b.keyboard,C=b.range,_=b.tabIndex,M=b.ariaLabelForHandle,T=b.ariaLabelledByForHandle,P=b.ariaValueTextFormatterForHandle,F=b.styles,D=b.classNames,z="".concat(n,"-handle"),j=function(U){S||o(U,i)},W=function(U){p==null||p(U,i)},N=function(U){v(U,i)},R=function(U){if(!S&&w){var X=null;switch(U.which||U.keyCode){case ce.LEFT:X=x==="ltr"||x==="btt"?-1:1;break;case ce.RIGHT:X=x==="ltr"||x==="btt"?1:-1;break;case ce.UP:X=x!=="ttb"?1:-1;break;case ce.DOWN:X=x!=="ttb"?-1:1;break;case ce.HOME:X="min";break;case ce.END:X="max";break;case ce.PAGE_UP:X=2;break;case ce.PAGE_DOWN:X=-2;break;case ce.BACKSPACE:case ce.DELETE:a(i);break}X!==null&&(U.preventDefault(),d(X,i))}},$=function(U){switch(U.which||U.keyCode){case ce.LEFT:case ce.RIGHT:case ce.UP:case ce.DOWN:case ce.HOME:case ce.END:case ce.PAGE_UP:case ce.PAGE_DOWN:f==null||f();break}},I=rv(x,r,m,g),A={};if(i!==null){var H;A={tabIndex:S?null:Na(_,i),role:"slider","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":r,"aria-disabled":S,"aria-label":Na(M,i),"aria-labelledby":Na(T,i),"aria-valuetext":(H=Na(P,i))===null||H===void 0?void 0:H(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:W,onMouseEnter:N,onKeyDown:R,onKeyUp:$}}var G=h.createElement("div",nt({ref:t,className:ve(z,L(L(L({},"".concat(z,"-").concat(i+1),i!==null&&C),"".concat(z,"-dragging"),c),"".concat(z,"-dragging-delete"),u),D.handle),style:V(V(V({},I),s),F.handle)},A,y));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),RN=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],kN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=$n(e,RN),p=h.useRef({}),v=h.useState(!1),y=te(v,2),b=y[0],m=y[1],g=h.useState(-1),x=te(g,2),S=x[0],w=x[1],C=function(F){w(F),m(!0)},_=function(F,D){C(D),d==null||d(F)},M=function(F,D){C(D)};h.useImperativeHandle(t,function(){return{focus:function(F){var D;(D=p.current[F])===null||D===void 0||D.focus()},hideHelp:function(){ic.flushSync(function(){m(!1)})}}});var T=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:_,onMouseEnter:M},f);return h.createElement(h.Fragment,null,a.map(function(P,F){var D=c===F;return h.createElement(mb,nt({ref:function(j){j?p.current[F]=j:delete p.current[F]},dragging:D,draggingDelete:D&&u,style:Na(r,F),key:F,value:P,valueIndex:F},T))}),l&&b&&h.createElement(mb,nt({key:"a11y"},T,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),IN=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=h.useContext(ta),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,p=s.included,v="".concat(n,"-text"),y=rv(u,o,l,c);return h.createElement("span",{className:ve(v,L({},"".concat(v,"-active"),p&&d<=o&&o<=f)),style:V(V({},y),r),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(o)}},i)},FN=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?h.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return h.createElement(IN,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},NN=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=h.useContext(ta),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(n,"-dot"),v=u&&d<=r&&r<=f,y=V(V({},rv(c,r,s,l)),typeof i=="function"?i(r):i);return v&&(y=V(V({},y),typeof o=="function"?o(r):o)),h.createElement("span",{className:ve(p,L({},"".concat(p,"-active"),v)),style:y})},AN=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=h.useContext(ta),l=s.min,c=s.max,u=s.step,d=h.useMemo(function(){var f=new Set;if(r.forEach(function(v){f.add(v.value)}),i&&u!==null)for(var p=l;p<=c;)f.add(p),p+=u;return Array.from(f)},[l,c,u,i,r]);return h.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return h.createElement(NN,{prefixCls:n,key:f,value:f,style:o,activeStyle:a})}))},vb=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=h.useContext(ta),u=c.direction,d=c.min,f=c.max,p=c.disabled,v=c.range,y=c.classNames,b="".concat(n,"-track"),m=cp(i,d,f),g=cp(o,d,f),x=function(_){!p&&s&&s(_,-1)},S={};switch(u){case"rtl":S.right="".concat(m*100,"%"),S.width="".concat(g*100-m*100,"%");break;case"btt":S.bottom="".concat(m*100,"%"),S.height="".concat(g*100-m*100,"%");break;case"ttb":S.top="".concat(m*100,"%"),S.height="".concat(g*100-m*100,"%");break;default:S.left="".concat(m*100,"%"),S.width="".concat(g*100-m*100,"%")}var w=l||ve(b,L(L({},"".concat(b,"-").concat(a+1),a!==null&&v),"".concat(n,"-track-draggable"),s),y.track);return h.createElement("div",{className:w,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},LN=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=h.useContext(ta),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,p=h.useMemo(function(){if(!c){if(i.length===0)return[];var y=o??u,b=i[0];return[{start:Math.min(y,b),end:Math.max(y,b)}]}for(var m=[],g=0;gDN&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof y=="number"){var g,x=v[b],S=x+y,w=[];r.forEach(function(P){w.push(P.value)}),w.push(e,t),w.push(s(x));var C=y>0?1:-1;m==="unit"?w.push(s(x+C*n)):w.push(s(S)),w=w.filter(function(P){return P!==null}).filter(function(P){return y<0?P<=x:P>=x}),m==="unit"&&(w=w.filter(function(P){return P!==x}));var _=m==="unit"?x:S;g=w[0];var M=Math.abs(g-_);if(w.forEach(function(P){var F=Math.abs(P-_);F1){var T=le(v);return T[b]=g,p(T,y-C,b,m)}return g}else{if(y==="min")return e;if(y==="max")return t}},u=function(v,y,b){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",g=v[b],x=c(v,y,b,m);return{value:x,changed:x!==g}},d=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",g=v.map(l),x=g[b],S=c(g,y,b,m);if(g[b]=S,i===!1){var w=o||0;b>0&&g[b-1]!==x&&(g[b]=Math.max(g[b],g[b-1]+w)),b0;T-=1)for(var P=!0;d(g[T]-g[T-1])&&P;){var F=u(g,-1,T-1);g[T-1]=F.value,P=F.changed}for(var D=g.length-1;D>0;D-=1)for(var z=!0;d(g[D]-g[D-1])&&z;){var j=u(g,-1,D-1);g[D-1]=j.value,z=j.changed}for(var W=0;W=0?N:!1},[N,ct]),tt=h.useMemo(function(){return Object.keys(q||{}).map(function(_e){var Ce=q[_e],Je={value:Number(_e)};return Ce&&Re(Ce)==="object"&&!h.isValidElement(Ce)&&("label"in Ce||"style"in Ce)?(Je.style=Ce.style,Je.label=Ce.label):Je.label=Ce,Je}).filter(function(_e){var Ce=_e.label;return Ce||typeof Ce=="number"}).sort(function(_e,Ce){return _e.value-Ce.value})},[q]),ft=jN(je,Ge,ct,tt,j,Qe),Wt=te(ft,2),wt=Wt[0],ur=Wt[1],hn=tC(C,{value:w}),kt=te(hn,2),ht=kt[0],kr=kt[1],gt=h.useMemo(function(){var _e=ht==null?[]:Array.isArray(ht)?ht:[ht],Ce=te(_e,1),Je=Ce[0],Xe=Je===void 0?je:Je,Ke=ht===null?[]:[Xe];if(Ie){if(Ke=le(_e),M||ht===void 0){var Zt=M>=0?M+1:2;for(Ke=Ke.slice(0,Zt);Ke.length=0&&he.current.focus(_e)}dr(null)},[Qt]);var Hn=h.useMemo(function(){return Be&&ct===null?!1:Be},[Be,ct]),kn=vn(function(_e,Ce){gn(_e,Ce),P==null||P(nn(gt))}),Zn=dt!==-1;h.useEffect(function(){if(!Zn){var _e=gt.lastIndexOf(qe);he.current.focus(_e)}},[Zn]);var rn=h.useMemo(function(){return le(Ut).sort(function(_e,Ce){return _e-Ce})},[Ut]),In=h.useMemo(function(){return Ie?[rn[0],rn[rn.length-1]]:[je,rn[0]]},[rn,Ie,je]),ot=te(In,2),Fn=ot[0],Sn=ot[1];h.useImperativeHandle(t,function(){return{focus:function(){he.current.focus(0)},blur:function(){var Ce,Je=document,Xe=Je.activeElement;(Ce=we.current)!==null&&Ce!==void 0&&Ce.contains(Xe)&&(Xe==null||Xe.blur())}}}),h.useEffect(function(){f&&he.current.focus(0)},[]);var Ir=h.useMemo(function(){return{min:je,max:Ge,direction:Ae,disabled:c,keyboard:d,step:ct,included:A,includedStart:Fn,includedEnd:Sn,range:Ie,tabIndex:xe,ariaLabelForHandle:me,ariaLabelledByForHandle:fe,ariaValueTextFormatterForHandle:be,styles:s||{},classNames:a||{}}},[je,Ge,Ae,c,d,ct,A,Fn,Sn,Ie,xe,me,fe,be,s,a]);return h.createElement(ta.Provider,{value:Ir},h.createElement("div",{ref:we,className:ve(r,i,L(L(L(L({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),$),"".concat(r,"-horizontal"),!$),"".concat(r,"-with-marks"),tt.length)),style:o,onMouseDown:Ze},h.createElement("div",{className:ve("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},U),s==null?void 0:s.rail)}),pe!==!1&&h.createElement(LN,{prefixCls:r,style:G,values:gt,startPoint:H,onStartMove:Hn?kn:void 0}),h.createElement(AN,{prefixCls:r,marks:tt,dots:K,style:X,activeStyle:ee}),h.createElement(kN,{ref:he,prefixCls:r,style:Y,values:Ut,draggingIndex:dt,draggingDelete:ke,onStartMove:kn,onOffsetChange:Kr,onFocus:p,onBlur:v,handleRender:Z,activeHandleRender:ne,onChangeComplete:se,onDelete:oe?Oe:void 0}),h.createElement(FN,{prefixCls:r,marks:tt,onClick:it})))});const bb=h.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=h.useRef(null),o=n&&!r,a=h.useRef(null);function s(){fn.cancel(a.current),a.current=null}function l(){a.current=fn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return h.useEffect(()=>(o?l():s(),s),[o,e.title]),h.createElement(Hi,Object.assign({ref:ho(i,t)},e,{open:o}))}),VN=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:v,handleLineWidthHover:y,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Ci(e)),{position:"relative",height:r,margin:`${ae(a)} ${ae(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(o)} ${ae(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ae(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(v).mul(-1).equal(),insetBlockStart:c(v).mul(-1).equal(),width:c(u).add(c(v).mul(2)).equal(),height:c(u).add(c(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${b}, - inset-block-start ${b}, - width ${b}, - height ${b}, - box-shadow ${b}, - outline ${b} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(y).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(y).mul(-1).equal(),width:c(d).add(c(y).mul(2)).equal(),height:c(d).add(c(y).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ae(y)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${ae(v)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ae(v)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},CE=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),v=s(i).sub(r).div(2).equal(),y=t?{borderWidth:`${ae(v)} 0`,transform:`translateY(${ae(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${ae(v)}`,transform:`translateX(${ae(e.calc(v).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},y),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},WN=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},CE(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},UN=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},CE(e,!1)),{height:"100%"})}},GN=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new cn(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new cn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},qN=ui("Slider",e=>{const t=jn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[VN(t),WN(t),UN(t)]},GN),XN=h.createContext({});function ch(){const[e,t]=h.useState(!1),n=h.useRef(),r=()=>{fn.cancel(n.current)},i=o=>{r(),o?t(o):n.current=fn(()=>{t(o)})};return h.useEffect(()=>r,[]),[e,i]}var KN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const QN=de.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:p={},onChangeComplete:v}=e,y=KN(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:m,slider:g,getPrefixCls:x,getPopupContainer:S}=de.useContext(Rt),w=de.useContext(qo),C=s??w,{handleRender:_,direction:M}=de.useContext(XN),P=(M||m)==="rtl",[F,D]=ch(),[z,j]=ch(),W=Object.assign({},p),{open:N,placement:R,getPopupContainer:$,prefixCls:I,formatter:A}=W,H=N??u,G=(F||z)&&H!==!1,Y=YN(A,c),[U,X]=ch(),ee=he=>{v==null||v(he),X(!1)},q=(he,we)=>he||(we?P?"left":"right":"top"),K=x("slider",n),[Z,ne,pe]=qN(K),ye=ve(i,g==null?void 0:g.className,o,{[`${K}-rtl`]:P,[`${K}-lock`]:U},ne,pe);P&&!y.vertical&&(y.reverse=!y.reverse),de.useEffect(()=>{const he=()=>{fn(()=>{j(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const xe=r&&!H,me=_||((he,we)=>{const{index:Ae}=we,Ee=he.props;function ie(Pe,Fe,je){var Ge,ct,Qe,tt;je&&((ct=(Ge=y)[Pe])===null||ct===void 0||ct.call(Ge,Fe)),(tt=(Qe=Ee)[Pe])===null||tt===void 0||tt.call(Qe,Fe)}const Ie=Object.assign(Object.assign({},Ee),{onMouseEnter:Pe=>{D(!0),ie("onMouseEnter",Pe)},onMouseLeave:Pe=>{D(!1),ie("onMouseLeave",Pe)},onMouseDown:Pe=>{j(!0),X(!0),ie("onMouseDown",Pe)},onFocus:Pe=>{var Fe;j(!0),(Fe=y.onFocus)===null||Fe===void 0||Fe.call(y,Pe),ie("onFocus",Pe,!0)},onBlur:Pe=>{var Fe;j(!1),(Fe=y.onBlur)===null||Fe===void 0||Fe.call(y,Pe),ie("onBlur",Pe,!0)}}),oe=de.cloneElement(he,Ie),Be=(!!H||G)&&Y!==null;return xe?oe:de.createElement(bb,Object.assign({},W,{prefixCls:x("tooltip",I??l),title:Y?Y(we.value):"",open:Be,placement:q(R??f,b),key:Ae,overlayClassName:`${K}-tooltip`,getPopupContainer:$||d||S}),oe)}),fe=xe?(he,we)=>{const Ae=de.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return de.createElement(bb,Object.assign({},W,{prefixCls:x("tooltip",I??l),title:Y?Y(we.value):"",open:Y!==null&&G,placement:q(R??f,b),key:"tooltip",overlayClassName:`${K}-tooltip`,getPopupContainer:$||d||S,draggingDelete:we.draggingDelete}),Ae)}:void 0,be=Object.assign(Object.assign({},g==null?void 0:g.style),a);return Z(de.createElement(BN,Object.assign({},y,{step:y.step,range:r,className:ye,style:be,disabled:C,ref:t,prefixCls:K,handleRender:me,activeHandleRender:fe,onChangeComplete:ee})))});function ud(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ZN=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},JN=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xb=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},eA=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ci(e)),JN(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xb(e,e.controlHeightSM)),"&-large":Object.assign({},xb(e,e.controlHeightLG))})}},tA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ci(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Hm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Sb=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},nA=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Br=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),EE=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Br(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rA=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, - ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Br(e)}},[`@media (max-width: ${ae(e.screenXSMax)})`]:[EE(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Br(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Br(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Br(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Br(e)}}}}},iA=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, - ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:Br(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[EE(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Br(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Br(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Br(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Br(e)}}}},oA=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),_E=(e,t)=>jn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),iv=ui("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=_E(e,n);return[eA(r),tA(r),ZN(r),Sb(r,r.componentCls),Sb(r,r.formItemCls),nA(r),rA(r),iA(r),QR(r),Hm]},oA,{order:-1e3}),wb=[];function uh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const OE=e=>{let{help:t,helpStatus:n,errors:r=wb,warnings:i=wb,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=h.useContext(Jm),c=`${l}-item-explain`,u=ef(l),[d,f,p]=iv(l,u),v=h.useMemo(()=>_y(l),[l]),y=ud(r),b=ud(i),m=h.useMemo(()=>t!=null?[uh(t,"help",n)]:[].concat(le(y.map((x,S)=>uh(x,"error","error",S))),le(b.map((x,S)=>uh(x,"warning","warning",S)))),[t,n,y,b]),g={};return a&&(g.id=`${a}_help`),d(h.createElement(ds,{motionDeadline:v.motionDeadline,motionName:`${l}-show-help`,visible:!!m.length,onVisibleChanged:s},x=>{const{className:S,style:w}=x;return h.createElement("div",Object.assign({},g,{className:ve(c,S,p,u,o,f),style:w,role:"alert"}),h.createElement(I$,Object.assign({keys:m},_y(l),{motionName:`${l}-show-help-item`,component:!1}),C=>{const{key:_,error:M,errorStatus:T,className:P,style:F}=C;return h.createElement("div",{key:_,className:ve(P,{[`${c}-${T}`]:T}),style:F},M)}))}))},aA=["parentNode"],sA="form_item";function al(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ME(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:aA.includes(n)?`${sA}_${n}`:n}function TE(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function Cb(e){return al(e).join("_")}function lA(e,t){const n=t.getFieldInstance(e),r=dw(n);if(r)return r;const i=ME(al(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function PE(e){const[t]=Zm(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Cb(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=lA(i,r);a&&uR(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=Cb(i);return n.current[o]}}),[e,t]);return[r]}var cA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=h.useContext(qo),{getPrefixCls:r,direction:i,form:o}=h.useContext(Rt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:v,labelCol:y,wrapperCol:b,hideRequiredMark:m,layout:g="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:w,name:C,style:_,feedbackIcons:M,variant:T}=e,P=cA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=jm(c),D=h.useContext(Vw),z=h.useMemo(()=>S!==void 0?S:m?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[m,S,o]),j=f??(o==null?void 0:o.colon),W=r("form",a),N=ef(W),[R,$,I]=iv(W,N),A=ve(W,`${W}-${g}`,{[`${W}-hide-required-mark`]:z===!1,[`${W}-rtl`]:i==="rtl",[`${W}-${F}`]:F},I,N,$,o==null?void 0:o.className,s,l),[H]=PE(d),{__INTERNAL__:G}=H;G.name=C;const Y=h.useMemo(()=>({name:C,labelAlign:p,labelCol:y,labelWrap:v,wrapperCol:b,vertical:g==="vertical",colon:j,requiredMark:z,itemRef:G.itemRef,form:H,feedbackIcons:M}),[C,p,y,b,g,j,z,H,M]),U=h.useRef(null);h.useImperativeHandle(t,()=>{var q;return Object.assign(Object.assign({},H),{nativeElement:(q=U.current)===null||q===void 0?void 0:q.nativeElement})});const X=(q,K)=>{if(q){let Z={block:"nearest"};typeof q=="object"&&(Z=q),H.scrollToField(K,Z)}},ee=q=>{if(w==null||w(q),q.errorFields.length){const K=q.errorFields[0].name;if(x!==void 0){X(x,K);return}o&&o.scrollToFirstError!==void 0&&X(o.scrollToFirstError,K)}};return R(h.createElement(qC.Provider,{value:T},h.createElement(Zw,{disabled:u},h.createElement(Xo.Provider,{value:F},h.createElement(GC,{validateMessages:D},h.createElement(Ti.Provider,{value:Y},h.createElement(gs,Object.assign({id:C},P,{name:C,onFinishFailed:ee,form:H,ref:U,style:Object.assign(Object.assign({},o==null?void 0:o.style),_),className:A}))))))))},dA=h.forwardRef(uA);function fA(e){if(typeof e=="function")return e;const t=Qa(e);return t.length<=1?t[0]:t}const $E=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(Yo);return{status:e,errors:t,warnings:n}};$E.Context=Yo;function hA(e){const[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),o=h.useRef(!1);h.useEffect(()=>(o.current=!1,()=>{o.current=!0,fn.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=fn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function gA(){const{itemRef:e}=h.useContext(Ti),t=h.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=ho(e(r),o)),t.current.ref}return n}const pA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},mA=lC(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=_E(e,n);return[pA(r)]}),vA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,v=h.useContext(Ti),y=r||v.wrapperCol||{},b=ve(`${p}-control`,y.className),m=h.useMemo(()=>Object.assign({},v),[v]);delete m.labelCol,delete m.wrapperCol;const g=h.createElement("div",{className:`${p}-control-input`},h.createElement("div",{className:`${p}-control-input-content`},i)),x=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=d!==null||o.length||a.length?h.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},h.createElement(Jm.Provider,{value:x},h.createElement(OE,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&h.createElement("div",{style:{width:0,height:d}})):null,w={};u&&(w.id=`${u}_extra`);const C=l?h.createElement("div",Object.assign({},w,{className:`${p}-extra`}),l):null,_=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:g,errorList:S,extra:C}):h.createElement(h.Fragment,null,g,S,C);return h.createElement(Ti.Provider,{value:m},h.createElement(cd,Object.assign({},y,{className:b}),_),h.createElement(mA,{prefixCls:t}))};var yA={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"},bA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:yA}))},ba=h.forwardRef(bA),xA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[f]=rP("Form"),{labelAlign:p,labelCol:v,labelWrap:y,colon:b}=h.useContext(Ti);if(!n)return null;const m=i||v||{},g=o||p,x=`${t}-item-label`,S=ve(x,g==="left"&&`${x}-left`,m.className,{[`${x}-wrap`]:!!y});let w=n;const C=a===!0||b!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const M=SA(c);if(M){const{icon:D=h.createElement(ba,null)}=M,z=xA(M,["icon"]),j=h.createElement(Hi,Object.assign({},z),h.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:W=>{W.preventDefault()},tabIndex:null}));w=h.createElement(h.Fragment,null,w,j)}const T=l==="optional",P=typeof l=="function";P?w=l(w,{required:!!s}):T&&!s&&(w=h.createElement(h.Fragment,null,w,h.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Go.Form)===null||d===void 0?void 0:d.optional))));const F=ve({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:T||P,[`${t}-item-no-colon`]:!C});return h.createElement(cd,Object.assign({},m,{className:S}),h.createElement("label",{htmlFor:r,className:F,title:typeof n=="string"?n:""},w))},CA={success:eR,warning:aR,error:rR,validating:_C};function RE(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=h.useContext(Ti),d=TE(n,r,s,null,!!i,o),{isFormItemInput:f,status:p,hasFeedback:v,feedbackIcon:y}=h.useContext(Yo),b=h.useMemo(()=>{var m;let g;if(i){const S=i!==!0&&i.icons||u,w=d&&((m=S==null?void 0:S({status:d,errors:n,warnings:r}))===null||m===void 0?void 0:m[d]),C=d&&CA[d];g=w!==!1&&C?h.createElement("span",{className:ve(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},w||h.createElement(C,null)):null}const x={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:g,isFormItemInput:!0};return l&&(x.status=(d??p)||"",x.isFormItemInput=f,x.hasFeedback=!!(i??v),x.feedbackIcon=i!==void 0?x.feedbackIcon:y),x},[d,i,l,f,p]);return h.createElement(Yo.Provider,{value:b},t)}var EA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(F&&_.current){const I=getComputedStyle(_.current);j(parseInt(I.marginBottom,10))}},[F,D]);const W=I=>{I||j(null)},R=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=I?M:c.errors,H=I?T:c.warnings;return TE(A,H,c,"",!!u,l)}(),$=ve(x,n,r,{[`${x}-with-help`]:P||M.length||T.length,[`${x}-has-feedback`]:R&&u,[`${x}-has-success`]:R==="success",[`${x}-has-warning`]:R==="warning",[`${x}-has-error`]:R==="error",[`${x}-is-validating`]:R==="validating",[`${x}-hidden`]:d,[`${x}-${m}`]:m});return h.createElement("div",{className:$,style:i,ref:_},h.createElement(xE,Object.assign({className:`${x}-row`},oc(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),h.createElement(wA,Object.assign({htmlFor:p},e,{requiredMark:S,required:v??y,prefixCls:t,vertical:C})),h.createElement(vA,Object.assign({},e,c,{errors:M,warnings:T,prefixCls:t,status:R,help:o,marginBottom:z,onErrorVisibleChanged:W}),h.createElement(UC.Provider,{value:b},h.createElement(RE,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:R},f)))),!!z&&h.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-z}}))}const OA="__SPLIT__";function MA(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const TA=h.memo(e=>{let{children:t}=e;return t},(e,t)=>MA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Eb(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function PA(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:v,help:y,layout:b}=e,{getPrefixCls:m}=h.useContext(Rt),{name:g}=h.useContext(Ti),x=fA(l),S=typeof x=="function",w=h.useContext(UC),{validateTrigger:C}=h.useContext(Ko),_=p!==void 0?p:C,M=t!=null,T=m("form",o),P=ef(T),[F,D,z]=iv(T,P);Am();const j=h.useContext(Vl),W=h.useRef(),[N,R]=hA({}),[$,I]=ns(()=>Eb()),A=q=>{const K=j==null?void 0:j.getKey(q.name);if(I(q.destroy?Eb():q,!0),n&&y!==!1&&w){let Z=q.name;if(q.destroy)Z=W.current||Z;else if(K!==void 0){const[ne,pe]=K;Z=[ne].concat(le(pe)),W.current=Z}w(q,Z)}},H=(q,K)=>{R(Z=>{const ne=Object.assign({},Z),ye=[].concat(le(q.name.slice(0,-1)),le(K)).join(OA);return q.destroy?delete ne[ye]:ne[ye]=q,ne})},[G,Y]=h.useMemo(()=>{const q=le($.errors),K=le($.warnings);return Object.values(N).forEach(Z=>{q.push.apply(q,le(Z.errors||[])),K.push.apply(K,le(Z.warnings||[]))}),[q,K]},[N,$.errors,$.warnings]),U=gA();function X(q,K,Z){return n&&!v?h.createElement(RE,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:$,errors:G,warnings:Y,noStyle:!0},q):h.createElement(_A,Object.assign({key:"row"},e,{className:ve(r,z,P,D),prefixCls:T,fieldId:K,isRequired:Z,errors:G,warnings:Y,meta:$,onSubItemMetaChange:H,layout:b}),q)}if(!M&&!S&&!i)return F(X(x));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),d&&(ee=Object.assign(Object.assign({},ee),d)),F(h.createElement(Qm,Object.assign({},e,{messageVariables:ee,trigger:f,validateTrigger:_,onMetaChange:A}),(q,K,Z)=>{const ne=al(t).length&&K?K.name:[],pe=ME(ne,g),ye=c!==void 0?c:!!(s!=null&&s.some(fe=>{if(fe&&typeof fe=="object"&&fe.required&&!fe.warningOnly)return!0;if(typeof fe=="function"){const be=fe(Z);return(be==null?void 0:be.required)&&!(be!=null&&be.warningOnly)}return!1})),xe=Object.assign({},q);let me=null;if(Array.isArray(x)&&M)me=x;else if(!(S&&(!(a||i)||M))){if(!(i&&!S&&!M))if(h.isValidElement(x)){const fe=Object.assign(Object.assign({},x.props),xe);if(fe.id||(fe.id=pe),y||G.length>0||Y.length>0||e.extra){const we=[];(y||G.length>0)&&we.push(`${pe}_help`),e.extra&&we.push(`${pe}_extra`),fe["aria-describedby"]=we.join(" ")}G.length>0&&(fe["aria-invalid"]="true"),ye&&(fe["aria-required"]="true"),cs(x)&&(fe.ref=U(ne,x)),new Set([].concat(le(al(f)),le(al(_)))).forEach(we=>{fe[we]=function(){for(var Ae,Ee,ie,Ie,oe,Be=arguments.length,Pe=new Array(Be),Fe=0;Fe{var{prefixCls:t,children:n}=e,r=$A(e,["prefixCls","children"]);const{getPrefixCls:i}=h.useContext(Rt),o=i("form",t),a=h.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return h.createElement(HC,Object.assign({},r),(s,l,c)=>h.createElement(Jm.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function kA(){const{form:e}=h.useContext(Ti);return e}const Un=dA;Un.Item=kE;Un.List=RA;Un.ErrorList=OE;Un.useForm=PE;Un.useFormInstance=kA;Un.useWatch=WC;Un.Provider=GC;Un.create=()=>{};function IA(e,t,n){return typeof n=="boolean"?n:e.length?!0:Qa(t).some(i=>i.type===oE)}var IE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ih.forwardRef((a,s)=>h.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ov=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=IE(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=h.useContext(Rt),l=s("layout",n),[c,u,d]=rE(l),f=r?`${l}-${r}`:l;return c(h.createElement(o,Object.assign({className:ve(n||f,i,u,d),ref:t},a)))}),FA=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(Rt),[r,i]=h.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=IE(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=oc(f,["suffixCls"]),{getPrefixCls:v,layout:y}=h.useContext(Rt),b=v("layout",o),m=IA(r,l,c),[g,x,S]=rE(b),w=ve(b,{[`${b}-has-sider`]:m,[`${b}-rtl`]:n==="rtl"},y==null?void 0:y.className,a,s,x,S),C=h.useMemo(()=>({siderHook:{addSider:_=>{i(M=>[].concat(le(M),[_]))},removeSider:_=>{i(M=>M.filter(T=>T!==_))}}}),[]);return g(h.createElement(eE.Provider,{value:C},h.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},y==null?void 0:y.style),d)},p),l)))}),NA=sf({tagName:"div",displayName:"Layout"})(FA),AA=sf({suffixCls:"header",tagName:"header",displayName:"Header"})(ov),LA=sf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ov),DA=sf({suffixCls:"content",tagName:"main",displayName:"Content"})(ov),Pi=NA;Pi.Header=AA;Pi.Footer=LA;Pi.Content=DA;Pi.Sider=oE;Pi._InternalSiderContext=iE;var zA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},jA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:zA}))},HA=h.forwardRef(jA),BA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},VA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:BA}))},WA=h.forwardRef(VA),UA={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},GA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:UA}))},qA=h.forwardRef(GA);/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function cc(e){return e+.5|0}const Xi=(e,t,n)=>Math.max(Math.min(e,n),t);function Hs(e){return Xi(cc(e*2.55),0,255)}function ro(e){return Xi(cc(e*255),0,255)}function yi(e){return Xi(cc(e/2.55)/100,0,1)}function _b(e){return Xi(cc(e*100),0,100)}const yr={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},up=[..."0123456789ABCDEF"],XA=e=>up[e&15],KA=e=>up[(e&240)>>4]+up[e&15],Wc=e=>(e&240)>>4===(e&15),YA=e=>Wc(e.r)&&Wc(e.g)&&Wc(e.b)&&Wc(e.a);function QA(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&yr[e[1]]*17,g:255&yr[e[2]]*17,b:255&yr[e[3]]*17,a:t===5?yr[e[4]]*17:255}:(t===7||t===9)&&(n={r:yr[e[1]]<<4|yr[e[2]],g:yr[e[3]]<<4|yr[e[4]],b:yr[e[5]]<<4|yr[e[6]],a:t===9?yr[e[7]]<<4|yr[e[8]]:255})),n}const ZA=(e,t)=>e<255?t(e):"";function JA(e){var t=YA(e)?XA:KA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+ZA(e.a,t):void 0}const e5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function FE(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function t5(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function n5(e,t,n){const r=FE(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function r5(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=r5(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function sv(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ro)}function lv(e,t,n){return sv(FE,e,t,n)}function i5(e,t,n){return sv(n5,e,t,n)}function o5(e,t,n){return sv(t5,e,t,n)}function NE(e){return(e%360+360)%360}function a5(e){const t=e5.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Hs(+t[5]):ro(+t[5]));const i=NE(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=i5(i,o,a):t[1]==="hsv"?r=o5(i,o,a):r=lv(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function s5(e,t){var n=av(e);n[0]=NE(n[0]+t),n=lv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function l5(e){if(!e)return;const t=av(e),n=t[0],r=_b(t[1]),i=_b(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${yi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Ob={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"},Mb={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"};function c5(){const e={},t=Object.keys(Mb),n=Object.keys(Ob);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Uc;function u5(e){Uc||(Uc=c5(),Uc.transparent=[0,0,0,0]);const t=Uc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const d5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function f5(e){const t=d5.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?Hs(a):Xi(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Hs(r):Xi(r,0,255)),i=255&(t[4]?Hs(i):Xi(i,0,255)),o=255&(t[6]?Hs(o):Xi(o,0,255)),{r,g:i,b:o,a:n}}}function h5(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${yi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const dh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ma=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function g5(e,t,n){const r=ma(yi(e.r)),i=ma(yi(e.g)),o=ma(yi(e.b));return{r:ro(dh(r+n*(ma(yi(t.r))-r))),g:ro(dh(i+n*(ma(yi(t.g))-i))),b:ro(dh(o+n*(ma(yi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Gc(e,t,n){if(e){let r=av(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=lv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function AE(e,t){return e&&Object.assign(t||{},e)}function Tb(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=ro(e[3]))):(t=AE(e,{r:0,g:0,b:0,a:1}),t.a=ro(t.a)),t}function p5(e){return e.charAt(0)==="r"?f5(e):a5(e)}class Gl{constructor(t){if(t instanceof Gl)return t;const n=typeof t;let r;n==="object"?r=Tb(t):n==="string"&&(r=QA(t)||u5(t)||p5(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=AE(this._rgb);return t&&(t.a=yi(t.a)),t}set rgb(t){this._rgb=Tb(t)}rgbString(){return this._valid?h5(this._rgb):void 0}hexString(){return this._valid?JA(this._rgb):void 0}hslString(){return this._valid?l5(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=g5(this._rgb,t._rgb,n)),this}clone(){return new Gl(this.rgb)}alpha(t){return this._rgb.a=ro(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=cc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Gc(this._rgb,2,t),this}darken(t){return Gc(this._rgb,2,-t),this}saturate(t){return Gc(this._rgb,1,t),this}desaturate(t){return Gc(this._rgb,1,-t),this}rotate(t){return s5(this._rgb,t),this}}/*! - * Chart.js v4.4.4 - * https://www.chartjs.org - * (c) 2024 Chart.js Contributors - * Released under the MIT License - */function hi(){}const m5=(()=>{let e=0;return()=>e++})();function At(e){return e===null||typeof e>"u"}function ln(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Tr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Jr(e,t){return Tr(e)?e:t}function Ve(e,t){return typeof e>"u"?t:e}const v5=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ne(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function We(e,t,n,r){let i,o,a;if(ln(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function x5(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function S5(e){const t=x5(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function hd(e,t){return(Pb[t]||(Pb[t]=S5(t)))(e)}function cv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const gd=e=>typeof e<"u",ao=e=>typeof e=="function",$b=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function w5(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const dn=Math.PI,ci=2*dn,C5=ci+dn,pd=Number.POSITIVE_INFINITY,E5=dn/180,Vr=dn/2,So=dn/4,Rb=dn*2/3,dp=Math.log10,so=Math.sign;function ll(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Xl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function O5(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function M5(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function uv(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const No=(e,t,n,r)=>uv(e,n,r?i=>{const o=e[i][t];return oe[i][t]uv(e,n,r=>e[r][t]>=n);function I5(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+cv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function Fb(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(zE.forEach(o=>{delete e[o]}),delete e._chartjs)}function N5(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jE=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function HE(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,jE.call(window,()=>{r=!1,e.apply(t,n)}))}}function A5(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const dv=e=>e==="start"?"left":e==="end"?"right":"center",_n=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,L5=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function D5(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(i=wr(Math.min(No(s,l,c).lo,n?r:No(t,l,a.getPixelForValue(c)).lo),0,r-1)),f?o=wr(Math.max(No(s,a.axis,u,!0).hi+1,n?0:No(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function z5(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const qc=e=>e===0||e===1,Nb=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ci/n)),Ab=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ci/n)+1,cl={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=>-Math.cos(e*Vr)+1,easeOutSine:e=>Math.sin(e*Vr),easeInOutSine:e=>-.5*(Math.cos(dn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>qc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),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=>qc(e)?e:Nb(e,.075,.3),easeOutElastic:e=>qc(e)?e:Ab(e,.075,.3),easeInOutElastic(e){return qc(e)?e:e<.5?.5*Nb(e*2,.1125,.45):.5+.5*Ab(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-cl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?cl.easeInBounce(e*2)*.5:cl.easeOutBounce(e*2-1)*.5+.5};function fv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Lb(e){return fv(e)?e:new Gl(e)}function fh(e){return fv(e)?e:new Gl(e).saturate(.5).darken(.1).hexString()}const j5=["x","y","borderWidth","radius","tension"],H5=["color","borderColor","backgroundColor"];function B5(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:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:H5},numbers:{type:"number",properties:j5}}),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:t=>t|0}}}})}function V5(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Db=new Map;function W5(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Db.get(n);return r||(r=new Intl.NumberFormat(e,t),Db.set(n,r)),r}function BE(e,t,n){return W5(t,n).format(e)}const VE={values(e){return ln(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=U5(e,n)}const a=dp(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),BE(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(dp(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?VE.numeric.call(this,e,t,n):""}};function U5(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var WE={formatters:VE};function G5(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:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.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:WE.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:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Qo=Object.create(null),hp=Object.create(null);function ul(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.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=(r,i)=>fh(i.backgroundColor),this.hoverBorderColor=(r,i)=>fh(i.borderColor),this.hoverColor=(r,i)=>fh(i.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(t),this.apply(n)}set(t,n){return hh(this,t,n)}get(t){return ul(this,t)}describe(t,n){return hh(hp,t,n)}override(t,n){return hh(Qo,t,n)}route(t,n,r,i){const o=ul(this,t),a=ul(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return rt(l)?Object.assign({},c,l):Ve(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Bt=new q5({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[B5,V5,G5]);function X5(e){return!e||At(e.size)||At(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function zb(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function wo(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function jb(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function gp(e,t,n,r){UE(e,t,n,r,null)}function UE(e,t,n,r,i){let o,a,s,l,c,u,d,f;const p=t.pointStyle,v=t.rotation,y=t.radius;let b=(v||0)*E5;if(p&&typeof p=="object"&&(o=p.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,y,0,0,ci):e.arc(n,r,y,0,ci),e.closePath();break;case"triangle":u=i?i/2:y,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Rb,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Rb,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(b+So)*l,d=Math.cos(b+So)*(i?i/2-c:l),s=Math.sin(b+So)*l,f=Math.sin(b+So)*(i?i/2-c:l),e.arc(n-d,r-s,c,b-dn,b-Vr),e.arc(n+f,r-a,c,b-Vr,b),e.arc(n+d,r+s,c,b,b+Vr),e.arc(n-f,r+a,c,b+Vr,b+dn),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=So;case"rectRot":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":b+=So;case"cross":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),b+=So,d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(b)*y,s=Math.sin(b)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:y),r+Math.sin(b)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Kl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,Q5(e,o),l=0;l+e||0;function GE(e,t){const n={},r=rt(t),i=r?Object.keys(t):t,o=rt(e)?r?a=>Ve(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=rL(o(a));return n}function iL(e){return GE(e,{top:"y",right:"x",bottom:"y",left:"x"})}function dl(e){return GE(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pr(e){const t=iL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Bt.font;let n=Ve(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ve(e.style,t.style);r&&!(""+r).match(tL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ve(e.family,t.family),lineHeight:nL(Ve(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ve(e.weight,t.weight),string:""};return i.string=X5(i),i}function Xc(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function na(e,t){return Object.assign(Object.create(e),t)}function pv(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=YE("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>pv([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return XE(s,l,()=>hL(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Bb(s).includes(l)},ownKeys(s){return Bb(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function is(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:qE(e,r),setContext:o=>is(e,o,n,r),override:o=>is(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return XE(o,a,()=>sL(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function qE(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ao(n)?n:()=>n,isIndexable:ao(r)?r:()=>r}}const aL=(e,t)=>e?e+cv(t):t,mv=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function XE(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function sL(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return ao(s)&&a.isScriptable(t)&&(s=lL(t,s,e,n)),ln(s)&&s.length&&(s=cL(t,s,e,a.isIndexable)),mv(t,s)&&(s=is(s,i,o&&o[t],a)),s}function lL(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),mv(e,l)&&(l=vv(i._scopes,i,e,l)),l}function cL(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(rt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=vv(c,i,e,u);t.push(is(d,o,a&&a[e],s))}}return t}function KE(e,t,n){return ao(e)?e(t,n):e}const uL=(e,t)=>e===!0?t:typeof e=="string"?hd(t,e):void 0;function dL(e,t,n,r,i){for(const o of t){const a=uL(n,o);if(a){e.add(a);const s=KE(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function vv(e,t,n,r){const i=t._rootScopes,o=KE(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Hb(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Hb(s,a,o,l,r),l===null)?!1:pv(Array.from(s),[""],i,o,()=>fL(t,n,r))}function Hb(e,t,n,r,i){for(;n;)n=dL(e,t,n,r,i);return n}function fL(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return ln(i)&&rt(n)?n:i||{}}function hL(e,t,n,r){let i;for(const o of t)if(i=YE(aL(o,e),n),typeof i<"u")return mv(e,i)?vv(n,r,e,i):i}function YE(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Bb(e){let t=e._keys;return t||(t=e._keys=gL(e._scopes)),t}function gL(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const pL=Number.EPSILON||1e-14,os=(e,t)=>te==="x"?"y":"x";function mL(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=fp(o,i),l=fp(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}}function vL(e,t,n){const r=e.length;let i,o,a,s,l,c=os(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")bL(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function wL(e,t){return lf(e).getPropertyValue(t)}const CL=["top","right","bottom","left"];function jo(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=CL[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const EL=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _L(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(EL(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function ii(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=lf(n),o=i.boxSizing==="border-box",a=jo(i,"padding"),s=jo(i,"border","width"),{x:l,y:c,box:u}=_L(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:p,height:v}=t;return o&&(p-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-f)/v*n.height/r)}}function OL(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&bv(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=lf(o),l=jo(s,"border","width"),c=jo(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=md(s.maxWidth,o,"clientWidth"),i=md(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||pd,maxHeight:i||pd}}const Yc=e=>Math.round(e*10)/10;function ML(e,t,n,r){const i=lf(e),o=jo(i,"margin"),a=md(i.maxWidth,e,"clientWidth")||pd,s=md(i.maxHeight,e,"clientHeight")||pd,l=OL(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=jo(i,"border","width"),p=jo(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Yc(Math.min(c,a,l.maxWidth)),u=Yc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Yc(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Yc(Math.floor(u*r))),{width:c,height:u}}function Vb(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);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=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const TL=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};yv()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Wb(e,t){const n=wL(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Oo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function PL(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function $L(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Oo(e,i,n),s=Oo(i,o,n),l=Oo(o,t,n),c=Oo(a,s,n),u=Oo(s,l,n);return Oo(c,u,n)}const RL=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},kL=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Va(e,t,n){return e?RL(t,n):kL()}function ZE(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function JE(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function e_(e){return e==="angle"?{between:DE,compare:$5,normalize:Ai}:{between:Bs,compare:(t,n)=>t-n,normalize:t=>t}}function Ub({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function IL(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=e_(r),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,x,m)&&s(i,x)!==0,w=()=>s(o,m)===0||l(o,x,m),C=()=>y||S(),_=()=>!y||w();for(let M=u,T=u;M<=d;++M)g=t[M%a],!g.skip&&(m=c(g[r]),m!==x&&(y=l(m,i,o),b===null&&C()&&(b=s(m,i)===0?M:T),b!==null&&_()&&(v.push(Ub({start:b,end:M,loop:f,count:a,style:p})),b=null),T=M,x=m));return b!==null&&v.push(Ub({start:b,end:d,loop:f,count:a,style:p})),v}function NL(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function LL(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function DL(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=AL(n,i,o,r);if(r===!0)return Gb(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=jE.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var gi=new HL;const Xb="transparent",BL={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Lb(e||Xb),i=r.valid&&Lb(t||Xb);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class VL{constructor(t,n,r,i){const o=n[r];i=Xc([t.to,i,o,t.from]);const a=Xc([t.from,o,i]);this._active=!0,this._fn=t.fn||BL[t.type||typeof a],this._easing=cl[t.easing]||cl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Xc([t.to,n,i,t.from]),this._from=Xc([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!rt(o))return;const a={};for(const s of n)a[s]=o[s];(ln(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=UL(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&WL(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,s);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new VL(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return gi.add(this._chart,r),!0}}function WL(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Jb(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=KL(o,a,r),d=t.length;let f;for(let p=0;pn[r].axis===t).shift()}function ZL(e,t){return na(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function JL(e,t,n){return na(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Rs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const ph=e=>e==="reset"||e==="none",e1=(e,t)=>t?e:Object.assign({},e),eD=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:n_(n,!0),values:null};class fl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Qb(t.vScale,t),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(t){this.index!==t&&Rs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,p,v)=>d==="x"?f:d==="r"?v:p,o=n.xAxisID=Ve(r.xAxisID,gh(t,"x")),a=n.yAxisID=Ve(r.yAxisID,gh(t,"y")),s=n.rAxisID=Ve(r.rAxisID,gh(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Fb(this._data,this),t._stacked&&Rs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n)){const i=this._cachedMeta;this._data=XL(n,i)}else if(r!==n){if(r){Fb(r,this);const i=this._cachedMeta;Rs(i),i._parsed=[]}n&&Object.isExtensible(n)&&F5(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=Qb(n.vScale,n),n.stack!==r.stack&&(i=!0,Rs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&Jb(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{ln(i[t])?f=this.parseArrayData(r,i,t,n):rt(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const p=()=>d[s]===null||c&&d[s]y||d=0;--f)if(!v()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(f,p,v,d);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(e1(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new t_(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ph(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){ph(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ph(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let w=0;w=g){_.skip=!0;continue}const M=this.getParsed(w),T=At(M[p]),P=_[f]=a.getPixelForValue(M[f],w),F=_[p]=o||T?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,M,l):M[p],w);_.skip=isNaN(P)||isNaN(F)||T,_.stop=w>0&&Math.abs(M[f]-S[f])>b,y&&(_.parsed=M,_.raw=c.data[w]),d&&(_.options=u||this.resolveDataElementOptions(w,C.active?"active":i)),m||this.updateElement(C,w,_,i),S=M}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ze(Mu,"id","line"),ze(Mu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ze(Mu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Co(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xv{constructor(t){ze(this,"options");this.options=t||{}}static override(t){Object.assign(xv.prototype,t)}init(){}formats(){return Co()}parse(){return Co()}format(){return Co()}add(){return Co()}diff(){return Co()}startOf(){return Co()}endOf(){return Co()}}var tD={_date:xv};function nD(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?k5:No;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function uc(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var aD={evaluateInteractionItems:uc,modes:{index(e,t,n,r){const i=ii(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?mh(e,i,o,r,a):vh(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=ii(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?mh(e,i,o,r,a):vh(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function n1(e,t){return e.filter(n=>r_.indexOf(n.pos)===-1&&n.box.axis===t)}function Is(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function sD(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Is(ks(t,"left"),!0),i=Is(ks(t,"right")),o=Is(ks(t,"top"),!0),a=Is(ks(t,"bottom")),s=n1(t,"x"),l=n1(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ks(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function r1(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function i_(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 dD(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!rt(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&i_(a,o.getPadding());const s=Math.max(0,t.outerWidth-r1(a,e,"left","right")),l=Math.max(0,t.outerHeight-r1(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function fD(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function hD(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Vs(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,b)=>b.box.options&&b.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},i);i_(f,Pr(r));const p=Object.assign({maxPadding:f,w:o,h:a,x:i.left,y:i.top},i),v=cD(l.concat(c),d);Vs(s.fullSize,p,d,v),Vs(l,p,d,v),Vs(c,p,d,v)&&Vs(l,p,d,v),fD(p),i1(s.leftAndTop,p,d,v),p.x+=p.w,p.y+=p.h,i1(s.rightAndBottom,p,d,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},We(s.chartArea,y=>{const b=y.box;Object.assign(b,e.chartArea),b.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class o_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class gD extends o_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Tu="$chartjs",pD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o1=e=>e===null||e==="";function mD(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Tu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",o1(i)){const o=Wb(e,"width");o!==void 0&&(e.width=o)}if(o1(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Wb(e,"height");o!==void 0&&(e.height=o)}return e}const a_=TL?{passive:!0}:!1;function vD(e,t,n){e&&e.addEventListener(t,n,a_)}function yD(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,a_)}function bD(e,t){const n=pD[e.type]||e.type,{x:r,y:i}=ii(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function vd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function xD(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||vd(s.addedNodes,r),a=a&&!vd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function SD(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||vd(s.removedNodes,r),a=a&&!vd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ql=new Map;let a1=0;function s_(){const e=window.devicePixelRatio;e!==a1&&(a1=e,Ql.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function wD(e,t){Ql.size||window.addEventListener("resize",s_),Ql.set(e,t)}function CD(e){Ql.delete(e),Ql.size||window.removeEventListener("resize",s_)}function ED(e,t,n){const r=e.canvas,i=r&&bv(r);if(!i)return;const o=HE((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),wD(e,o),a}function yh(e,t,n){n&&n.disconnect(),t==="resize"&&CD(e)}function _D(e,t,n){const r=e.canvas,i=HE(o=>{e.ctx!==null&&n(bD(o,e))},e);return vD(r,t,i),i}class OD extends o_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(mD(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Tu])return!1;const r=n[Tu].initial;["height","width"].forEach(o=>{const a=r[o];At(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Tu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:xD,detach:SD,resize:ED}[n]||_D;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:yh,detach:yh,resize:yh}[n]||yD)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return ML(t,n,r,i)}isAttached(t){const n=t&&bv(t);return!!(n&&n.isConnected)}}function MD(e){return!yv()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?gD:OD}var ou;let ra=(ou=class{constructor(){ze(this,"x");ze(this,"y");ze(this,"active",!1);ze(this,"options");ze(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Xl(this.x)&&Xl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},ze(ou,"defaults",{}),ze(ou,"defaultRoutes"),ou);function TD(e,t){const n=e.options.ticks,r=PD(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?RD(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return kD(t,c,o,a/i),c;const u=$D(o,t,i);if(a>0){let d,f;const p=a>1?Math.round((l-s)/(a-1)):null;for(Zc(t,c,u,At(p)?0:s-p,s),d=0,f=a-1;di)return l}return Math.max(i,1)}function RD(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,s1=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,l1=(e,t)=>Math.min(t||e,e);function c1(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function AD(e,t){We(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Jr(n,Jr(r,n)),max:Jr(r,Jr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ne(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=oL(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=wr(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:p/(r-1),d+6>s&&(s=p/(r-(t.offset?.5:1)),l=this.maxHeight-Fs(t.grid)-n.padding-u1(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),a=T5(Math.min(Math.asin(wr((u.highest.height+6)/s,-1,1)),Math.asin(wr(l/c,-1,1))-Math.asin(wr(f/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Ne(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ne(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=u1(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Fs(o)+l):(t.height=this.maxHeight,t.width=Fs(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,v=Fo(this.labelRotation),y=Math.cos(v),b=Math.sin(v);if(s){const m=r.mirror?0:b*d.width+y*f.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:y*d.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,u,b,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=r*n.height):(f=r*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_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(){Ne(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[T]||0,height:s[T]||0});return{first:M(0),last:M(n-1),widest:M(C),highest:M(_),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return R5(this._alignToPixels?wo(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Fs(o),p=[],v=s.setContext(this.getContext()),y=v.display?v.width:0,b=y/2,m=function(N){return wo(r,N,y)};let g,x,S,w,C,_,M,T,P,F,D,z;if(a==="top")g=m(this.bottom),_=this.bottom-f,T=g-b,F=m(t.top)+b,z=t.bottom;else if(a==="bottom")g=m(this.top),F=t.top,z=m(t.bottom)-b,_=g+b,T=this.top+f;else if(a==="left")g=m(this.right),C=this.right-f,M=g-b,P=m(t.left)+b,D=t.right;else if(a==="right")g=m(this.left),P=t.left,D=m(t.right)-b,C=g+b,M=this.left+f;else if(n==="x"){if(a==="center")g=m((t.top+t.bottom)/2+.5);else if(rt(a)){const N=Object.keys(a)[0],R=a[N];g=m(this.chart.scales[N].getPixelForValue(R))}F=t.top,z=t.bottom,_=g+b,T=_+f}else if(n==="y"){if(a==="center")g=m((t.left+t.right)/2);else if(rt(a)){const N=Object.keys(a)[0],R=a[N];g=m(this.chart.scales[N].getPixelForValue(R))}C=g-b,M=C-f,P=t.left,D=t.right}const j=Ve(i.ticks.maxTicksLimit,d),W=Math.max(1,Math.ceil(d/j));for(x=0;x0&&(ee-=U/2);break}H={left:ee,top:X,width:U+G.width,height:Y+G.height,color:W.backdropColor}}b.push({label:S,font:T,textOffset:D,options:{rotation:y,color:R,strokeColor:$,strokeWidth:I,textAlign:A,textBaseline:z,translation:[w,C],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Fo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Bt.route(o,i,l,s)})}function VD(e){return"id"in e&&"defaults"in e}class WD{constructor(){this.controllers=new Jc(fl,"datasets",!0),this.elements=new Jc(ra,"elements"),this.plugins=new Jc(Object,"plugins"),this.scales=new Jc(ps,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):We(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=cv(t);Ne(r["before"+i],[],r),n[t](r),Ne(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function GD(e){const t={},n=[],r=Object.keys(ni.plugins.items);for(let o=0;o1&&d1(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function f1(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function JD(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return f1(e,"x",n[0])||f1(e,"y",n[0])}return{}}function e4(e,t){const n=Qo[e.type]||{scales:{}},r=t.scales||{},i=mp(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!rt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=vp(a,s,JD(a,e),Bt.scales[s.type]),c=QD(l,i),u=n.scales||{};o[a]=sl(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||mp(s,t),u=(Qo[s]||{}).scales||{};Object.keys(u).forEach(d=>{const f=YD(d,l),p=a[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),sl(o[p],[{axis:f},r[p],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];sl(s,[Bt.scales[s.type],Bt.scale])}),o}function l_(e){const t=e.options||(e.options={});t.plugins=Ve(t.plugins,{}),t.scales=e4(e,t)}function c_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function t4(e){return e=e||{},e.data=c_(e.data),l_(e),e}const h1=new Map,u_=new Set;function eu(e,t){let n=h1.get(e);return n||(n=t(),h1.set(e,n),u_.add(n)),n}const Ns=(e,t,n)=>{const r=hd(t,n);r!==void 0&&e.add(r)};class n4{constructor(t){this._config=t4(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=c_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),l_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return eu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return eu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return eu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return eu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Ns(l,t,d))),u.forEach(d=>Ns(l,i,d)),u.forEach(d=>Ns(l,Qo[o]||{},d)),u.forEach(d=>Ns(l,Bt,d)),u.forEach(d=>Ns(l,hp,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),u_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Qo[n]||{},Bt.datasets[n]||{},{type:n},Bt,hp]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=g1(this._resolverCache,t,i);let l=a;if(i4(a,n)){o.$shared=!1,r=ao(r)?r():r;const c=this.createResolver(t,r,s);l=is(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=g1(this._resolverCache,t,r);return rt(n)?is(o,n,void 0,i):o}}function g1(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:pv(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const r4=e=>rt(e)&&Object.getOwnPropertyNames(e).some(t=>ao(e[t]));function i4(e,t){const{isScriptable:n,isIndexable:r}=qE(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(ao(s)||r4(s))||a&&ln(s))return!0}return!1}var o4="4.4.4";const a4=["top","bottom","left","right","chartArea"];function p1(e,t){return e==="top"||e==="bottom"||a4.indexOf(e)===-1&&t==="x"}function m1(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function v1(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ne(n&&n.onComplete,[e],t)}function s4(e){const t=e.chart,n=t.options.animation;Ne(n&&n.onProgress,[e],t)}function d_(e){return yv()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Pu={},y1=e=>{const t=d_(e);return Object.values(Pu).filter(n=>n.canvas===t).pop()};function l4(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function c4(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function tu(e,t,n){return e.options.clip?e[n]:t[n]}function u4(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:tu(n,t,"left"),right:tu(n,t,"right"),top:tu(r,t,"top"),bottom:tu(r,t,"bottom")}:t}var Fi;let cf=(Fi=class{static register(...t){ni.add(...t),b1()}static unregister(...t){ni.remove(...t),b1()}constructor(t,n){const r=this.config=new n4(n),i=d_(t),o=y1(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||MD(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=m5(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,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 UD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=A5(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Pu[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}gi.listen(this,"complete",v1),gi.listen(this,"progress",s4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return At(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ni}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Vb(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return jb(this.canvas,this.ctx),this}stop(){return gi.stop(this),this}resize(t,n){gi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Vb(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Ne(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};We(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=vp(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),We(o,a=>{const s=a.options,l=s.id,c=vp(l,s),u=Ve(s.type,a.dtype);(s.position===void 0||p1(s.position,c)!==p1(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=ni.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),We(i,(a,s)=>{a||delete r[s]}),We(r,a=>{Cr.configure(this,a,a.options),Cr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(m1("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){We(this.scales,t=>{Cr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!$b(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;l4(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Cr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],We(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=u4(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&hv(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&gv(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Kl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=aD.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=na(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);gd(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),gi.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};We(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){We(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},We(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!dd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=w5(t),c=c4(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ne(o.onHover,[t,s,this],this),l&&Ne(o.onClick,[t,s,this],this));const u=!dd(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},ze(Fi,"defaults",Bt),ze(Fi,"instances",Pu),ze(Fi,"overrides",Qo),ze(Fi,"registry",ni),ze(Fi,"version",o4),ze(Fi,"getChart",y1),Fi);function b1(){return We(cf.instances,e=>e._plugins.invalidate())}function f_(e,t,n=t){e.lineCap=Ve(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ve(n.borderDash,t.borderDash)),e.lineDashOffset=Ve(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ve(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ve(n.borderWidth,t.borderWidth),e.strokeStyle=Ve(n.borderColor,t.borderColor)}function d4(e,t,n){e.lineTo(n.x,n.y)}function f4(e){return e.stepped?K5:e.tension||e.cubicInterpolationMode==="monotone"?Y5:d4}function h_(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{y!==b&&(e.lineTo(u,b),e.lineTo(u,y),e.lineTo(u,m))};for(l&&(p=i[g(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[g(f)],p.skip)continue;const S=p.x,w=p.y,C=S|0;C===v?(wb&&(b=w),u=(d*u+S)/++d):(x(),e.lineTo(S,w),v=C,d=0,y=b=w),m=w}x()}function yp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?g4:h4}function p4(e){return e.stepped?PL:e.tension||e.cubicInterpolationMode==="monotone"?$L:Oo}function m4(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),f_(e,t.options),e.stroke(i)}function v4(e,t,n,r){const{segments:i,options:o}=t,a=yp(t);for(const s of i)f_(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const y4=typeof Path2D=="function";function b4(e,t,n,r){y4&&!t.options.segment?m4(e,t,n,r):v4(e,t,n,r)}class Ws extends ra{constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;SL(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=DL(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=NL(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=p4(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function x1(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},x4=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class w1 extends ra{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,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 t=this.options.labels||{};let n=Ne(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Mn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=S1(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((v,y)=>{const b=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+b+2*s>a)&&(d+=u,c[c.length-(y>0?0:1)]=0,p+=u,f++),l[y]={left:0,top:p,row:f,width:b,height:i},c[c.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,f=0,p=0,v=0,y=0;return this.legendItems.forEach((b,m)=>{const{itemWidth:g,itemHeight:x}=S4(r,n,o,b,i);m>0&&p+x+2*s>u&&(d+=f+s,c.push({width:f,height:p}),v+=f+s,y++,f=p=0),l[m]={left:v,top:p,col:y,width:g,height:x},f=Math.max(f,g),p+=x+s}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=Va(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=_n(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=_n(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=_n(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=_n(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;hv(t,this),this._draw(),gv(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Bt.color,l=Va(t.rtl,this.left,this.width),c=Mn(a.font),{padding:u}=a,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:b}=S1(a,d),m=function(C,_,M){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const T=Ve(M.lineWidth,1);if(i.fillStyle=Ve(M.fillStyle,s),i.lineCap=Ve(M.lineCap,"butt"),i.lineDashOffset=Ve(M.lineDashOffset,0),i.lineJoin=Ve(M.lineJoin,"miter"),i.lineWidth=T,i.strokeStyle=Ve(M.strokeStyle,s),i.setLineDash(Ve(M.lineDash,[])),a.usePointStyle){const P={radius:y*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:T},F=l.xPlus(C,v/2),D=_+f;UE(i,P,F,D,a.pointStyleWidth&&v)}else{const P=_+Math.max((d-y)/2,0),F=l.leftForLtr(C,v),D=dl(M.borderRadius);i.beginPath(),Object.values(D).some(z=>z!==0)?pp(i,{x:F,y:P,w:v,h:y,radius:D}):i.rect(F,P,v,y),i.fill(),T!==0&&i.stroke()}i.restore()},g=function(C,_,M){Yl(i,M.text,C,_+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?p={x:_n(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:p={x:this.left+u,y:_n(o,this.top+S+u,this.bottom-n[0].height),line:0},ZE(this.ctx,t.textDirection);const w=b+u;this.legendItems.forEach((C,_)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const M=i.measureText(C.text).width,T=l.textAlign(C.textAlign||(C.textAlign=a.textAlign)),P=v+f+M;let F=p.x,D=p.y;l.setWidth(this.width),x?_>0&&F+P+u>this.right&&(D=p.y+=w,p.line++,F=p.x=_n(o,this.left+u,this.right-r[p.line])):_>0&&D+w>this.bottom&&(F=p.x=F+n[p.line].width+u,p.line++,D=p.y=_n(o,this.top+S+u,this.bottom-n[p.line].height));const z=l.x(F);if(m(z,D,C),F=L5(T,F+v+f,x?F+P:this.right,t.rtl),g(l.x(F),D,C),x)p.x+=P+u;else if(typeof C.text!="string"){const j=c.lineHeight;p.y+=g_(C,j)+u}else p.y+=w}),JE(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),i=Pr(n.padding);if(!n.display)return;const o=Va(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=_n(t.align,d,this.right-f);else{const v=this.columnSizes.reduce((y,b)=>Math.max(y,b.height),0);u=c+_n(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=_n(s,d,d+f);a.textAlign=o.textAlign(dv(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Yl(a,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Pr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Bs(t,this.left,this.right)&&Bs(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function C4(e,t,n){let r=e;return typeof t.text!="string"&&(r=g_(t,n)),r}function g_(e,t){const n=e.text?e.text.length:0;return t*n}function E4(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var _4={id:"legend",_element:w1,start(e,t,n){const r=e.legend=new w1({ctx:e.ctx,options:n,chart:e});Cr.configure(e,r,n),Cr.addBox(e,r)},stop(e){Cr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Cr.configure(e,r,n),r.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 r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),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:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Pr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.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 p_ extends ra{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ln(r.text)?r.text.length:1;this._padding=Pr(r.padding);const o=i*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,d;return this.isHorizontal()?(u=_n(s,r,o),d=n+t,c=o-r):(a.position==="left"?(u=r+t,d=_n(s,i,n),l=dn*-.5):(u=o-t,d=_n(s,n,i),l=dn*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Yl(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:dv(n.align),textBaseline:"middle",translation:[a,s]})}}function O4(e,t){const n=new p_({ctx:e.ctx,options:t,chart:e});Cr.configure(e,n,t),Cr.addBox(e,n),e.titleBlock=n}var M4={id:"title",_element:p_,start(e,t,n){O4(e,n)},stop(e){const t=e.titleBlock;Cr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Cr.configure(e,r,n),r.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}};const Us={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o-1?e.split(` -`):e}function T4(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function C1(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Mn(t.bodyFont),c=Mn(t.titleFont),u=Mn(t.footerFont),d=o.length,f=i.length,p=r.length,v=Pr(t.padding);let y=v.height,b=0,m=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=p*S+(m-p)*l.lineHeight+(m-1)*t.bodySpacing}f&&(y+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let g=0;const x=function(S){b=Math.max(b,n.measureText(S).width+g)};return n.save(),n.font=c.string,We(e.title,x),n.font=l.string,We(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?a+2+t.boxPadding:0,We(r,S=>{We(S.before,x),We(S.lines,x),We(S.after,x)}),g=0,n.font=u.string,We(e.footer,x),n.restore(),b+=v.width,{width:b,height:y}}function P4(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function $4(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function R4(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),$4(c,e,t,n)&&(c="center"),c}function E1(e,t,n){const r=n.yAlign||t.yAlign||P4(e,n);return{xAlign:n.xAlign||t.xAlign||R4(e,t,n,r),yAlign:r}}function k4(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function I4(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function _1(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=dl(a);let v=k4(t,s);const y=I4(t,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(u,f)+i:s==="right"&&(v+=Math.max(d,p)+i),{x:wr(v,0,r.width-t.width),y:wr(y,0,r.height-t.height)}}function nu(e,t,n){const r=Pr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function O1(e){return ei([],pi(e))}function F4(e,t,n){return na(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function M1(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const m_={beforeTitle:hi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?m_[t].call(n,r):i}class bp extends ra{constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new t_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=F4(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Vn(r,"beforeTitle",this,t),o=Vn(r,"title",this,t),a=Vn(r,"afterTitle",this,t);let s=[];return s=ei(s,pi(i)),s=ei(s,pi(o)),s=ei(s,pi(a)),s}getBeforeBody(t,n){return O1(Vn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return We(t,o=>{const a={before:[],lines:[],after:[]},s=M1(r,o);ei(a.before,pi(Vn(s,"beforeLabel",this,o))),ei(a.lines,Vn(s,"label",this,o)),ei(a.after,pi(Vn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return O1(Vn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Vn(r,"beforeFooter",this,t),o=Vn(r,"footer",this,t),a=Vn(r,"afterFooter",this,t);let s=[];return s=ei(s,pi(i)),s=ei(s,pi(o)),s=ei(s,pi(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),We(s,u=>{const d=M1(t.callbacks,u);i.push(Vn(d,"labelColor",this,u)),o.push(Vn(d,"labelPointStyle",this,u)),a.push(Vn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Us[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=C1(this,r),c=Object.assign({},s,l),u=E1(this.chart,r,c),d=_1(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=dl(s),{x:f,y:p}=t,{width:v,height:y}=n;let b,m,g,x,S,w;return o==="center"?(S=p+y/2,i==="left"?(b=f,m=b-a,x=S+a,w=S-a):(b=f+v,m=b+a,x=S-a,w=S+a),g=b):(i==="left"?m=f+Math.max(l,u)+a:i==="right"?m=f+v-Math.max(c,d)-a:m=this.caretX,o==="top"?(x=p,S=x-a,b=m-a,g=m+a):(x=p+y,S=x+a,b=m+a,g=m-a),w=x),{x1:b,x2:m,x3:g,y1:x,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=Va(r.rtl,this.x,this.width);for(t.x=nu(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,pp(t,{x:y,y:v,w:c,h:l,radius:m}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),pp(t,{x:b,y:v+1,w:c-2,h:l-2,radius:m}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,c,l),t.strokeRect(y,v,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Mn(r.bodyFont);let f=d.lineHeight,p=0;const v=Va(r.rtl,this.x,this.width),y=function(M){n.fillText(M,v.x(t.x+p),t.y+f/2),t.y+=f+o},b=v.textAlign(a);let m,g,x,S,w,C,_;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=nu(this,b,r),n.fillStyle=r.bodyColor,We(this.beforeBody,y),p=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,C=i.length;S0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=Us[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=C1(this,t),l=Object.assign({},a,this._size),c=E1(n,t,l),u=_1(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Pr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),ZE(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),JE(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!dd(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!dd(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=Us[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}ze(bp,"positioners",Us);var N4={id:"tooltip",_element:bp,positioners:Us,afterInit(e,t,n){n&&(e.tooltip=new bp({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(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)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:m_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const A4=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function L4(e,t,n,r){const i=e.indexOf(t);if(i===-1)return A4(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const D4=(e,t)=>e===null?null:wr(Math.round(e),0,t);function T1(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ze(xp,"id","category"),ze(xp,"defaults",{ticks:{callback:T1}});function z4(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,v=u-1,{min:y,max:b}=t,m=!At(a),g=!At(s),x=!At(c),S=(b-y)/(d+1);let w=kb((b-y)/v/p)*p,C,_,M,T;if(w<1e-14&&!m&&!g)return[{value:y},{value:b}];T=Math.ceil(b/w)-Math.floor(y/w),T>v&&(w=kb(T*w/v/p)*p),At(l)||(C=Math.pow(10,l),w=Math.ceil(w*C)/C),i==="ticks"?(_=Math.floor(y/w)*w,M=Math.ceil(b/w)*w):(_=y,M=b),m&&g&&o&&O5((s-a)/o,w/1e3)?(T=Math.round(Math.min((s-a)/w,u)),w=(s-a)/T,_=a,M=s):x?(_=m?a:_,M=g?s:M,T=c-1,w=(M-_)/T):(T=(M-_)/w,ll(T,Math.round(T),w/1e3)?T=Math.round(T):T=Math.ceil(T));const P=Math.max(Ib(w),Ib(_));C=Math.pow(10,At(l)?P:l),_=Math.round(_*C)/C,M=Math.round(M*C)/C;let F=0;for(m&&(f&&_!==a?(n.push({value:a}),_s)break;n.push({value:D})}return g&&f&&M!==s?n.length&&ll(n[n.length-1].value,s,P1(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!g||M===s)&&n.push({value:M}),n}function P1(e,t,{horizontal:n,minRotation:r}){const i=Fo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class j4 extends ps{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return At(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=so(i),c=so(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=z4(i,o);return t.bounds==="ticks"&&M5(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return BE(t,this.chart.options.locale,this.options.ticks.format)}}class Sp extends j4{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Tr(t)?t:0,this.max=Tr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Fo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ze(Sp,"id","linear"),ze(Sp,"defaults",{ticks:{callback:WE.formatters.numeric}});const uf={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}},qn=Object.keys(uf);function $1(e,t){return e-t}function R1(e,t){if(At(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Tr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Xl(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function k1(e,t,n,r){const i=qn.length;for(let o=qn.indexOf(e);o=qn.indexOf(n);o--){const a=qn[o];if(uf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return qn[n?qn.indexOf(n):0]}function B4(e){for(let t=qn.indexOf(e)+1,n=qn.length;t=t?n[r]:n[i];e[o]=!0}}function V4(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function F1(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=wr(n,0,a),r=wr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||k1(o.minUnit,n,r,this._getLabelCapacity(n)),s=Ve(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Xl(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Ne(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=No(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=No(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class N1 extends yd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=ru(n,this.min),this._tableRange=ru(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(ru(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return ru(this._table,r*this._tableRange+this._minPos,!0)}}ze(N1,"id","timeseries"),ze(N1,"defaults",yd.defaults);const v_="label";function A1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function W4(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y_(e,t){e.labels=t}function b_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v_;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function U4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v_;const n={labels:[],datasets:[]};return y_(n,e.labels),b_(n,e.datasets,t),n}function G4(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,p=h.useRef(null),v=h.useRef(),y=()=>{p.current&&(v.current=new cf(p.current,{type:a,data:U4(s,o),options:l&&{...l},plugins:c}),A1(t,v.current))},b=()=>{A1(t,null),v.current&&(v.current.destroy(),v.current=null)};return h.useEffect(()=>{!i&&v.current&&l&&W4(v.current,l)},[i,l]),h.useEffect(()=>{!i&&v.current&&y_(v.current.config.data,s.labels)},[i,s.labels]),h.useEffect(()=>{!i&&v.current&&s.datasets&&b_(v.current.config.data,s.datasets,o)},[i,s.datasets]),h.useEffect(()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(d))},[i,l,s.labels,s.datasets,d]),h.useEffect(()=>{v.current&&(b(),setTimeout(y))},[a]),h.useEffect(()=>(y(),()=>b()),[]),de.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:r},f),u)}const q4=h.forwardRef(G4);function X4(e,t){return cf.register(t),h.forwardRef((n,r)=>de.createElement(q4,Object.assign({},n,{ref:r,type:e})))}const K4=X4("line",Mu);function Y4({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return Te.jsx(K4,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})}const bd=(e,t,n)=>typeof n=="function"?n(e,t):n,L1=(e,t,n,r)=>{const i=bd(n,t,r.fixedFee),o=bd(n,t,r.percentageFee)/100;return e*(1-o)-i},Q4=(e,t,n)=>{const i=bd(t,e,n.annualPercentageFee)/100/12;return e*(1-i)},Z4=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[bd(e,0,e.baseInvestment)],i=[L1(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r*(1-n)}},patria:{name:"Patria",color:"#f59100",fixedFee:0,percentageFee:.8,annualPercentageFee:0},t212:{name:"T212",color:"#00a7e1",fixedFee:0,percentageFee:.15,annualPercentageFee:0},ibkr:{name:"IBKR",color:"#d91222",fixedFee:e=>e.numberOfProducts*J4,percentageFee:.03,annualPercentageFee:0},nofees:{name:"0% fees",color:"#d0d0d0",fixedFee:0,percentageFee:0,annualPercentageFee:0}};function e3(){return Te.jsxs(Pi.Footer,{className:"bg-white",children:[Te.jsx("p",{className:"text-center text-sm text-gray-500 mb-3",children:"Disclaimer: This tool is for illustrative purposes only. The actual returns may vary. The tool does not take into account taxes, inflation, or other factors that may affect the investment. The tool is not investment advice."}),Te.jsxs("p",{className:"text-center text-sm text-gray-500",children:["Built with"," ",Te.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",children:["React ",Te.jsx(qA,{})]})," ","and"," ",Te.jsxs("a",{href:"https://ant.design/",target:"_blank",rel:"noopener noreferrer",children:["Ant Design ",Te.jsx(HA,{})]}),"."]})]})}function t3(){return Te.jsx(Pi.Header,{className:"flex bg-white items-center",children:Te.jsx(Km,{iconPosition:"end",icon:Te.jsx(WA,{}),href:"https://github.com/sentisso/investment-plan",target:"_blank",className:"ml-auto",children:"See this on GitHub"})})}function n3(){const[e,t]=h.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=h.useState("Kč"),r=h.useMemo(()=>{const o=[];for(const a in D1){const s=Z4(e,D1[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return Te.jsxs(Pi,{className:"max-w-screen-xl mx-auto bg-white",children:[Te.jsx(t3,{}),Te.jsxs(Pi.Content,{children:[Te.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),Te.jsx(Y4,{data:r,currency:n}),Te.jsxs(Un,{layout:"vertical",children:[Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Base Investment"," ",Te.jsx(Hi,{title:"The one-time investment you plan to make.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Monthly Investment"," ",Te.jsx(Hi,{title:"The amount of money you plan to invest each month.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Average Annual Return"," ",Te.jsx(Hi,{title:"The expected average annual return rate.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Years investing"," ",Te.jsx(Hi,{title:"The number of years you plan to invest. This also affects Portu fees.",children:Te.jsx(ba,{})})]}),children:Te.jsxs(xE,{children:[Te.jsx(cd,{span:8,children:Te.jsx(QN,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),Te.jsx(cd,{span:4,children:Te.jsx(ya,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Number of investment products"," ",Te.jsx(Hi,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]})]}),Te.jsx(e3,{})]})}var x_={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 - * http://hammerjs.github.io/ - * - * Copyright (c) 2016 Jorik Tangelder; - * Licensed under the MIT license */(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function d(E,O,k){return setTimeout(x(E,k),O)}function f(E,O,k){return Array.isArray(E)?(p(E,k[O],k),!0):!1}function p(E,O,k){var B;if(E)if(E.forEach)E.forEach(O,k);else if(E.length!==i)for(B=0;B\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",De=t.console&&(t.console.warn||t.console.log);return De&&De.call(t.console,B,re),E.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(O){if(O===i||O===null)throw new TypeError("Cannot convert undefined or null to object");for(var k=Object(O),B=1;B-1}function P(E){return E.trim().split(/\s+/g)}function F(E,O,k){if(E.indexOf&&!k)return E.indexOf(O);for(var B=0;Bat[O]}),B}function j(E,O){for(var k,B,Q=O[0].toUpperCase()+O.slice(1),re=0;re1&&!k.firstMultiple?k.firstMultiple=je(O):Q===1&&(k.firstMultiple=!1);var re=k.firstInput,De=k.firstMultiple,Dt=De?De.center:re.center,Ft=O.center=Ge(B);O.timeStamp=u(),O.deltaTime=O.timeStamp-re.timeStamp,O.angle=ft(Dt,Ft),O.distance=tt(Dt,Ft),Pe(k,O),O.offsetDirection=Qe(O.deltaX,O.deltaY);var at=ct(O.deltaTime,O.deltaX,O.deltaY);O.overallVelocityX=at.x,O.overallVelocityY=at.y,O.overallVelocity=c(at.x)>c(at.y)?at.x:at.y,O.scale=De?wt(De.pointers,B):1,O.rotation=De?Wt(De.pointers,B):0,O.maxPointers=k.prevInput?O.pointers.length>k.prevInput.maxPointers?O.pointers.length:k.prevInput.maxPointers:O.pointers.length,Fe(k,O);var on=E.element;M(O.srcEvent.target,on)&&(on=O.srcEvent.target),O.target=on}function Pe(E,O){var k=O.center,B=E.offsetDelta||{},Q=E.prevDelta||{},re=E.prevInput||{};(O.eventType===q||re.eventType===Z)&&(Q=E.prevDelta={x:re.deltaX||0,y:re.deltaY||0},B=E.offsetDelta={x:k.x,y:k.y}),O.deltaX=Q.x+(k.x-B.x),O.deltaY=Q.y+(k.y-B.y)}function Fe(E,O){var k=E.lastInterval||O,B=O.timeStamp-k.timeStamp,Q,re,De,Dt;if(O.eventType!=ne&&(B>ee||k.velocity===i)){var Ft=O.deltaX-k.deltaX,at=O.deltaY-k.deltaY,on=ct(B,Ft,at);re=on.x,De=on.y,Q=c(on.x)>c(on.y)?on.x:on.y,Dt=Qe(Ft,at),E.lastInterval=O}else Q=k.velocity,re=k.velocityX,De=k.velocityY,Dt=k.direction;O.velocity=Q,O.velocityX=re,O.velocityY=De,O.direction=Dt}function je(E){for(var O=[],k=0;k=c(O)?E<0?ye:xe:O<0?me:fe}function tt(E,O,k){k||(k=Ae);var B=O[k[0]]-E[k[0]],Q=O[k[1]]-E[k[1]];return Math.sqrt(B*B+Q*Q)}function ft(E,O,k){k||(k=Ae);var B=O[k[0]]-E[k[0]],Q=O[k[1]]-E[k[1]];return Math.atan2(Q,B)*180/Math.PI}function Wt(E,O){return ft(O[1],O[0],Ee)+ft(E[1],E[0],Ee)}function wt(E,O){return tt(O[0],O[1],Ee)/tt(E[0],E[1],Ee)}var ur={mousedown:q,mousemove:K,mouseup:Z},hn="mousedown",kt="mousemove mouseup";function ht(){this.evEl=hn,this.evWin=kt,this.pressed=!1,ie.apply(this,arguments)}g(ht,ie,{handler:function(O){var k=ur[O.type];k&q&&O.button===0&&(this.pressed=!0),k&K&&O.which!==1&&(k=Z),this.pressed&&(k&Z&&(this.pressed=!1),this.callback(this.manager,k,{pointers:[O],changedPointers:[O],pointerType:U,srcEvent:O}))}});var kr={pointerdown:q,pointermove:K,pointerup:Z,pointercancel:ne,pointerout:ne},gt={2:G,3:Y,4:U,5:X},nn="pointerdown",Se="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(nn="MSPointerDown",Se="MSPointerMove MSPointerUp MSPointerCancel");function se(){this.evEl=nn,this.evWin=Se,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}g(se,ie,{handler:function(O){var k=this.store,B=!1,Q=O.type.toLowerCase().replace("ms",""),re=kr[Q],De=gt[O.pointerType]||O.pointerType,Dt=De==G,Ft=F(k,O.pointerId,"pointerId");re&q&&(O.button===0||Dt)?Ft<0&&(k.push(O),Ft=k.length-1):re&(Z|ne)&&(B=!0),!(Ft<0)&&(k[Ft]=O,this.callback(this.manager,re,{pointers:k,changedPointers:[O],pointerType:De,srcEvent:O}),B&&k.splice(Ft,1))}});var Oe={touchstart:q,touchmove:K,touchend:Z,touchcancel:ne},Me="touchstart",Le="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=Me,this.evWin=Le,this.started=!1,ie.apply(this,arguments)}g(dt,ie,{handler:function(O){var k=Oe[O.type];if(k===q&&(this.started=!0),!!this.started){var B=qe.call(this,O,k);k&(Z|ne)&&B[0].length-B[1].length===0&&(this.started=!1),this.callback(this.manager,k,{pointers:B[0],changedPointers:B[1],pointerType:G,srcEvent:O})}}});function qe(E,O){var k=D(E.touches),B=D(E.changedTouches);return O&(Z|ne)&&(k=z(k.concat(B),"identifier")),[k,B]}var ke={touchstart:q,touchmove:K,touchend:Z,touchcancel:ne},Ut="touchstart touchmove touchend touchcancel";function gn(){this.evTarget=Ut,this.targetIds={},ie.apply(this,arguments)}g(gn,ie,{handler:function(O){var k=ke[O.type],B=it.call(this,O,k);B&&this.callback(this.manager,k,{pointers:B[0],changedPointers:B[1],pointerType:G,srcEvent:O})}});function it(E,O){var k=D(E.touches),B=this.targetIds;if(O&(q|K)&&k.length===1)return B[k[0].identifier]=!0,[k,k];var Q,re,De=D(E.changedTouches),Dt=[],Ft=this.target;if(re=k.filter(function(at){return M(at.target,Ft)}),O===q)for(Q=0;Q-1&&B.splice(re,1)};setTimeout(Q,Ze)}}function Kr(E){for(var O=E.srcEvent.clientX,k=E.srcEvent.clientY,B=0;B-1&&this.requireFail.splice(O,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(E){return!!this.simultaneous[E.id]},emit:function(E){var O=this,k=this.state;function B(Q){O.manager.emit(Q,E)}k=Et&&B(O.options.event+Lt(k))},tryEmit:function(E){if(this.canEmit())return this.emit(E);this.state=Ot},canEmit:function(){for(var E=0;EO.threshold&&Q&O.direction},attrTest:function(E){return It.prototype.attrTest.call(this,E)&&(this.state&Ke||!(this.state&Ke)&&this.directionTest(E))},emit:function(E){this.pX=E.deltaX,this.pY=E.deltaY;var O=fr(E.direction);O&&(E.additionalEvent=this.options.event+O),this._super.emit.call(this,E)}});function Yr(){It.apply(this,arguments)}g(Yr,It,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.scale-1)>this.options.threshold||this.state&Ke)},emit:function(E){if(E.scale!==1){var O=E.scale<1?"in":"out";E.additionalEvent=this.options.event+O}this._super.emit.call(this,E)}});function Qr(){Mt.apply(this,arguments),this._timer=null,this._input=null}g(Qr,Mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[rn]},process:function(E){var O=this.options,k=E.pointers.length===O.pointers,B=E.distanceO.time;if(this._input=E,!B||!k||E.eventType&(Z|ne)&&!Q)this.reset();else if(E.eventType&q)this.reset(),this._timer=d(function(){this.state=yt,this.tryEmit()},O.time,this);else if(E.eventType&Z)return yt;return Ot},reset:function(){clearTimeout(this._timer)},emit:function(E){this.state===yt&&(E&&E.eventType&Z?this.manager.emit(this.options.event+"up",E):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Bn(){It.apply(this,arguments)}g(Bn,It,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.rotation)>this.options.threshold||this.state&Ke)}});function mo(){It.apply(this,arguments)}g(mo,It,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:be|he,pointers:1},getTouchAction:function(){return wn.prototype.getTouchAction.call(this)},attrTest:function(E){var O=this.options.direction,k;return O&(be|he)?k=E.overallVelocity:O&be?k=E.overallVelocityX:O&he&&(k=E.overallVelocityY),this._super.attrTest.call(this,E)&&O&E.offsetDirection&&E.distance>this.options.threshold&&E.maxPointers==this.options.pointers&&c(k)>this.options.velocity&&E.eventType&Z},emit:function(E){var O=fr(E.offsetDirection);O&&this.manager.emit(this.options.event+O,E),this.manager.emit(this.options.event,E)}});function di(){Mt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}g(di,Mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[In]},process:function(E){var O=this.options,k=E.pointers.length===O.pointers,B=E.distancee&&e.enabled&&e.modifierKey,S_=(e,t)=>e&&t[e+"Key"],Sv=(e,t)=>e&&!t[e+"Key"];function lo(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function bh(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function i3(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function o3({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function w_(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=o3(t,n),s=bh(r,n),l=bh(i,n);if(o){const u=bh(o,n);for(const d of["x","y"])u[d]&&(l[d]=s[d],s[d]=!1)}if(a&&l[a.axis])return[a];const c=[];return We(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const wp=new WeakMap;function Vt(e){let t=wp.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},wp.set(e,t)),t}function a3(e){wp.delete(e)}function C_(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function z1(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=Ve(a.options,a.scale)}return Ve(o,i)}function s3(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function ms(e,{min:t,max:n},r,i=!1){const o=Vt(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,d=z1(o,e,c,"min",-1/0),f=z1(o,e,c,"max",1/0),p=i?Math.max(n-t,u):e.max-e.min,v=(p-n+t)/2;return t-=v,n+=v,tf&&(n=f,t=Math.max(f-p,d)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function l3(e,t,n,r){const i=C_(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return ms(e,o,r,!0)}function c3(e,t,n,r){ms(e,s3(e,t,n),r,!0)}const j1=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function u3(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),ms(e,{min:o,max:a},n)||u}const g3={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function E_(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=g3[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:d=-1/0,max:f=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||cf?!0:ms(e,{min:c,max:u},n,r)}function H1(e,t,n){return E_(e,t,n,!0)}const Cp={category:d3,default:l3},Ep={default:c3},_p={category:h3,default:E_,logarithmic:H1,timeseries:H1};function p3(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function B1(e,t){We(e,(n,r)=>{t[r]||delete e[r]})}function vs(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return We(n,function(o){p3(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),B1(r,n),B1(i,n),r}function V1(e,t,n,r){const i=Cp[e.type]||Cp.default;Ne(i,[e,t,n,r])}function W1(e,t,n,r,i){const o=Ep[e.type]||Ep.default;Ne(o,[e,t,n,r,i])}function m3(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function wv(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=m3(e)}=typeof t=="number"?{x:t,y:t}:t,a=Vt(e),{options:{limits:s,zoom:l}}=a;vs(e,a);const c=r!==1,u=i!==1,d=w_(l,o,e);We(d||e.scales,function(f){f.isHorizontal()&&c?V1(f,r,o,s):!f.isHorizontal()&&u&&V1(f,i,o,s)}),e.update(n),Ne(l.onZoom,[{chart:e}])}function __(e,t,n,r="none"){const i=Vt(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;vs(e,i);const l=lo(s,"x",e),c=lo(s,"y",e);We(e.scales,function(u){u.isHorizontal()&&l?W1(u,t.x,n.x,o):!u.isHorizontal()&&c&&W1(u,t.y,n.y,o)}),e.update(r),Ne(a.onZoom,[{chart:e}])}function v3(e,t,n,r="none"){vs(e,Vt(e));const i=e.scales[t];ms(i,n,void 0,!0),e.update(r)}function y3(e,t="default"){const n=Vt(e),r=vs(e,n);We(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Ne(n.options.zoom.onZoomComplete,[{chart:e}])}function b3(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return Ve(i.options,i.scale)-Ve(r.options,r.scale)}function x3(e){const t=Vt(e);let n=1,r=1;return We(e.scales,function(i){const o=b3(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function U1(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;so(o)===so(t)&&(t+=o);const a=_p[e.type]||_p.default;Ne(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function O_(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=Vt(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};vs(e,a);const u=i!==0,d=o!==0;We(n||e.scales,function(f){f.isHorizontal()&&u?U1(f,i,l,a):!f.isHorizontal()&&d&&U1(f,o,l,a)}),e.update(r),Ne(c,[{chart:e}])}function M_(e){const t=Vt(e);vs(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function S3(e){const t=M_(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function Gn(e,t){const{handlers:n}=Vt(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function gl(e,t,n,r){const{handlers:i,options:o}=Vt(e),a=i[n];a&&a.target===t||(Gn(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function w3(e,t){const n=Vt(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function C3(e,t){const n=Vt(e);!n.dragStart||t.key!=="Escape"||(Gn(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function T_(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=ii(t,e);if(Ne(r,[{chart:e,event:t,point:o}])===!1)return Ne(i,[{chart:e,event:t}]),!1}}function E3(e,t){const n=Vt(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||S_(Zl(r),t)||Sv(Zl(i.drag),t))return Ne(i.onZoomRejected,[{chart:e,event:t}]);T_(e,t,i)!==!1&&(n.dragStart=t,gl(e,e.canvas,"mousemove",w3),gl(e,window.document,"keydown",C3))}function P_(e,t,n,r){const i=lo(t,"x",e),o=lo(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:d}=e.chartArea;const f=ii(n,e),p=ii(r,e);i&&(s=Math.min(f.x,p.x),l=Math.max(f.x,p.x)),o&&(a=Math.min(f.y,p.y),c=Math.max(f.y,p.y));const v=l-s,y=c-a;return{left:s,top:a,right:l,bottom:c,width:v,height:y,zoomX:i&&v?1+(u-v)/u:1,zoomY:o&&y?1+(d-y)/d:1}}function _3(e,t){const n=Vt(e);if(!n.dragStart)return;Gn(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=P_(e,r,n.dragStart,t),s=lo(r,"x",e)?a.width:0,l=lo(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}__(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Ne(i,[{chart:e}])}function O3(e,t,n){if(Sv(Zl(n.wheel),t)){Ne(n.onZoomRejected,[{chart:e,event:t}]);return}if(T_(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function M3(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=Vt(e);if(!O3(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};wv(e,a),n&&n()}function T3(e,t,n,r){n&&(Vt(e).handlers[t]=i3(()=>Ne(n,[{chart:e}]),r))}function P3(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(gl(e,n,"wheel",M3),T3(e,"onZoomComplete",o,250)):Gn(e,"wheel"),i.enabled?(gl(e,n,"mousedown",E3),gl(e,n.ownerDocument,"mouseup",_3)):(Gn(e,"mousedown"),Gn(e,"mousemove"),Gn(e,"mouseup"),Gn(e,"keydown"))}function $3(e){Gn(e,"mousedown"),Gn(e,"mousemove"),Gn(e,"mouseup"),Gn(e,"wheel"),Gn(e,"click"),Gn(e,"keydown")}function R3(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(Sv(Zl(i),a)||S_(Zl(o.drag),a))?(Ne(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function k3(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function $_(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=k3(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&lo(l,"x",e)?o:1,y:s.y&&lo(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};wv(e,c),t.scale=n.scale}}function I3(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function F3(e,t,n){t.scale&&($_(e,t,n),t.scale=null,Ne(t.options.zoom.onZoomComplete,[{chart:e}]))}function R_(e,t,n){const r=t.delta;r&&(t.panning=!0,O_(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function N3(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Ne(i,[{chart:e,event:n,point:s}])===!1)return Ne(o,[{chart:e,event:n}]);t.panScales=w_(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),R_(e,t,n)}function A3(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Ne(t.options.pan.onPanComplete,[{chart:e}]))}const Op=new WeakMap;function L3(e,t){const n=Vt(e),r=e.canvas,{pan:i,zoom:o}=t,a=new hl.Manager(r);o&&o.pinch.enabled&&(a.add(new hl.Pinch),a.on("pinchstart",()=>I3(e,n)),a.on("pinch",s=>$_(e,n,s)),a.on("pinchend",s=>F3(e,n,s))),i&&i.enabled&&(a.add(new hl.Pan({threshold:i.threshold,enable:R3(e,n)})),a.on("panstart",s=>N3(e,n,s)),a.on("panmove",s=>R_(e,n,s)),a.on("panend",()=>A3(e,n))),Op.set(e,a)}function D3(e){const t=Op.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),Op.delete(e))}var z3="2.0.1";function iu(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=Vt(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=P_(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var j3={id:"zoom",version:z3,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=Vt(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),hl&&L3(e,n),e.pan=(i,o,a)=>O_(e,i,o,a),e.zoom=(i,o)=>wv(e,i,o),e.zoomRect=(i,o,a)=>__(e,i,o,a),e.zoomScale=(i,o,a)=>v3(e,i,o,a),e.resetZoom=i=>y3(e,i),e.getZoomLevel=()=>x3(e),e.getInitialScaleBounds=()=>M_(e),e.isZoomedOrPanned=()=>S3(e)},beforeEvent(e){const t=Vt(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=Vt(e);r.options=n,P3(e,n)},beforeDatasetsDraw(e,t,n){iu(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){iu(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){iu(e,"beforeDraw",n)},afterDraw(e,t,n){iu(e,"afterDraw",n)},stop:function(e){$3(e),hl&&D3(e),a3(e)},panFunctions:_p,zoomFunctions:Cp,zoomRectFunctions:Ep};cf.register(xp,Sp,$u,Ws,M4,N4,_4,j3);ow(document.getElementById("root")).render(Te.jsx(h.StrictMode,{children:Te.jsx(n3,{})})); diff --git a/index.html b/index.html index 5154781..cf8c44e 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Investment Plan - - + +