diff --git a/assets/index-FKRlaHgp.js b/assets/index-DYxoss5p.js similarity index 64% rename from assets/index-FKRlaHgp.js rename to assets/index-DYxoss5p.js index 5320818..6cb9d3c 100644 --- a/assets/index-FKRlaHgp.js +++ b/assets/index-DYxoss5p.js @@ -1,4 +1,4 @@ -function hy(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 Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vy={exports:{}},$u={},yy={exports:{}},Ge={};/** +function my(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 Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hy={exports:{}},$u={},vy={exports:{}},Ge={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function hy(e,t){for(var n=0;n>>1,D=R[F];if(0>>1;Fi(G,N))Xi(Q,G)?(R[F]=Q,R[X]=N,F=X):(R[F]=G,R[K]=N,F=K);else if(Xi(Q,N))R[F]=Q,R[X]=N,F=X;else break e}}return I}function i(R,I){var N=R.sortIndex-I.sortIndex;return N!==0?N:R.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,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],d=1,f=null,p=3,y=!1,b=!1,v=!1,x=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 h(R){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=R)r(c),I.sortIndex=I.expirationTime,t(s,I);else break;I=n(c)}}function w(R){if(v=!1,h(R),!b)if(n(s)!==null)b=!0,B(S);else{var I=n(c);I!==null&&_(w,I.startTime-R)}}function S(R,I){b=!1,v&&(v=!1,m($),$=-1),y=!0;var N=p;try{for(h(I),f=n(s);f!==null&&(!(f.expirationTime>I)||R&&!P());){var F=f.callback;if(typeof F=="function"){f.callback=null,p=f.priorityLevel;var D=F(f.expirationTime<=I);I=e.unstable_now(),typeof D=="function"?f.callback=D:f===n(s)&&r(s),h(I)}else r(s);f=n(s)}if(f!==null)var U=!0;else{var K=n(c);K!==null&&_(w,K.startTime-I),U=!1}return U}finally{f=null,p=N,y=!1}}var C=!1,E=null,$=-1,k=5,O=-1;function P(){return!(e.unstable_now()-OR||125F?(R.sortIndex=N,t(c,R),n(s)===null&&R===n(c)&&(v?(m($),$=-1):v=!0,_(w,N-F))):(R.sortIndex=D,t(s,R),b||y||(b=!0,B(S))),R},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(R){var I=p;return function(){var N=p;p=I;try{return R.apply(this,arguments)}finally{p=N}}}})(Py);Ry.exports=Py;var OC=Ry.exports;/** + */(function(e){function t(R,I){var N=R.length;R.push(I);e:for(;0>>1,D=R[F];if(0>>1;Fi(G,N))Xi(Q,G)?(R[F]=Q,R[X]=N,F=X):(R[F]=G,R[K]=N,F=K);else if(Xi(Q,N))R[F]=Q,R[X]=N,F=X;else break e}}return I}function i(R,I){var N=R.sortIndex-I.sortIndex;return N!==0?N:R.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,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],d=1,f=null,p=3,y=!1,b=!1,v=!1,x=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 h(R){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=R)r(c),I.sortIndex=I.expirationTime,t(s,I);else break;I=n(c)}}function w(R){if(v=!1,h(R),!b)if(n(s)!==null)b=!0,B(E);else{var I=n(c);I!==null&&_(w,I.startTime-R)}}function E(R,I){b=!1,v&&(v=!1,m($),$=-1),y=!0;var N=p;try{for(h(I),f=n(s);f!==null&&(!(f.expirationTime>I)||R&&!P());){var F=f.callback;if(typeof F=="function"){f.callback=null,p=f.priorityLevel;var D=F(f.expirationTime<=I);I=e.unstable_now(),typeof D=="function"?f.callback=D:f===n(s)&&r(s),h(I)}else r(s);f=n(s)}if(f!==null)var U=!0;else{var K=n(c);K!==null&&_(w,K.startTime-I),U=!1}return U}finally{f=null,p=N,y=!1}}var S=!1,C=null,$=-1,k=5,O=-1;function P(){return!(e.unstable_now()-OR||125F?(R.sortIndex=N,t(c,R),n(s)===null&&R===n(c)&&(v?(m($),$=-1):v=!0,_(w,N-F))):(R.sortIndex=D,t(s,R),b||y||(b=!0,B(E))),R},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(R){var I=p;return function(){var N=p;p=I;try{return R.apply(this,arguments)}finally{p=N}}}})(Ry);Oy.exports=Ry;var kC=Oy.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function hy(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gf=Object.prototype.hasOwnProperty,RC=/^[: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]*$/,Ph={},_h={};function PC(e){return Gf.call(_h,e)?!0:Gf.call(Ph,e)?!1:RC.test(e)?_h[e]=!0:(Ph[e]=!0,!1)}function _C(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TC(e,t,n,r){if(t===null||typeof t>"u"||_C(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bn(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 nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nn[e]=new bn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nn[t]=new bn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nn[e]=new bn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nn[e]=new bn(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){nn[e]=new bn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nn[e]=new bn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nn[e]=new bn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nn[e]=new bn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nn[e]=new bn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xg=/[\-:]([a-z])/g;function Yg(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(Xg,Yg);nn[t]=new bn(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(Xg,Yg);nn[t]=new bn(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(Xg,Yg);nn[t]=new bn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nn[e]=new bn(e,1,!1,e.toLowerCase(),null,!1,!1)});nn.xlinkHref=new bn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nn[e]=new bn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qg(e,t,n,r){var i=nn.hasOwnProperty(t)?nn[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gf=Object.prototype.hasOwnProperty,OC=/^[: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]*$/,Ph={},_h={};function RC(e){return Gf.call(_h,e)?!0:Gf.call(Ph,e)?!1:OC.test(e)?_h[e]=!0:(Ph[e]=!0,!1)}function PC(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 _C(e,t,n,r){if(t===null||typeof t>"u"||PC(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 bn(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 nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nn[e]=new bn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nn[t]=new bn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nn[e]=new bn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nn[e]=new bn(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){nn[e]=new bn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nn[e]=new bn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nn[e]=new bn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nn[e]=new bn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nn[e]=new bn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xg=/[\-:]([a-z])/g;function Yg(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(Xg,Yg);nn[t]=new bn(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(Xg,Yg);nn[t]=new bn(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(Xg,Yg);nn[t]=new bn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nn[e]=new bn(e,1,!1,e.toLowerCase(),null,!1,!1)});nn.xlinkHref=new bn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nn[e]=new bn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qg(e,t,n,r){var i=nn.hasOwnProperty(t)?nn[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var s=` -`+i[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ad=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nl(e):""}function IC(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return e=Ld(e.type,!1),e;case 11:return e=Ld(e.type.render,!1),e;case 1:return e=Ld(e.type,!0),e;default:return""}}function Qf(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 Lo:return"Fragment";case Ao:return"Portal";case Kf:return"Profiler";case Zg:return"StrictMode";case Xf:return"Suspense";case Yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zy:return(e.displayName||"Context")+".Consumer";case Iy:return(e._context.displayName||"Context")+".Provider";case Jg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:Qf(e.type)||"Memo";case li:t=e._payload,e=e._init;try{return Qf(e(t))}catch{}}return null}function zC(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 Qf(t);case 8:return t===Zg?"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 ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function My(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BC(e){var t=My(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 Rs(e){e._valueTracker||(e._valueTracker=BC(e))}function Ny(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=My(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _c(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 Zf(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ih(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ki(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 Ay(e,t){t=t.checked,t!=null&&Qg(e,"checked",t,!1)}function Jf(e,t){Ay(e,t);var n=ki(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")?ep(e,t.type,n):t.hasOwnProperty("defaultValue")&&ep(e,t.type,ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zh(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 ep(e,t,n){(t!=="number"||_c(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rl=Array.isArray;function ea(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ps.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ul={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},MC=["Webkit","ms","Moz","O"];Object.keys(ul).forEach(function(e){MC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ul[t]=ul[e]})});function Dy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ul.hasOwnProperty(e)&&ul[e]?(""+t).trim():t+"px"}function Hy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Dy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var NC=Ct({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 rp(e,t){if(t){if(NC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function ip(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 op=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ap=null,ta=null,na=null;function Nh(e){if(e=os(e)){if(typeof ap!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=_u(t),ap(e.stateNode,e.type,t))}}function Vy(e){ta?na?na.push(e):na=[e]:ta=e}function Wy(){if(ta){var e=ta,t=na;if(na=ta=null,Nh(e),t)for(e=0;e>>=0,e===0?32:31-(GC(e)/KC|0)|0}var _s=64,Ts=4194304;function il(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 Bc(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 l=a&~i;l!==0?r=il(l):(o&=a,o!==0&&(r=il(o)))}else a=n&~i,a!==0?r=il(a):o!==0&&(r=il(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 rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function ZC(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=fl),qh=" ",Uh=!1;function ub(e,t){switch(e){case"keyup":return kE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function db(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jo=!1;function RE(e,t){switch(e){case"compositionend":return db(t);case"keypress":return t.which!==32?null:(Uh=!0,qh);case"textInput":return e=t.data,e===qh&&Uh?null:e;default:return null}}function PE(e,t){if(jo)return e==="compositionend"||!cm&&ub(e,t)?(e=sb(),uc=am=di=null,jo=!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=Yh(n)}}function mb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hb(){for(var e=window,t=_c();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_c(e.document)}return t}function um(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 LE(e){var t=hb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mb(n.ownerDocument.documentElement,n)){if(r!==null&&um(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=Qh(n,o);var a=Qh(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,Fo=null,fp=null,gl=null,pp=!1;function Zh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pp||Fo==null||Fo!==_c(r)||(r=Fo,"selectionStart"in r&&um(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}),gl&&Bl(gl,r)||(gl=r,r=Ac(fp,"onSelect"),0Vo||(e.current=bp[Vo],bp[Vo]=null,Vo--)}function st(e,t){Vo++,bp[Vo]=e.current,e.current=t}var Oi={},cn=Ti(Oi),kn=Ti(!1),no=Oi;function da(e,t){var n=e.type.contextTypes;if(!n)return Oi;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 On(e){return e=e.childContextTypes,e!=null}function jc(){pt(kn),pt(cn)}function o0(e,t,n){if(cn.current!==Oi)throw Error(ee(168));st(cn,t),st(kn,n)}function $b(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(ee(108,zC(e)||"Unknown",i));return Ct({},n,r)}function Fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,no=cn.current,st(cn,e),st(kn,kn.current),!0}function a0(e,t,n){var r=e.stateNode;if(!r)throw Error(ee(169));n?(e=$b(e,t,no),r.__reactInternalMemoizedMergedChildContext=e,pt(kn),pt(cn),st(cn,e)):pt(kn),st(kn,n)}var jr=null,Tu=!1,Zd=!1;function kb(e){jr===null?jr=[e]:jr.push(e)}function YE(e){Tu=!0,kb(e)}function Ii(){if(!Zd&&jr!==null){Zd=!0;var e=0,t=rt;try{var n=jr;for(rt=1;e>=a,i-=a,Dr=1<<32-fr(t)+i|n<$?(k=E,E=null):k=E.sibling;var O=p(m,E,h[$],w);if(O===null){E===null&&(E=k);break}e&&E&&O.alternate===null&&t(m,E),g=o(O,g,$),C===null?S=O:C.sibling=O,C=O,E=k}if($===h.length)return n(m,E),mt&&Fi(m,$),S;if(E===null){for(;$$?(k=E,E=null):k=E.sibling;var P=p(m,E,O.value,w);if(P===null){E===null&&(E=k);break}e&&E&&P.alternate===null&&t(m,E),g=o(P,g,$),C===null?S=P:C.sibling=P,C=P,E=k}if(O.done)return n(m,E),mt&&Fi(m,$),S;if(E===null){for(;!O.done;$++,O=h.next())O=f(m,O.value,w),O!==null&&(g=o(O,g,$),C===null?S=O:C.sibling=O,C=O);return mt&&Fi(m,$),S}for(E=r(m,E);!O.done;$++,O=h.next())O=y(E,m,$,O.value,w),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?$:O.key),g=o(O,g,$),C===null?S=O:C.sibling=O,C=O);return e&&E.forEach(function(z){return t(m,z)}),mt&&Fi(m,$),S}function x(m,g,h,w){if(typeof h=="object"&&h!==null&&h.type===Lo&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Os:e:{for(var S=h.key,C=g;C!==null;){if(C.key===S){if(S=h.type,S===Lo){if(C.tag===7){n(m,C.sibling),g=i(C,h.props.children),g.return=m,m=g;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===li&&p0(S)===C.type){n(m,C.sibling),g=i(C,h.props),g.ref=Wa(m,C,h),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}h.type===Lo?(g=Zi(h.props.children,m.mode,w,h.key),g.return=m,m=g):(w=yc(h.type,h.key,h.props,null,m.mode,w),w.ref=Wa(m,g,h),w.return=m,m=w)}return a(m);case Ao:e:{for(C=h.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===h.containerInfo&&g.stateNode.implementation===h.implementation){n(m,g.sibling),g=i(g,h.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=lf(h,m.mode,w),g.return=m,m=g}return a(m);case li:return C=h._init,x(m,g,C(h._payload),w)}if(rl(h))return b(m,g,h,w);if(ja(h))return v(m,g,h,w);Ls(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,h),g.return=m,m=g):(n(m,g),g=af(h,m.mode,w),g.return=m,m=g),a(m)):n(m,g)}return x}var pa=Bb(!0),Mb=Bb(!1),as={},_r=Ti(as),Ll=Ti(as),jl=Ti(as);function Gi(e){if(e===as)throw Error(ee(174));return e}function bm(e,t){switch(st(jl,t),st(Ll,e),st(_r,as),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:np(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=np(t,e)}pt(_r),st(_r,t)}function ga(){pt(_r),pt(Ll),pt(jl)}function Nb(e){Gi(jl.current);var t=Gi(_r.current),n=np(t,e.type);t!==n&&(st(Ll,e),st(_r,n))}function wm(e){Ll.current===e&&(pt(_r),pt(Ll))}var wt=Ti(0);function Uc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jd=[];function xm(){for(var e=0;en?n:4,e(!0);var r=ef.transition;ef.transition={};try{e(!1),t()}finally{rt=n,ef.transition=r}}function Zb(){return Zn().memoizedState}function e$(e,t,n){var r=Ci(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jb(e))e2(t,n);else if(n=_b(e,t,n,r),n!==null){var i=gn();pr(n,e,r,i),t2(n,t,r)}}function t$(e,t,n){var r=Ci(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jb(e))e2(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,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,hr(l,a)){var s=t.interleaved;s===null?(i.next=i,vm(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=_b(e,t,i,r),n!==null&&(i=gn(),pr(n,e,r,i),t2(n,t,r))}}function Jb(e){var t=e.alternate;return e===St||t!==null&&t===St}function e2(e,t){ml=Gc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var Kc={readContext:Qn,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},n$={readContext:Qn,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:Qn,useEffect:m0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gc(4194308,4,Gb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gc(4194308,4,e,t)},useInsertionEffect:function(e,t){return gc(4,2,e,t)},useMemo:function(e,t){var n=$r();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$r();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=e$.bind(null,St,e),[r.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:g0,useDebugValue:km,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=g0(!1),t=e[0];return e=JE.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=St,i=$r();if(mt){if(n===void 0)throw Error(ee(407));n=n()}else{if(n=t(),Kt===null)throw Error(ee(349));io&30||jb(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,m0(Db.bind(null,r,o,e),[e]),r.flags|=2048,Hl(9,Fb.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$r(),t=Kt.identifierPrefix;if(mt){var n=Hr,r=Dr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fl++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ad=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tl(e):""}function TC(e){switch(e.tag){case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return tl("Suspense");case 19:return tl("SuspenseList");case 0:case 2:case 15:return e=Ld(e.type,!1),e;case 11:return e=Ld(e.type.render,!1),e;case 1:return e=Ld(e.type,!0),e;default:return""}}function Qf(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 Lo:return"Fragment";case Ao:return"Portal";case Kf:return"Profiler";case Zg:return"StrictMode";case Xf:return"Suspense";case Yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Iy:return(e.displayName||"Context")+".Consumer";case Ty:return(e._context.displayName||"Context")+".Provider";case Jg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case em:return t=e.displayName||null,t!==null?t:Qf(e.type)||"Memo";case li:t=e._payload,e=e._init;try{return Qf(e(t))}catch{}}return null}function IC(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 Qf(t);case 8:return t===Zg?"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 ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function By(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zC(e){var t=By(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 Rs(e){e._valueTracker||(e._valueTracker=zC(e))}function My(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=By(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _c(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 Zf(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ih(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ki(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 Ny(e,t){t=t.checked,t!=null&&Qg(e,"checked",t,!1)}function Jf(e,t){Ny(e,t);var n=ki(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")?ep(e,t.type,n):t.hasOwnProperty("defaultValue")&&ep(e,t.type,ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zh(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 ep(e,t,n){(t!=="number"||_c(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nl=Array.isArray;function ea(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ps.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cl={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},BC=["Webkit","ms","Moz","O"];Object.keys(cl).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cl[t]=cl[e]})});function Fy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cl.hasOwnProperty(e)&&cl[e]?(""+t).trim():t+"px"}function Dy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var MC=Ct({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 rp(e,t){if(t){if(MC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function ip(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 op=null;function tm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ap=null,ta=null,na=null;function Nh(e){if(e=is(e)){if(typeof ap!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=_u(t),ap(e.stateNode,e.type,t))}}function Hy(e){ta?na?na.push(e):na=[e]:ta=e}function Vy(){if(ta){var e=ta,t=na;if(na=ta=null,Nh(e),t)for(e=0;e>>=0,e===0?32:31-(UC(e)/GC|0)|0}var _s=64,Ts=4194304;function rl(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 Bc(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 l=a&~i;l!==0?r=rl(l):(o&=a,o!==0&&(r=rl(o)))}else a=n&~i,a!==0?r=rl(a):o!==0&&(r=rl(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 ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function QC(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=dl),qh=" ",Uh=!1;function cb(e,t){switch(e){case"keyup":return $E.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ub(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jo=!1;function OE(e,t){switch(e){case"compositionend":return ub(t);case"keypress":return t.which!==32?null:(Uh=!0,qh);case"textInput":return e=t.data,e===qh&&Uh?null:e;default:return null}}function RE(e,t){if(jo)return e==="compositionend"||!cm&&cb(e,t)?(e=lb(),uc=am=di=null,jo=!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=Yh(n)}}function gb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mb(){for(var e=window,t=_c();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_c(e.document)}return t}function um(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 AE(e){var t=mb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gb(n.ownerDocument.documentElement,n)){if(r!==null&&um(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=Qh(n,o);var a=Qh(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,Fo=null,fp=null,pl=null,pp=!1;function Zh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pp||Fo==null||Fo!==_c(r)||(r=Fo,"selectionStart"in r&&um(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}),pl&&zl(pl,r)||(pl=r,r=Ac(fp,"onSelect"),0Vo||(e.current=bp[Vo],bp[Vo]=null,Vo--)}function st(e,t){Vo++,bp[Vo]=e.current,e.current=t}var Oi={},cn=Ti(Oi),kn=Ti(!1),no=Oi;function da(e,t){var n=e.type.contextTypes;if(!n)return Oi;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 On(e){return e=e.childContextTypes,e!=null}function jc(){pt(kn),pt(cn)}function o0(e,t,n){if(cn.current!==Oi)throw Error(ee(168));st(cn,t),st(kn,n)}function Eb(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(ee(108,IC(e)||"Unknown",i));return Ct({},n,r)}function Fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,no=cn.current,st(cn,e),st(kn,kn.current),!0}function a0(e,t,n){var r=e.stateNode;if(!r)throw Error(ee(169));n?(e=Eb(e,t,no),r.__reactInternalMemoizedMergedChildContext=e,pt(kn),pt(cn),st(cn,e)):pt(kn),st(kn,n)}var jr=null,Tu=!1,Zd=!1;function $b(e){jr===null?jr=[e]:jr.push(e)}function XE(e){Tu=!0,$b(e)}function Ii(){if(!Zd&&jr!==null){Zd=!0;var e=0,t=rt;try{var n=jr;for(rt=1;e>=a,i-=a,Dr=1<<32-fr(t)+i|n<$?(k=C,C=null):k=C.sibling;var O=p(m,C,h[$],w);if(O===null){C===null&&(C=k);break}e&&C&&O.alternate===null&&t(m,C),g=o(O,g,$),S===null?E=O:S.sibling=O,S=O,C=k}if($===h.length)return n(m,C),mt&&Fi(m,$),E;if(C===null){for(;$$?(k=C,C=null):k=C.sibling;var P=p(m,C,O.value,w);if(P===null){C===null&&(C=k);break}e&&C&&P.alternate===null&&t(m,C),g=o(P,g,$),S===null?E=P:S.sibling=P,S=P,C=k}if(O.done)return n(m,C),mt&&Fi(m,$),E;if(C===null){for(;!O.done;$++,O=h.next())O=f(m,O.value,w),O!==null&&(g=o(O,g,$),S===null?E=O:S.sibling=O,S=O);return mt&&Fi(m,$),E}for(C=r(m,C);!O.done;$++,O=h.next())O=y(C,m,$,O.value,w),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?$:O.key),g=o(O,g,$),S===null?E=O:S.sibling=O,S=O);return e&&C.forEach(function(z){return t(m,z)}),mt&&Fi(m,$),E}function x(m,g,h,w){if(typeof h=="object"&&h!==null&&h.type===Lo&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Os:e:{for(var E=h.key,S=g;S!==null;){if(S.key===E){if(E=h.type,E===Lo){if(S.tag===7){n(m,S.sibling),g=i(S,h.props.children),g.return=m,m=g;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===li&&p0(E)===S.type){n(m,S.sibling),g=i(S,h.props),g.ref=Va(m,S,h),g.return=m,m=g;break e}n(m,S);break}else t(m,S);S=S.sibling}h.type===Lo?(g=Zi(h.props.children,m.mode,w,h.key),g.return=m,m=g):(w=yc(h.type,h.key,h.props,null,m.mode,w),w.ref=Va(m,g,h),w.return=m,m=w)}return a(m);case Ao:e:{for(S=h.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===h.containerInfo&&g.stateNode.implementation===h.implementation){n(m,g.sibling),g=i(g,h.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=lf(h,m.mode,w),g.return=m,m=g}return a(m);case li:return S=h._init,x(m,g,S(h._payload),w)}if(nl(h))return b(m,g,h,w);if(La(h))return v(m,g,h,w);Ls(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,h),g.return=m,m=g):(n(m,g),g=af(h,m.mode,w),g.return=m,m=g),a(m)):n(m,g)}return x}var pa=zb(!0),Bb=zb(!1),os={},_r=Ti(os),Al=Ti(os),Ll=Ti(os);function Gi(e){if(e===os)throw Error(ee(174));return e}function bm(e,t){switch(st(Ll,t),st(Al,e),st(_r,os),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:np(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=np(t,e)}pt(_r),st(_r,t)}function ga(){pt(_r),pt(Al),pt(Ll)}function Mb(e){Gi(Ll.current);var t=Gi(_r.current),n=np(t,e.type);t!==n&&(st(Al,e),st(_r,n))}function wm(e){Al.current===e&&(pt(_r),pt(Al))}var wt=Ti(0);function Uc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jd=[];function xm(){for(var e=0;en?n:4,e(!0);var r=ef.transition;ef.transition={};try{e(!1),t()}finally{rt=n,ef.transition=r}}function Qb(){return Zn().memoizedState}function JE(e,t,n){var r=Ci(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zb(e))Jb(t,n);else if(n=Pb(e,t,n,r),n!==null){var i=gn();pr(n,e,r,i),e2(n,t,r)}}function e$(e,t,n){var r=Ci(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zb(e))Jb(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,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,hr(l,a)){var s=t.interleaved;s===null?(i.next=i,vm(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Pb(e,t,i,r),n!==null&&(i=gn(),pr(n,e,r,i),e2(n,t,r))}}function Zb(e){var t=e.alternate;return e===St||t!==null&&t===St}function Jb(e,t){gl=Gc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e2(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rm(e,n)}}var Kc={readContext:Qn,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},t$={readContext:Qn,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:Qn,useEffect:m0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gc(4194308,4,Ub.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gc(4194308,4,e,t)},useInsertionEffect:function(e,t){return gc(4,2,e,t)},useMemo:function(e,t){var n=$r();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$r();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=JE.bind(null,St,e),[r.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:g0,useDebugValue:km,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=g0(!1),t=e[0];return e=ZE.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=St,i=$r();if(mt){if(n===void 0)throw Error(ee(407));n=n()}else{if(n=t(),Kt===null)throw Error(ee(349));io&30||Lb(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,m0(Fb.bind(null,r,o,e),[e]),r.flags|=2048,Dl(9,jb.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$r(),t=Kt.identifierPrefix;if(mt){var n=Hr,r=Dr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jl++,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[kr]=t,e[Al]=r,u2(e,t,!1,!1),t.stateNode=e;e:{switch(a=ip(n,r),n){case"dialog":ft("cancel",e),ft("close",e),i=r;break;case"iframe":case"object":case"embed":ft("load",e),i=r;break;case"video":case"audio":for(i=0;iha&&(t.flags|=128,r=!0,qa(o,!1),t.lanes=4194304)}else{if(!r)if(e=Uc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!mt)return an(t),null}else 2*It()-o.renderingStartTime>ha&&n!==1073741824&&(t.flags|=128,r=!0,qa(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=It(),t.sibling=null,n=wt.current,st(wt,r?n&1|2:n&1),t):(an(t),null);case 22:case 23:return Im(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(an(t),t.subtreeFlags&6&&(t.flags|=8192)):an(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function u$(e,t){switch(fm(t),t.tag){case 1:return On(t.type)&&jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),pt(kn),pt(cn),xm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wm(t),null;case 13:if(pt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pt(wt),null;case 4:return ga(),null;case 10:return hm(t.type._context),null;case 22:case 23:return Im(),null;case 24:return null;default:return null}}var Fs=!1,sn=!1,d$=typeof WeakSet=="function"?WeakSet:Set,me=null;function Go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ot(e,t,r)}else n.current=null}function Tp(e,t,n){try{n()}catch(r){Ot(e,t,r)}}var E0=!1;function f$(e,t){if(gp=Mc,e=hb(),um(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,l=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++c===i&&(l=a),p===o&&++d===r&&(s=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mp={focusedElem:e,selectionRange:n},Mc=!1,me=t;me!==null;)if(t=me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,me=e;else for(;me!==null;){t=me;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:lr(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(w){Ot(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return b=E0,E0=!1,b}function hl(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&&Tp(t,n,o)}i=i.next}while(i!==r)}}function Bu(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 Ip(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 p2(e){var t=e.alternate;t!==null&&(e.alternate=null,p2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[Al],delete t[yp],delete t[KE],delete t[XE])),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 g2(e){return e.tag===5||e.tag===3||e.tag===4}function $0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g2(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 zp(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=Lc));else if(r!==4&&(e=e.child,e!==null))for(zp(e,t,n),e=e.sibling;e!==null;)zp(e,t,n),e=e.sibling}function Bp(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(Bp(e,t,n),e=e.sibling;e!==null;)Bp(e,t,n),e=e.sibling}var Jt=null,sr=!1;function ii(e,t,n){for(n=n.child;n!==null;)m2(e,t,n),n=n.sibling}function m2(e,t,n){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(ku,n)}catch{}switch(n.tag){case 5:sn||Go(n,t);case 6:var r=Jt,i=sr;Jt=null,ii(e,t,n),Jt=r,sr=i,Jt!==null&&(sr?(e=Jt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Jt.removeChild(n.stateNode));break;case 18:Jt!==null&&(sr?(e=Jt,n=n.stateNode,e.nodeType===8?Qd(e.parentNode,n):e.nodeType===1&&Qd(e,n),Il(e)):Qd(Jt,n.stateNode));break;case 4:r=Jt,i=sr,Jt=n.stateNode.containerInfo,sr=!0,ii(e,t,n),Jt=r,sr=i;break;case 0:case 11:case 14:case 15:if(!sn&&(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)&&Tp(n,t,a),i=i.next}while(i!==r)}ii(e,t,n);break;case 1:if(!sn&&(Go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ot(n,t,l)}ii(e,t,n);break;case 21:ii(e,t,n);break;case 22:n.mode&1?(sn=(r=sn)||n.memoizedState!==null,ii(e,t,n),sn=r):ii(e,t,n);break;default:ii(e,t,n)}}function k0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d$),t.forEach(function(r){var i=x$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=It()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g$(r/1960))-r,10e?16:e,fi===null)var r=!1;else{if(e=fi,fi=null,Qc=0,Ze&6)throw Error(ee(331));var i=Ze;for(Ze|=4,me=e.current;me!==null;){var o=me,a=o.child;if(me.flags&16){var l=o.deletions;if(l!==null){for(var s=0;sIt()-_m?Qi(e,0):Pm|=n),Rn(e,t)}function C2(e,t){t===0&&(e.mode&1?(t=Ts,Ts<<=1,!(Ts&130023424)&&(Ts=4194304)):t=1);var n=gn();e=Gr(e,t),e!==null&&(rs(e,t,n),Rn(e,n))}function w$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),C2(e,n)}function x$(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(ee(314))}r!==null&&r.delete(t),C2(e,n)}var E2;E2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)$n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $n=!1,s$(e,t,n);$n=!!(e.flags&131072)}else $n=!1,mt&&t.flags&1048576&&Ob(t,Hc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mc(e,t),e=t.pendingProps;var i=da(t,cn.current);ia(t,n),i=Cm(null,t,r,e,i,n);var o=Em();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,On(r)?(o=!0,Fc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ym(t),i.updater=Iu,t.stateNode=i,i._reactInternals=t,Ep(t,r,e,n),t=Op(null,t,r,!0,o,n)):(t.tag=0,mt&&o&&dm(t),pn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=C$(r),e=lr(r,e),i){case 0:t=kp(null,t,r,e,n);break e;case 1:t=x0(null,t,r,e,n);break e;case 11:t=b0(null,t,r,e,n);break e;case 14:t=w0(null,t,r,lr(r.type,e),n);break e}throw Error(ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),kp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),x0(e,t,r,i,n);case 3:e:{if(l2(t),e===null)throw Error(ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Tb(e,t),qc(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=ma(Error(ee(423)),t),t=S0(e,t,r,n,i);break e}else if(r!==i){i=ma(Error(ee(424)),t),t=S0(e,t,r,n,i);break e}else for(Bn=wi(t.stateNode.containerInfo.firstChild),Nn=t,mt=!0,dr=null,n=Mb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),r===i){t=Kr(e,t,n);break e}pn(e,t,r,n)}t=t.child}return t;case 5:return Nb(t),e===null&&xp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hp(r,i)?a=null:o!==null&&hp(r,o)&&(t.flags|=32),a2(e,t),pn(e,t,a,n),t.child;case 6:return e===null&&xp(t),null;case 13:return s2(e,t,n);case 4:return bm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pa(t,null,r,n):pn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),b0(e,t,r,i,n);case 7:return pn(e,t,t.pendingProps,n),t.child;case 8:return pn(e,t,t.pendingProps.children,n),t.child;case 12:return pn(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,st(Vc,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!kn.current){t=Kr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Vr(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Sp(o.return,n,t),l.lanes|=n;break}s=s.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(ee(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sp(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}pn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ia(t,n),i=Qn(i),r=r(i),t.flags|=1,pn(e,t,r,n),t.child;case 14:return r=t.type,i=lr(r,t.pendingProps),i=lr(r.type,i),w0(e,t,r,i,n);case 15:return i2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),mc(e,t),t.tag=1,On(r)?(e=!0,Fc(t)):e=!1,ia(t,n),zb(t,r,i),Ep(t,r,i,n),Op(null,t,r,!0,e,n);case 19:return c2(e,t,n);case 22:return o2(e,t,n)}throw Error(ee(156,t.tag))};function $2(e,t){return Qy(e,t)}function S$(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 Xn(e,t,n,r){return new S$(e,t,n,r)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C$(e){if(typeof e=="function")return Bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jg)return 11;if(e===em)return 14}return 2}function Ei(e,t){var n=e.alternate;return n===null?(n=Xn(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 yc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Bm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Lo:return Zi(n.children,i,o,t);case Zg:a=8,i|=8;break;case Kf:return e=Xn(12,n,t,i|2),e.elementType=Kf,e.lanes=o,e;case Xf:return e=Xn(13,n,t,i),e.elementType=Xf,e.lanes=o,e;case Yf:return e=Xn(19,n,t,i),e.elementType=Yf,e.lanes=o,e;case By:return Nu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iy:a=10;break e;case zy:a=9;break e;case Jg:a=11;break e;case em:a=14;break e;case li:a=16,r=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Xn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zi(e,t,n,r){return e=Xn(7,e,r,t),e.lanes=n,e}function Nu(e,t,n,r){return e=Xn(22,e,r,t),e.elementType=By,e.lanes=n,e.stateNode={isHidden:!1},e}function af(e,t,n){return e=Xn(6,e,null,t),e.lanes=n,e}function lf(e,t,n){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E$(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=Fd(0),this.expirationTimes=Fd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mm(e,t,n,r,i,o,a,l,s){return e=new E$(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ym(o),e}function $$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P2)}catch(e){console.error(e)}}P2(),Oy.exports=Ln;var ka=Oy.exports;const eu=Eu(ka),_$=hy({__proto__:null,default:eu},[ka]);var B0=ka;Uf.createRoot=B0.createRoot,Uf.hydrateRoot=B0.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function rf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $p(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var i$=typeof WeakMap=="function"?WeakMap:Map;function t2(e,t,n){n=Vr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yc||(Yc=!0,Mp=r),$p(e,t)},n}function n2(e,t,n){n=Vr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){$p(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){$p(e,t),typeof r!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function h0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new i$;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=y$.bind(null,e,t,n),t.then(e,e))}function v0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function y0(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vr(-1,1),t.tag=2,xi(n,t,1))),n.lanes|=1),e)}var o$=Yr.ReactCurrentOwner,$n=!1;function pn(e,t,n,r){t.child=e===null?Bb(t,null,n,r):pa(t,e.child,n,r)}function b0(e,t,n,r,i){n=n.render;var o=t.ref;return ia(t,i),r=Cm(e,t,n,r,o,i),n=Em(),e!==null&&!$n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kr(e,t,i)):(mt&&n&&dm(t),t.flags|=1,pn(e,t,r,i),t.child)}function w0(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Bm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,r2(e,t,o,r,i)):(e=yc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:zl,n(a,r)&&e.ref===t.ref)return Kr(e,t,i)}return t.flags|=1,e=Ei(o,r),e.ref=t.ref,e.return=t,t.child=e}function r2(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(zl(o,r)&&e.ref===t.ref)if($n=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&($n=!0);else return t.lanes=e.lanes,Kr(e,t,i)}return kp(e,t,n,r,i)}function i2(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(Ko,zn),zn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,st(Ko,zn),zn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,st(Ko,zn),zn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,st(Ko,zn),zn|=r;return pn(e,t,i,n),t.child}function o2(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kp(e,t,n,r,i){var o=On(n)?no:cn.current;return o=da(t,o),ia(t,i),n=Cm(e,t,n,r,o,i),r=Em(),e!==null&&!$n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kr(e,t,i)):(mt&&r&&dm(t),t.flags|=1,pn(e,t,n,i),t.child)}function x0(e,t,n,r,i){if(On(n)){var o=!0;Fc(t)}else o=!1;if(ia(t,i),t.stateNode===null)mc(e,t),Ib(t,n,r),Ep(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Qn(c):(c=On(n)?no:cn.current,c=da(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==c)&&f0(t,a,r,c),si=!1;var p=t.memoizedState;a.state=p,qc(t,r,a,i),s=t.memoizedState,l!==r||p!==s||kn.current||si?(typeof d=="function"&&(Cp(t,n,d,r),s=t.memoizedState),(l=si||d0(t,n,l,r,p,s,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,_b(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:lr(t.type,l),a.props=c,f=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Qn(s):(s=On(n)?no:cn.current,s=da(t,s));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||p!==s)&&f0(t,a,r,s),si=!1,p=t.memoizedState,a.state=p,qc(t,r,a,i);var b=t.memoizedState;l!==f||p!==b||kn.current||si?(typeof y=="function"&&(Cp(t,n,y,r),b=t.memoizedState),(c=si||d0(t,n,c,r,p,b,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=s,r=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Op(e,t,n,r,o,i)}function Op(e,t,n,r,i,o){o2(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&a0(t,n,!1),Kr(e,t,o);r=t.stateNode,o$.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=pa(t,e.child,null,o),t.child=pa(t,null,l,o)):pn(e,t,l,o),t.memoizedState=r.state,i&&a0(t,n,!0),t.child}function a2(e){var t=e.stateNode;t.pendingContext?o0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&o0(e,t.context,!1),bm(e,t.containerInfo)}function S0(e,t,n,r,i){return fa(),pm(i),t.flags|=256,pn(e,t,n,r),t.child}var Rp={dehydrated:null,treeContext:null,retryLane:0};function Pp(e){return{baseLanes:e,cachePool:null,transitions:null}}function l2(e,t,n){var r=t.pendingProps,i=wt.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),st(wt,i&1),e===null)return xp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Nu(a,r,0,null),e=Zi(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Pp(n),t.memoizedState=Rp,e):Om(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return a$(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Ei(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Ei(l,o):(o=Zi(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Pp(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Rp,r}return o=e.child,e=o.sibling,r=Ei(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Om(e,t){return t=Nu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function js(e,t,n,r){return r!==null&&pm(r),pa(t,e.child,null,n),e=Om(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function a$(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=rf(Error(ee(422))),js(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Nu({mode:"visible",children:r.children},i,0,null),o=Zi(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&pa(t,e.child,null,a),t.child.memoizedState=Pp(a),t.memoizedState=Rp,o);if(!(t.mode&1))return js(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(ee(419)),r=rf(o,r,void 0),js(e,t,a,r)}if(l=(a&e.childLanes)!==0,$n||l){if(r=Kt,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Gr(e,i),pr(r,e,i,-1))}return zm(),r=rf(Error(ee(421))),js(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=b$.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Bn=wi(i.nextSibling),Nn=t,mt=!0,dr=null,e!==null&&(Un[Gn++]=Dr,Un[Gn++]=Hr,Un[Gn++]=ro,Dr=e.id,Hr=e.overflow,ro=t),t=Om(t,r.children),t.flags|=4096,t)}function C0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sp(e.return,t,n)}function of(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function s2(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(pn(e,t,r.children,n),r=wt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&C0(e,n,t);else if(e.tag===19)C0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(st(wt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Uc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),of(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Uc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}of(t,!0,n,null,o);break;case"together":of(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ee(153));if(t.child!==null){for(e=t.child,n=Ei(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ei(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function l$(e,t,n){switch(t.tag){case 3:a2(t),fa();break;case 5:Mb(t);break;case 1:On(t.type)&&Fc(t);break;case 4:bm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;st(Vc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(st(wt,wt.current&1),t.flags|=128,null):n&t.child.childLanes?l2(e,t,n):(st(wt,wt.current&1),e=Kr(e,t,n),e!==null?e.sibling:null);st(wt,wt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return s2(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),st(wt,wt.current),r)break;return null;case 22:case 23:return t.lanes=0,i2(e,t,n)}return Kr(e,t,n)}var c2,_p,u2,d2;c2=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_p=function(){};u2=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Gi(_r.current);var o=null;switch(n){case"input":i=Zf(e,i),r=Zf(e,r),o=[];break;case"select":i=Ct({},i,{value:void 0}),r=Ct({},r,{value:void 0}),o=[];break;case"textarea":i=tp(e,i),r=tp(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lc)}rp(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(kl.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(kl.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&ft("scroll",e),o||l===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};d2=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wa(e,t){if(!mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function an(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function s$(e,t,n){var r=t.pendingProps;switch(fm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(t),null;case 1:return On(t.type)&&jc(),an(t),null;case 3:return r=t.stateNode,ga(),pt(kn),pt(cn),xm(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(As(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dr!==null&&(Lp(dr),dr=null))),_p(e,t),an(t),null;case 5:wm(t);var i=Gi(Ll.current);if(n=t.type,e!==null&&t.stateNode!=null)u2(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ee(166));return an(t),null}if(e=Gi(_r.current),As(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[kr]=t,r[Nl]=o,e=(t.mode&1)!==0,n){case"dialog":ft("cancel",r),ft("close",r);break;case"iframe":case"object":case"embed":ft("load",r);break;case"video":case"audio":for(i=0;i<\/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[kr]=t,e[Nl]=r,c2(e,t,!1,!1),t.stateNode=e;e:{switch(a=ip(n,r),n){case"dialog":ft("cancel",e),ft("close",e),i=r;break;case"iframe":case"object":case"embed":ft("load",e),i=r;break;case"video":case"audio":for(i=0;iha&&(t.flags|=128,r=!0,Wa(o,!1),t.lanes=4194304)}else{if(!r)if(e=Uc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!mt)return an(t),null}else 2*It()-o.renderingStartTime>ha&&n!==1073741824&&(t.flags|=128,r=!0,Wa(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=It(),t.sibling=null,n=wt.current,st(wt,r?n&1|2:n&1),t):(an(t),null);case 22:case 23:return Im(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(an(t),t.subtreeFlags&6&&(t.flags|=8192)):an(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function c$(e,t){switch(fm(t),t.tag){case 1:return On(t.type)&&jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),pt(kn),pt(cn),xm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wm(t),null;case 13:if(pt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pt(wt),null;case 4:return ga(),null;case 10:return hm(t.type._context),null;case 22:case 23:return Im(),null;case 24:return null;default:return null}}var Fs=!1,sn=!1,u$=typeof WeakSet=="function"?WeakSet:Set,me=null;function Go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ot(e,t,r)}else n.current=null}function Tp(e,t,n){try{n()}catch(r){Ot(e,t,r)}}var E0=!1;function d$(e,t){if(gp=Mc,e=mb(),um(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,l=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var y;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++c===i&&(l=a),p===o&&++d===r&&(s=a),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mp={focusedElem:e,selectionRange:n},Mc=!1,me=t;me!==null;)if(t=me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,me=e;else for(;me!==null;){t=me;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var v=b.memoizedProps,x=b.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:lr(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(w){Ot(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,me=e;break}me=t.return}return b=E0,E0=!1,b}function ml(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&&Tp(t,n,o)}i=i.next}while(i!==r)}}function Bu(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 Ip(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 f2(e){var t=e.alternate;t!==null&&(e.alternate=null,f2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[Nl],delete t[yp],delete t[GE],delete t[KE])),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 p2(e){return e.tag===5||e.tag===3||e.tag===4}function $0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p2(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 zp(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=Lc));else if(r!==4&&(e=e.child,e!==null))for(zp(e,t,n),e=e.sibling;e!==null;)zp(e,t,n),e=e.sibling}function Bp(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(Bp(e,t,n),e=e.sibling;e!==null;)Bp(e,t,n),e=e.sibling}var Jt=null,sr=!1;function ii(e,t,n){for(n=n.child;n!==null;)g2(e,t,n),n=n.sibling}function g2(e,t,n){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(ku,n)}catch{}switch(n.tag){case 5:sn||Go(n,t);case 6:var r=Jt,i=sr;Jt=null,ii(e,t,n),Jt=r,sr=i,Jt!==null&&(sr?(e=Jt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Jt.removeChild(n.stateNode));break;case 18:Jt!==null&&(sr?(e=Jt,n=n.stateNode,e.nodeType===8?Qd(e.parentNode,n):e.nodeType===1&&Qd(e,n),Tl(e)):Qd(Jt,n.stateNode));break;case 4:r=Jt,i=sr,Jt=n.stateNode.containerInfo,sr=!0,ii(e,t,n),Jt=r,sr=i;break;case 0:case 11:case 14:case 15:if(!sn&&(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)&&Tp(n,t,a),i=i.next}while(i!==r)}ii(e,t,n);break;case 1:if(!sn&&(Go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ot(n,t,l)}ii(e,t,n);break;case 21:ii(e,t,n);break;case 22:n.mode&1?(sn=(r=sn)||n.memoizedState!==null,ii(e,t,n),sn=r):ii(e,t,n);break;default:ii(e,t,n)}}function k0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new u$),t.forEach(function(r){var i=w$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function or(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=It()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p$(r/1960))-r,10e?16:e,fi===null)var r=!1;else{if(e=fi,fi=null,Qc=0,Ze&6)throw Error(ee(331));var i=Ze;for(Ze|=4,me=e.current;me!==null;){var o=me,a=o.child;if(me.flags&16){var l=o.deletions;if(l!==null){for(var s=0;sIt()-_m?Qi(e,0):Pm|=n),Rn(e,t)}function S2(e,t){t===0&&(e.mode&1?(t=Ts,Ts<<=1,!(Ts&130023424)&&(Ts=4194304)):t=1);var n=gn();e=Gr(e,t),e!==null&&(ns(e,t,n),Rn(e,n))}function b$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),S2(e,n)}function w$(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(ee(314))}r!==null&&r.delete(t),S2(e,n)}var C2;C2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kn.current)$n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $n=!1,l$(e,t,n);$n=!!(e.flags&131072)}else $n=!1,mt&&t.flags&1048576&&kb(t,Hc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mc(e,t),e=t.pendingProps;var i=da(t,cn.current);ia(t,n),i=Cm(null,t,r,e,i,n);var o=Em();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,On(r)?(o=!0,Fc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ym(t),i.updater=Iu,t.stateNode=i,i._reactInternals=t,Ep(t,r,e,n),t=Op(null,t,r,!0,o,n)):(t.tag=0,mt&&o&&dm(t),pn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=S$(r),e=lr(r,e),i){case 0:t=kp(null,t,r,e,n);break e;case 1:t=x0(null,t,r,e,n);break e;case 11:t=b0(null,t,r,e,n);break e;case 14:t=w0(null,t,r,lr(r.type,e),n);break e}throw Error(ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),kp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),x0(e,t,r,i,n);case 3:e:{if(a2(t),e===null)throw Error(ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,_b(e,t),qc(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=ma(Error(ee(423)),t),t=S0(e,t,r,n,i);break e}else if(r!==i){i=ma(Error(ee(424)),t),t=S0(e,t,r,n,i);break e}else for(Bn=wi(t.stateNode.containerInfo.firstChild),Nn=t,mt=!0,dr=null,n=Bb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fa(),r===i){t=Kr(e,t,n);break e}pn(e,t,r,n)}t=t.child}return t;case 5:return Mb(t),e===null&&xp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,hp(r,i)?a=null:o!==null&&hp(r,o)&&(t.flags|=32),o2(e,t),pn(e,t,a,n),t.child;case 6:return e===null&&xp(t),null;case 13:return l2(e,t,n);case 4:return bm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pa(t,null,r,n):pn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),b0(e,t,r,i,n);case 7:return pn(e,t,t.pendingProps,n),t.child;case 8:return pn(e,t,t.pendingProps.children,n),t.child;case 12:return pn(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,st(Vc,r._currentValue),r._currentValue=a,o!==null)if(hr(o.value,a)){if(o.children===i.children&&!kn.current){t=Kr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Vr(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Sp(o.return,n,t),l.lanes|=n;break}s=s.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(ee(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sp(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}pn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ia(t,n),i=Qn(i),r=r(i),t.flags|=1,pn(e,t,r,n),t.child;case 14:return r=t.type,i=lr(r,t.pendingProps),i=lr(r.type,i),w0(e,t,r,i,n);case 15:return r2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:lr(r,i),mc(e,t),t.tag=1,On(r)?(e=!0,Fc(t)):e=!1,ia(t,n),Ib(t,r,i),Ep(t,r,i,n),Op(null,t,r,!0,e,n);case 19:return s2(e,t,n);case 22:return i2(e,t,n)}throw Error(ee(156,t.tag))};function E2(e,t){return Yy(e,t)}function x$(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 Xn(e,t,n,r){return new x$(e,t,n,r)}function Bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function S$(e){if(typeof e=="function")return Bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jg)return 11;if(e===em)return 14}return 2}function Ei(e,t){var n=e.alternate;return n===null?(n=Xn(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 yc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Bm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Lo:return Zi(n.children,i,o,t);case Zg:a=8,i|=8;break;case Kf:return e=Xn(12,n,t,i|2),e.elementType=Kf,e.lanes=o,e;case Xf:return e=Xn(13,n,t,i),e.elementType=Xf,e.lanes=o,e;case Yf:return e=Xn(19,n,t,i),e.elementType=Yf,e.lanes=o,e;case zy:return Nu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ty:a=10;break e;case Iy:a=9;break e;case Jg:a=11;break e;case em:a=14;break e;case li:a=16,r=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=Xn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zi(e,t,n,r){return e=Xn(7,e,r,t),e.lanes=n,e}function Nu(e,t,n,r){return e=Xn(22,e,r,t),e.elementType=zy,e.lanes=n,e.stateNode={isHidden:!1},e}function af(e,t,n){return e=Xn(6,e,null,t),e.lanes=n,e}function lf(e,t,n){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function C$(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=Fd(0),this.expirationTimes=Fd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mm(e,t,n,r,i,o,a,l,s){return e=new C$(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ym(o),e}function E$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R2)}catch(e){console.error(e)}}R2(),ky.exports=Ln;var ka=ky.exports;const eu=Eu(ka),P$=my({__proto__:null,default:eu},[ka]);var B0=ka;Uf.createRoot=B0.createRoot,Uf.hydrateRoot=B0.hydrateRoot;/** * @remix-run/router v1.15.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Du(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function I$(){return Math.random().toString(36).substr(2,8)}function N0(e,t){return{usr:e.state,key:e.key,idx:t}}function jp(e,t,n,r){return n===void 0&&(n=null),Wl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uo(t):t,{state:n,key:t&&t.key||r||I$()})}function _2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function uo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function z$(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=pi.Pop,s=null,c=d();c==null&&(c=0,a.replaceState(Wl({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=pi.Pop;let x=d(),m=x==null?null:x-c;c=x,s&&s({action:l,location:v.location,delta:m})}function p(x,m){l=pi.Push;let g=jp(v.location,x,m);n&&n(g,x),c=d()+1;let h=N0(g,c),w=v.createHref(g);try{a.pushState(h,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}o&&s&&s({action:l,location:v.location,delta:1})}function y(x,m){l=pi.Replace;let g=jp(v.location,x,m);n&&n(g,x),c=d();let h=N0(g,c),w=v.createHref(g);a.replaceState(h,"",w),o&&s&&s({action:l,location:v.location,delta:0})}function b(x){let m=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:_2(x);return Dt(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return l},get location(){return e(i,a)},listen(x){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(M0,f),s=x,()=>{i.removeEventListener(M0,f),s=null}},createHref(x){return t(i,x)},createURL:b,encodeLocation(x){let m=b(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:y,go(x){return a.go(x)}};return v}var A0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(A0||(A0={}));function B$(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?uo(t):t,i=z2(r.pathname||"/",n);if(i==null)return null;let o=T2(e);M$(o);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};s.relativePath.startsWith("/")&&(Dt(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=Ji([r,s.relativePath]),d=n.concat(s);o.children&&o.children.length>0&&(Dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),T2(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:H$(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let s of I2(o.path))i(o,a,s)}),t}function I2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=I2(r.join("/")),l=[];return l.push(...a.map(s=>s===""?o:[o,s].join("/"))),i&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function M$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:V$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N$=/^:[\w-]+$/,A$=3,L$=2,j$=1,F$=10,D$=-2,L0=e=>e==="*";function H$(e,t){let n=e.split("/"),r=n.length;return n.some(L0)&&(r+=D$),t&&(r+=L$),n.filter(i=>!L0(i)).reduce((i,o)=>i+(N$.test(o)?A$:o===""?j$:F$),r)}function V$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function W$(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let v=l[f]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=l[f];return y&&!b?c[p]=void 0:c[p]=K$(b||"",p),c},{}),pathname:o,pathnameBase:a,pattern:e}}function U$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Du(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function G$(e){try{return decodeURI(e)}catch(t){return Du(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function K$(e,t){try{return decodeURIComponent(e)}catch(n){return Du(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function z2(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function X$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?uo(e):e;return{pathname:n?n.startsWith("/")?n:Y$(n,t):t,search:t3(r),hash:n3(i)}}function Y$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Q$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Z$(e,t){let n=Q$(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function J$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=uo(e):(i=Wl({},e),Dt(!i.pathname||!i.pathname.includes("?"),sf("?","pathname","search",i)),Dt(!i.pathname||!i.pathname.includes("#"),sf("#","pathname","hash",i)),Dt(!i.search||!i.search.includes("#"),sf("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let s=X$(i,l),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const Ji=e=>e.join("/").replace(/\/\/+/g,"/"),e3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),t3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function r3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const B2=["post","put","patch","delete"];new Set(B2);const i3=["get",...B2];new Set(i3);/** + */function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Du(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function T$(){return Math.random().toString(36).substr(2,8)}function N0(e,t){return{usr:e.state,key:e.key,idx:t}}function jp(e,t,n,r){return n===void 0&&(n=null),Vl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uo(t):t,{state:n,key:t&&t.key||r||T$()})}function P2(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function uo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function I$(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=pi.Pop,s=null,c=d();c==null&&(c=0,a.replaceState(Vl({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=pi.Pop;let x=d(),m=x==null?null:x-c;c=x,s&&s({action:l,location:v.location,delta:m})}function p(x,m){l=pi.Push;let g=jp(v.location,x,m);n&&n(g,x),c=d()+1;let h=N0(g,c),w=v.createHref(g);try{a.pushState(h,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(w)}o&&s&&s({action:l,location:v.location,delta:1})}function y(x,m){l=pi.Replace;let g=jp(v.location,x,m);n&&n(g,x),c=d();let h=N0(g,c),w=v.createHref(g);a.replaceState(h,"",w),o&&s&&s({action:l,location:v.location,delta:0})}function b(x){let m=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:P2(x);return Dt(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return l},get location(){return e(i,a)},listen(x){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(M0,f),s=x,()=>{i.removeEventListener(M0,f),s=null}},createHref(x){return t(i,x)},createURL:b,encodeLocation(x){let m=b(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:y,go(x){return a.go(x)}};return v}var A0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(A0||(A0={}));function z$(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?uo(t):t,i=I2(r.pathname||"/",n);if(i==null)return null;let o=_2(e);B$(o);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};s.relativePath.startsWith("/")&&(Dt(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=Ji([r,s.relativePath]),d=n.concat(s);o.children&&o.children.length>0&&(Dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),_2(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:D$(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let s of T2(o.path))i(o,a,s)}),t}function T2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=T2(r.join("/")),l=[];return l.push(...a.map(s=>s===""?o:[o,s].join("/"))),i&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function B$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const M$=/^:[\w-]+$/,N$=3,A$=2,L$=1,j$=10,F$=-2,L0=e=>e==="*";function D$(e,t){let n=e.split("/"),r=n.length;return n.some(L0)&&(r+=F$),t&&(r+=A$),n.filter(i=>!L0(i)).reduce((i,o)=>i+(M$.test(o)?N$:o===""?L$:j$),r)}function H$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function V$(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:y}=d;if(p==="*"){let v=l[f]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=l[f];return y&&!b?c[p]=void 0:c[p]=G$(b||"",p),c},{}),pathname:o,pathnameBase:a,pattern:e}}function q$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Du(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function U$(e){try{return decodeURI(e)}catch(t){return Du(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function G$(e,t){try{return decodeURIComponent(e)}catch(n){return Du(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function I2(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function K$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?uo(e):e;return{pathname:n?n.startsWith("/")?n:X$(n,t):t,search:e3(r),hash:t3(i)}}function X$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Y$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Q$(e,t){let n=Y$(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Z$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=uo(e):(i=Vl({},e),Dt(!i.pathname||!i.pathname.includes("?"),sf("?","pathname","search",i)),Dt(!i.pathname||!i.pathname.includes("#"),sf("#","pathname","hash",i)),Dt(!i.search||!i.search.includes("#"),sf("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let s=K$(i,l),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const Ji=e=>e.join("/").replace(/\/\/+/g,"/"),J$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),e3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,t3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function n3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const z2=["post","put","patch","delete"];new Set(z2);const r3=["get",...z2];new Set(r3);/** * React Router v6.22.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let f=J$(c,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ji([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const l3=u.createContext(null);function s3(e){let t=u.useContext(fo).outlet;return t&&u.createElement(l3.Provider,{value:e},t)}function c3(e,t){return u3(e,t)}function u3(e,t,n,r){Wu()||Dt(!1);let{navigator:i}=u.useContext(Hu),{matches:o}=u.useContext(fo),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Fm(),d;if(t){var f;let x=typeof t=="string"?uo(t):t;s==="/"||(f=x.pathname)!=null&&f.startsWith(s)||Dt(!1),d=x}else d=c;let p=d.pathname||"/",y=s==="/"?p:p.slice(s.length)||"/",b=B$(e,{pathname:y}),v=m3(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Ji([s,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?s:Ji([s,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?u.createElement(Vu.Provider,{value:{location:ql({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:pi.Pop}},v):v}function d3(){let e=b3(),t=r3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:i},n):null,null)}const f3=u.createElement(d3,null);class p3 extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(fo.Provider,{value:this.props.routeContext},u.createElement(M2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function g3(e){let{routeContext:t,match:n,children:r}=e,i=u.useContext(jm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(fo.Provider,{value:t},r)}function m3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||Dt(!1),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let y,b=!1,v=null,x=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||f3,s&&(c<0&&p===0?(x3("route-fallback",!1),b=!0,x=null):c===p&&(b=!0,x=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,p+1)),g=()=>{let h;return y?h=v:b?h=x:f.route.Component?h=u.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,u.createElement(g3,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?u.createElement(p3,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var A2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A2||{}),tu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tu||{});function h3(e){let t=u.useContext(jm);return t||Dt(!1),t}function v3(e){let t=u.useContext(o3);return t||Dt(!1),t}function y3(e){let t=u.useContext(fo);return t||Dt(!1),t}function L2(e){let t=y3(),n=t.matches[t.matches.length-1];return n.route.id||Dt(!1),n.route.id}function b3(){var e;let t=u.useContext(M2),n=v3(tu.UseRouteError),r=L2(tu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function w3(){let{router:e}=h3(A2.UseNavigateStable),t=L2(tu.UseNavigateStable),n=u.useRef(!1);return N2(()=>{n.current=!0}),u.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ql({fromRouteId:t},o)))},[e,t])}const j0={};function x3(e,t,n){!t&&!j0[e]&&(j0[e]=!0)}function S3(e){return s3(e.context)}function al(e){Dt(!1)}function C3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pi.Pop,navigator:o,static:a=!1,future:l}=e;Wu()&&Dt(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:o,static:a,future:ql({v7_relativeSplatPath:!1},l)}),[s,l,o,a]);typeof r=="string"&&(r=uo(r));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:b="default"}=r,v=u.useMemo(()=>{let x=z2(d,s);return x==null?null:{location:{pathname:x,search:f,hash:p,state:y,key:b},navigationType:i}},[s,d,f,p,y,b,i]);return v==null?null:u.createElement(Hu.Provider,{value:c},u.createElement(Vu.Provider,{children:n,value:v}))}function E3(e){let{children:t,location:n}=e;return c3(Fp(t),n)}new Promise(()=>{});function Fp(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,i)=>{if(!u.isValidElement(r))return;let o=[...t,i];if(r.type===u.Fragment){n.push.apply(n,Fp(r.props.children,o));return}r.type!==al&&Dt(!1),!r.props.index||!r.props.children||Dt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Fp(r.props.children,o)),n.push(a)}),n}/** + */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let f=Z$(c,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ji([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const a3=u.createContext(null);function l3(e){let t=u.useContext(fo).outlet;return t&&u.createElement(a3.Provider,{value:e},t)}function s3(e,t){return c3(e,t)}function c3(e,t,n,r){Wu()||Dt(!1);let{navigator:i}=u.useContext(Hu),{matches:o}=u.useContext(fo),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=Fm(),d;if(t){var f;let x=typeof t=="string"?uo(t):t;s==="/"||(f=x.pathname)!=null&&f.startsWith(s)||Dt(!1),d=x}else d=c;let p=d.pathname||"/",y=s==="/"?p:p.slice(s.length)||"/",b=z$(e,{pathname:y}),v=g3(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Ji([s,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?s:Ji([s,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?u.createElement(Vu.Provider,{value:{location:Wl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:pi.Pop}},v):v}function u3(){let e=y3(),t=n3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:i},n):null,null)}const d3=u.createElement(u3,null);class f3 extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(fo.Provider,{value:this.props.routeContext},u.createElement(B2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function p3(e){let{routeContext:t,match:n,children:r}=e,i=u.useContext(jm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(fo.Provider,{value:t},r)}function g3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||Dt(!1),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let y,b=!1,v=null,x=null;n&&(y=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||d3,s&&(c<0&&p===0?(w3("route-fallback",!1),b=!0,x=null):c===p&&(b=!0,x=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,p+1)),g=()=>{let h;return y?h=v:b?h=x:f.route.Component?h=u.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,u.createElement(p3,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?u.createElement(f3,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var N2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N2||{}),tu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tu||{});function m3(e){let t=u.useContext(jm);return t||Dt(!1),t}function h3(e){let t=u.useContext(i3);return t||Dt(!1),t}function v3(e){let t=u.useContext(fo);return t||Dt(!1),t}function A2(e){let t=v3(),n=t.matches[t.matches.length-1];return n.route.id||Dt(!1),n.route.id}function y3(){var e;let t=u.useContext(B2),n=h3(tu.UseRouteError),r=A2(tu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function b3(){let{router:e}=m3(N2.UseNavigateStable),t=A2(tu.UseNavigateStable),n=u.useRef(!1);return M2(()=>{n.current=!0}),u.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Wl({fromRouteId:t},o)))},[e,t])}const j0={};function w3(e,t,n){!t&&!j0[e]&&(j0[e]=!0)}function x3(e){return l3(e.context)}function ol(e){Dt(!1)}function S3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pi.Pop,navigator:o,static:a=!1,future:l}=e;Wu()&&Dt(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:o,static:a,future:Wl({v7_relativeSplatPath:!1},l)}),[s,l,o,a]);typeof r=="string"&&(r=uo(r));let{pathname:d="/",search:f="",hash:p="",state:y=null,key:b="default"}=r,v=u.useMemo(()=>{let x=I2(d,s);return x==null?null:{location:{pathname:x,search:f,hash:p,state:y,key:b},navigationType:i}},[s,d,f,p,y,b,i]);return v==null?null:u.createElement(Hu.Provider,{value:c},u.createElement(Vu.Provider,{children:n,value:v}))}function C3(e){let{children:t,location:n}=e;return s3(Fp(t),n)}new Promise(()=>{});function Fp(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,i)=>{if(!u.isValidElement(r))return;let o=[...t,i];if(r.type===u.Fragment){n.push.apply(n,Fp(r.props.children,o));return}r.type!==ol&&Dt(!1),!r.props.index||!r.props.children||Dt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Fp(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.22.0 * * Copyright (c) Remix Software Inc. @@ -64,11 +64,11 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function nu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function $3(e,t){let n=nu(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const k3="6";try{window.__reactRouterVersion=k3}catch{}const O3="startTransition",F0=Ca[O3];function R3(e){let{basename:t,children:n,future:r,window:i}=e,o=u.useRef();o.current==null&&(o.current=T$({window:i,v5Compat:!0}));let a=o.current,[l,s]=u.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=u.useCallback(f=>{c&&F0?F0(()=>s(f)):s(f)},[s,c]);return u.useLayoutEffect(()=>a.listen(d),[a,d]),u.createElement(C3,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}var D0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D0||(D0={}));var H0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(H0||(H0={}));function P3(e){let t=u.useRef(nu(e)),n=u.useRef(!1),r=Fm(),i=u.useMemo(()=>$3(r.search,n.current?null:t.current),[r.search]),o=ls(),a=u.useCallback((l,s)=>{const c=nu(typeof l=="function"?l(i):l);n.current=!0,o("?"+c,s)},[o,i]);return[i,a]}var j2={exports:{}};/*! + */function nu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function E3(e,t){let n=nu(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const $3="6";try{window.__reactRouterVersion=$3}catch{}const k3="startTransition",F0=Ca[k3];function O3(e){let{basename:t,children:n,future:r,window:i}=e,o=u.useRef();o.current==null&&(o.current=_$({window:i,v5Compat:!0}));let a=o.current,[l,s]=u.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=u.useCallback(f=>{c&&F0?F0(()=>s(f)):s(f)},[s,c]);return u.useLayoutEffect(()=>a.listen(d),[a,d]),u.createElement(S3,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}var D0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D0||(D0={}));var H0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(H0||(H0={}));function R3(e){let t=u.useRef(nu(e)),n=u.useRef(!1),r=Fm(),i=u.useMemo(()=>E3(r.search,n.current?null:t.current),[r.search]),o=as(),a=u.useCallback((l,s)=>{const c=nu(typeof l=="function"?l(i):l);n.current=!0,o("?"+c,s)},[o,i]);return[i,a]}var L2={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 J.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):H2.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r))}),n}var Dp={},z3=function(t){};function B3(e,t){}function M3(e,t){}function N3(){Dp={}}function V2(e,t,n){!t&&!Dp[n]&&(e(!1,n),Dp[n]=!0)}function mn(e,t){V2(B3,e,t)}function A3(e,t){V2(M3,e,t)}mn.preMessage=z3;mn.resetWarned=N3;mn.noteOnce=A3;function Me(e){"@babel/helpers - typeof";return Me=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},Me(e)}function L3(e,t){if(Me(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Me(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W2(e){var t=L3(e,"string");return Me(t)=="symbol"?t:String(t)}function L(e,t,n){return t=W2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(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 j(e){for(var t=1;t0},e.prototype.connect_=function(){!Vp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),q3?(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(){!Vp||!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=W3.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}(),U2=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof va(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new e4(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 va(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 t4(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}(),K2=typeof WeakMap<"u"?new WeakMap:new q2,X2=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=U3.getInstance(),r=new n4(t,n,this);K2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){X2.prototype[e]=function(){var t;return(t=K2.get(this))[e].apply(t,arguments)}});var r4=function(){return typeof iu.ResizeObserver<"u"?iu.ResizeObserver:X2}(),gi=new Map;function i4(e){e.forEach(function(t){var n,r=t.target;(n=gi.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Y2=new r4(i4);function o4(e,t){gi.has(e)||(gi.set(e,new Set),Y2.observe(e)),gi.get(e).add(t)}function a4(e,t){gi.has(e)&&(gi.get(e).delete(t),gi.get(e).size||(Y2.unobserve(e),gi.delete(e)))}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;U0+=1;var r=U0;function i(o){if(o===0)ew(r),t();else{var a=Z2(function(){i(o-1)});qm.set(r,a)}}return i(n),r};Bt.cancel=function(e){var t=qm.get(e);return ew(e),J2(t)};function tw(e){if(Array.isArray(e))return e}function g4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,i=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function nw(){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 H(e,t){return tw(e)||g4(e,t)||Wm(e,t)||nw()}function au(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 un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Up(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 G0="data-rc-order",K0="data-rc-priority",m4="rc-util-key",Gp=new Map;function rw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):m4}function id(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function h4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iw(e){return Array.from((Gp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!un())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=h4(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(G0,a),l&&o&&s.setAttribute(K0,"".concat(o)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=id(t),d=c.firstChild;if(r){if(l){var f=iw(c).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(G0)))return!1;var y=Number(p.getAttribute(K0)||0);return o>=y});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function aw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=id(t);return iw(n).find(function(r){return r.getAttribute(rw(t))===e})}function Ul(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=aw(e,t);if(n){var r=id(t);r.removeChild(n)}}function v4(e,t){var n=Gp.get(e);if(!n||!Up(document,n)){var r=ow("",t),i=r.parentNode;Gp.set(e,i),e.removeChild(r)}}function Ri(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=id(n);v4(r,n);var i=aw(t,n);if(i){var o,a;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;i.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var s=ow(e,n);return s.setAttribute(rw(n),t),s}function y4(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Ne(e,t){if(e==null)return{};var n=y4(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function us(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(o);if(mn(!s,"Warning: There may be circular references"),s)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var c=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&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,d){var f=H(c,2),p=f[1];return i.internalGet(d)[1]0,void 0),X0+=1}return xn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),cf=new Um;function Xp(e){var t=Array.isArray(e)?e:[e];return cf.has(t)||cf.set(t,new lw(t)),cf.get(t)}var E4=new WeakMap,uf={};function $4(e,t){for(var n=E4,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=j(j({},i),{},(r={},L(r,ya,t),L(r,gr,n),r)),l=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var cw=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()},R4=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=H(i,2),a=o[0],l=o[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},uw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var l,s,c=H(a,2),d=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var p,y=cw(d,r==null?void 0:r.prefix);i[y]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(y,")")}}),[o,R4(i,n,{scope:r==null?void 0:r.scope})]},Z0=un()?u.useLayoutEffect:u.useEffect,xt=function(t,n){var r=u.useRef(!0);Z0(function(){return t(r.current)},n),Z0(function(){return r.current=!1,function(){r.current=!0}},[])},Qp=function(t,n){xt(function(r){if(!r)return t()},n)},P4=j({},Ca),J0=P4.useInsertionEffect,_4=function(t,n,r){u.useMemo(t,r),xt(function(){return n(!0)},r)},T4=J0?function(e,t,n){return J0(function(){return e(),t()},n)}:_4;const I4=T4;var z4=j({},Ca),B4=z4.useInsertionEffect,M4=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},N4=function(){return function(t){t()}},A4=typeof B4<"u"?M4:N4;const L4=A4;function Gm(e,t,n,r,i){var o=u.useContext(od),a=o.cache,l=[e].concat(Se(t)),s=Kp(l),c=L4([s]),d=function(b){a.opUpdate(s,function(v){var x=v||[void 0,void 0],m=H(x,2),g=m[0],h=g===void 0?0:g,w=m[1],S=w,C=S||n(),E=[h,C];return b?b(E):E})};u.useMemo(function(){d()},[s]);var f=a.opGet(s),p=f[1];return I4(function(){i==null||i(p)},function(y){return d(function(b){var v=H(b,2),x=v[0],m=v[1];return y&&x===0&&(i==null||i(p)),[x+1,m]}),function(){a.opUpdate(s,function(b){var v=b||[],x=H(v,2),m=x[0],g=m===void 0?0:m,h=x[1],w=g-1;return w===0?(c(function(){(y||!a.opGet(s))&&(r==null||r(h,!1))}),null):[g-1,h]})}},[s]),p}var j4={},F4="css",Wi=new Map;function D4(e){Wi.set(e,(Wi.get(e)||0)+1)}function H4(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[mi]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var V4=0;function W4(e,t){Wi.set(e,(Wi.get(e)||0)-1);var n=Array.from(Wi.keys()),r=n.filter(function(i){var o=Wi.get(i)||0;return o<=0});n.length-r.length>V4&&r.forEach(function(i){H4(i,t),Wi.delete(i)})}var q4=function(t,n,r,i){var o=r.getDerivativeToken(t),a=j(j({},o),n);return i&&(a=i(a)),a},dw="token";function U4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(od),i=r.cache.instanceId,o=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?j4:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,y=$4(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),b=bl(y),v=bl(c),x=p?bl(p):"",m=Gm(dw,[l,e.id,b,v,x],function(){var g,h=f?f(y,c,e):q4(y,c,e,d),w=j({},h),S="";if(p){var C=uw(h,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),E=H(C,2);h=E[0],S=E[1]}var $=Q0(h,l);h._tokenKey=$,w._tokenKey=Q0(w,l);var k=(g=p==null?void 0:p.key)!==null&&g!==void 0?g:$;h._themeKey=k,D4(k);var O="".concat(F4,"-").concat(au($));return h._hashId=O,[h,O,w,S,(p==null?void 0:p.key)||""]},function(g){W4(g[0]._themeKey,i)},function(g){var h=H(g,4),w=h[0],S=h[3];if(p&&S){var C=Ri(S,au("css-variables-".concat(w._themeKey)),{mark:gr,prepend:"queue",attachTo:o,priority:-999});C[mi]=i,C.setAttribute(ya,w._themeKey)}});return m}var G4=function(t,n,r){var i=H(t,5),o=i[2],a=i[3],l=i[4],s=r||{},c=s.plain;if(!a)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},y=lu(a,l,d,p,c);return[f,d,y]},K4={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},fw="comm",pw="rule",gw="decl",X4="@import",Y4="@keyframes",Q4="@layer",mw=Math.abs,Km=String.fromCharCode;function hw(e){return e.trim()}function wc(e,t,n){return e.replace(t,n)}function Z4(e,t,n){return e.indexOf(t,n)}function Gl(e,t){return e.charCodeAt(t)|0}function Kl(e,t,n){return e.slice(t,n)}function Fr(e){return e.length}function J4(e){return e.length}function Vs(e,t){return t.push(e),e}var ad=1,ba=1,vw=0,Jn=0,Mt=0,Ra="";function Xm(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ad,column:ba,length:a,return:"",siblings:l}}function e8(){return Mt}function t8(){return Mt=Jn>0?Gl(Ra,--Jn):0,ba--,Mt===10&&(ba=1,ad--),Mt}function mr(){return Mt=Jn2||Zp(Mt)>3?"":" "}function o8(e,t){for(;--t&&mr()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return ld(e,xc()+(t<6&&eo()==32&&mr()==32))}function Jp(e){for(;mr();)switch(Mt){case e:return Jn;case 34:case 39:e!==34&&e!==39&&Jp(Mt);break;case 40:e===41&&Jp(e);break;case 92:mr();break}return Jn}function a8(e,t){for(;mr()&&e+Mt!==57;)if(e+Mt===84&&eo()===47)break;return"/*"+ld(t,Jn-1)+"*"+Km(e===47?e:mr())}function l8(e){for(;!Zp(eo());)mr();return ld(e,Jn)}function s8(e){return r8(Sc("",null,null,null,[""],e=n8(e),0,[0],e))}function Sc(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,f=a,p=0,y=0,b=0,v=1,x=1,m=1,g=0,h="",w=i,S=o,C=r,E=h;x;)switch(b=g,g=mr()){case 40:if(b!=108&&Gl(E,f-1)==58){Z4(E+=wc(ff(g),"&","&\f"),"&\f",mw(c?l[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:E+=ff(g);break;case 9:case 10:case 13:case 32:E+=i8(b);break;case 92:E+=o8(xc()-1,7);continue;case 47:switch(eo()){case 42:case 47:Vs(c8(a8(mr(),xc()),t,n,s),s);break;default:E+="/"}break;case 123*v:l[c++]=Fr(E)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:m==-1&&(E=wc(E,/\f/g,"")),y>0&&Fr(E)-f&&Vs(y>32?tv(E+";",r,n,f-1,s):tv(wc(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(Vs(C=ev(E,t,n,c,d,i,l,h,w=[],S=[],f,o),o),g===123)if(d===0)Sc(E,t,C,C,w,o,f,l,S);else switch(p===99&&Gl(E,3)===110?100:p){case 100:case 108:case 109:case 115:Sc(e,C,C,r&&Vs(ev(e,C,C,0,0,i,l,h,i,w=[],f,S),S),i,S,f,l,r?w:S);break;default:Sc(E,C,C,C,[""],S,0,l,S)}}c=d=y=0,v=m=1,h=E="",f=a;break;case 58:f=1+Fr(E),y=b;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&t8()==125)continue}switch(E+=Km(g),g*v){case 38:m=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(Fr(E)-1)*m,m=1;break;case 64:eo()===45&&(E+=ff(mr())),p=eo(),d=f=Fr(h=E+=l8(xc())),g++;break;case 45:b===45&&Fr(E)==2&&(v=0)}}return o}function ev(e,t,n,r,i,o,a,l,s,c,d,f){for(var p=i-1,y=i===0?o:[""],b=J4(y),v=0,x=0,m=0;v0?y[g]+" "+h:wc(h,/&\f/g,y[g])))&&(s[m++]=w);return Xm(e,t,n,i===0?pw:l,s,c,d,f)}function c8(e,t,n,r){return Xm(e,t,n,fw,Km(e8()),Kl(e,2,-2),0,r)}function tv(e,t,n,r,i){return Xm(e,t,n,gw,Kl(e,0,r),Kl(e,r+1,-1),r,i)}function eg(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,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",y={};function b(h){var w=h.getName(l);if(!y[w]){var S=e(h.style,n,{root:!1,parentSelectors:a}),C=H(S,1),E=C[0];y[w]="@keyframes ".concat(h.getName(l)).concat(E)}}function v(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(S){Array.isArray(S)?v(S,w):S&&w.push(S)}),w}var x=v(Array.isArray(t)?t:[t]);if(x.forEach(function(h){var w=typeof h=="string"&&!i?{}:h;if(typeof w=="string")p+="".concat(w,` -`);else if(w._keyframe)b(w);else{var S=f.reduce(function(C,E){var $;return(E==null||($=E.visit)===null||$===void 0?void 0:$.call(E,C))||C},w);Object.keys(S).forEach(function(C){var E=S[C];if(Me(E)==="object"&&E&&(C!=="animationName"||!E._keyframe)&&!m8(E)){var $=!1,k=C.trim(),O=!1;(i||o)&&l?k.startsWith("@")?$=!0:k=h8(C,l,c):i&&!l&&(k==="&"||k==="")&&(k="",O=!0);var P=e(E,n,{root:O,injectHash:$,parentSelectors:[].concat(Se(a),[k])}),z=H(P,2),T=z[0],M=z[1];y=j(j({},y),M),p+="".concat(k).concat(T)}else{let _=function(R,I){var N=R.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),F=I;!K4[R]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),R==="animationName"&&I!==null&&I!==void 0&&I._keyframe&&(b(I),F=I.getName(l)),p+="".concat(N,":").concat(F,";")};var A,B=(A=E==null?void 0:E.value)!==null&&A!==void 0?A:E;Me(E)==="object"&&E!==null&&E!==void 0&&E[ww]&&Array.isArray(B)?B.forEach(function(R){_(C,R)}):_(C,B)}})}}),!i)p="{".concat(p,"}");else if(s&&O4()){var m=s.split(","),g=m[m.length-1].trim();p="@layer ".concat(g," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,y]};function xw(e,t){return au("".concat(e.join("%")).concat(t))}function y8(){return null}var Sw="style";function ng(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(od),f=d.autoClear;d.mock;var p=d.defaultCache,y=d.hashPriority,b=d.container,v=d.ssrInline,x=d.transformers,m=d.linters,g=d.cache,h=n._tokenKey,w=[h].concat(Se(r)),S=Yp,C=Gm(Sw,w,function(){var P=w.join("|");if(f8(P)){var z=p8(P),T=H(z,2),M=T[0],A=T[1];if(M)return[M,h,A,{},l,c]}var B=t(),_=v8(B,{hashId:i,hashPriority:y,layer:o,path:r.join("-"),transformers:x,linters:m}),R=H(_,2),I=R[0],N=R[1],F=tg(I),D=xw(w,F);return[F,h,D,N,l,c]},function(P,z){var T=H(P,3),M=T[2];(z||f)&&Yp&&Ul(M,{mark:gr})},function(P){var z=H(P,4),T=z[0];z[1];var M=z[2],A=z[3];if(S&&T!==yw){var B={mark:gr,prepend:"queue",attachTo:b,priority:c},_=typeof a=="function"?a():a;_&&(B.csp={nonce:_});var R=Ri(T,M,B);R[mi]=g.instanceId,R.setAttribute(ya,h),Object.keys(A).forEach(function(I){Ri(tg(A[I]),"_effect-".concat(I),B)})}}),E=H(C,3),$=E[0],k=E[1],O=E[2];return function(P){var z;if(!v||S||!p)z=u.createElement(y8,null);else{var T;z=u.createElement("style",ae({},(T={},L(T,ya,k),L(T,gr,O),T),{dangerouslySetInnerHTML:{__html:$}}))}return u.createElement(u.Fragment,null,z,P)}}var b8=function(t,n,r){var i=H(t,6),o=i[0],a=i[1],l=i[2],s=i[3],c=i[4],d=i[5],f=r||{},p=f.plain;if(c)return null;var y=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return y=lu(o,a,l,b,p),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var x=tg(s[v]);y+=lu(x,a,"_effect-".concat(v),b,p)}}),[d,l,y]},Cw="cssVar",w8=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(od),f=d.cache.instanceId,p=d.container,y=l._tokenKey,b=[].concat(Se(t.path),[r,c,y]),v=Gm(Cw,b,function(){var x=n(),m=uw(x,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=H(m,2),h=g[0],w=g[1],S=xw(b,w);return[h,w,S,r]},function(x){var m=H(x,3),g=m[2];Yp&&Ul(g,{mark:gr})},function(x){var m=H(x,3),g=m[1],h=m[2];if(g){var w=Ri(g,h,{mark:gr,prepend:"queue",attachTo:p,priority:-999});w[mi]=f,w.setAttribute(ya,r)}});return v},x8=function(t,n,r){var i=H(t,4),o=i[1],a=i[2],l=i[3],s=r||{},c=s.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=lu(o,l,a,f,c);return[d,a,p]},Ga;Ga={},L(Ga,Sw,b8),L(Ga,dw,G4),L(Ga,Cw,x8);var ht=function(){function e(t,n){wn(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return xn(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 So(e){return e.notSplit=!0,e}So(["borderTop","borderBottom"]),So(["borderTop"]),So(["borderBottom"]),So(["borderLeft","borderRight"]),So(["borderLeft"]),So(["borderRight"]);var S8=u.createContext({});const Ym=S8;function C8(e){return tw(e)||Q2(e)||Wm(e)||nw()}function Or(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Or(e,t.slice(0,-1))?e:Ew(e,t,n,r)}function E8(e){return Me(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function rv(e){return Array.isArray(e)?[]:{}}var $8=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xo(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=k8,e},R8=u.createContext(void 0);var P8={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"},_8={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const T8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},kw=T8,I8={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"]},_8),timePickerLocale:Object.assign({},kw)},iv=I8,_n="${label} is not a valid ${type}",z8={locale:"en",Pagination:P8,DatePicker:iv,TimePicker:kw,Calendar:iv,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_n,method:_n,array:_n,object:_n,number:_n,date:_n,boolean:_n,integer:_n,float:_n,regexp:_n,email:_n,url:_n,hex:_n},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"}},Pi=z8;Object.assign({},Pi.Modal);let Cc=[];const ov=()=>Cc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pi.Modal);function B8(e){if(e){const t=Object.assign({},e);return Cc.push(t),ov(),()=>{Cc=Cc.filter(n=>n!==t),ov()}}Object.assign({},Pi.Modal)}const M8=u.createContext(void 0),Qm=M8,N8=(e,t)=>{const n=u.useContext(Qm),r=u.useMemo(()=>{var o;const a=t||Pi[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=u.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Pi.locale:o},[n]);return[r,i]},A8="internalMark",L8=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>B8(t&&t.Modal),[t]);const i=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Qm.Provider,{value:i},n)},j8=L8;function tn(e,t){F8(e)&&(e="100%");var n=D8(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 Ws(e){return Math.min(1,Math.max(0,e))}function F8(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function D8(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ow(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ki(e){return e.length===1?"0"+e:String(e)}function H8(e,t,n){return{r:tn(e,255)*255,g:tn(t,255)*255,b:tn(n,255)*255}}function av(e,t,n){e=tn(e,255),t=tn(t,255),n=tn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,l=(r+i)/2;if(r===i)a=0,o=0;else{var s=r-i;switch(a=l>.5?s/(2-r-i):s/(r+i),r){case e:o=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V8(e,t,n){var r,i,o;if(e=tn(e,360),t=tn(t,100),n=tn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=pf(l,a,e+1/3),i=pf(l,a,e),o=pf(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function rg(e,t,n){e=tn(e,255),t=tn(t,255),n=tn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=r===0?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(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 No(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=Y8(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=H8(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(r=qs(e.s),i=qs(e.v),t=W8(e.h,r,i),a=!0,l="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(r=qs(e.s),o=qs(e.l),t=V8(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ow(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var K8="[-\\+]?\\d+%?",X8="[-\\+]?\\d*\\.\\d+%?",hi="(?:".concat(X8,")|(?:").concat(K8,")"),gf="[\\s|\\(]+(".concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")\\s*\\)?"),mf="[\\s|\\(]+(".concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")\\s*\\)?"),ar={CSS_UNIT:new RegExp(hi),rgb:new RegExp("rgb"+gf),rgba:new RegExp("rgba"+mf),hsl:new RegExp("hsl"+gf),hsla:new RegExp("hsla"+mf),hsv:new RegExp("hsv"+gf),hsva:new RegExp("hsva"+mf),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 Y8(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=ar.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ar.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ar.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ar.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ar.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ar.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ar.hex8.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),a:lv(n[4]),format:t?"name":"hex8"}:(n=ar.hex6.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),format:t?"name":"hex"}:(n=ar.hex4.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),a:lv(n[4]+n[4]),format:t?"name":"hex8"}:(n=ar.hex3.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!ar.CSS_UNIT.exec(String(e))}var zt=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=G8(t)),this.originalInput=t;var i=No(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,l=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),l<=.03928?i=l/12.92:i=Math.pow((l+.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=Ow(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=rg(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=rg(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=av(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=av(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),ig(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),q8(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(tn(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(tn(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="#"+ig(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=Ws(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=Ws(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=Ws(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=Ws(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=[],l=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),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)-Us*t:Math.round(e.h)+Us*t:r=n?Math.round(e.h)+Us*t:Math.round(e.h)-Us*t,r<0?r+=360:r>=360&&(r-=360),r}function dv(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-sv*t:t===Pw?r=e.s+sv:r=e.s+Q8*t,r>1&&(r=1),n&&t===Rw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function fv(e,t,n){var r;return n?r=e.v+Z8*t:r=e.v-J8*t,r>1&&(r=1),Number(r.toFixed(2))}function lo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=No(e),i=Rw;i>0;i-=1){var o=cv(r),a=Gs(No({h:uv(o,i,!0),s:dv(o,i,!0),v:fv(o,i,!0)}));n.push(a)}n.push(Gs(r));for(var l=1;l<=Pw;l+=1){var s=cv(r),c=Gs(No({h:uv(s,l),s:dv(s,l),v:fv(s,l)}));n.push(c)}return t.theme==="dark"?e5.map(function(d){var f=d.index,p=d.opacity,y=Gs(t5(No(t.backgroundColor||"#141414"),No(n[f]),p*100));return y}):n}var aa={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"},xl={},hf={};Object.keys(aa).forEach(function(e){xl[e]=lo(aa[e]),xl[e].primary=xl[e][5],hf[e]=lo(aa[e],{theme:"dark",backgroundColor:"#141414"}),hf[e].primary=hf[e][5]});var n5=xl.gold,r5=xl.blue;const i5=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function o5(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 _w={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"},a5=Object.assign(Object.assign({},_w),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var Dm=Symbol.for("react.element"),Hm=Symbol.for("react.portal"),qu=Symbol.for("react.fragment"),Uu=Symbol.for("react.strict_mode"),Gu=Symbol.for("react.profiler"),Ku=Symbol.for("react.provider"),Xu=Symbol.for("react.context"),_3=Symbol.for("react.server_context"),Yu=Symbol.for("react.forward_ref"),Qu=Symbol.for("react.suspense"),Zu=Symbol.for("react.suspense_list"),Ju=Symbol.for("react.memo"),ed=Symbol.for("react.lazy"),T3=Symbol.for("react.offscreen"),F2;F2=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dm:switch(e=e.type,e){case qu:case Gu:case Uu:case Qu:case Zu:return e;default:switch(e=e&&e.$$typeof,e){case _3:case Xu:case Yu:case ed:case Ju:case Ku:return e;default:return t}}case Hm:return t}}}it.ContextConsumer=Xu;it.ContextProvider=Ku;it.Element=Dm;it.ForwardRef=Yu;it.Fragment=qu;it.Lazy=ed;it.Memo=Ju;it.Portal=Hm;it.Profiler=Gu;it.StrictMode=Uu;it.Suspense=Qu;it.SuspenseList=Zu;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(e){return er(e)===Xu};it.isContextProvider=function(e){return er(e)===Ku};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dm};it.isForwardRef=function(e){return er(e)===Yu};it.isFragment=function(e){return er(e)===qu};it.isLazy=function(e){return er(e)===ed};it.isMemo=function(e){return er(e)===Ju};it.isPortal=function(e){return er(e)===Hm};it.isProfiler=function(e){return er(e)===Gu};it.isStrictMode=function(e){return er(e)===Uu};it.isSuspense=function(e){return er(e)===Qu};it.isSuspenseList=function(e){return er(e)===Zu};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qu||e===Gu||e===Uu||e===Qu||e===Zu||e===T3||typeof e=="object"&&e!==null&&(e.$$typeof===ed||e.$$typeof===Ju||e.$$typeof===Ku||e.$$typeof===Xu||e.$$typeof===Yu||e.$$typeof===F2||e.getModuleId!==void 0)};it.typeOf=er;j2.exports=it;var D2=j2.exports;function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return J.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):D2.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r))}),n}var Dp={},I3=function(t){};function z3(e,t){}function B3(e,t){}function M3(){Dp={}}function H2(e,t,n){!t&&!Dp[n]&&(e(!1,n),Dp[n]=!0)}function mn(e,t){H2(z3,e,t)}function N3(e,t){H2(B3,e,t)}mn.preMessage=I3;mn.resetWarned=M3;mn.noteOnce=N3;function Me(e){"@babel/helpers - typeof";return Me=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},Me(e)}function A3(e,t){if(Me(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Me(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e){var t=A3(e,"string");return Me(t)=="symbol"?t:String(t)}function L(e,t,n){return t=V2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(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 j(e){for(var t=1;t0},e.prototype.connect_=function(){!Vp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W3?(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(){!Vp||!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=V3.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}(),q2=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof va(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new J3(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 va(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 e4(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}(),G2=typeof WeakMap<"u"?new WeakMap:new W2,K2=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=q3.getInstance(),r=new t4(t,n,this);G2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){K2.prototype[e]=function(){var t;return(t=G2.get(this))[e].apply(t,arguments)}});var n4=function(){return typeof iu.ResizeObserver<"u"?iu.ResizeObserver:K2}(),gi=new Map;function r4(e){e.forEach(function(t){var n,r=t.target;(n=gi.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var X2=new n4(r4);function i4(e,t){gi.has(e)||(gi.set(e,new Set),X2.observe(e)),gi.get(e).add(t)}function o4(e,t){gi.has(e)&&(gi.get(e).delete(t),gi.get(e).size||(X2.unobserve(e),gi.delete(e)))}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q0(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;U0+=1;var r=U0;function i(o){if(o===0)J2(r),t();else{var a=Q2(function(){i(o-1)});qm.set(r,a)}}return i(n),r};Bt.cancel=function(e){var t=qm.get(e);return J2(e),Z2(t)};function ew(e){if(Array.isArray(e))return e}function p4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,i=d}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function tw(){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 V(e,t){return ew(e)||p4(e,t)||Wm(e,t)||tw()}function au(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 un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Up(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 G0="data-rc-order",K0="data-rc-priority",g4="rc-util-key",Gp=new Map;function nw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):g4}function id(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function m4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function rw(e){return Array.from((Gp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function iw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!un())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=m4(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(G0,a),l&&o&&s.setAttribute(K0,"".concat(o)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=id(t),d=c.firstChild;if(r){if(l){var f=rw(c).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(G0)))return!1;var y=Number(p.getAttribute(K0)||0);return o>=y});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=id(t);return rw(n).find(function(r){return r.getAttribute(nw(t))===e})}function ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ow(e,t);if(n){var r=id(t);r.removeChild(n)}}function h4(e,t){var n=Gp.get(e);if(!n||!Up(document,n)){var r=iw("",t),i=r.parentNode;Gp.set(e,i),e.removeChild(r)}}function Ri(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=id(n);h4(r,n);var i=ow(t,n);if(i){var o,a;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;i.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var s=iw(e,n);return s.setAttribute(nw(n),t),s}function v4(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Ne(e,t){if(e==null)return{};var n=v4(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(o);if(mn(!s,"Warning: There may be circular references"),s)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var c=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&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,d){var f=V(c,2),p=f[1];return i.internalGet(d)[1]0,void 0),X0+=1}return xn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),cf=new Um;function Xp(e){var t=Array.isArray(e)?e:[e];return cf.has(t)||cf.set(t,new aw(t)),cf.get(t)}var C4=new WeakMap,uf={};function E4(e,t){for(var n=C4,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=j(j({},i),{},(r={},L(r,ya,t),L(r,gr,n),r)),l=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var sw=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()},O4=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=V(i,2),a=o[0],l=o[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},cw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var l,s,c=V(a,2),d=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var p,y=sw(d,r==null?void 0:r.prefix);i[y]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(y,")")}}),[o,O4(i,n,{scope:r==null?void 0:r.scope})]},Z0=un()?u.useLayoutEffect:u.useEffect,xt=function(t,n){var r=u.useRef(!0);Z0(function(){return t(r.current)},n),Z0(function(){return r.current=!1,function(){r.current=!0}},[])},Qp=function(t,n){xt(function(r){if(!r)return t()},n)},R4=j({},Ca),J0=R4.useInsertionEffect,P4=function(t,n,r){u.useMemo(t,r),xt(function(){return n(!0)},r)},_4=J0?function(e,t,n){return J0(function(){return e(),t()},n)}:P4;const T4=_4;var I4=j({},Ca),z4=I4.useInsertionEffect,B4=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},M4=function(){return function(t){t()}},N4=typeof z4<"u"?B4:M4;const A4=N4;function Gm(e,t,n,r,i){var o=u.useContext(od),a=o.cache,l=[e].concat(Se(t)),s=Kp(l),c=A4([s]),d=function(b){a.opUpdate(s,function(v){var x=v||[void 0,void 0],m=V(x,2),g=m[0],h=g===void 0?0:g,w=m[1],E=w,S=E||n(),C=[h,S];return b?b(C):C})};u.useMemo(function(){d()},[s]);var f=a.opGet(s),p=f[1];return T4(function(){i==null||i(p)},function(y){return d(function(b){var v=V(b,2),x=v[0],m=v[1];return y&&x===0&&(i==null||i(p)),[x+1,m]}),function(){a.opUpdate(s,function(b){var v=b||[],x=V(v,2),m=x[0],g=m===void 0?0:m,h=x[1],w=g-1;return w===0?(c(function(){(y||!a.opGet(s))&&(r==null||r(h,!1))}),null):[g-1,h]})}},[s]),p}var L4={},j4="css",Wi=new Map;function F4(e){Wi.set(e,(Wi.get(e)||0)+1)}function D4(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[mi]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var H4=0;function V4(e,t){Wi.set(e,(Wi.get(e)||0)-1);var n=Array.from(Wi.keys()),r=n.filter(function(i){var o=Wi.get(i)||0;return o<=0});n.length-r.length>H4&&r.forEach(function(i){D4(i,t),Wi.delete(i)})}var W4=function(t,n,r,i){var o=r.getDerivativeToken(t),a=j(j({},o),n);return i&&(a=i(a)),a},uw="token";function q4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(od),i=r.cache.instanceId,o=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?L4:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,y=E4(function(){return Object.assign.apply(Object,[{}].concat(Se(t)))},t),b=yl(y),v=yl(c),x=p?yl(p):"",m=Gm(uw,[l,e.id,b,v,x],function(){var g,h=f?f(y,c,e):W4(y,c,e,d),w=j({},h),E="";if(p){var S=cw(h,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),C=V(S,2);h=C[0],E=C[1]}var $=Q0(h,l);h._tokenKey=$,w._tokenKey=Q0(w,l);var k=(g=p==null?void 0:p.key)!==null&&g!==void 0?g:$;h._themeKey=k,F4(k);var O="".concat(j4,"-").concat(au($));return h._hashId=O,[h,O,w,E,(p==null?void 0:p.key)||""]},function(g){V4(g[0]._themeKey,i)},function(g){var h=V(g,4),w=h[0],E=h[3];if(p&&E){var S=Ri(E,au("css-variables-".concat(w._themeKey)),{mark:gr,prepend:"queue",attachTo:o,priority:-999});S[mi]=i,S.setAttribute(ya,w._themeKey)}});return m}var U4=function(t,n,r){var i=V(t,5),o=i[2],a=i[3],l=i[4],s=r||{},c=s.plain;if(!a)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},y=lu(a,l,d,p,c);return[f,d,y]},G4={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},dw="comm",fw="rule",pw="decl",K4="@import",X4="@keyframes",Y4="@layer",gw=Math.abs,Km=String.fromCharCode;function mw(e){return e.trim()}function wc(e,t,n){return e.replace(t,n)}function Q4(e,t,n){return e.indexOf(t,n)}function Ul(e,t){return e.charCodeAt(t)|0}function Gl(e,t,n){return e.slice(t,n)}function Fr(e){return e.length}function Z4(e){return e.length}function Vs(e,t){return t.push(e),e}var ad=1,ba=1,hw=0,Jn=0,Mt=0,Ra="";function Xm(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ad,column:ba,length:a,return:"",siblings:l}}function J4(){return Mt}function e8(){return Mt=Jn>0?Ul(Ra,--Jn):0,ba--,Mt===10&&(ba=1,ad--),Mt}function mr(){return Mt=Jn2||Zp(Mt)>3?"":" "}function i8(e,t){for(;--t&&mr()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return ld(e,xc()+(t<6&&eo()==32&&mr()==32))}function Jp(e){for(;mr();)switch(Mt){case e:return Jn;case 34:case 39:e!==34&&e!==39&&Jp(Mt);break;case 40:e===41&&Jp(e);break;case 92:mr();break}return Jn}function o8(e,t){for(;mr()&&e+Mt!==57;)if(e+Mt===84&&eo()===47)break;return"/*"+ld(t,Jn-1)+"*"+Km(e===47?e:mr())}function a8(e){for(;!Zp(eo());)mr();return ld(e,Jn)}function l8(e){return n8(Sc("",null,null,null,[""],e=t8(e),0,[0],e))}function Sc(e,t,n,r,i,o,a,l,s){for(var c=0,d=0,f=a,p=0,y=0,b=0,v=1,x=1,m=1,g=0,h="",w=i,E=o,S=r,C=h;x;)switch(b=g,g=mr()){case 40:if(b!=108&&Ul(C,f-1)==58){Q4(C+=wc(ff(g),"&","&\f"),"&\f",gw(c?l[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=ff(g);break;case 9:case 10:case 13:case 32:C+=r8(b);break;case 92:C+=i8(xc()-1,7);continue;case 47:switch(eo()){case 42:case 47:Vs(s8(o8(mr(),xc()),t,n,s),s);break;default:C+="/"}break;case 123*v:l[c++]=Fr(C)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:m==-1&&(C=wc(C,/\f/g,"")),y>0&&Fr(C)-f&&Vs(y>32?tv(C+";",r,n,f-1,s):tv(wc(C," ","")+";",r,n,f-2,s),s);break;case 59:C+=";";default:if(Vs(S=ev(C,t,n,c,d,i,l,h,w=[],E=[],f,o),o),g===123)if(d===0)Sc(C,t,S,S,w,o,f,l,E);else switch(p===99&&Ul(C,3)===110?100:p){case 100:case 108:case 109:case 115:Sc(e,S,S,r&&Vs(ev(e,S,S,0,0,i,l,h,i,w=[],f,E),E),i,E,f,l,r?w:E);break;default:Sc(C,S,S,S,[""],E,0,l,E)}}c=d=y=0,v=m=1,h=C="",f=a;break;case 58:f=1+Fr(C),y=b;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&e8()==125)continue}switch(C+=Km(g),g*v){case 38:m=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(Fr(C)-1)*m,m=1;break;case 64:eo()===45&&(C+=ff(mr())),p=eo(),d=f=Fr(h=C+=a8(xc())),g++;break;case 45:b===45&&Fr(C)==2&&(v=0)}}return o}function ev(e,t,n,r,i,o,a,l,s,c,d,f){for(var p=i-1,y=i===0?o:[""],b=Z4(y),v=0,x=0,m=0;v0?y[g]+" "+h:wc(h,/&\f/g,y[g])))&&(s[m++]=w);return Xm(e,t,n,i===0?fw:l,s,c,d,f)}function s8(e,t,n,r){return Xm(e,t,n,dw,Km(J4()),Gl(e,2,-2),0,r)}function tv(e,t,n,r,i){return Xm(e,t,n,pw,Gl(e,0,r),Gl(e,r+1,-1),r,i)}function eg(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,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",y={};function b(h){var w=h.getName(l);if(!y[w]){var E=e(h.style,n,{root:!1,parentSelectors:a}),S=V(E,1),C=S[0];y[w]="@keyframes ".concat(h.getName(l)).concat(C)}}function v(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(E){Array.isArray(E)?v(E,w):E&&w.push(E)}),w}var x=v(Array.isArray(t)?t:[t]);if(x.forEach(function(h){var w=typeof h=="string"&&!i?{}:h;if(typeof w=="string")p+="".concat(w,` +`);else if(w._keyframe)b(w);else{var E=f.reduce(function(S,C){var $;return(C==null||($=C.visit)===null||$===void 0?void 0:$.call(C,S))||S},w);Object.keys(E).forEach(function(S){var C=E[S];if(Me(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!g8(C)){var $=!1,k=S.trim(),O=!1;(i||o)&&l?k.startsWith("@")?$=!0:k=m8(S,l,c):i&&!l&&(k==="&"||k==="")&&(k="",O=!0);var P=e(C,n,{root:O,injectHash:$,parentSelectors:[].concat(Se(a),[k])}),z=V(P,2),T=z[0],M=z[1];y=j(j({},y),M),p+="".concat(k).concat(T)}else{let _=function(R,I){var N=R.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),F=I;!G4[R]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),R==="animationName"&&I!==null&&I!==void 0&&I._keyframe&&(b(I),F=I.getName(l)),p+="".concat(N,":").concat(F,";")};var A,B=(A=C==null?void 0:C.value)!==null&&A!==void 0?A:C;Me(C)==="object"&&C!==null&&C!==void 0&&C[bw]&&Array.isArray(B)?B.forEach(function(R){_(S,R)}):_(S,B)}})}}),!i)p="{".concat(p,"}");else if(s&&k4()){var m=s.split(","),g=m[m.length-1].trim();p="@layer ".concat(g," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,y]};function ww(e,t){return au("".concat(e.join("%")).concat(t))}function v8(){return null}var xw="style";function ng(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(od),f=d.autoClear;d.mock;var p=d.defaultCache,y=d.hashPriority,b=d.container,v=d.ssrInline,x=d.transformers,m=d.linters,g=d.cache,h=n._tokenKey,w=[h].concat(Se(r)),E=Yp,S=Gm(xw,w,function(){var P=w.join("|");if(d8(P)){var z=f8(P),T=V(z,2),M=T[0],A=T[1];if(M)return[M,h,A,{},l,c]}var B=t(),_=h8(B,{hashId:i,hashPriority:y,layer:o,path:r.join("-"),transformers:x,linters:m}),R=V(_,2),I=R[0],N=R[1],F=tg(I),D=ww(w,F);return[F,h,D,N,l,c]},function(P,z){var T=V(P,3),M=T[2];(z||f)&&Yp&&ql(M,{mark:gr})},function(P){var z=V(P,4),T=z[0];z[1];var M=z[2],A=z[3];if(E&&T!==vw){var B={mark:gr,prepend:"queue",attachTo:b,priority:c},_=typeof a=="function"?a():a;_&&(B.csp={nonce:_});var R=Ri(T,M,B);R[mi]=g.instanceId,R.setAttribute(ya,h),Object.keys(A).forEach(function(I){Ri(tg(A[I]),"_effect-".concat(I),B)})}}),C=V(S,3),$=C[0],k=C[1],O=C[2];return function(P){var z;if(!v||E||!p)z=u.createElement(v8,null);else{var T;z=u.createElement("style",ae({},(T={},L(T,ya,k),L(T,gr,O),T),{dangerouslySetInnerHTML:{__html:$}}))}return u.createElement(u.Fragment,null,z,P)}}var y8=function(t,n,r){var i=V(t,6),o=i[0],a=i[1],l=i[2],s=i[3],c=i[4],d=i[5],f=r||{},p=f.plain;if(c)return null;var y=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return y=lu(o,a,l,b,p),s&&Object.keys(s).forEach(function(v){if(!n[v]){n[v]=!0;var x=tg(s[v]);y+=lu(x,a,"_effect-".concat(v),b,p)}}),[d,l,y]},Sw="cssVar",b8=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(od),f=d.cache.instanceId,p=d.container,y=l._tokenKey,b=[].concat(Se(t.path),[r,c,y]),v=Gm(Sw,b,function(){var x=n(),m=cw(x,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=V(m,2),h=g[0],w=g[1],E=ww(b,w);return[h,w,E,r]},function(x){var m=V(x,3),g=m[2];Yp&&ql(g,{mark:gr})},function(x){var m=V(x,3),g=m[1],h=m[2];if(g){var w=Ri(g,h,{mark:gr,prepend:"queue",attachTo:p,priority:-999});w[mi]=f,w.setAttribute(ya,r)}});return v},w8=function(t,n,r){var i=V(t,4),o=i[1],a=i[2],l=i[3],s=r||{},c=s.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=lu(o,l,a,f,c);return[d,a,p]},Ua;Ua={},L(Ua,xw,y8),L(Ua,uw,U4),L(Ua,Sw,w8);var ht=function(){function e(t,n){wn(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return xn(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 So(e){return e.notSplit=!0,e}So(["borderTop","borderBottom"]),So(["borderTop"]),So(["borderBottom"]),So(["borderLeft","borderRight"]),So(["borderLeft"]),So(["borderRight"]);var x8=u.createContext({});const Ym=x8;function S8(e){return ew(e)||Y2(e)||Wm(e)||tw()}function Or(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Or(e,t.slice(0,-1))?e:Cw(e,t,n,r)}function C8(e){return Me(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function rv(e){return Array.isArray(e)?[]:{}}var E8=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xo(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=$8,e},O8=u.createContext(void 0);var R8={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"},P8={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const _8={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$w=_8,T8={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"]},P8),timePickerLocale:Object.assign({},$w)},iv=T8,_n="${label} is not a valid ${type}",I8={locale:"en",Pagination:R8,DatePicker:iv,TimePicker:$w,Calendar:iv,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_n,method:_n,array:_n,object:_n,number:_n,date:_n,boolean:_n,integer:_n,float:_n,regexp:_n,email:_n,url:_n,hex:_n},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"}},Pi=I8;Object.assign({},Pi.Modal);let Cc=[];const ov=()=>Cc.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pi.Modal);function z8(e){if(e){const t=Object.assign({},e);return Cc.push(t),ov(),()=>{Cc=Cc.filter(n=>n!==t),ov()}}Object.assign({},Pi.Modal)}const B8=u.createContext(void 0),Qm=B8,M8=(e,t)=>{const n=u.useContext(Qm),r=u.useMemo(()=>{var o;const a=t||Pi[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=u.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Pi.locale:o},[n]);return[r,i]},N8="internalMark",A8=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>z8(t&&t.Modal),[t]);const i=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Qm.Provider,{value:i},n)},L8=A8;function tn(e,t){j8(e)&&(e="100%");var n=F8(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 Ws(e){return Math.min(1,Math.max(0,e))}function j8(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function F8(e){return typeof e=="string"&&e.indexOf("%")!==-1}function kw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ki(e){return e.length===1?"0"+e:String(e)}function D8(e,t,n){return{r:tn(e,255)*255,g:tn(t,255)*255,b:tn(n,255)*255}}function av(e,t,n){e=tn(e,255),t=tn(t,255),n=tn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,l=(r+i)/2;if(r===i)a=0,o=0;else{var s=r-i;switch(a=l>.5?s/(2-r-i):s/(r+i),r){case e:o=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function H8(e,t,n){var r,i,o;if(e=tn(e,360),t=tn(t,100),n=tn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=pf(l,a,e+1/3),i=pf(l,a,e),o=pf(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function rg(e,t,n){e=tn(e,255),t=tn(t,255),n=tn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=r===0?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(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 No(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=X8(e)),typeof e=="object"&&(Nr(e.r)&&Nr(e.g)&&Nr(e.b)?(t=D8(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nr(e.h)&&Nr(e.s)&&Nr(e.v)?(r=qs(e.s),i=qs(e.v),t=V8(e.h,r,i),a=!0,l="hsv"):Nr(e.h)&&Nr(e.s)&&Nr(e.l)&&(r=qs(e.s),o=qs(e.l),t=H8(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=kw(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var G8="[-\\+]?\\d+%?",K8="[-\\+]?\\d*\\.\\d+%?",hi="(?:".concat(K8,")|(?:").concat(G8,")"),gf="[\\s|\\(]+(".concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")\\s*\\)?"),mf="[\\s|\\(]+(".concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")[,|\\s]+(").concat(hi,")\\s*\\)?"),ar={CSS_UNIT:new RegExp(hi),rgb:new RegExp("rgb"+gf),rgba:new RegExp("rgba"+mf),hsl:new RegExp("hsl"+gf),hsla:new RegExp("hsla"+mf),hsv:new RegExp("hsv"+gf),hsva:new RegExp("hsva"+mf),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 X8(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=ar.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ar.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ar.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ar.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ar.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ar.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ar.hex8.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),a:lv(n[4]),format:t?"name":"hex8"}:(n=ar.hex6.exec(e),n?{r:In(n[1]),g:In(n[2]),b:In(n[3]),format:t?"name":"hex"}:(n=ar.hex4.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),a:lv(n[4]+n[4]),format:t?"name":"hex8"}:(n=ar.hex3.exec(e),n?{r:In(n[1]+n[1]),g:In(n[2]+n[2]),b:In(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Nr(e){return!!ar.CSS_UNIT.exec(String(e))}var zt=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=U8(t)),this.originalInput=t;var i=No(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,l=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),l<=.03928?i=l/12.92:i=Math.pow((l+.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=kw(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=rg(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=rg(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=av(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=av(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),ig(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),W8(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(tn(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(tn(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="#"+ig(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=Ws(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=Ws(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=Ws(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=Ws(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=[],l=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),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)-Us*t:Math.round(e.h)+Us*t:r=n?Math.round(e.h)+Us*t:Math.round(e.h)-Us*t,r<0?r+=360:r>=360&&(r-=360),r}function dv(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-sv*t:t===Rw?r=e.s+sv:r=e.s+Y8*t,r>1&&(r=1),n&&t===Ow&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function fv(e,t,n){var r;return n?r=e.v+Q8*t:r=e.v-Z8*t,r>1&&(r=1),Number(r.toFixed(2))}function lo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=No(e),i=Ow;i>0;i-=1){var o=cv(r),a=Gs(No({h:uv(o,i,!0),s:dv(o,i,!0),v:fv(o,i,!0)}));n.push(a)}n.push(Gs(r));for(var l=1;l<=Rw;l+=1){var s=cv(r),c=Gs(No({h:uv(s,l),s:dv(s,l),v:fv(s,l)}));n.push(c)}return t.theme==="dark"?J8.map(function(d){var f=d.index,p=d.opacity,y=Gs(e5(No(t.backgroundColor||"#141414"),No(n[f]),p*100));return y}):n}var aa={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"},wl={},hf={};Object.keys(aa).forEach(function(e){wl[e]=lo(aa[e]),wl[e].primary=wl[e][5],hf[e]=lo(aa[e],{theme:"dark",backgroundColor:"#141414"}),hf[e].primary=hf[e][5]});var t5=wl.gold,n5=wl.blue;const r5=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function i5(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 Pw={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"},o5=Object.assign(Object.assign({},Pw),{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}),Xl=a5;function l5(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),p=n(i),y=n(o),b=n(a),v=n(l),x=r(c,d),m=e.colorLink||e.colorInfo,g=n(m);return Object.assign(Object.assign({},x),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[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 zt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const s5=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 c5(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},s5(r))}const Ar=(e,t)=>new zt(e).setAlpha(t).toRgbString(),Ka=(e,t)=>new zt(e).darken(t).toHexString(),u5=e=>{const t=lo(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]}},d5=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ar(r,.88),colorTextSecondary:Ar(r,.65),colorTextTertiary:Ar(r,.45),colorTextQuaternary:Ar(r,.25),colorFill:Ar(r,.15),colorFillSecondary:Ar(r,.06),colorFillTertiary:Ar(r,.04),colorFillQuaternary:Ar(r,.02),colorBgLayout:Ka(n,4),colorBgContainer:Ka(n,0),colorBgElevated:Ka(n,0),colorBgSpotlight:Ar(r,.85),colorBgBlur:"transparent",colorBorder:Ka(n,15),colorBorderSecondary:Ka(n,6)}};function Ec(e){return(e+8)/e}function f5(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(2.71828,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:Ec(n)}))}const p5=e=>{const t=f5(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],s=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:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function g5(e){const t=Object.keys(_w).map(n=>{const r=lo(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),l5(e,{generateColorPalettes:u5,generateNeutralColorPalettes:d5})),p5(e.fontSize)),o5(e)),i5(e)),c5(e))}const Tw=Xp(g5),ag={token:Xl,override:{override:Xl},hashed:!0},Iw=J.createContext(ag),zw="anticon",m5=(e,t)=>t||(e?`ant-${e}`:"ant"),Ve=u.createContext({getPrefixCls:m5,iconPrefixCls:zw}),h5=`-ant-${Date.now()}-${Math.random()}`;function v5(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},i=(a,l)=>{const s=new zt(a),c=lo(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new zt(t.primaryColor),l=lo(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new zt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'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}),Kl=o5;function a5(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),p=n(i),y=n(o),b=n(a),v=n(l),x=r(c,d),m=e.colorLink||e.colorInfo,g=n(m);return Object.assign(Object.assign({},x),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[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 zt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const l5=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 s5(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},l5(r))}const Ar=(e,t)=>new zt(e).setAlpha(t).toRgbString(),Ga=(e,t)=>new zt(e).darken(t).toHexString(),c5=e=>{const t=lo(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]}},u5=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ar(r,.88),colorTextSecondary:Ar(r,.65),colorTextTertiary:Ar(r,.45),colorTextQuaternary:Ar(r,.25),colorFill:Ar(r,.15),colorFillSecondary:Ar(r,.06),colorFillTertiary:Ar(r,.04),colorFillQuaternary:Ar(r,.02),colorBgLayout:Ga(n,4),colorBgContainer:Ga(n,0),colorBgElevated:Ga(n,0),colorBgSpotlight:Ar(r,.85),colorBgBlur:"transparent",colorBorder:Ga(n,15),colorBorderSecondary:Ga(n,6)}};function Ec(e){return(e+8)/e}function d5(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(2.71828,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:Ec(n)}))}const f5=e=>{const t=d5(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],s=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:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function p5(e){const t=Object.keys(Pw).map(n=>{const r=lo(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),a5(e,{generateColorPalettes:c5,generateNeutralColorPalettes:u5})),f5(e.fontSize)),i5(e)),r5(e)),s5(e))}const _w=Xp(p5),ag={token:Kl,override:{override:Kl},hashed:!0},Tw=J.createContext(ag),Iw="anticon",g5=(e,t)=>t||(e?`ant-${e}`:"ant"),Ve=u.createContext({getPrefixCls:g5,iconPrefixCls:Iw}),m5=`-ant-${Date.now()}-${Math.random()}`;function h5(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},i=(a,l)=>{const s=new zt(a),c=lo(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new zt(t.primaryColor),l=lo(a.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new zt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&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 y5(e,t){const n=v5(e,t);un()&&Ri(n,`${h5}-dynamic-theme`)}const lg=u.createContext(!1),b5=e=>{let{children:t,disabled:n}=e;const r=u.useContext(lg);return u.createElement(lg.Provider,{value:n??r},t)},sd=lg,sg=u.createContext(void 0),w5=e=>{let{children:t,size:n}=e;const r=u.useContext(sg);return u.createElement(sg.Provider,{value:n||r},t)},cd=sg;function x5(){const e=u.useContext(sd),t=u.useContext(cd);return{componentDisabled:e,componentSize:t}}const su=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],S5="5.14.1";function vf(e){return e>=0&&e<=255}function Ks(e,t){const{r:n,g:r,b:i,a:o}=new zt(e).toRgb();if(o<1)return e;const{r:a,g:l,b:s}=new zt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),p=Math.round((i-s*(1-c))/c);if(vf(d)&&vf(f)&&vf(p))return new zt({r:d,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new zt({r:n,g:r,b:i,a:1}).toRgbString()}var C5=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[p]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,s=992,c=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ks(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:Ks(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ks(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:Ks(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:` + `.trim()}function v5(e,t){const n=h5(e,t);un()&&Ri(n,`${m5}-dynamic-theme`)}const lg=u.createContext(!1),y5=e=>{let{children:t,disabled:n}=e;const r=u.useContext(lg);return u.createElement(lg.Provider,{value:n??r},t)},sd=lg,sg=u.createContext(void 0),b5=e=>{let{children:t,size:n}=e;const r=u.useContext(sg);return u.createElement(sg.Provider,{value:n||r},t)},cd=sg;function w5(){const e=u.useContext(sd),t=u.useContext(cd);return{componentDisabled:e,componentSize:t}}const su=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],x5="5.14.1";function vf(e){return e>=0&&e<=255}function Ks(e,t){const{r:n,g:r,b:i,a:o}=new zt(e).toRgb();if(o<1)return e;const{r:a,g:l,b:s}=new zt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),p=Math.round((i-s*(1-c))/c);if(vf(d)&&vf(f)&&vf(p))return new zt({r:d,g:f,b:p,a:Math.round(c*100)/100}).toRgbString()}return new zt({r:n,g:r,b:i,a:1}).toRgbString()}var S5=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[p]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,s=992,c=1200,d=1600;if(i.motion===!1){const p="0s";i.motionDurationFast=p,i.motionDurationMid=p,i.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ks(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:Ks(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ks(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:Ks(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) @@ -118,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 pv=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=pv(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=Bw(a),o&&Object.entries(o).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=pv(c,["theme"]);let p=f;d&&(p=Aw(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=p}),a};function yr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=J.useContext(Iw),o=`${S5}-${t||""}`,a=n||Tw,[l,s,c]=U4(a,[Xl,e],{salt:o,override:r,getComputedToken:Aw,formatToken:Bw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Mw,ignore:Nw,preserve:E5}});return[a,c,t?s:"",l,i]}function Kn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ud={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},wr=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}},$5=()=>({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"}}),ds=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k5=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),O5=(e,t,n)=>{const{fontFamily:r,fontSize:i}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:o]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},R5=e=>({outline:`${W(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),fs=e=>({"&:focus-visible":Object.assign({},R5(e))});let P5=xn(function e(){wn(this,e)});const jw=P5;function _5(e,t,n){return t=Ir(t),rd(e,ss()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}let T5=function(e){Bi(t,e);function t(n){var r;return wn(this,t),r=_5(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return xn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(jw);function I5(e,t,n){return t=Ir(t),rd(e,ss()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}const Fw="CALC_UNIT";function bf(e){return typeof e=="number"?`${e}${Fw}`:e}let z5=function(e){Bi(t,e);function t(n){var r;return wn(this,t),r=I5(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=bf(n):typeof n=="string"&&(r.result=n),r}return xn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${bf(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${bf(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:i=!0}=r||{},o=new RegExp(`${Fw}`,"g");return this.result=this.result.replace(o,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(jw);const B5=e=>{const t=e==="css"?z5:T5;return n=>new t(n)};function M5(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rW(i)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rW(i)).join(",")})`}}}const Dw=typeof CSSINJS_STATISTIC<"u";let cg=!0;function Et(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),cg=!0,r}const gv={};function N5(){}const A5=e=>{let t,n=e,r=N5;return Dw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(i,o){return cg&&t.add(o),i[o]}}),r=(i,o)=>{var a;gv[i]={global:Array.from(t),component:Object.assign(Object.assign({},(a=gv[i])===null||a===void 0?void 0:a.component),o)}}),{token:n,keys:t,flush:r}},Hw=(e,t)=>{const[n,r]=yr();return ng({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},$5()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Vw=(e,t,n)=>{var r;return typeof n=="function"?n(Et(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},Ww=(e,t,n,r)=>{const i=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,c]=l;var d;(i!=null&&i[s]||i!=null&&i[c])&&((d=i[c])!==null&&d!==void 0||(i[c]=i==null?void 0:i[s]))})}const o=Object.assign(Object.assign({},n),i);return Object.keys(o).forEach(a=>{o[a]===t[a]&&delete o[a]}),o},L5=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Zm(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[o]=i,a=i.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[c,d,f,p,y]=yr(),{getPrefixCls:b,iconPrefixCls:v,csp:x}=u.useContext(Ve),m=b(),g=y?"css":"js",h=B5(g),{max:w,min:S}=M5(g),C={theme:c,token:p,hashId:f,nonce:()=>x==null?void 0:x.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ng(Object.assign(Object.assign({},C),{clientOnly:!1,path:["Shared",m]}),()=>[{"&":k5(p)}]),Hw(v,x),[ng(Object.assign(Object.assign({},C),{path:[a,l,v]}),()=>{if(r.injectStyle===!1)return[];const{token:$,flush:k}=A5(p),O=Vw(o,d,n),P=`.${l}`,z=Ww(o,d,O,{deprecatedTokens:r.deprecatedTokens});y&&Object.keys(O).forEach(A=>{O[A]=`var(${cw(A,L5(o,y.prefix))})`});const T=Et($,{componentCls:P,prefixCls:l,iconCls:`.${v}`,antCls:`.${m}`,calc:h,max:w,min:S},y?O:z),M=t(T,{hashId:f,prefixCls:l,rootPrefixCls:m,iconPrefixCls:v});return k(o,z),[r.resetStyle===!1?null:O5(T,l,s),M]}),f]}}const j5=(e,t,n,r)=>{const i=Zm(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l,rootCls:s=l}=a;return i(l,s),null}},F5=(e,t,n)=>{function r(c){return`${e}${c.slice(0,1).toUpperCase()}${c.slice(1)}`}const{unitless:i={},injectStyle:o=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(i).forEach(c=>{a[r(c)]=i[c]});const l=c=>{let{rootCls:d,cssVar:f}=c;const[,p]=yr();return w8({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},Mw),a),ignore:Nw,token:p,scope:d},()=>{const y=Vw(e,p,t),b=Ww(e,p,y,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(y).forEach(v=>{b[r(v)]=b[v],delete b[v]}),b}),null};return c=>{const[,,,,d]=yr();return[f=>o&&d?J.createElement(J.Fragment,null,J.createElement(l,{rootCls:c,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Xt=(e,t,n,r)=>{const i=Zm(e,t,n,r),o=F5(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,s]=i(a,l),[c,d]=o(l);return[c,s,d]}};function D5(e,t){return su.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:l}))},{})}const H5=Object.assign({},Ca),{useId:mv}=H5,V5=()=>"",W5=typeof mv>"u"?V5:mv;function q5(e,t){var n;$w();const r=e||{},i=r.inherit===!1||!t?Object.assign(Object.assign({},ag),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:ag.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=W5();return td(()=>{var a,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(f=>{s[f]=Object.assign(Object.assign({},s[f]),e.components[f])});const c=`css-var-${o.replace(/:/g,"")}`,d=((a=r.cssVar)!==null&&a!==void 0?a:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof i.cssVar=="object"?i.cssVar:{}),typeof r.cssVar=="object"?r.cssVar:{}),{key:typeof r.cssVar=="object"&&((l=r.cssVar)===null||l===void 0?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:d})},[r,i],(a,l)=>a.some((s,c)=>{const d=l[c];return!us(s,d,!0)}))}var U5=["children"],qw=u.createContext({});function G5(e){var t=e.children,n=Ne(e,U5);return u.createElement(qw.Provider,{value:n},t)}var K5=function(e){Bi(n,e);var t=cs(n);function n(){return wn(this,n),t.apply(this,arguments)}return xn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),Hi="none",Xs="appear",Ys="enter",Qs="leave",hv="none",ur="prepare",Yo="start",Qo="active",Jm="end",Uw="prepared";function vv(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 X5(e,t){var n={animationend:vv("Animation","AnimationEnd"),transitionend:vv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Y5=X5(un(),typeof window<"u"?window:{}),Gw={};if(un()){var Q5=document.createElement("div");Gw=Q5.style}var Zs={};function Kw(e){if(Zs[e])return Zs[e];var t=Y5[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=Bt(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var ek=[ur,Yo,Qo,Jm],tk=[ur,Uw],Jw=!1,nk=!0;function ex(e){return e===Qo||e===Jm}const rk=function(e,t,n){var r=la(hv),i=H(r,2),o=i[0],a=i[1],l=J5(),s=H(l,2),c=s[0],d=s[1];function f(){a(ur,!0)}var p=t?tk:ek;return Zw(function(){if(o!==hv&&o!==Jm){var y=p.indexOf(o),b=p[y+1],v=n(o);v===Jw?a(b,!0):b&&c(function(x){function m(){x.isCanceled()||a(b,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,o]),u.useEffect(function(){return function(){d()}},[]),[f,o]};function ik(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,y=r.onEnterPrepare,b=r.onLeavePrepare,v=r.onAppearStart,x=r.onEnterStart,m=r.onLeaveStart,g=r.onAppearActive,h=r.onEnterActive,w=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,k=la(),O=H(k,2),P=O[0],z=O[1],T=la(Hi),M=H(T,2),A=M[0],B=M[1],_=la(null),R=H(_,2),I=R[0],N=R[1],F=u.useRef(!1),D=u.useRef(null);function U(){return n()}var K=u.useRef(!1);function G(){B(Hi,!0),N(null,!0)}function X(Y){var ge=U();if(!(Y&&!Y.deadline&&Y.target!==ge)){var ie=K.current,we;A===Xs&&ie?we=S==null?void 0:S(ge,Y):A===Ys&&ie?we=C==null?void 0:C(ge,Y):A===Qs&&ie&&(we=E==null?void 0:E(ge,Y)),A!==Hi&&ie&&we!==!1&&G()}}var Q=Z5(X),Z=H(Q,1),ne=Z[0],fe=function(ge){var ie,we,Ce;switch(ge){case Xs:return ie={},L(ie,ur,p),L(ie,Yo,v),L(ie,Qo,g),ie;case Ys:return we={},L(we,ur,y),L(we,Yo,x),L(we,Qo,h),we;case Qs:return Ce={},L(Ce,ur,b),L(Ce,Yo,m),L(Ce,Qo,w),Ce;default:return{}}},re=u.useMemo(function(){return fe(A)},[A]),be=rk(A,!e,function(Y){if(Y===ur){var ge=re[ur];return ge?ge(U()):Jw}if(ce in re){var ie;N(((ie=re[ce])===null||ie===void 0?void 0:ie.call(re,U(),null))||null)}return ce===Qo&&(ne(U()),d>0&&(clearTimeout(D.current),D.current=setTimeout(function(){X({deadline:!0})},d))),ce===Uw&&G(),nk}),pe=H(be,2),xe=pe[0],ce=pe[1],Re=ex(ce);K.current=Re,Zw(function(){z(t);var Y=F.current;F.current=!0;var ge;!Y&&t&&l&&(ge=Xs),Y&&t&&o&&(ge=Ys),(Y&&!t&&c||!Y&&f&&!t&&c)&&(ge=Qs);var ie=fe(ge);ge&&(e||ie[ur])?(B(ge),xe()):B(Hi)},[t]),u.useEffect(function(){(A===Xs&&!l||A===Ys&&!o||A===Qs&&!c)&&B(Hi)},[l,o,c]),u.useEffect(function(){return function(){F.current=!1,clearTimeout(D.current)}},[]);var ye=u.useRef(!1);u.useEffect(function(){P&&(ye.current=!0),P!==void 0&&A===Hi&&((ye.current||P)&&($==null||$(P)),ye.current=!0)},[P,A]);var oe=I;return re[ur]&&ce===Yo&&(oe=j({transition:"none"},oe)),[A,ce,oe,P??t]}function ok(e){var t=e;Me(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=u.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,s=i.removeOnLeave,c=s===void 0?!0:s,d=i.forceRender,f=i.children,p=i.motionName,y=i.leavedClassName,b=i.eventProps,v=u.useContext(qw),x=v.motion,m=n(i,x),g=u.useRef(),h=u.useRef();function w(){try{return g.current instanceof HTMLElement?g.current:bc(h.current)}catch{return null}}var S=ik(m,l,w,i),C=H(S,4),E=C[0],$=C[1],k=C[2],O=C[3],P=u.useRef(O);O&&(P.current=!0);var z=u.useCallback(function(N){g.current=N,Vm(o,N)},[o]),T,M=j(j({},b),{},{visible:l});if(!f)T=null;else if(E===Hi)O?T=f(j({},M),z):!c&&P.current&&y?T=f(j(j({},M),{},{className:y}),z):d||!c&&!y?T=f(j(j({},M),{},{style:{display:"none"}}),z):T=null;else{var A,B;$===ur?B="prepare":ex($)?B="active":$===Yo&&(B="start");var _=wv(p,"".concat(E,"-").concat(B));T=f(j(j({},M),{},{className:q(wv(p,E),(A={},L(A,_,_&&B),L(A,p,typeof p=="string"),A)),style:k}),z)}if(u.isValidElement(T)&&po(T)){var R=T,I=R.ref;I||(T=u.cloneElement(T,{ref:z}))}return u.createElement(K5,{ref:h},T)});return r.displayName="CSSMotion",r}const xr=ok(Qw);var ug="add",dg="keep",fg="remove",wf="removed";function ak(e){var t;return e&&Me(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function pg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ak)}function lk(){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=pg(e),a=pg(t);o.forEach(function(c){for(var d=!1,f=r;f1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,p=d.status;return f!==c||p!==fg}),n.forEach(function(d){d.key===c&&(d.status=dg)})}),n}var sk=["component","children","onVisibleChanged","onAllRemoved"],ck=["status"],uk=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xr,n=function(r){Bi(o,r);var i=cs(o);function o(){var a;wn(this,o);for(var l=arguments.length,s=new Array(l),c=0;cnull;var gk=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 bk=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(tx=t),r&&yk(r)&&y5(vk(),r)},wk=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:y,popupOverflow:b,legacyLocale:v,parentContext:x,iconPrefixCls:m,theme:g,componentDisabled:h,segmented:w,statistic:S,spin:C,calendar:E,carousel:$,cascader:k,collapse:O,typography:P,checkbox:z,descriptions:T,divider:M,drawer:A,skeleton:B,steps:_,image:R,layout:I,list:N,mentions:F,modal:D,progress:U,result:K,slider:G,breadcrumb:X,menu:Q,pagination:Z,input:ne,empty:fe,badge:re,radio:be,rate:pe,switch:xe,transfer:ce,avatar:Re,message:ye,tag:oe,table:Y,card:ge,tabs:ie,timeline:we,timePicker:Ce,upload:Ae,notification:De,tree:Ee,colorPicker:ct,datePicker:$e,rangePicker:ue,flex:Te,wave:Pe,dropdown:ut,warning:Ke,tour:dt}=e,tt=u.useCallback((_e,de)=>{const{prefixCls:Oe}=e;if(de)return de;const Fe=Oe||x.getPrefixCls("");return _e?`${Fe}-${_e}`:Fe},[x.getPrefixCls,e.prefixCls]),Le=m||x.iconPrefixCls||zw,We=n||x.csp;Hw(Le,We);const He=q5(g,x.theme),yt={csp:We,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:l||v,direction:c,space:d,virtual:f,popupMatchSelectWidth:y??p,popupOverflow:b,getPrefixCls:tt,iconPrefixCls:Le,theme:He,segmented:w,statistic:S,spin:C,calendar:E,carousel:$,cascader:k,collapse:O,typography:P,checkbox:z,descriptions:T,divider:M,drawer:A,skeleton:B,steps:_,image:R,input:ne,layout:I,list:N,mentions:F,modal:D,progress:U,result:K,slider:G,breadcrumb:X,menu:Q,pagination:Z,empty:fe,badge:re,radio:be,rate:pe,switch:xe,transfer:ce,avatar:Re,message:ye,tag:oe,table:Y,card:ge,tabs:ie,timeline:we,timePicker:Ce,upload:Ae,notification:De,tree:Ee,colorPicker:ct,datePicker:$e,rangePicker:ue,flex:Te,wave:Pe,dropdown:ut,warning:Ke,tour:dt},te=Object.assign({},x);Object.keys(yt).forEach(_e=>{yt[_e]!==void 0&&(te[_e]=yt[_e])}),mk.forEach(_e=>{const de=e[_e];de&&(te[_e]=de)});const he=td(()=>te,te,(_e,de)=>{const Oe=Object.keys(_e),Fe=Object.keys(de);return Oe.length!==Fe.length||Oe.some(lt=>_e[lt]!==de[lt])}),Je=u.useMemo(()=>({prefixCls:Le,csp:We}),[Le,We]);let ke=u.createElement(u.Fragment,null,u.createElement(pk,{dropdownMatchSelectWidth:p}),t);const qe=u.useMemo(()=>{var _e,de,Oe,Fe;return Xo(((_e=Pi.Form)===null||_e===void 0?void 0:_e.defaultValidateMessages)||{},((Oe=(de=he.locale)===null||de===void 0?void 0:de.Form)===null||Oe===void 0?void 0:Oe.defaultValidateMessages)||{},((Fe=he.form)===null||Fe===void 0?void 0:Fe.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[he,a==null?void 0:a.validateMessages]);Object.keys(qe).length>0&&(ke=u.createElement(R8.Provider,{value:qe},ke)),l&&(ke=u.createElement(j8,{locale:l,_ANT_MARK__:A8},ke)),(Le||We)&&(ke=u.createElement(Ym.Provider,{value:Je},ke)),s&&(ke=u.createElement(w5,{size:s},ke)),ke=u.createElement(fk,null,ke);const ze=u.useMemo(()=>{const _e=He||{},{algorithm:de,token:Oe,components:Fe,cssVar:lt}=_e,Yt=gk(_e,["algorithm","token","components","cssVar"]),Rt=de&&(!Array.isArray(de)||de.length>0)?Xp(de):Tw,Pn={};Object.entries(Fe||{}).forEach(Sn=>{let[fn,Qt]=Sn;const gt=Object.assign({},Qt);"algorithm"in gt&&(gt.algorithm===!0?gt.theme=Rt:(Array.isArray(gt.algorithm)||typeof gt.algorithm=="function")&&(gt.theme=Xp(gt.algorithm)),delete gt.algorithm),Pn[fn]=gt});const Vt=Object.assign(Object.assign({},Xl),Oe);return Object.assign(Object.assign({},Yt),{theme:Rt,token:Vt,components:Pn,override:Object.assign({override:Vt},Pn),cssVar:lt})},[He]);return g&&(ke=u.createElement(Iw.Provider,{value:ze},ke)),he.warning&&(ke=u.createElement(O8.Provider,{value:he.warning},ke)),h!==void 0&&(ke=u.createElement(b5,{disabled:h},ke)),u.createElement(Ve.Provider,{value:he},ke)},ps=e=>{const t=u.useContext(Ve),n=u.useContext(Qm);return u.createElement(wk,Object.assign({parentContext:t,legacyLocale:n},e))};ps.ConfigContext=Ve;ps.SizeContext=cd;ps.config=bk;ps.useConfig=x5;Object.defineProperty(ps,"SizeContext",{get:()=>cd});var xk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const Sk=xk;function nx(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ck(e){return nx(e)instanceof ShadowRoot}function cu(e){return Ck(e)?nx(e):null}function Ek(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $k(e,t){mn(e,"[@ant-design/icons] ".concat(t))}function xv(e){return Me(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Me(e.icon)==="object"||typeof e.icon=="function")}function Sv(){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[Ek(n)]=r}return t},{})}function gg(e,t,n){return n?J.createElement(e.tag,j(j({key:t},Sv(e.attrs)),n),(e.children||[]).map(function(r,i){return gg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):J.createElement(e.tag,j({key:t},Sv(e.attrs)),(e.children||[]).map(function(r,i){return gg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function rx(e){return lo(e)[0]}function ix(e){return e?Array.isArray(e)?e:[e]:[]}var kk=` + `,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 pv=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=pv(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=zw(a),o&&Object.entries(o).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=pv(c,["theme"]);let p=f;d&&(p=Nw(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=p}),a};function yr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=J.useContext(Tw),o=`${x5}-${t||""}`,a=n||_w,[l,s,c]=q4(a,[Kl,e],{salt:o,override:r,getComputedToken:Nw,formatToken:zw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Bw,ignore:Mw,preserve:C5}});return[a,c,t?s:"",l,i]}function Kn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ud={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},wr=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}},E5=()=>({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"}}),us=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),$5=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),k5=(e,t,n)=>{const{fontFamily:r,fontSize:i}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:o]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},O5=e=>({outline:`${W(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ds=e=>({"&:focus-visible":Object.assign({},O5(e))});let R5=xn(function e(){wn(this,e)});const Lw=R5;function P5(e,t,n){return t=Ir(t),rd(e,ls()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}let _5=function(e){Bi(t,e);function t(n){var r;return wn(this,t),r=P5(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return xn(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(Lw);function T5(e,t,n){return t=Ir(t),rd(e,ls()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}const jw="CALC_UNIT";function bf(e){return typeof e=="number"?`${e}${jw}`:e}let I5=function(e){Bi(t,e);function t(n){var r;return wn(this,t),r=T5(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=bf(n):typeof n=="string"&&(r.result=n),r}return xn(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${bf(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${bf(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:i=!0}=r||{},o=new RegExp(`${jw}`,"g");return this.result=this.result.replace(o,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(Lw);const z5=e=>{const t=e==="css"?I5:_5;return n=>new t(n)};function B5(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rW(i)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rW(i)).join(",")})`}}}const Fw=typeof CSSINJS_STATISTIC<"u";let cg=!0;function Et(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),cg=!0,r}const gv={};function M5(){}const N5=e=>{let t,n=e,r=M5;return Fw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(i,o){return cg&&t.add(o),i[o]}}),r=(i,o)=>{var a;gv[i]={global:Array.from(t),component:Object.assign(Object.assign({},(a=gv[i])===null||a===void 0?void 0:a.component),o)}}),{token:n,keys:t,flush:r}},Dw=(e,t)=>{const[n,r]=yr();return ng({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},E5()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Hw=(e,t,n)=>{var r;return typeof n=="function"?n(Et(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},Vw=(e,t,n,r)=>{const i=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(l=>{let[s,c]=l;var d;(i!=null&&i[s]||i!=null&&i[c])&&((d=i[c])!==null&&d!==void 0||(i[c]=i==null?void 0:i[s]))})}const o=Object.assign(Object.assign({},n),i);return Object.keys(o).forEach(a=>{o[a]===t[a]&&delete o[a]}),o},A5=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Zm(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[o]=i,a=i.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[c,d,f,p,y]=yr(),{getPrefixCls:b,iconPrefixCls:v,csp:x}=u.useContext(Ve),m=b(),g=y?"css":"js",h=z5(g),{max:w,min:E}=B5(g),S={theme:c,token:p,hashId:f,nonce:()=>x==null?void 0:x.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ng(Object.assign(Object.assign({},S),{clientOnly:!1,path:["Shared",m]}),()=>[{"&":$5(p)}]),Dw(v,x),[ng(Object.assign(Object.assign({},S),{path:[a,l,v]}),()=>{if(r.injectStyle===!1)return[];const{token:$,flush:k}=N5(p),O=Hw(o,d,n),P=`.${l}`,z=Vw(o,d,O,{deprecatedTokens:r.deprecatedTokens});y&&Object.keys(O).forEach(A=>{O[A]=`var(${sw(A,A5(o,y.prefix))})`});const T=Et($,{componentCls:P,prefixCls:l,iconCls:`.${v}`,antCls:`.${m}`,calc:h,max:w,min:E},y?O:z),M=t(T,{hashId:f,prefixCls:l,rootPrefixCls:m,iconPrefixCls:v});return k(o,z),[r.resetStyle===!1?null:k5(T,l,s),M]}),f]}}const L5=(e,t,n,r)=>{const i=Zm(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:l,rootCls:s=l}=a;return i(l,s),null}},j5=(e,t,n)=>{function r(c){return`${e}${c.slice(0,1).toUpperCase()}${c.slice(1)}`}const{unitless:i={},injectStyle:o=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(i).forEach(c=>{a[r(c)]=i[c]});const l=c=>{let{rootCls:d,cssVar:f}=c;const[,p]=yr();return b8({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},Bw),a),ignore:Mw,token:p,scope:d},()=>{const y=Hw(e,p,t),b=Vw(e,p,y,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(y).forEach(v=>{b[r(v)]=b[v],delete b[v]}),b}),null};return c=>{const[,,,,d]=yr();return[f=>o&&d?J.createElement(J.Fragment,null,J.createElement(l,{rootCls:c,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},Xt=(e,t,n,r)=>{const i=Zm(e,t,n,r),o=j5(Array.isArray(e)?e[0]:e,n,r);return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,s]=i(a,l),[c,d]=o(l);return[c,s,d]}};function F5(e,t){return su.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:l}))},{})}const D5=Object.assign({},Ca),{useId:mv}=D5,H5=()=>"",V5=typeof mv>"u"?H5:mv;function W5(e,t){var n;Ew();const r=e||{},i=r.inherit===!1||!t?Object.assign(Object.assign({},ag),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:ag.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=V5();return td(()=>{var a,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(f=>{s[f]=Object.assign(Object.assign({},s[f]),e.components[f])});const c=`css-var-${o.replace(/:/g,"")}`,d=((a=r.cssVar)!==null&&a!==void 0?a:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof i.cssVar=="object"?i.cssVar:{}),typeof r.cssVar=="object"?r.cssVar:{}),{key:typeof r.cssVar=="object"&&((l=r.cssVar)===null||l===void 0?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:d})},[r,i],(a,l)=>a.some((s,c)=>{const d=l[c];return!cs(s,d,!0)}))}var q5=["children"],Ww=u.createContext({});function U5(e){var t=e.children,n=Ne(e,q5);return u.createElement(Ww.Provider,{value:n},t)}var G5=function(e){Bi(n,e);var t=ss(n);function n(){return wn(this,n),t.apply(this,arguments)}return xn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component),Hi="none",Xs="appear",Ys="enter",Qs="leave",hv="none",ur="prepare",Yo="start",Qo="active",Jm="end",qw="prepared";function vv(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 K5(e,t){var n={animationend:vv("Animation","AnimationEnd"),transitionend:vv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var X5=K5(un(),typeof window<"u"?window:{}),Uw={};if(un()){var Y5=document.createElement("div");Uw=Y5.style}var Zs={};function Gw(e){if(Zs[e])return Zs[e];var t=X5[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=Bt(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var J5=[ur,Yo,Qo,Jm],ek=[ur,qw],Zw=!1,tk=!0;function Jw(e){return e===Qo||e===Jm}const nk=function(e,t,n){var r=la(hv),i=V(r,2),o=i[0],a=i[1],l=Z5(),s=V(l,2),c=s[0],d=s[1];function f(){a(ur,!0)}var p=t?ek:J5;return Qw(function(){if(o!==hv&&o!==Jm){var y=p.indexOf(o),b=p[y+1],v=n(o);v===Zw?a(b,!0):b&&c(function(x){function m(){x.isCanceled()||a(b,!0)}v===!0?m():Promise.resolve(v).then(m)})}},[e,o]),u.useEffect(function(){return function(){d()}},[]),[f,o]};function rk(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,y=r.onEnterPrepare,b=r.onLeavePrepare,v=r.onAppearStart,x=r.onEnterStart,m=r.onLeaveStart,g=r.onAppearActive,h=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,S=r.onEnterEnd,C=r.onLeaveEnd,$=r.onVisibleChanged,k=la(),O=V(k,2),P=O[0],z=O[1],T=la(Hi),M=V(T,2),A=M[0],B=M[1],_=la(null),R=V(_,2),I=R[0],N=R[1],F=u.useRef(!1),D=u.useRef(null);function U(){return n()}var K=u.useRef(!1);function G(){B(Hi,!0),N(null,!0)}function X(Y){var ge=U();if(!(Y&&!Y.deadline&&Y.target!==ge)){var ie=K.current,we;A===Xs&&ie?we=E==null?void 0:E(ge,Y):A===Ys&&ie?we=S==null?void 0:S(ge,Y):A===Qs&&ie&&(we=C==null?void 0:C(ge,Y)),A!==Hi&&ie&&we!==!1&&G()}}var Q=Q5(X),Z=V(Q,1),ne=Z[0],fe=function(ge){var ie,we,Ce;switch(ge){case Xs:return ie={},L(ie,ur,p),L(ie,Yo,v),L(ie,Qo,g),ie;case Ys:return we={},L(we,ur,y),L(we,Yo,x),L(we,Qo,h),we;case Qs:return Ce={},L(Ce,ur,b),L(Ce,Yo,m),L(Ce,Qo,w),Ce;default:return{}}},re=u.useMemo(function(){return fe(A)},[A]),be=nk(A,!e,function(Y){if(Y===ur){var ge=re[ur];return ge?ge(U()):Zw}if(ce in re){var ie;N(((ie=re[ce])===null||ie===void 0?void 0:ie.call(re,U(),null))||null)}return ce===Qo&&(ne(U()),d>0&&(clearTimeout(D.current),D.current=setTimeout(function(){X({deadline:!0})},d))),ce===qw&&G(),tk}),pe=V(be,2),xe=pe[0],ce=pe[1],Re=Jw(ce);K.current=Re,Qw(function(){z(t);var Y=F.current;F.current=!0;var ge;!Y&&t&&l&&(ge=Xs),Y&&t&&o&&(ge=Ys),(Y&&!t&&c||!Y&&f&&!t&&c)&&(ge=Qs);var ie=fe(ge);ge&&(e||ie[ur])?(B(ge),xe()):B(Hi)},[t]),u.useEffect(function(){(A===Xs&&!l||A===Ys&&!o||A===Qs&&!c)&&B(Hi)},[l,o,c]),u.useEffect(function(){return function(){F.current=!1,clearTimeout(D.current)}},[]);var ye=u.useRef(!1);u.useEffect(function(){P&&(ye.current=!0),P!==void 0&&A===Hi&&((ye.current||P)&&($==null||$(P)),ye.current=!0)},[P,A]);var oe=I;return re[ur]&&ce===Yo&&(oe=j({transition:"none"},oe)),[A,ce,oe,P??t]}function ik(e){var t=e;Me(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=u.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,s=i.removeOnLeave,c=s===void 0?!0:s,d=i.forceRender,f=i.children,p=i.motionName,y=i.leavedClassName,b=i.eventProps,v=u.useContext(Ww),x=v.motion,m=n(i,x),g=u.useRef(),h=u.useRef();function w(){try{return g.current instanceof HTMLElement?g.current:bc(h.current)}catch{return null}}var E=rk(m,l,w,i),S=V(E,4),C=S[0],$=S[1],k=S[2],O=S[3],P=u.useRef(O);O&&(P.current=!0);var z=u.useCallback(function(N){g.current=N,Vm(o,N)},[o]),T,M=j(j({},b),{},{visible:l});if(!f)T=null;else if(C===Hi)O?T=f(j({},M),z):!c&&P.current&&y?T=f(j(j({},M),{},{className:y}),z):d||!c&&!y?T=f(j(j({},M),{},{style:{display:"none"}}),z):T=null;else{var A,B;$===ur?B="prepare":Jw($)?B="active":$===Yo&&(B="start");var _=wv(p,"".concat(C,"-").concat(B));T=f(j(j({},M),{},{className:q(wv(p,C),(A={},L(A,_,_&&B),L(A,p,typeof p=="string"),A)),style:k}),z)}if(u.isValidElement(T)&&po(T)){var R=T,I=R.ref;I||(T=u.cloneElement(T,{ref:z}))}return u.createElement(G5,{ref:h},T)});return r.displayName="CSSMotion",r}const xr=ik(Yw);var ug="add",dg="keep",fg="remove",wf="removed";function ok(e){var t;return e&&Me(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function pg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ok)}function ak(){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=pg(e),a=pg(t);o.forEach(function(c){for(var d=!1,f=r;f1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,p=d.status;return f!==c||p!==fg}),n.forEach(function(d){d.key===c&&(d.status=dg)})}),n}var lk=["component","children","onVisibleChanged","onAllRemoved"],sk=["status"],ck=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function uk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xr,n=function(r){Bi(o,r);var i=ss(o);function o(){var a;wn(this,o);for(var l=arguments.length,s=new Array(l),c=0;cnull;var pk=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 yk=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(ex=t),r&&vk(r)&&v5(hk(),r)},bk=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:y,popupOverflow:b,legacyLocale:v,parentContext:x,iconPrefixCls:m,theme:g,componentDisabled:h,segmented:w,statistic:E,spin:S,calendar:C,carousel:$,cascader:k,collapse:O,typography:P,checkbox:z,descriptions:T,divider:M,drawer:A,skeleton:B,steps:_,image:R,layout:I,list:N,mentions:F,modal:D,progress:U,result:K,slider:G,breadcrumb:X,menu:Q,pagination:Z,input:ne,empty:fe,badge:re,radio:be,rate:pe,switch:xe,transfer:ce,avatar:Re,message:ye,tag:oe,table:Y,card:ge,tabs:ie,timeline:we,timePicker:Ce,upload:Ae,notification:De,tree:Ee,colorPicker:ct,datePicker:$e,rangePicker:ue,flex:Te,wave:Pe,dropdown:ut,warning:Ke,tour:dt}=e,tt=u.useCallback((_e,de)=>{const{prefixCls:Oe}=e;if(de)return de;const Fe=Oe||x.getPrefixCls("");return _e?`${Fe}-${_e}`:Fe},[x.getPrefixCls,e.prefixCls]),Le=m||x.iconPrefixCls||Iw,We=n||x.csp;Dw(Le,We);const He=W5(g,x.theme),yt={csp:We,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:l||v,direction:c,space:d,virtual:f,popupMatchSelectWidth:y??p,popupOverflow:b,getPrefixCls:tt,iconPrefixCls:Le,theme:He,segmented:w,statistic:E,spin:S,calendar:C,carousel:$,cascader:k,collapse:O,typography:P,checkbox:z,descriptions:T,divider:M,drawer:A,skeleton:B,steps:_,image:R,input:ne,layout:I,list:N,mentions:F,modal:D,progress:U,result:K,slider:G,breadcrumb:X,menu:Q,pagination:Z,empty:fe,badge:re,radio:be,rate:pe,switch:xe,transfer:ce,avatar:Re,message:ye,tag:oe,table:Y,card:ge,tabs:ie,timeline:we,timePicker:Ce,upload:Ae,notification:De,tree:Ee,colorPicker:ct,datePicker:$e,rangePicker:ue,flex:Te,wave:Pe,dropdown:ut,warning:Ke,tour:dt},te=Object.assign({},x);Object.keys(yt).forEach(_e=>{yt[_e]!==void 0&&(te[_e]=yt[_e])}),gk.forEach(_e=>{const de=e[_e];de&&(te[_e]=de)});const he=td(()=>te,te,(_e,de)=>{const Oe=Object.keys(_e),Fe=Object.keys(de);return Oe.length!==Fe.length||Oe.some(lt=>_e[lt]!==de[lt])}),Je=u.useMemo(()=>({prefixCls:Le,csp:We}),[Le,We]);let ke=u.createElement(u.Fragment,null,u.createElement(fk,{dropdownMatchSelectWidth:p}),t);const qe=u.useMemo(()=>{var _e,de,Oe,Fe;return Xo(((_e=Pi.Form)===null||_e===void 0?void 0:_e.defaultValidateMessages)||{},((Oe=(de=he.locale)===null||de===void 0?void 0:de.Form)===null||Oe===void 0?void 0:Oe.defaultValidateMessages)||{},((Fe=he.form)===null||Fe===void 0?void 0:Fe.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[he,a==null?void 0:a.validateMessages]);Object.keys(qe).length>0&&(ke=u.createElement(O8.Provider,{value:qe},ke)),l&&(ke=u.createElement(L8,{locale:l,_ANT_MARK__:N8},ke)),(Le||We)&&(ke=u.createElement(Ym.Provider,{value:Je},ke)),s&&(ke=u.createElement(b5,{size:s},ke)),ke=u.createElement(dk,null,ke);const ze=u.useMemo(()=>{const _e=He||{},{algorithm:de,token:Oe,components:Fe,cssVar:lt}=_e,Yt=pk(_e,["algorithm","token","components","cssVar"]),Rt=de&&(!Array.isArray(de)||de.length>0)?Xp(de):_w,Pn={};Object.entries(Fe||{}).forEach(Sn=>{let[fn,Qt]=Sn;const gt=Object.assign({},Qt);"algorithm"in gt&&(gt.algorithm===!0?gt.theme=Rt:(Array.isArray(gt.algorithm)||typeof gt.algorithm=="function")&&(gt.theme=Xp(gt.algorithm)),delete gt.algorithm),Pn[fn]=gt});const Vt=Object.assign(Object.assign({},Kl),Oe);return Object.assign(Object.assign({},Yt),{theme:Rt,token:Vt,components:Pn,override:Object.assign({override:Vt},Pn),cssVar:lt})},[He]);return g&&(ke=u.createElement(Tw.Provider,{value:ze},ke)),he.warning&&(ke=u.createElement(k8.Provider,{value:he.warning},ke)),h!==void 0&&(ke=u.createElement(y5,{disabled:h},ke)),u.createElement(Ve.Provider,{value:he},ke)},fs=e=>{const t=u.useContext(Ve),n=u.useContext(Qm);return u.createElement(bk,Object.assign({parentContext:t,legacyLocale:n},e))};fs.ConfigContext=Ve;fs.SizeContext=cd;fs.config=yk;fs.useConfig=w5;Object.defineProperty(fs,"SizeContext",{get:()=>cd});var wk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const xk=wk;function tx(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Sk(e){return tx(e)instanceof ShadowRoot}function cu(e){return Sk(e)?tx(e):null}function Ck(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Ek(e,t){mn(e,"[@ant-design/icons] ".concat(t))}function xv(e){return Me(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Me(e.icon)==="object"||typeof e.icon=="function")}function Sv(){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[Ck(n)]=r}return t},{})}function gg(e,t,n){return n?J.createElement(e.tag,j(j({key:t},Sv(e.attrs)),n),(e.children||[]).map(function(r,i){return gg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):J.createElement(e.tag,j({key:t},Sv(e.attrs)),(e.children||[]).map(function(r,i){return gg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function nx(e){return lo(e)[0]}function rx(e){return e?Array.isArray(e)?e:[e]:[]}var $k=` .anticon { display: inline-block; color: inherit; @@ -172,7 +172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,Ok=function(t){var n=u.useContext(Ym),r=n.csp,i=n.prefixCls,o=kk;i&&(o=o.replace(/anticon/g,i)),u.useEffect(function(){var a=t.current,l=cu(a);Ri(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},Rk=["icon","className","onClick","style","primaryColor","secondaryColor"],Sl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Pk(e){var t=e.primaryColor,n=e.secondaryColor;Sl.primaryColor=t,Sl.secondaryColor=n||rx(t),Sl.calculated=!!n}function _k(){return j({},Sl)}var dd=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,s=Ne(t,Rk),c=u.useRef(),d=Sl;if(a&&(d={primaryColor:a,secondaryColor:l||rx(a)}),Ok(c),$k(xv(n),"icon should be icon definiton, but got ".concat(n)),!xv(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=j(j({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),gg(f.icon,"svg-".concat(f.name),j(j({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};dd.displayName="IconReact";dd.getTwoToneColors=_k;dd.setTwoToneColors=Pk;const eh=dd;function ox(e){var t=ix(e),n=H(t,2),r=n[0],i=n[1];return eh.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Tk(){var e=eh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ik=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ox(r5.primary);var fd=u.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=Ne(e,Ik),d=u.useContext(Ym),f=d.prefixCls,p=f===void 0?"anticon":f,y=d.rootClassName,b=q(y,p,L(L({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&l&&(v=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=ix(s),g=H(m,2),h=g[0],w=g[1];return u.createElement("span",ae({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:l,className:b}),u.createElement(eh,{icon:r,primaryColor:h,secondaryColor:w,style:x}))});fd.displayName="AntdIcon";fd.getTwoToneColor=Tk;fd.setTwoToneColor=ox;const vt=fd;var zk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Sk}))};const ax=u.forwardRef(zk);var Bk={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const Mk=Bk;var Nk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Mk}))};const th=u.forwardRef(Nk);var Ak={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Lk=Ak;var jk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Lk}))};const pd=u.forwardRef(jk);var Fk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Dk=Fk;var Hk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Dk}))};const Vk=u.forwardRef(Hk);var Wk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const qk=Wk;var Uk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:qk}))};const Gk=u.forwardRef(Uk);var Kk=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,kk=function(t){var n=u.useContext(Ym),r=n.csp,i=n.prefixCls,o=$k;i&&(o=o.replace(/anticon/g,i)),u.useEffect(function(){var a=t.current,l=cu(a);Ri(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},Ok=["icon","className","onClick","style","primaryColor","secondaryColor"],xl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Rk(e){var t=e.primaryColor,n=e.secondaryColor;xl.primaryColor=t,xl.secondaryColor=n||nx(t),xl.calculated=!!n}function Pk(){return j({},xl)}var dd=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,s=Ne(t,Ok),c=u.useRef(),d=xl;if(a&&(d={primaryColor:a,secondaryColor:l||nx(a)}),kk(c),Ek(xv(n),"icon should be icon definiton, but got ".concat(n)),!xv(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=j(j({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),gg(f.icon,"svg-".concat(f.name),j(j({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};dd.displayName="IconReact";dd.getTwoToneColors=Pk;dd.setTwoToneColors=Rk;const eh=dd;function ix(e){var t=rx(e),n=V(t,2),r=n[0],i=n[1];return eh.setTwoToneColors({primaryColor:r,secondaryColor:i})}function _k(){var e=eh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ix(n5.primary);var fd=u.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=Ne(e,Tk),d=u.useContext(Ym),f=d.prefixCls,p=f===void 0?"anticon":f,y=d.rootClassName,b=q(y,p,L(L({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&l&&(v=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=rx(s),g=V(m,2),h=g[0],w=g[1];return u.createElement("span",ae({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:l,className:b}),u.createElement(eh,{icon:r,primaryColor:h,secondaryColor:w,style:x}))});fd.displayName="AntdIcon";fd.getTwoToneColor=_k;fd.setTwoToneColor=ix;const vt=fd;var Ik=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:xk}))};const ox=u.forwardRef(Ik);var zk={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const Bk=zk;var Mk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Bk}))};const th=u.forwardRef(Mk);var Nk={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Ak=Nk;var Lk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Ak}))};const pd=u.forwardRef(Lk);var jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Fk=jk;var Dk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Fk}))};const Hk=u.forwardRef(Dk);var Vk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Wk=Vk;var qk=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Wk}))};const Uk=u.forwardRef(qk);var Gk=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -183,19 +183,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,Xk=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,Kk=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Yk="".concat(Kk," ").concat(Xk).split(/[\s\n]+/),Qk="aria-",Zk="data-";function Cv(e,t){return e.indexOf(t)===0}function lx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=j({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||Cv(i,Qk))||n.data&&Cv(i,Zk)||n.attr&&Yk.includes(i))&&(r[i]=e[i])}),r}const{isValidElement:nh}=Ca;function sx(e){return e&&nh(e)&&e.type===u.Fragment}function cx(e,t,n){return nh(e)?u.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function gd(e,t){return cx(e,e,t)}const Js=(e,t,n,r,i)=>({background:e,border:`${W(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),Jk=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:y,defaultPadding:b}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Xk="".concat(Gk," ").concat(Kk).split(/[\s\n]+/),Yk="aria-",Qk="data-";function Cv(e,t){return e.indexOf(t)===0}function ax(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=j({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||Cv(i,Yk))||n.data&&Cv(i,Qk)||n.attr&&Xk.includes(i))&&(r[i]=e[i])}),r}const{isValidElement:nh}=Ca;function lx(e){return e&&nh(e)&&e.type===u.Fragment}function sx(e,t,n){return nh(e)?u.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function gd(e,t){return sx(e,e,t)}const Js=(e,t,n,r,i)=>({background:e,border:`${W(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),Zk=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:y,defaultPadding:b}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},eO=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:y}=e;return{[t]:{"&-success":Js(i,r,n,e,t),"&-info":Js(y,p,f,e,t),"&-warning":Js(l,a,o,e,t),"&-error":Object.assign(Object.assign({},Js(d,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},tO=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:W(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},nO=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),rO=Xt("Alert",e=>[Jk(e),eO(e),tO(e)],nO);var iO=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{icon:t,prefixCls:n,type:r}=e,i=oO[r]||null;return t?cx(t,u.createElement("span",{className:`${n}-icon`},t),()=>({className:q(`${n}-icon`,{[t.props.className]:t.props.className})})):u.createElement(i,{className:`${n}-icon`})},lO=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i}=e,o=r===!0||r===void 0?u.createElement(pd,null):r;return t?u.createElement("button",{type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o):null},sO=e=>{const{description:t,prefixCls:n,message:r,banner:i,className:o,rootClassName:a,style:l,onMouseEnter:s,onMouseLeave:c,onClick:d,afterClose:f,showIcon:p,closable:y,closeText:b,closeIcon:v,action:x}=e,m=iO(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[g,h]=u.useState(!1),w=u.useRef(null),{getPrefixCls:S,direction:C,alert:E}=u.useContext(Ve),$=S("alert",n),[k,O,P]=rO($),z=R=>{var I;h(!0),(I=e.onClose)===null||I===void 0||I.call(e,R)},T=u.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),M=u.useMemo(()=>b?!0:typeof y=="boolean"?y:v!==!1&&v!==null&&v!==void 0,[b,v,y]),A=i&&p===void 0?!0:p,B=q($,`${$}-${T}`,{[`${$}-with-description`]:!!t,[`${$}-no-icon`]:!A,[`${$}-banner`]:!!i,[`${$}-rtl`]:C==="rtl"},E==null?void 0:E.className,o,a,P,O),_=lx(m,{aria:!0,data:!0});return k(u.createElement(xr,{visible:!g,motionName:`${$}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:R=>({maxHeight:R.offsetHeight}),onLeaveEnd:f},R=>{let{className:I,style:N}=R;return u.createElement("div",Object.assign({ref:w,"data-show":!g,className:q(B,I),style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),l),N),onMouseEnter:s,onMouseLeave:c,onClick:d,role:"alert"},_),A?u.createElement(aO,{description:t,icon:e.icon,prefixCls:$,type:T}):null,u.createElement("div",{className:`${$}-content`},r?u.createElement("div",{className:`${$}-message`},r):null,t?u.createElement("div",{className:`${$}-description`},t):null),x?u.createElement("div",{className:`${$}-action`},x):null,u.createElement(lO,{isClosable:M,prefixCls:$,closeIcon:b||(v??(E==null?void 0:E.closeIcon)),handleClose:z}))}))},ux=sO;function cO(e,t,n){return t=Ir(t),rd(e,ss()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}let uO=function(e){Bi(t,e);function t(){var n;return wn(this,t),n=cO(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return xn(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,children:o}=this.props,{error:a,info:l}=this.state,s=l&&l.componentStack?l.componentStack:null,c=typeof r>"u"?(a||"").toString():r,d=typeof i>"u"?s:i;return a?u.createElement(ux,{type:"error",message:c,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):o}}]),t}(u.Component);const dO=uO,dx=ux;dx.ErrorBoundary=dO;const fO=dx,md=e=>{const[,,,,t]=yr();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}}},pO={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const gO=pO;var mO=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:gO}))};const fx=u.forwardRef(mO),hO=J.createContext(void 0),px=hO,Vi=100,vO=10,yO=Vi*vO,gx={Modal:Vi,Drawer:Vi,Popover:Vi,Popconfirm:Vi,Tooltip:Vi,Tour:Vi},bO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function wO(e){return e in gx}function rh(e,t){const[,n]=yr(),r=J.useContext(px),i=wO(e);if(t!==void 0)return[t,t];let o=r??0;return i?(o+=(r?0:n.zIndexPopupBase)+gx[e],o=Math.min(o,n.zIndexPopupBase+yO)):o+=bO[e],[r===void 0?t:o,o]}function vn(){vn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,_,R){B[_]=R.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(B,_,R){return Object.defineProperty(B,_,{value:R,enumerable:!0,configurable:!0,writable:!0}),B[_]}try{c({},"")}catch{c=function(R,I,N){return R[I]=N}}function d(B,_,R,I){var N=_&&_.prototype instanceof m?_:m,F=Object.create(N.prototype),D=new M(I||[]);return i(F,"_invoke",{value:O(B,R,D)}),F}function f(B,_,R){try{return{type:"normal",arg:B.call(_,R)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var p="suspendedStart",y="suspendedYield",b="executing",v="completed",x={};function m(){}function g(){}function h(){}var w={};c(w,a,function(){return this});var S=Object.getPrototypeOf,C=S&&S(S(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var E=h.prototype=m.prototype=Object.create(w);function $(B){["next","throw","return"].forEach(function(_){c(B,_,function(R){return this._invoke(_,R)})})}function k(B,_){function R(N,F,D,U){var K=f(B[N],B,F);if(K.type!=="throw"){var G=K.arg,X=G.value;return X&&Me(X)=="object"&&r.call(X,"__await")?_.resolve(X.__await).then(function(Q){R("next",Q,D,U)},function(Q){R("throw",Q,D,U)}):_.resolve(X).then(function(Q){G.value=Q,D(G)},function(Q){return R("throw",Q,D,U)})}U(K.arg)}var I;i(this,"_invoke",{value:function(F,D){function U(){return new _(function(K,G){R(F,D,K,G)})}return I=I?I.then(U,U):U()}})}function O(B,_,R){var I=p;return function(N,F){if(I===b)throw new Error("Generator is already running");if(I===v){if(N==="throw")throw F;return{value:e,done:!0}}for(R.method=N,R.arg=F;;){var D=R.delegate;if(D){var U=P(D,R);if(U){if(U===x)continue;return U}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(I===p)throw I=v,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);I=b;var K=f(B,_,R);if(K.type==="normal"){if(I=R.done?v:y,K.arg===x)continue;return{value:K.arg,done:R.done}}K.type==="throw"&&(I=v,R.method="throw",R.arg=K.arg)}}}function P(B,_){var R=_.method,I=B.iterator[R];if(I===e)return _.delegate=null,R==="throw"&&B.iterator.return&&(_.method="return",_.arg=e,P(B,_),_.method==="throw")||R!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+R+"' method")),x;var N=f(I,B.iterator,_.arg);if(N.type==="throw")return _.method="throw",_.arg=N.arg,_.delegate=null,x;var F=N.arg;return F?F.done?(_[B.resultName]=F.value,_.next=B.nextLoc,_.method!=="return"&&(_.method="next",_.arg=e),_.delegate=null,x):F:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,x)}function z(B){var _={tryLoc:B[0]};1 in B&&(_.catchLoc=B[1]),2 in B&&(_.finallyLoc=B[2],_.afterLoc=B[3]),this.tryEntries.push(_)}function T(B){var _=B.completion||{};_.type="normal",delete _.arg,B.completion=_}function M(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(z,this),this.reset(!0)}function A(B){if(B||B===""){var _=B[a];if(_)return _.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var R=-1,I=function N(){for(;++R=0;--N){var F=this.tryEntries[N],D=F.completion;if(F.tryLoc==="root")return I("end");if(F.tryLoc<=this.prev){var U=r.call(F,"catchLoc"),K=r.call(F,"finallyLoc");if(U&&K){if(this.prev=0;--I){var N=this.tryEntries[I];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev=0;--R){var I=this.tryEntries[R];if(I.finallyLoc===_)return this.complete(I.completion,I.afterLoc),T(I),x}},catch:function(_){for(var R=this.tryEntries.length-1;R>=0;--R){var I=this.tryEntries[R];if(I.tryLoc===_){var N=I.completion;if(N.type==="throw"){var F=N.arg;T(I)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(_,R,I){return this.delegate={iterator:A(_),resultName:R,nextLoc:I},this.method==="next"&&(this.arg=e),x}},t}function Ev(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,i)}function go(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(s){Ev(o,r,i,a,l,"next",s)}function l(s){Ev(o,r,i,a,l,"throw",s)}a(void 0)})}}var gs=j({},_$),xO=gs.version,SO=gs.render,CO=gs.unmountComponentAtNode,hd;try{var EO=Number((xO||"").split(".")[0]);EO>=18&&(hd=gs.createRoot)}catch{}function $v(e){var t=gs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Me(t)==="object"&&(t.usingClientEntryPoint=e)}var uu="__rc_react_root__";function $O(e,t){$v(!0);var n=t[uu]||hd(t);$v(!1),n.render(e),t[uu]=n}function kO(e,t){SO(e,t)}function OO(e,t){if(hd){$O(e,t);return}kO(e,t)}function RO(e){return mg.apply(this,arguments)}function mg(){return mg=go(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[uu])===null||i===void 0||i.unmount(),delete t[uu]}));case 1:case"end":return r.stop()}},e)})),mg.apply(this,arguments)}function PO(e){CO(e)}function _O(e){return hg.apply(this,arguments)}function hg(){return hg=go(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(hd===void 0){r.next=2;break}return r.abrupt("return",RO(t));case 2:PO(t);case 3:case"end":return r.stop()}},e)})),hg.apply(this,arguments)}const wa=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ih=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},TO=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},IO=Zm("Wave",e=>[TO(e)]);function zO(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function xf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&zO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function BO(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return xf(t)?t:xf(n)?n:xf(r)?r:null}const mx="ant-wave-target";function Sf(e){return Number.isNaN(e)?0:e}const MO=e=>{const{className:t,target:n,component:r}=e,i=u.useRef(null),[o,a]=u.useState(null),[l,s]=u.useState([]),[c,d]=u.useState(0),[f,p]=u.useState(0),[y,b]=u.useState(0),[v,x]=u.useState(0),[m,g]=u.useState(!1),h={left:c,top:f,width:y,height:v,borderRadius:l.map(C=>`${C}px`).join(" ")};o&&(h["--wave-color"]=o);function w(){const C=getComputedStyle(n);a(BO(n));const E=C.position==="static",{borderLeftWidth:$,borderTopWidth:k}=C;d(E?n.offsetLeft:Sf(-parseFloat($))),p(E?n.offsetTop:Sf(-parseFloat(k))),b(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:P,borderBottomLeftRadius:z,borderBottomRightRadius:T}=C;s([O,P,T,z].map(M=>Sf(parseFloat(M))))}if(u.useEffect(()=>{if(n){const C=Bt(()=>{w(),g(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(w),E.observe(n)),()=>{Bt.cancel(C),E==null||E.disconnect()}}},[]),!m)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(mx));return u.createElement(xr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,E)=>{var $;if(E.deadline||E.propertyName==="opacity"){const k=($=i.current)===null||$===void 0?void 0:$.parentElement;_O(k).then(()=>{k==null||k.remove()})}return!1}},C=>{let{className:E}=C;return u.createElement("div",{ref:i,className:q(t,{"wave-quick":S},E),style:h})})},NO=(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),OO(u.createElement(MO,Object.assign({},t,{target:e})),i)},AO=NO;function LO(e,t,n){const{wave:r}=u.useContext(Ve),[,i,o]=yr(),a=Kn(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${mx}`)||d,{showEffect:p}=r||{};(p||AO)(f,{className:t,token:i,component:n,event:c,hashId:o})}),l=u.useRef();return c=>{Bt.cancel(l.current),l.current=Bt(()=>{a(c)})}}const jO=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=u.useContext(Ve),o=u.useRef(null),a=i("wave"),[,l]=IO(a),s=LO(o,q(a,l),r);if(J.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!ih(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!J.isValidElement(t))return t??null;const c=po(t)?zi(t.ref,o):o;return gd(t,{ref:c})},hx=jO,Pa=e=>{const t=J.useContext(cd);return J.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},FO=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},DO=FO,HO=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},VO=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},vx=Xt("Space",e=>{const t=Et(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[HO(t),VO(t),DO(t)]},()=>({}),{resetStyle:!1});var yx=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=u.useContext(vd),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,l=i==="vertical"?"-vertical-":"-";return q(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},qO=e=>{let{children:t}=e;return u.createElement(vd.Provider,{value:null},t)},UO=e=>{var{children:t}=e,n=yx(e,["children"]);return u.createElement(vd.Provider,{value:n},t)},GO=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Ve),{size:r,direction:i,block:o,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=yx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Pa(h=>r??h),p=t("space-compact",a),[y,b]=vx(p),v=q(p,b,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:i==="vertical"},l,s),x=u.useContext(vd),m=vr(c),g=u.useMemo(()=>m.map((h,w)=>{const S=h&&h.key||`${p}-item-${w}`;return u.createElement(UO,{key:S,compactSize:f,compactDirection:i,isFirstItem:w===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:w===m.length-1&&(!x||(x==null?void 0:x.isLastItem))},h)}),[r,m,x]);return m.length===0?null:y(u.createElement("div",Object.assign({className:v},d),g))},KO=GO;var XO=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}=u.useContext(Ve),{prefixCls:r,size:i,className:o}=e,a=XO(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=yr();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const d=q(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},o,s);return u.createElement(bx.Provider,{value:i},u.createElement("div",Object.assign({},a,{className:d})))},QO=YO,kv=/^[\u4e00-\u9fa5]{2}$/,vg=kv.test.bind(kv);function Ov(e){return typeof e=="string"}function Cf(e){return e==="text"||e==="link"}function ZO(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ov(e.type)&&vg(e.props.children)?gd(e,{children:e.props.children.split("").join(n)}):Ov(e)?vg(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):sx(e)?J.createElement("span",null,e):e}function JO(e,t){let n=!1;const r=[];return J.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${i}`}else r.push(i);n=a}),J.Children.map(r,i=>ZO(i,t))}const e6=u.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=q(`${o}-icon`,n);return J.createElement("span",{ref:t,className:a,style:r},i)}),wx=e6,Rv=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:o}=e;const a=q(`${n}-loading-icon`,r);return J.createElement(wx,{prefixCls:n,className:a,style:i,ref:t},J.createElement(fx,{className:o}))}),Ef=()=>({width:0,opacity:0,transform:"scale(0)"}),$f=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),t6=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?J.createElement(Rv,{prefixCls:t,className:i,style:o}):J.createElement(xr,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Ef,onAppearActive:$f,onEnterStart:Ef,onEnterActive:$f,onLeaveStart:$f,onLeaveActive:Ef},(l,s)=>{let{className:c,style:d}=l;return J.createElement(Rv,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),d),ref:s,iconClassName:c})})},n6=t6,Pv=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),r6=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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Pv(`${t}-primary`,i),Pv(`${t}-danger`,o)]}},i6=r6,xx=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Sx=e=>{var t,n,r,i,o,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:Ec(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Ec(s),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ec(c);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",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},o6=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${W(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:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},fs(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Xr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),a6=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),l6=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),s6=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Yl=(e,t,n,r,i,o,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Xr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),oh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},s6(e))}),Cx=e=>Object.assign({},oh(e)),du=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ex=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cx(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Xr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yl(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),oh(e))}),c6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cx(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Xr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Yl(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Xr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Yl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oh(e))}),u6=e=>Object.assign(Object.assign({},Ex(e)),{borderStyle:"dashed"}),d6=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Xr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),du(e))}),f6=e=>Object.assign(Object.assign(Object.assign({},Xr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},du(e)),Xr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),p6=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ex(e),[`${t}-primary`]:c6(e),[`${t}-dashed`]:u6(e),[`${t}-link`]:d6(e),[`${t}-text`]:f6(e),[`${t}-ghost`]:Yl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ah=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:l,iconCls:s,buttonPaddingVertical:c}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:i,lineHeight:o,height:r,padding:`${W(c)} ${W(l)}`,borderRadius:a,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{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}`]:a6(e)},{[`${n}${n}-round${t}`]:l6(e)}]},g6=e=>{const t=Et(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ah(t,e.componentCls)},m6=e=>{const t=Et(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 ah(t,`${e.componentCls}-sm`)},h6=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ah(t,`${e.componentCls}-lg`)},v6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},y6=Xt("Button",e=>{const t=xx(e);return[o6(t),g6(t),m6(t),h6(t),v6(t),p6(t),i6(t)]},Sx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function b6(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function w6(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 $x(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({},b6(e,r,t)),w6(n,r,t))}}function x6(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 S6(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 C6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},x6(e,t)),S6(e.componentCls,t))}}const E6=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% + ${W(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% + ${W(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},$6=j5(["Button","compact"],e=>{const t=xx(e);return[$x(t),C6(t),E6(t)]},Sx);var k6=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{loading:i=!1,prefixCls:o,type:a="default",danger:l,shape:s="default",size:c,styles:d,disabled:f,className:p,rootClassName:y,children:b,icon:v,ghost:x=!1,block:m=!1,htmlType:g="button",classNames:h,style:w={}}=e,S=k6(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:C,autoInsertSpaceInButton:E,direction:$,button:k}=u.useContext(Ve),O=C("btn",o),[P,z,T]=y6(O),M=u.useContext(sd),A=f??M,B=u.useContext(bx),_=u.useMemo(()=>O6(i),[i]),[R,I]=u.useState(_.loading),[N,F]=u.useState(!1),U=zi(t,u.createRef()),K=u.Children.count(b)===1&&!v&&!Cf(a);u.useEffect(()=>{let ie=null;_.delay>0?ie=setTimeout(()=>{ie=null,I(!0)},_.delay):I(_.loading);function we(){ie&&(clearTimeout(ie),ie=null)}return we},[_]),u.useEffect(()=>{if(!U||!U.current||E===!1)return;const ie=U.current.textContent;K&&vg(ie)?N||F(!0):N&&F(!1)},[U]);const G=ie=>{const{onClick:we}=e;if(R||A){ie.preventDefault();return}we==null||we(ie)},X=E!==!1,{compactSize:Q,compactItemClassnames:Z}=WO(O,$),ne={large:"lg",small:"sm",middle:void 0},fe=Pa(ie=>{var we,Ce;return(Ce=(we=c??Q)!==null&&we!==void 0?we:B)!==null&&Ce!==void 0?Ce:ie}),re=fe&&ne[fe]||"",be=R?"loading":v,pe=Fn(S,["navigate"]),xe=q(O,z,T,{[`${O}-${s}`]:s!=="default"&&s,[`${O}-${a}`]:a,[`${O}-${re}`]:re,[`${O}-icon-only`]:!b&&b!==0&&!!be,[`${O}-background-ghost`]:x&&!Cf(a),[`${O}-loading`]:R,[`${O}-two-chinese-chars`]:N&&X&&!R,[`${O}-block`]:m,[`${O}-dangerous`]:!!l,[`${O}-rtl`]:$==="rtl"},Z,p,y,k==null?void 0:k.className),ce=Object.assign(Object.assign({},k==null?void 0:k.style),w),Re=q(h==null?void 0:h.icon,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.icon),ye=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=k==null?void 0:k.styles)===null||r===void 0?void 0:r.icon)||{}),oe=v&&!R?J.createElement(wx,{prefixCls:O,className:Re,style:ye},v):J.createElement(n6,{existIcon:!!v,prefixCls:O,loading:!!R}),Y=b||b===0?JO(b,K&&X):null;if(pe.href!==void 0)return P(J.createElement("a",Object.assign({},pe,{className:q(xe,{[`${O}-disabled`]:A}),href:A?void 0:pe.href,style:ce,onClick:G,ref:U,tabIndex:A?-1:0}),oe,Y));let ge=J.createElement("button",Object.assign({},S,{type:g,className:xe,style:ce,onClick:G,disabled:A,ref:U}),oe,Y,!!Z&&J.createElement($6,{key:"compact",prefixCls:O}));return Cf(a)||(ge=J.createElement(hx,{component:"Button",disabled:!!R},ge)),P(ge)},lh=u.forwardRef(R6);lh.Group=QO;lh.__ANT_BUTTON=!0;const $c=lh;var kx=u.createContext(null),_v=[];function P6(e,t){var n=u.useState(function(){if(!un())return null;var b=document.createElement("div");return b}),r=H(n,1),i=r[0],o=u.useRef(!1),a=u.useContext(kx),l=u.useState(_v),s=H(l,2),c=s[0],d=s[1],f=a||(o.current?void 0:function(b){d(function(v){var x=[b].concat(Se(v));return x})});function p(){i.parentElement||document.body.appendChild(i),o.current=!0}function y(){var b;(b=i.parentElement)===null||b===void 0||b.removeChild(i),o.current=!1}return xt(function(){return e?a?a(p):p():y(),y},[e]),xt(function(){c.length&&(c.forEach(function(b){return b()}),d(_v))},[c]),[i,f]}var kf;function _6(e){if(typeof document>"u")return 0;if(e||kf===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),kf=i-o}return kf}function Tv(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?_6():n}function T6(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:Tv(n),height:Tv(r)}}function I6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var z6="rc-util-locker-".concat(Date.now()),Iv=0;function B6(e){var t=!!e,n=u.useState(function(){return Iv+=1,"".concat(z6,"_").concat(Iv)}),r=H(n,1),i=r[0];xt(function(){if(t){var o=T6(document.body).width,a=I6();Ri(` + margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Jk=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:y}=e;return{[t]:{"&-success":Js(i,r,n,e,t),"&-info":Js(y,p,f,e,t),"&-warning":Js(l,a,o,e,t),"&-error":Object.assign(Object.assign({},Js(d,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},eO=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:W(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},tO=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),nO=Xt("Alert",e=>[Zk(e),Jk(e),eO(e)],tO);var rO=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{icon:t,prefixCls:n,type:r}=e,i=iO[r]||null;return t?sx(t,u.createElement("span",{className:`${n}-icon`},t),()=>({className:q(`${n}-icon`,{[t.props.className]:t.props.className})})):u.createElement(i,{className:`${n}-icon`})},aO=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i}=e,o=r===!0||r===void 0?u.createElement(pd,null):r;return t?u.createElement("button",{type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o):null},lO=e=>{const{description:t,prefixCls:n,message:r,banner:i,className:o,rootClassName:a,style:l,onMouseEnter:s,onMouseLeave:c,onClick:d,afterClose:f,showIcon:p,closable:y,closeText:b,closeIcon:v,action:x}=e,m=rO(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[g,h]=u.useState(!1),w=u.useRef(null),{getPrefixCls:E,direction:S,alert:C}=u.useContext(Ve),$=E("alert",n),[k,O,P]=nO($),z=R=>{var I;h(!0),(I=e.onClose)===null||I===void 0||I.call(e,R)},T=u.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),M=u.useMemo(()=>b?!0:typeof y=="boolean"?y:v!==!1&&v!==null&&v!==void 0,[b,v,y]),A=i&&p===void 0?!0:p,B=q($,`${$}-${T}`,{[`${$}-with-description`]:!!t,[`${$}-no-icon`]:!A,[`${$}-banner`]:!!i,[`${$}-rtl`]:S==="rtl"},C==null?void 0:C.className,o,a,P,O),_=ax(m,{aria:!0,data:!0});return k(u.createElement(xr,{visible:!g,motionName:`${$}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:R=>({maxHeight:R.offsetHeight}),onLeaveEnd:f},R=>{let{className:I,style:N}=R;return u.createElement("div",Object.assign({ref:w,"data-show":!g,className:q(B,I),style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.style),l),N),onMouseEnter:s,onMouseLeave:c,onClick:d,role:"alert"},_),A?u.createElement(oO,{description:t,icon:e.icon,prefixCls:$,type:T}):null,u.createElement("div",{className:`${$}-content`},r?u.createElement("div",{className:`${$}-message`},r):null,t?u.createElement("div",{className:`${$}-description`},t):null),x?u.createElement("div",{className:`${$}-action`},x):null,u.createElement(aO,{isClosable:M,prefixCls:$,closeIcon:b||(v??(C==null?void 0:C.closeIcon)),handleClose:z}))}))},cx=lO;function sO(e,t,n){return t=Ir(t),rd(e,ls()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}let cO=function(e){Bi(t,e);function t(){var n;return wn(this,t),n=sO(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return xn(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,children:o}=this.props,{error:a,info:l}=this.state,s=l&&l.componentStack?l.componentStack:null,c=typeof r>"u"?(a||"").toString():r,d=typeof i>"u"?s:i;return a?u.createElement(cx,{type:"error",message:c,description:u.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):o}}]),t}(u.Component);const uO=cO,ux=cx;ux.ErrorBoundary=uO;const dO=ux,md=e=>{const[,,,,t]=yr();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}}},fO={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const pO=fO;var gO=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:pO}))};const dx=u.forwardRef(gO),mO=J.createContext(void 0),fx=mO,Vi=100,hO=10,vO=Vi*hO,px={Modal:Vi,Drawer:Vi,Popover:Vi,Popconfirm:Vi,Tooltip:Vi,Tour:Vi},yO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function bO(e){return e in px}function rh(e,t){const[,n]=yr(),r=J.useContext(fx),i=bO(e);if(t!==void 0)return[t,t];let o=r??0;return i?(o+=(r?0:n.zIndexPopupBase)+px[e],o=Math.min(o,n.zIndexPopupBase+vO)):o+=yO[e],[r===void 0?t:o,o]}function vn(){vn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,_,R){B[_]=R.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(B,_,R){return Object.defineProperty(B,_,{value:R,enumerable:!0,configurable:!0,writable:!0}),B[_]}try{c({},"")}catch{c=function(R,I,N){return R[I]=N}}function d(B,_,R,I){var N=_&&_.prototype instanceof m?_:m,F=Object.create(N.prototype),D=new M(I||[]);return i(F,"_invoke",{value:O(B,R,D)}),F}function f(B,_,R){try{return{type:"normal",arg:B.call(_,R)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var p="suspendedStart",y="suspendedYield",b="executing",v="completed",x={};function m(){}function g(){}function h(){}var w={};c(w,a,function(){return this});var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=h.prototype=m.prototype=Object.create(w);function $(B){["next","throw","return"].forEach(function(_){c(B,_,function(R){return this._invoke(_,R)})})}function k(B,_){function R(N,F,D,U){var K=f(B[N],B,F);if(K.type!=="throw"){var G=K.arg,X=G.value;return X&&Me(X)=="object"&&r.call(X,"__await")?_.resolve(X.__await).then(function(Q){R("next",Q,D,U)},function(Q){R("throw",Q,D,U)}):_.resolve(X).then(function(Q){G.value=Q,D(G)},function(Q){return R("throw",Q,D,U)})}U(K.arg)}var I;i(this,"_invoke",{value:function(F,D){function U(){return new _(function(K,G){R(F,D,K,G)})}return I=I?I.then(U,U):U()}})}function O(B,_,R){var I=p;return function(N,F){if(I===b)throw new Error("Generator is already running");if(I===v){if(N==="throw")throw F;return{value:e,done:!0}}for(R.method=N,R.arg=F;;){var D=R.delegate;if(D){var U=P(D,R);if(U){if(U===x)continue;return U}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(I===p)throw I=v,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);I=b;var K=f(B,_,R);if(K.type==="normal"){if(I=R.done?v:y,K.arg===x)continue;return{value:K.arg,done:R.done}}K.type==="throw"&&(I=v,R.method="throw",R.arg=K.arg)}}}function P(B,_){var R=_.method,I=B.iterator[R];if(I===e)return _.delegate=null,R==="throw"&&B.iterator.return&&(_.method="return",_.arg=e,P(B,_),_.method==="throw")||R!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+R+"' method")),x;var N=f(I,B.iterator,_.arg);if(N.type==="throw")return _.method="throw",_.arg=N.arg,_.delegate=null,x;var F=N.arg;return F?F.done?(_[B.resultName]=F.value,_.next=B.nextLoc,_.method!=="return"&&(_.method="next",_.arg=e),_.delegate=null,x):F:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,x)}function z(B){var _={tryLoc:B[0]};1 in B&&(_.catchLoc=B[1]),2 in B&&(_.finallyLoc=B[2],_.afterLoc=B[3]),this.tryEntries.push(_)}function T(B){var _=B.completion||{};_.type="normal",delete _.arg,B.completion=_}function M(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(z,this),this.reset(!0)}function A(B){if(B||B===""){var _=B[a];if(_)return _.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var R=-1,I=function N(){for(;++R=0;--N){var F=this.tryEntries[N],D=F.completion;if(F.tryLoc==="root")return I("end");if(F.tryLoc<=this.prev){var U=r.call(F,"catchLoc"),K=r.call(F,"finallyLoc");if(U&&K){if(this.prev=0;--I){var N=this.tryEntries[I];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev=0;--R){var I=this.tryEntries[R];if(I.finallyLoc===_)return this.complete(I.completion,I.afterLoc),T(I),x}},catch:function(_){for(var R=this.tryEntries.length-1;R>=0;--R){var I=this.tryEntries[R];if(I.tryLoc===_){var N=I.completion;if(N.type==="throw"){var F=N.arg;T(I)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(_,R,I){return this.delegate={iterator:A(_),resultName:R,nextLoc:I},this.method==="next"&&(this.arg=e),x}},t}function Ev(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(c){n(c);return}l.done?t(s):Promise.resolve(s).then(r,i)}function go(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(s){Ev(o,r,i,a,l,"next",s)}function l(s){Ev(o,r,i,a,l,"throw",s)}a(void 0)})}}var ps=j({},P$),wO=ps.version,xO=ps.render,SO=ps.unmountComponentAtNode,hd;try{var CO=Number((wO||"").split(".")[0]);CO>=18&&(hd=ps.createRoot)}catch{}function $v(e){var t=ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Me(t)==="object"&&(t.usingClientEntryPoint=e)}var uu="__rc_react_root__";function EO(e,t){$v(!0);var n=t[uu]||hd(t);$v(!1),n.render(e),t[uu]=n}function $O(e,t){xO(e,t)}function kO(e,t){if(hd){EO(e,t);return}$O(e,t)}function OO(e){return mg.apply(this,arguments)}function mg(){return mg=go(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[uu])===null||i===void 0||i.unmount(),delete t[uu]}));case 1:case"end":return r.stop()}},e)})),mg.apply(this,arguments)}function RO(e){SO(e)}function PO(e){return hg.apply(this,arguments)}function hg(){return hg=go(vn().mark(function e(t){return vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(hd===void 0){r.next=2;break}return r.abrupt("return",OO(t));case 2:RO(t);case 3:case"end":return r.stop()}},e)})),hg.apply(this,arguments)}const wa=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ih=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},_O=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},TO=Zm("Wave",e=>[_O(e)]);function IO(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function xf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&IO(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function zO(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return xf(t)?t:xf(n)?n:xf(r)?r:null}const gx="ant-wave-target";function Sf(e){return Number.isNaN(e)?0:e}const BO=e=>{const{className:t,target:n,component:r}=e,i=u.useRef(null),[o,a]=u.useState(null),[l,s]=u.useState([]),[c,d]=u.useState(0),[f,p]=u.useState(0),[y,b]=u.useState(0),[v,x]=u.useState(0),[m,g]=u.useState(!1),h={left:c,top:f,width:y,height:v,borderRadius:l.map(S=>`${S}px`).join(" ")};o&&(h["--wave-color"]=o);function w(){const S=getComputedStyle(n);a(zO(n));const C=S.position==="static",{borderLeftWidth:$,borderTopWidth:k}=S;d(C?n.offsetLeft:Sf(-parseFloat($))),p(C?n.offsetTop:Sf(-parseFloat(k))),b(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:P,borderBottomLeftRadius:z,borderBottomRightRadius:T}=S;s([O,P,T,z].map(M=>Sf(parseFloat(M))))}if(u.useEffect(()=>{if(n){const S=Bt(()=>{w(),g(!0)});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(w),C.observe(n)),()=>{Bt.cancel(S),C==null||C.disconnect()}}},[]),!m)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(gx));return u.createElement(xr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(S,C)=>{var $;if(C.deadline||C.propertyName==="opacity"){const k=($=i.current)===null||$===void 0?void 0:$.parentElement;PO(k).then(()=>{k==null||k.remove()})}return!1}},S=>{let{className:C}=S;return u.createElement("div",{ref:i,className:q(t,{"wave-quick":E},C),style:h})})},MO=(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),kO(u.createElement(BO,Object.assign({},t,{target:e})),i)},NO=MO;function AO(e,t,n){const{wave:r}=u.useContext(Ve),[,i,o]=yr(),a=Kn(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${gx}`)||d,{showEffect:p}=r||{};(p||NO)(f,{className:t,token:i,component:n,event:c,hashId:o})}),l=u.useRef();return c=>{Bt.cancel(l.current),l.current=Bt(()=>{a(c)})}}const LO=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=u.useContext(Ve),o=u.useRef(null),a=i("wave"),[,l]=TO(a),s=AO(o,q(a,l),r);if(J.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!ih(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!J.isValidElement(t))return t??null;const c=po(t)?zi(t.ref,o):o;return gd(t,{ref:c})},mx=LO,Pa=e=>{const t=J.useContext(cd);return J.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},jO=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},FO=jO,DO=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},HO=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},hx=Xt("Space",e=>{const t=Et(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[DO(t),HO(t),FO(t)]},()=>({}),{resetStyle:!1});var vx=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=u.useContext(vd),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,l=i==="vertical"?"-vertical-":"-";return q(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},WO=e=>{let{children:t}=e;return u.createElement(vd.Provider,{value:null},t)},qO=e=>{var{children:t}=e,n=vx(e,["children"]);return u.createElement(vd.Provider,{value:n},t)},UO=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Ve),{size:r,direction:i,block:o,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=vx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Pa(h=>r??h),p=t("space-compact",a),[y,b]=hx(p),v=q(p,b,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:i==="vertical"},l,s),x=u.useContext(vd),m=vr(c),g=u.useMemo(()=>m.map((h,w)=>{const E=h&&h.key||`${p}-item-${w}`;return u.createElement(qO,{key:E,compactSize:f,compactDirection:i,isFirstItem:w===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:w===m.length-1&&(!x||(x==null?void 0:x.isLastItem))},h)}),[r,m,x]);return m.length===0?null:y(u.createElement("div",Object.assign({className:v},d),g))},GO=UO;var KO=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}=u.useContext(Ve),{prefixCls:r,size:i,className:o}=e,a=KO(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=yr();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const d=q(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},o,s);return u.createElement(yx.Provider,{value:i},u.createElement("div",Object.assign({},a,{className:d})))},YO=XO,kv=/^[\u4e00-\u9fa5]{2}$/,vg=kv.test.bind(kv);function Ov(e){return typeof e=="string"}function Cf(e){return e==="text"||e==="link"}function QO(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ov(e.type)&&vg(e.props.children)?gd(e,{children:e.props.children.split("").join(n)}):Ov(e)?vg(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):lx(e)?J.createElement("span",null,e):e}function ZO(e,t){let n=!1;const r=[];return J.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${i}`}else r.push(i);n=a}),J.Children.map(r,i=>QO(i,t))}const JO=u.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=q(`${o}-icon`,n);return J.createElement("span",{ref:t,className:a,style:r},i)}),bx=JO,Rv=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:o}=e;const a=q(`${n}-loading-icon`,r);return J.createElement(bx,{prefixCls:n,className:a,style:i,ref:t},J.createElement(dx,{className:o}))}),Ef=()=>({width:0,opacity:0,transform:"scale(0)"}),$f=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),e6=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?J.createElement(Rv,{prefixCls:t,className:i,style:o}):J.createElement(xr,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Ef,onAppearActive:$f,onEnterStart:Ef,onEnterActive:$f,onLeaveStart:$f,onLeaveActive:Ef},(l,s)=>{let{className:c,style:d}=l;return J.createElement(Rv,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),d),ref:s,iconClassName:c})})},t6=e6,Pv=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),n6=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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Pv(`${t}-primary`,i),Pv(`${t}-danger`,o)]}},r6=n6,wx=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Et(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},xx=e=>{var t,n,r,i,o,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:Ec(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Ec(s),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ec(c);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",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)}},i6=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${W(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:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ds(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Xr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),o6=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),a6=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),l6=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xl=(e,t,n,r,i,o,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Xr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),oh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},l6(e))}),Sx=e=>Object.assign({},oh(e)),du=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Cx=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sx(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Xr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xl(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Xl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),oh(e))}),s6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sx(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Xr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Xl(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Xr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Xl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oh(e))}),c6=e=>Object.assign(Object.assign({},Cx(e)),{borderStyle:"dashed"}),u6=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Xr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Xr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),du(e))}),d6=e=>Object.assign(Object.assign(Object.assign({},Xr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),du(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},du(e)),Xr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),f6=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Cx(e),[`${t}-primary`]:s6(e),[`${t}-dashed`]:c6(e),[`${t}-link`]:u6(e),[`${t}-text`]:d6(e),[`${t}-ghost`]:Xl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ah=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:l,iconCls:s,buttonPaddingVertical:c}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:i,lineHeight:o,height:r,padding:`${W(c)} ${W(l)}`,borderRadius:a,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{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}`]:o6(e)},{[`${n}${n}-round${t}`]:a6(e)}]},p6=e=>{const t=Et(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return ah(t,e.componentCls)},g6=e=>{const t=Et(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 ah(t,`${e.componentCls}-sm`)},m6=e=>{const t=Et(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ah(t,`${e.componentCls}-lg`)},h6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},v6=Xt("Button",e=>{const t=wx(e);return[i6(t),p6(t),g6(t),m6(t),h6(t),f6(t),r6(t)]},xx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function y6(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function b6(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 Ex(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({},y6(e,r,t)),b6(n,r,t))}}function w6(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 x6(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 S6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},w6(e,t)),x6(e.componentCls,t))}}const C6=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% + ${W(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% + ${W(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},E6=L5(["Button","compact"],e=>{const t=wx(e);return[Ex(t),S6(t),C6(t)]},xx);var $6=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{loading:i=!1,prefixCls:o,type:a="default",danger:l,shape:s="default",size:c,styles:d,disabled:f,className:p,rootClassName:y,children:b,icon:v,ghost:x=!1,block:m=!1,htmlType:g="button",classNames:h,style:w={}}=e,E=$6(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:C,direction:$,button:k}=u.useContext(Ve),O=S("btn",o),[P,z,T]=v6(O),M=u.useContext(sd),A=f??M,B=u.useContext(yx),_=u.useMemo(()=>k6(i),[i]),[R,I]=u.useState(_.loading),[N,F]=u.useState(!1),U=zi(t,u.createRef()),K=u.Children.count(b)===1&&!v&&!Cf(a);u.useEffect(()=>{let ie=null;_.delay>0?ie=setTimeout(()=>{ie=null,I(!0)},_.delay):I(_.loading);function we(){ie&&(clearTimeout(ie),ie=null)}return we},[_]),u.useEffect(()=>{if(!U||!U.current||C===!1)return;const ie=U.current.textContent;K&&vg(ie)?N||F(!0):N&&F(!1)},[U]);const G=ie=>{const{onClick:we}=e;if(R||A){ie.preventDefault();return}we==null||we(ie)},X=C!==!1,{compactSize:Q,compactItemClassnames:Z}=VO(O,$),ne={large:"lg",small:"sm",middle:void 0},fe=Pa(ie=>{var we,Ce;return(Ce=(we=c??Q)!==null&&we!==void 0?we:B)!==null&&Ce!==void 0?Ce:ie}),re=fe&&ne[fe]||"",be=R?"loading":v,pe=Fn(E,["navigate"]),xe=q(O,z,T,{[`${O}-${s}`]:s!=="default"&&s,[`${O}-${a}`]:a,[`${O}-${re}`]:re,[`${O}-icon-only`]:!b&&b!==0&&!!be,[`${O}-background-ghost`]:x&&!Cf(a),[`${O}-loading`]:R,[`${O}-two-chinese-chars`]:N&&X&&!R,[`${O}-block`]:m,[`${O}-dangerous`]:!!l,[`${O}-rtl`]:$==="rtl"},Z,p,y,k==null?void 0:k.className),ce=Object.assign(Object.assign({},k==null?void 0:k.style),w),Re=q(h==null?void 0:h.icon,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.icon),ye=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=k==null?void 0:k.styles)===null||r===void 0?void 0:r.icon)||{}),oe=v&&!R?J.createElement(bx,{prefixCls:O,className:Re,style:ye},v):J.createElement(t6,{existIcon:!!v,prefixCls:O,loading:!!R}),Y=b||b===0?ZO(b,K&&X):null;if(pe.href!==void 0)return P(J.createElement("a",Object.assign({},pe,{className:q(xe,{[`${O}-disabled`]:A}),href:A?void 0:pe.href,style:ce,onClick:G,ref:U,tabIndex:A?-1:0}),oe,Y));let ge=J.createElement("button",Object.assign({},E,{type:g,className:xe,style:ce,onClick:G,disabled:A,ref:U}),oe,Y,!!Z&&J.createElement(E6,{key:"compact",prefixCls:O}));return Cf(a)||(ge=J.createElement(mx,{component:"Button",disabled:!!R},ge)),P(ge)},lh=u.forwardRef(O6);lh.Group=YO;lh.__ANT_BUTTON=!0;const $c=lh;var $x=u.createContext(null),_v=[];function R6(e,t){var n=u.useState(function(){if(!un())return null;var b=document.createElement("div");return b}),r=V(n,1),i=r[0],o=u.useRef(!1),a=u.useContext($x),l=u.useState(_v),s=V(l,2),c=s[0],d=s[1],f=a||(o.current?void 0:function(b){d(function(v){var x=[b].concat(Se(v));return x})});function p(){i.parentElement||document.body.appendChild(i),o.current=!0}function y(){var b;(b=i.parentElement)===null||b===void 0||b.removeChild(i),o.current=!1}return xt(function(){return e?a?a(p):p():y(),y},[e]),xt(function(){c.length&&(c.forEach(function(b){return b()}),d(_v))},[c]),[i,f]}var kf;function P6(e){if(typeof document>"u")return 0;if(e||kf===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),kf=i-o}return kf}function Tv(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?P6():n}function _6(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:Tv(n),height:Tv(r)}}function T6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var I6="rc-util-locker-".concat(Date.now()),Iv=0;function z6(e){var t=!!e,n=u.useState(function(){return Iv+=1,"".concat(I6,"_").concat(Iv)}),r=V(n,1),i=r[0];xt(function(){if(t){var o=_6(document.body).width,a=T6();Ri(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` -}`),i)}else Ul(i);return function(){Ul(i)}},[t,i])}var zv=!1;function M6(e){return typeof e=="boolean"&&(zv=e),zv}var Bv=function(t){return t===!1?!1:!un()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},yd=u.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,l=e.children,s=u.useState(n),c=H(s,2),d=c[0],f=c[1],p=d||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var y=u.useState(function(){return Bv(i)}),b=H(y,2),v=b[0],x=b[1];u.useEffect(function(){var P=Bv(i);x(P??null)});var m=P6(p&&!v),g=H(m,2),h=g[0],w=g[1],S=v??h;B6(r&&n&&un()&&(S===h||S===document.body));var C=null;if(l&&po(l)&&t){var E=l;C=E.ref}var $=Oa(C,t);if(!p||!un()||v===void 0)return null;var k=S===!1||M6(),O=l;return t&&(O=u.cloneElement(l,{ref:$})),u.createElement(kx.Provider,{value:w},k?O:ka.createPortal(O,S))}),Ox=u.createContext({});function N6(){var e=j({},Ca);return e.useId}var Mv=0,Nv=N6();const Rx=Nv?function(t){var n=Nv();return t||n}:function(t){var n=u.useState("ssr-id"),r=H(n,2),i=r[0],o=r[1];return u.useEffect(function(){var a=Mv;Mv+=1,o("rc_unique_".concat(a))},[]),t||i};function Av(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Lv(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function A6(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Lv(i),n.top+=Lv(i,!0),n}const L6=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var jv={width:0,height:0,overflow:"hidden",outline:"none"},j6=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,y=e.bodyProps,b=e.modalRender,v=e.onMouseDown,x=e.onMouseUp,m=e.holderRef,g=e.visible,h=e.forceRender,w=e.width,S=e.height,C=e.classNames,E=e.styles,$=J.useContext(Ox),k=$.panel,O=Oa(m,k),P=u.useRef(),z=u.useRef();J.useImperativeHandle(t,function(){return{focus:function(){var I;(I=P.current)===null||I===void 0||I.focus()},changeActive:function(I){var N=document,F=N.activeElement;I&&F===z.current?P.current.focus():!I&&F===P.current&&z.current.focus()}}});var T={};w!==void 0&&(T.width=w),S!==void 0&&(T.height=S);var M;l&&(M=J.createElement("div",{className:q("".concat(n,"-footer"),C==null?void 0:C.footer),style:j({},E==null?void 0:E.footer)},l));var A;o&&(A=J.createElement("div",{className:q("".concat(n,"-header"),C==null?void 0:C.header),style:j({},E==null?void 0:E.header)},J.createElement("div",{className:"".concat(n,"-title"),id:a},o)));var B;s&&(B=J.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:"".concat(n,"-close")},c||J.createElement("span",{className:"".concat(n,"-close-x")})));var _=J.createElement("div",{className:q("".concat(n,"-content"),C==null?void 0:C.content),style:E==null?void 0:E.content},B,A,J.createElement("div",ae({className:q("".concat(n,"-body"),C==null?void 0:C.body),style:j(j({},p),E==null?void 0:E.body)},y),f),M);return J.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:O,style:j(j({},i),T),className:q(n,r),onMouseDown:v,onMouseUp:x},J.createElement("div",{tabIndex:0,ref:P,style:jv,"aria-hidden":"true"}),J.createElement(L6,{shouldUpdate:g||h},b?b(_):_),J.createElement("div",{tabIndex:0,ref:z,style:jv,"aria-hidden":"true"}))}),Px=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,y=u.useRef(),b=u.useState(),v=H(b,2),x=v[0],m=v[1],g={};x&&(g.transformOrigin=x);function h(){var w=A6(y.current);m(p?"".concat(p.x-w.left,"px ").concat(p.y-w.top,"px"):"")}return u.createElement(xr,{visible:a,onVisibleChanged:f,onAppearPrepare:h,onEnterPrepare:h,forceRender:l,motionName:c,removeOnLeave:s,ref:y},function(w,S){var C=w.className,E=w.style;return u.createElement(j6,ae({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:S,style:j(j(j({},E),i),g),className:q(o,C)}))})});Px.displayName="Content";function F6(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,o=e.motionName,a=e.className;return u.createElement(xr,{key:"mask",visible:r,motionName:o,leavedClassName:"".concat(t,"-mask-hidden")},function(l,s){var c=l.className,d=l.style;return u.createElement("div",ae({ref:s,style:j(j({},d),n),className:q("".concat(t,"-mask"),c,a)},i))})}function D6(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,i=e.visible,o=i===void 0?!1:i,a=e.keyboard,l=a===void 0?!0:a,s=e.focusTriggerAfterClose,c=s===void 0?!0:s,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,y=e.onClose,b=e.afterOpenChange,v=e.afterClose,x=e.transitionName,m=e.animation,g=e.closable,h=g===void 0?!0:g,w=e.mask,S=w===void 0?!0:w,C=e.maskTransitionName,E=e.maskAnimation,$=e.maskClosable,k=$===void 0?!0:$,O=e.maskStyle,P=e.maskProps,z=e.rootClassName,T=e.classNames,M=e.styles,A=u.useRef(),B=u.useRef(),_=u.useRef(),R=u.useState(o),I=H(R,2),N=I[0],F=I[1],D=Rx();function U(){Up(B.current,document.activeElement)||(A.current=document.activeElement)}function K(){if(!Up(B.current,document.activeElement)){var pe;(pe=_.current)===null||pe===void 0||pe.focus()}}function G(pe){if(pe)K();else{if(F(!1),S&&A.current&&c){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}N&&(v==null||v())}b==null||b(pe)}function X(pe){y==null||y(pe)}var Q=u.useRef(!1),Z=u.useRef(),ne=function(){clearTimeout(Z.current),Q.current=!0},fe=function(){Z.current=setTimeout(function(){Q.current=!1})},re=null;k&&(re=function(xe){Q.current?Q.current=!1:B.current===xe.target&&X(xe)});function be(pe){if(l&&pe.keyCode===le.ESC){pe.stopPropagation(),X(pe);return}o&&pe.keyCode===le.TAB&&_.current.changeActive(!pe.shiftKey)}return u.useEffect(function(){o&&(F(!0),U())},[o]),u.useEffect(function(){return function(){clearTimeout(Z.current)}},[]),u.createElement("div",ae({className:q("".concat(n,"-root"),z)},lx(e,{data:!0})),u.createElement(F6,{prefixCls:n,visible:S&&o,motionName:Av(n,C,E),style:j(j({zIndex:r},O),M==null?void 0:M.mask),maskProps:P,className:T==null?void 0:T.mask}),u.createElement("div",ae({tabIndex:-1,onKeyDown:be,className:q("".concat(n,"-wrap"),f,T==null?void 0:T.wrapper),ref:B,onClick:re,style:j(j(j({zIndex:r},d),M==null?void 0:M.wrapper),{},{display:N?null:"none"})},p),u.createElement(Px,ae({},e,{onMouseDown:ne,onMouseUp:fe,ref:_,closable:h,ariaId:D,prefixCls:n,visible:o&&N,onClose:X,onVisibleChanged:G,motionName:Av(n,x,m)}))))}var _x=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,l=t.afterClose,s=t.panelRef,c=u.useState(n),d=H(c,2),f=d[0],p=d[1],y=u.useMemo(function(){return{panel:s}},[s]);return u.useEffect(function(){n&&p(!0)},[n]),!i&&a&&!f?null:u.createElement(Ox.Provider,{value:y},u.createElement(yd,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(D6,ae({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),p(!1)}}))))};_x.displayName="Dialog";var Tx=function(t){if(un()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},H6=function(t,n){if(!Tx(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function Fv(e,t){return!Array.isArray(e)&&t!==void 0?H6(e,t):Tx(e)}var Xi="RC_FORM_INTERNAL_HOOKS",at=function(){mn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xa=u.createContext({getFieldValue:at,getFieldsValue:at,getFieldError:at,getFieldWarning:at,getFieldsError:at,isFieldsTouched:at,isFieldTouched:at,isFieldValidating:at,isFieldsValidating:at,resetFields:at,setFields:at,setFieldValue:at,setFieldsValue:at,validateFields:at,submit:at,getInternalHooks:function(){return at(),{dispatch:at,initEntityValue:at,registerField:at,useSubscribe:at,setInitialValues:at,destroyForm:at,setCallbacks:at,registerWatch:at,getFields:at,setValidateMessages:at,setPreserve:at,getInitialValue:at}}}),fu=u.createContext(null);function yg(e){return e==null?[]:Array.isArray(e)?e:[e]}function V6(e){return e&&!!e._init}function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kc(e,t,n){return q6()?kc=Reflect.construct.bind():kc=function(i,o,a){var l=[null];l.push.apply(l,o);var s=Function.bind.apply(i,l),c=new s;return a&&Ql(c,a.prototype),c},kc.apply(null,arguments)}function U6(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function wg(e){var t=typeof Map=="function"?new Map:void 0;return wg=function(r){if(r===null||!U6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return kc(r,arguments,bg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ql(i,r)},wg(e)}var G6=/%[sdj%]/g,K6=function(){};function xg(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 Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){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 l}});return a}return e}function X6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ht(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||X6(t)&&typeof e=="string"&&!e)}function Y6(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,l||[]),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function Dv(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kc(e,t,n){return W6()?kc=Reflect.construct.bind():kc=function(i,o,a){var l=[null];l.push.apply(l,o);var s=Function.bind.apply(i,l),c=new s;return a&&Yl(c,a.prototype),c},kc.apply(null,arguments)}function q6(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function wg(e){var t=typeof Map=="function"?new Map:void 0;return wg=function(r){if(r===null||!q6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return kc(r,arguments,bg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Yl(i,r)},wg(e)}var U6=/%[sdj%]/g,G6=function(){};function xg(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 Mn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){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 l}});return a}return e}function K6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ht(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||K6(t)&&typeof e=="string"&&!e)}function X6(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,l||[]),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function Dv(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ll={integer:function(t){return ll.number(t)&&parseInt(t,10)===t},float:function(t){return ll.number(t)&&!ll.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ll.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(nR())},hex:function(t){return typeof t=="string"&&!!t.match(qv.hex)}},rR=function(t,n,r,i,o){if(t.required&&n===void 0){Ix(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?ll[l](n)||i.push(Mn(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&i.push(Mn(o.messages.types[l],t.fullField,t.type))},iR=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",y=typeof n=="string",b=Array.isArray(n);if(p?f="number":y?f="string":b&&(f="array"),!f)return!1;b&&(d=n.length),y&&(d=n.replace(c,"_").length),a?d!==t.len&&i.push(Mn(o.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?i.push(Mn(o.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&i.push(Mn(o.messages[f].range,t.fullField,t.min,t.max))},Co="enum",oR=function(t,n,r,i,o){t[Co]=Array.isArray(t[Co])?t[Co]:[],t[Co].indexOf(n)===-1&&i.push(Mn(o.messages[Co],t.fullField,t[Co].join(", ")))},aR=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Mn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Mn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ue={required:Ix,whitespace:tR,type:rR,range:iR,enum:oR,pattern:aR},lR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"string")&&!t.required)return r();Ue.required(t,n,i,a,o,"string"),Ht(n,"string")||(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o),Ue.pattern(t,n,i,a,o),t.whitespace===!0&&Ue.whitespace(t,n,i,a,o))}r(a)},sR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},cR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},uR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},dR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),Ht(n)||Ue.type(t,n,i,a,o)}r(a)},fR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},pR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},gR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ue.required(t,n,i,a,o,"array"),n!=null&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},mR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},hR="enum",vR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue[hR](t,n,i,a,o)}r(a)},yR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"string")&&!t.required)return r();Ue.required(t,n,i,a,o),Ht(n,"string")||Ue.pattern(t,n,i,a,o)}r(a)},bR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"date")&&!t.required)return r();if(Ue.required(t,n,i,a,o),!Ht(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Ue.type(t,s,i,a,o),s&&Ue.range(t,s.getTime(),i,a,o)}}r(a)},wR=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":typeof n;Ue.required(t,n,i,a,o,l),r(a)},Of=function(t,n,r,i,o){var a=t.type,l=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ht(n,a)&&!t.required)return r();Ue.required(t,n,i,l,o,a),Ht(n,a)||Ue.type(t,n,i,l,o)}r(l)},xR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o)}r(a)},Cl={string:lR,method:sR,number:cR,boolean:uR,regexp:dR,integer:fR,float:pR,array:gR,object:mR,enum:vR,pattern:yR,date:bR,url:Of,hex:Of,email:Of,required:wR,any:xR};function Sg(){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 Cg=Sg(),ms=function(){function e(n){this.rules=null,this._messages=Cg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Wv(Sg(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var l=r,s=i,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(v){var x=[],m={};function g(w){if(Array.isArray(w)){var S;x=(S=x).concat.apply(S,w)}else x.push(w)}for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Bx(t,r,n)})}function Bx(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 kR(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Me(e)!=="object"||Me(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Se(i).every(function(o){var a=e[o],l=t[o];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function OR(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Me(t.target)==="object"&&e in t.target?t.target[e]:t}function Xv(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(Se(e.slice(0,n)),[i],Se(e.slice(n,t)),Se(e.slice(t+1,r))):o<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[i],Se(e.slice(n+1,r))):e}var RR=["name"],Vn=[];function Yv(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var sh=function(e){Bi(n,e);var t=cs(n);function n(r){var i;if(wn(this,n),i=t.call(this,r),L(Qe(i),"state",{resetCount:0}),L(Qe(i),"cancelRegisterFunc",null),L(Qe(i),"mounted",!1),L(Qe(i),"touched",!1),L(Qe(i),"dirty",!1),L(Qe(i),"validatePromise",void 0),L(Qe(i),"prevValidating",void 0),L(Qe(i),"errors",Vn),L(Qe(i),"warnings",Vn),L(Qe(i),"cancelRegister",function(){var s=i.props,c=s.preserve,d=s.isListField,f=s.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,c,Tt(f)),i.cancelRegisterFunc=null}),L(Qe(i),"getNamePath",function(){var s=i.props,c=s.name,d=s.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Se(p),Se(c)):[]}),L(Qe(i),"getRules",function(){var s=i.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),L(Qe(i),"refresh",function(){i.mounted&&i.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),L(Qe(i),"metaCache",null),L(Qe(i),"triggerMetaEvent",function(s){var c=i.props.onMetaChange;if(c){var d=j(j({},i.getMeta()),{},{destroy:s});us(i.metaCache,d)||c(d),i.metaCache=d}else i.metaCache=null}),L(Qe(i),"onStoreChange",function(s,c,d){var f=i.props,p=f.shouldUpdate,y=f.dependencies,b=y===void 0?[]:y,v=f.onReset,x=d.store,m=i.getNamePath(),g=i.getValue(s),h=i.getValue(x),w=c&&sa(c,m);switch(d.type==="valueUpdate"&&d.source==="external"&&g!==h&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent()),d.type){case"reset":if(!c||w){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(p){i.reRender();return}break}case"setField":{var S=d.data;if(w){"touched"in S&&(i.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(i.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(i.errors=S.errors||Vn),"warnings"in S&&(i.warnings=S.warnings||Vn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in S&&sa(c,m,!0)){i.reRender();return}if(p&&!m.length&&Yv(p,s,x,g,h,d)){i.reRender();return}break}case"dependenciesUpdate":{var C=b.map(Tt);if(C.some(function(E){return sa(d.relatedFields,E)})){i.reRender();return}break}default:if(w||(!b.length||m.length||p)&&Yv(p,s,x,g,h,d)){i.reRender();return}break}p===!0&&i.reRender()}),L(Qe(i),"validateRules",function(s){var c=i.getNamePath(),d=i.getValue(),f=s||{},p=f.triggerName,y=f.validateOnly,b=y===void 0?!1:y,v=Promise.resolve().then(go(vn().mark(function x(){var m,g,h,w,S,C,E;return vn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(i.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(m=i.props,g=m.validateFirst,h=g===void 0?!1:g,w=m.messageVariables,S=m.validateDebounce,C=i.getRules(),p&&(C=C.filter(function(O){return O}).filter(function(O){var P=O.validateTrigger;if(!P)return!0;var z=yg(P);return z.includes(p)})),!(S&&p)){k.next=10;break}return k.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(i.validatePromise===v){k.next=10;break}return k.abrupt("return",[]);case 10:return E=CR(c,d,C,s,h,w),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vn;if(i.validatePromise===v){var P;i.validatePromise=null;var z=[],T=[];(P=O.forEach)===null||P===void 0||P.call(O,function(M){var A=M.rule.warningOnly,B=M.errors,_=B===void 0?Vn:B;A?T.push.apply(T,Se(_)):z.push.apply(z,Se(_))}),i.errors=z,i.warnings=T,i.triggerMetaEvent(),i.reRender()}}),k.abrupt("return",E);case 13:case"end":return k.stop()}},x)})));return b||(i.validatePromise=v,i.dirty=!0,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent(),i.reRender()),v}),L(Qe(i),"isFieldValidating",function(){return!!i.validatePromise}),L(Qe(i),"isFieldTouched",function(){return i.touched}),L(Qe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var s=i.props.fieldContext,c=s.getInternalHooks(Xi),d=c.getInitialValue;return d(i.getNamePath())!==void 0}),L(Qe(i),"getErrors",function(){return i.errors}),L(Qe(i),"getWarnings",function(){return i.warnings}),L(Qe(i),"isListField",function(){return i.props.isListField}),L(Qe(i),"isList",function(){return i.props.isList}),L(Qe(i),"isPreserve",function(){return i.props.preserve}),L(Qe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var s={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return s}),L(Qe(i),"getOnlyChild",function(s){if(typeof s=="function"){var c=i.getMeta();return j(j({},i.getOnlyChild(s(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var d=vr(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Qe(i),"getValue",function(s){var c=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Or(s||c(!0),d)}),L(Qe(i),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,y=c.normalize,b=c.valuePropName,v=c.getValueProps,x=c.fieldContext,m=f!==void 0?f:x.validateTrigger,g=i.getNamePath(),h=x.getInternalHooks,w=x.getFieldsValue,S=h(Xi),C=S.dispatch,E=i.getValue(),$=v||function(z){return L({},b,z)},k=s[d],O=j(j({},s),$(E));O[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var z,T=arguments.length,M=new Array(T),A=0;A=0&&O<=P.length?(d.keys=[].concat(Se(d.keys.slice(0,O)),[d.id],Se(d.keys.slice(O))),h([].concat(Se(P.slice(0,O)),[k],Se(P.slice(O))))):(d.keys=[].concat(Se(d.keys),[d.id]),h([].concat(Se(P),[k]))),d.id+=1},remove:function(k){var O=S(),P=new Set(Array.isArray(k)?k:[k]);P.size<=0||(d.keys=d.keys.filter(function(z,T){return!P.has(T)}),h(O.filter(function(z,T){return!P.has(T)})))},move:function(k,O){if(k!==O){var P=S();k<0||k>=P.length||O<0||O>=P.length||(d.keys=Xv(d.keys,k,O),h(Xv(P,k,O)))}}},E=g||[];return Array.isArray(E)||(E=[]),r(E.map(function($,k){var O=d.keys[k];return O===void 0&&(d.keys[k]=d.id,O=d.keys[k],d.id+=1),{name:k,key:O,isListField:!0}}),C,x)})))}function _R(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Nx="__@field_split__";function Rf(e){return e.map(function(t){return"".concat(Me(t),":").concat(t)}).join(Nx)}var Eo=function(){function e(){wn(this,e),L(this,"kvs",new Map)}return xn(e,[{key:"set",value:function(n,r){this.kvs.set(Rf(n),r)}},{key:"get",value:function(n){return this.kvs.get(Rf(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(Rf(n))}},{key:"map",value:function(n){return Se(this.kvs.entries()).map(function(r){var i=H(r,2),o=i[0],a=i[1],l=o.split(Nx);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=H(c,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),TR=["name"],IR=xn(function e(t){var n=this;wn(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===Xi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(mn(!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=Xo(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var s=l.key;a=cr(a,s,Or(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(){var r=new Eo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),L(this,"getInitialValue",function(r){var i=Or(n.initialValues,r);return r.length?Xo(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 Eo;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=Tt(o);return i.get(a)||{INVALIDATE_NAME_PATH:Tt(o)}})}),L(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,l;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Me(r)==="object"&&(l=r.strict,a=r.filter),o===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return s.forEach(function(d){var f,p,y="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var b,v;if((b=(v=d).isList)!==null&&b!==void 0&&b.call(v))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)c.push(y);else{var x="getMeta"in d?d.getMeta():null;a(x)&&c.push(y)}}),Kv(n.store,c.map(Tt))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var i=Tt(r);return Or(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:Tt(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var i=Tt(r),o=n.getFieldsError([i])[0];return o.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Tt(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 Eo,o=n.getFieldEntities(!0);o.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=i.get(d)||new Set;f.add({entity:s,value:c}),i.set(d,f)}});var a=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),y=n.getInitialValue(p);if(y!==void 0)mn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var b=i.get(p);if(b&&b.size>1)mn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var v=n.getFieldValue(p),x=d.isListField();!x&&(!r.skipExist||v===void 0)&&n.updateStore(cr(n.store,p,Se(b)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=i.get(s);if(c){var d;(d=l).push.apply(d,Se(Se(c).map(function(f){return f.entity})))}})):l=o,a(l)}),L(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Xo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Tt);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(cr(n.store,a,l))}),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 l=a.name,s=Ne(a,TR),c=Tt(l);o.push(c),"value"in s&&n.updateStore(cr(n.store,c,s.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(),l=o.getMeta(),s=j(j({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return i}),L(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=Or(n.store,o);a===void 0&&n.updateStore(cr(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,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Bx(f.getNamePath(),i)})){var d=n.store;n.updateStore(cr(d,i,c,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,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,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),L(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=j(j({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(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(Se(o))}),o}),L(this,"updateValue",function(r,i){var o=Tt(r),a=n.store;n.updateStore(cr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),s=n.callbacks.onValuesChange;if(s){var c=Kv(n.store,[o]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Se(l)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Xo(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 Eo;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=Tt(d);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(c){var d=a.get(c)||new Set;d.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),s(p))}})};return l(r),o}),L(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Eo;i.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var d=c.name;return sa(r,d)});s.length&&o(s,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 l=!!o,s=l?o.map(Tt):[],c=[],d=String(Date.now()),f=new Set,p=a||{},y=p.recursive,b=p.dirty;n.getFieldEntities(!0).forEach(function(g){if(l||s.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(b&&!g.isFieldDirty())){var h=g.getNamePath();if(f.add(h.join(d)),!l||sa(s,h,y)){var w=g.validateRules(j({validateMessages:j(j({},zx),n.validateMessages)},a));c.push(w.then(function(){return{name:h,errors:[],warnings:[]}}).catch(function(S){var C,E=[],$=[];return(C=S.forEach)===null||C===void 0||C.call(S,function(k){var O=k.rule.warningOnly,P=k.errors;O?$.push.apply($,Se(P)):E.push.apply(E,Se(P))}),E.length?Promise.reject({name:h,errors:E,warnings:$}):{name:h,errors:E,warnings:$}}))}}});var v=_R(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var h=g.map(function(w){var S=w.name;return S});n.notifyObservers(n.store,h,{type:"validateFinish"}),n.triggerOnFieldsChange(h,g)});var x=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(g){var h=g.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:h,outOfDate:n.lastValidatePromise!==v})});x.catch(function(g){return g});var m=s.filter(function(g){return f.has(g.join(d))});return n.triggerOnFieldsChange(m),x}),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 Ax(e){var t=u.useRef(),n=u.useState({}),r=H(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new IR(o);t.current=a.getForm()}return[t.current]}var Rg=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zR=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=u.useContext(Rg),l=u.useRef({});return u.createElement(Rg.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),a.triggerFormChange(c,d)},triggerFormFinish:function(c,d){i&&i(c,{values:d,forms:l.current}),a.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=j(j({},l.current),{},L({},c,d))),a.registerForm(c,d)},unregisterForm:function(c){var d=j({},l.current);delete d[c],l.current=d,a.unregisterForm(c)}})},o)},BR=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],MR=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,y=p===void 0?"onChange":p,b=t.onValuesChange,v=t.onFieldsChange,x=t.onFinish,m=t.onFinishFailed,g=Ne(t,BR),h=u.useContext(Rg),w=Ax(a),S=H(w,1),C=S[0],E=C.getInternalHooks(Xi),$=E.useSubscribe,k=E.setInitialValues,O=E.setCallbacks,P=E.setValidateMessages,z=E.setPreserve,T=E.destroyForm;u.useImperativeHandle(n,function(){return C}),u.useEffect(function(){return h.registerForm(r,C),function(){h.unregisterForm(r)}},[h,C,r]),P(j(j({},h.validateMessages),f)),O({onValuesChange:b,onFieldsChange:function(D){if(h.triggerFormChange(r,D),v){for(var U=arguments.length,K=new Array(U>1?U-1:0),G=1;G({animationDuration:e,animationFillMode:"both"}),DR=e=>({animationDuration:e,animationFillMode:"both"}),ch=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+i+"$"),s=function(w){return w&&w.exact?o:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+i+t(w)+")","g")};s.v4=function(h){return h&&h.exact?a:new RegExp(""+t(h)+n+t(h),"g")},s.v6=function(h){return h&&h.exact?l:new RegExp(""+t(h)+i+t(h),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=s.v4().source,p=s.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',g="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+y+b+v+")"+x+m;return ec=new RegExp("(?:^"+g+"$)","i"),ec},qv={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},al={integer:function(t){return al.number(t)&&parseInt(t,10)===t},float:function(t){return al.number(t)&&!al.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!al.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(tR())},hex:function(t){return typeof t=="string"&&!!t.match(qv.hex)}},nR=function(t,n,r,i,o){if(t.required&&n===void 0){Tx(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?al[l](n)||i.push(Mn(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&i.push(Mn(o.messages.types[l],t.fullField,t.type))},rR=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",y=typeof n=="string",b=Array.isArray(n);if(p?f="number":y?f="string":b&&(f="array"),!f)return!1;b&&(d=n.length),y&&(d=n.replace(c,"_").length),a?d!==t.len&&i.push(Mn(o.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?i.push(Mn(o.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&i.push(Mn(o.messages[f].range,t.fullField,t.min,t.max))},Co="enum",iR=function(t,n,r,i,o){t[Co]=Array.isArray(t[Co])?t[Co]:[],t[Co].indexOf(n)===-1&&i.push(Mn(o.messages[Co],t.fullField,t[Co].join(", ")))},oR=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Mn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Mn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ue={required:Tx,whitespace:eR,type:nR,range:rR,enum:iR,pattern:oR},aR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"string")&&!t.required)return r();Ue.required(t,n,i,a,o,"string"),Ht(n,"string")||(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o),Ue.pattern(t,n,i,a,o),t.whitespace===!0&&Ue.whitespace(t,n,i,a,o))}r(a)},lR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},sR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},cR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},uR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),Ht(n)||Ue.type(t,n,i,a,o)}r(a)},dR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},fR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},pR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ue.required(t,n,i,a,o,"array"),n!=null&&(Ue.type(t,n,i,a,o),Ue.range(t,n,i,a,o))}r(a)},gR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue.type(t,n,i,a,o)}r(a)},mR="enum",hR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o),n!==void 0&&Ue[mR](t,n,i,a,o)}r(a)},vR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"string")&&!t.required)return r();Ue.required(t,n,i,a,o),Ht(n,"string")||Ue.pattern(t,n,i,a,o)}r(a)},yR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n,"date")&&!t.required)return r();if(Ue.required(t,n,i,a,o),!Ht(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Ue.type(t,s,i,a,o),s&&Ue.range(t,s.getTime(),i,a,o)}}r(a)},bR=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":typeof n;Ue.required(t,n,i,a,o,l),r(a)},Of=function(t,n,r,i,o){var a=t.type,l=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ht(n,a)&&!t.required)return r();Ue.required(t,n,i,l,o,a),Ht(n,a)||Ue.type(t,n,i,l,o)}r(l)},wR=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ht(n)&&!t.required)return r();Ue.required(t,n,i,a,o)}r(a)},Sl={string:aR,method:lR,number:sR,boolean:cR,regexp:uR,integer:dR,float:fR,array:pR,object:gR,enum:hR,pattern:vR,date:yR,url:Of,hex:Of,email:Of,required:bR,any:wR};function Sg(){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 Cg=Sg(),gs=function(){function e(n){this.rules=null,this._messages=Cg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Wv(Sg(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var l=r,s=i,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(v){var x=[],m={};function g(w){if(Array.isArray(w)){var E;x=(E=x).concat.apply(E,w)}else x.push(w)}for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return zx(t,r,n)})}function zx(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 $R(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Me(e)!=="object"||Me(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Se(i).every(function(o){var a=e[o],l=t[o];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function kR(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Me(t.target)==="object"&&e in t.target?t.target[e]:t}function Xv(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(Se(e.slice(0,n)),[i],Se(e.slice(n,t)),Se(e.slice(t+1,r))):o<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[i],Se(e.slice(n+1,r))):e}var OR=["name"],Vn=[];function Yv(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var sh=function(e){Bi(n,e);var t=ss(n);function n(r){var i;if(wn(this,n),i=t.call(this,r),L(Qe(i),"state",{resetCount:0}),L(Qe(i),"cancelRegisterFunc",null),L(Qe(i),"mounted",!1),L(Qe(i),"touched",!1),L(Qe(i),"dirty",!1),L(Qe(i),"validatePromise",void 0),L(Qe(i),"prevValidating",void 0),L(Qe(i),"errors",Vn),L(Qe(i),"warnings",Vn),L(Qe(i),"cancelRegister",function(){var s=i.props,c=s.preserve,d=s.isListField,f=s.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,c,Tt(f)),i.cancelRegisterFunc=null}),L(Qe(i),"getNamePath",function(){var s=i.props,c=s.name,d=s.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return c!==void 0?[].concat(Se(p),Se(c)):[]}),L(Qe(i),"getRules",function(){var s=i.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),L(Qe(i),"refresh",function(){i.mounted&&i.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),L(Qe(i),"metaCache",null),L(Qe(i),"triggerMetaEvent",function(s){var c=i.props.onMetaChange;if(c){var d=j(j({},i.getMeta()),{},{destroy:s});cs(i.metaCache,d)||c(d),i.metaCache=d}else i.metaCache=null}),L(Qe(i),"onStoreChange",function(s,c,d){var f=i.props,p=f.shouldUpdate,y=f.dependencies,b=y===void 0?[]:y,v=f.onReset,x=d.store,m=i.getNamePath(),g=i.getValue(s),h=i.getValue(x),w=c&&sa(c,m);switch(d.type==="valueUpdate"&&d.source==="external"&&g!==h&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent()),d.type){case"reset":if(!c||w){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(p){i.reRender();return}break}case"setField":{var E=d.data;if(w){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||Vn),"warnings"in E&&(i.warnings=E.warnings||Vn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&sa(c,m,!0)){i.reRender();return}if(p&&!m.length&&Yv(p,s,x,g,h,d)){i.reRender();return}break}case"dependenciesUpdate":{var S=b.map(Tt);if(S.some(function(C){return sa(d.relatedFields,C)})){i.reRender();return}break}default:if(w||(!b.length||m.length||p)&&Yv(p,s,x,g,h,d)){i.reRender();return}break}p===!0&&i.reRender()}),L(Qe(i),"validateRules",function(s){var c=i.getNamePath(),d=i.getValue(),f=s||{},p=f.triggerName,y=f.validateOnly,b=y===void 0?!1:y,v=Promise.resolve().then(go(vn().mark(function x(){var m,g,h,w,E,S,C;return vn().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(i.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(m=i.props,g=m.validateFirst,h=g===void 0?!1:g,w=m.messageVariables,E=m.validateDebounce,S=i.getRules(),p&&(S=S.filter(function(O){return O}).filter(function(O){var P=O.validateTrigger;if(!P)return!0;var z=yg(P);return z.includes(p)})),!(E&&p)){k.next=10;break}return k.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(i.validatePromise===v){k.next=10;break}return k.abrupt("return",[]);case 10:return C=SR(c,d,S,s,h,w),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vn;if(i.validatePromise===v){var P;i.validatePromise=null;var z=[],T=[];(P=O.forEach)===null||P===void 0||P.call(O,function(M){var A=M.rule.warningOnly,B=M.errors,_=B===void 0?Vn:B;A?T.push.apply(T,Se(_)):z.push.apply(z,Se(_))}),i.errors=z,i.warnings=T,i.triggerMetaEvent(),i.reRender()}}),k.abrupt("return",C);case 13:case"end":return k.stop()}},x)})));return b||(i.validatePromise=v,i.dirty=!0,i.errors=Vn,i.warnings=Vn,i.triggerMetaEvent(),i.reRender()),v}),L(Qe(i),"isFieldValidating",function(){return!!i.validatePromise}),L(Qe(i),"isFieldTouched",function(){return i.touched}),L(Qe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var s=i.props.fieldContext,c=s.getInternalHooks(Xi),d=c.getInitialValue;return d(i.getNamePath())!==void 0}),L(Qe(i),"getErrors",function(){return i.errors}),L(Qe(i),"getWarnings",function(){return i.warnings}),L(Qe(i),"isListField",function(){return i.props.isListField}),L(Qe(i),"isList",function(){return i.props.isList}),L(Qe(i),"isPreserve",function(){return i.props.preserve}),L(Qe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var s={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return s}),L(Qe(i),"getOnlyChild",function(s){if(typeof s=="function"){var c=i.getMeta();return j(j({},i.getOnlyChild(s(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var d=vr(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),L(Qe(i),"getValue",function(s){var c=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Or(s||c(!0),d)}),L(Qe(i),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,y=c.normalize,b=c.valuePropName,v=c.getValueProps,x=c.fieldContext,m=f!==void 0?f:x.validateTrigger,g=i.getNamePath(),h=x.getInternalHooks,w=x.getFieldsValue,E=h(Xi),S=E.dispatch,C=i.getValue(),$=v||function(z){return L({},b,z)},k=s[d],O=j(j({},s),$(C));O[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var z,T=arguments.length,M=new Array(T),A=0;A=0&&O<=P.length?(d.keys=[].concat(Se(d.keys.slice(0,O)),[d.id],Se(d.keys.slice(O))),h([].concat(Se(P.slice(0,O)),[k],Se(P.slice(O))))):(d.keys=[].concat(Se(d.keys),[d.id]),h([].concat(Se(P),[k]))),d.id+=1},remove:function(k){var O=E(),P=new Set(Array.isArray(k)?k:[k]);P.size<=0||(d.keys=d.keys.filter(function(z,T){return!P.has(T)}),h(O.filter(function(z,T){return!P.has(T)})))},move:function(k,O){if(k!==O){var P=E();k<0||k>=P.length||O<0||O>=P.length||(d.keys=Xv(d.keys,k,O),h(Xv(P,k,O)))}}},C=g||[];return Array.isArray(C)||(C=[]),r(C.map(function($,k){var O=d.keys[k];return O===void 0&&(d.keys[k]=d.id,O=d.keys[k],d.id+=1),{name:k,key:O,isListField:!0}}),S,x)})))}function PR(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Mx="__@field_split__";function Rf(e){return e.map(function(t){return"".concat(Me(t),":").concat(t)}).join(Mx)}var Eo=function(){function e(){wn(this,e),L(this,"kvs",new Map)}return xn(e,[{key:"set",value:function(n,r){this.kvs.set(Rf(n),r)}},{key:"get",value:function(n){return this.kvs.get(Rf(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(Rf(n))}},{key:"map",value:function(n){return Se(this.kvs.entries()).map(function(r){var i=V(r,2),o=i[0],a=i[1],l=o.split(Mx);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=V(c,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),_R=["name"],TR=xn(function e(t){var n=this;wn(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===Xi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(mn(!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=Xo(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var s=l.key;a=cr(a,s,Or(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(){var r=new Eo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),L(this,"getInitialValue",function(r){var i=Or(n.initialValues,r);return r.length?Xo(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 Eo;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=Tt(o);return i.get(a)||{INVALIDATE_NAME_PATH:Tt(o)}})}),L(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,l;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Me(r)==="object"&&(l=r.strict,a=r.filter),o===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return s.forEach(function(d){var f,p,y="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var b,v;if((b=(v=d).isList)!==null&&b!==void 0&&b.call(v))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!a)c.push(y);else{var x="getMeta"in d?d.getMeta():null;a(x)&&c.push(y)}}),Kv(n.store,c.map(Tt))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var i=Tt(r);return Or(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:Tt(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var i=Tt(r),o=n.getFieldsError([i])[0];return o.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Tt(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 Eo,o=n.getFieldEntities(!0);o.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=i.get(d)||new Set;f.add({entity:s,value:c}),i.set(d,f)}});var a=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),y=n.getInitialValue(p);if(y!==void 0)mn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var b=i.get(p);if(b&&b.size>1)mn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var v=n.getFieldValue(p),x=d.isListField();!x&&(!r.skipExist||v===void 0)&&n.updateStore(cr(n.store,p,Se(b)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=i.get(s);if(c){var d;(d=l).push.apply(d,Se(Se(c).map(function(f){return f.entity})))}})):l=o,a(l)}),L(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Xo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Tt);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(cr(n.store,a,l))}),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 l=a.name,s=Ne(a,_R),c=Tt(l);o.push(c),"value"in s&&n.updateStore(cr(n.store,c,s.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(),l=o.getMeta(),s=j(j({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return i}),L(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=Or(n.store,o);a===void 0&&n.updateStore(cr(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,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!zx(f.getNamePath(),i)})){var d=n.store;n.updateStore(cr(d,i,c,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,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,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),L(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=j(j({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(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(Se(o))}),o}),L(this,"updateValue",function(r,i){var o=Tt(r),a=n.store;n.updateStore(cr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),s=n.callbacks.onValuesChange;if(s){var c=Kv(n.store,[o]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Se(l)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Xo(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 Eo;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=Tt(d);a.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(c){var d=a.get(c)||new Set;d.forEach(function(f){if(!i.has(f)){i.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),s(p))}})};return l(r),o}),L(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Eo;i.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var d=c.name;return sa(r,d)});s.length&&o(s,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 l=!!o,s=l?o.map(Tt):[],c=[],d=String(Date.now()),f=new Set,p=a||{},y=p.recursive,b=p.dirty;n.getFieldEntities(!0).forEach(function(g){if(l||s.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(b&&!g.isFieldDirty())){var h=g.getNamePath();if(f.add(h.join(d)),!l||sa(s,h,y)){var w=g.validateRules(j({validateMessages:j(j({},Ix),n.validateMessages)},a));c.push(w.then(function(){return{name:h,errors:[],warnings:[]}}).catch(function(E){var S,C=[],$=[];return(S=E.forEach)===null||S===void 0||S.call(E,function(k){var O=k.rule.warningOnly,P=k.errors;O?$.push.apply($,Se(P)):C.push.apply(C,Se(P))}),C.length?Promise.reject({name:h,errors:C,warnings:$}):{name:h,errors:C,warnings:$}}))}}});var v=PR(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var h=g.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,h,{type:"validateFinish"}),n.triggerOnFieldsChange(h,g)});var x=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(g){var h=g.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:h,outOfDate:n.lastValidatePromise!==v})});x.catch(function(g){return g});var m=s.filter(function(g){return f.has(g.join(d))});return n.triggerOnFieldsChange(m),x}),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 Nx(e){var t=u.useRef(),n=u.useState({}),r=V(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new TR(o);t.current=a.getForm()}return[t.current]}var Rg=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),IR=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=u.useContext(Rg),l=u.useRef({});return u.createElement(Rg.Provider,{value:j(j({},a),{},{validateMessages:j(j({},a.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),a.triggerFormChange(c,d)},triggerFormFinish:function(c,d){i&&i(c,{values:d,forms:l.current}),a.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=j(j({},l.current),{},L({},c,d))),a.registerForm(c,d)},unregisterForm:function(c){var d=j({},l.current);delete d[c],l.current=d,a.unregisterForm(c)}})},o)},zR=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],BR=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,p=t.validateTrigger,y=p===void 0?"onChange":p,b=t.onValuesChange,v=t.onFieldsChange,x=t.onFinish,m=t.onFinishFailed,g=Ne(t,zR),h=u.useContext(Rg),w=Nx(a),E=V(w,1),S=E[0],C=S.getInternalHooks(Xi),$=C.useSubscribe,k=C.setInitialValues,O=C.setCallbacks,P=C.setValidateMessages,z=C.setPreserve,T=C.destroyForm;u.useImperativeHandle(n,function(){return S}),u.useEffect(function(){return h.registerForm(r,S),function(){h.unregisterForm(r)}},[h,S,r]),P(j(j({},h.validateMessages),f)),O({onValuesChange:b,onFieldsChange:function(D){if(h.triggerFormChange(r,D),v){for(var U=arguments.length,K=new Array(U>1?U-1:0),G=1;G({animationDuration:e,animationFillMode:"both"}),FR=e=>({animationDuration:e,animationFillMode:"both"}),ch=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({},FR(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},DR(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},jR(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},FR(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"}}},HR=new ht("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),VR=new ht("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Lx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[ch(r,HR,VR,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},DR=new ht("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),HR=new ht("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Ax=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[ch(r,DR,HR,e.motionDurationMid,t),{[` ${i}${r}-enter, ${i}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},WR=new ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qR=new ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),UR=new ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),GR=new ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),KR=new ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),XR=new ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),YR=new ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),QR=new ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ZR={"slide-up":{inKeyframes:WR,outKeyframes:qR},"slide-down":{inKeyframes:UR,outKeyframes:GR},"slide-left":{inKeyframes:KR,outKeyframes:XR},"slide-right":{inKeyframes:YR,outKeyframes:QR}},Zv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=ZR[t];return[ch(r,i,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},VR=new ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),WR=new ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qR=new ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),UR=new ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),GR=new ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),KR=new ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),XR=new ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),YR=new ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),QR={"slide-up":{inKeyframes:VR,outKeyframes:WR},"slide-down":{inKeyframes:qR,outKeyframes:UR},"slide-left":{inKeyframes:GR,outKeyframes:KR},"slide-right":{inKeyframes:XR,outKeyframes:YR}},Zv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=QR[t];return[ch(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}}]},JR=new ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eP=new ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Jv=new ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e1=new ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tP=new ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nP=new ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rP=new ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),iP=new ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),oP=new ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),aP=new ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lP=new ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),sP=new ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cP={zoom:{inKeyframes:JR,outKeyframes:eP},"zoom-big":{inKeyframes:Jv,outKeyframes:e1},"zoom-big-fast":{inKeyframes:Jv,outKeyframes:e1},"zoom-left":{inKeyframes:rP,outKeyframes:iP},"zoom-right":{inKeyframes:oP,outKeyframes:aP},"zoom-up":{inKeyframes:tP,outKeyframes:nP},"zoom-down":{inKeyframes:lP,outKeyframes:sP}},uh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=cP[t];return[ch(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ZR=new ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),JR=new ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Jv=new ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e1=new ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eP=new ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),tP=new ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nP=new ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),rP=new ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),iP=new ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),oP=new ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),aP=new ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lP=new ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),sP={zoom:{inKeyframes:ZR,outKeyframes:JR},"zoom-big":{inKeyframes:Jv,outKeyframes:e1},"zoom-big-fast":{inKeyframes:Jv,outKeyframes:e1},"zoom-left":{inKeyframes:nP,outKeyframes:rP},"zoom-right":{inKeyframes:iP,outKeyframes:oP},"zoom-up":{inKeyframes:eP,outKeyframes:tP},"zoom-down":{inKeyframes:aP,outKeyframes:lP}},uh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=sP[t];return[ch(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function t1(e){return{position:e,inset:0}}const jx=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},t1("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},t1("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:Lx(e)}]},uP=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${W(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},wr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${W(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${W(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},fs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function t1(e){return{position:e,inset:0}}const Lx=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},t1("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},t1("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:Ax(e)}]},cP=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${W(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},wr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${W(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${W(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},ds(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},dP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},fP=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Et(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},pP=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${W(e.paddingMD)} ${W(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${W(e.padding)} ${W(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${W(e.paddingXS)} ${W(e.padding)}`:0,footerBorderTop:e.wireframe?`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${W(e.padding*2)} ${W(e.padding*2)} ${W(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});Xt("Modal",e=>{const t=fP(e);return[uP(t),dP(t),jx(t),uh(t,"zoom")]},pP,{unitless:{titleLineHeight:!0}});const Fx=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 gP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$o=void 0;function mP(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,p=e.children,y=e.display,b=e.order,v=e.component,x=v===void 0?"div":v,m=Ne(e,gP),g=a&&!y;function h($){s(c,$)}u.useEffect(function(){return function(){h(null)}},[]);var w=o&&i!==$o?o(i):p,S;r||(S={opacity:g?0:1,height:g?0:$o,overflowY:g?"hidden":$o,order:a?b:$o,pointerEvents:g?"none":$o,position:g?"absolute":$o});var C={};g&&(C["aria-hidden"]=!0);var E=u.createElement(x,ae({className:q(!r&&n,d),style:j(j({},S),f)},C,m,{ref:t}),w);return a&&(E=u.createElement(Tr,{onResize:function(k){var O=k.offsetWidth;h(O)},disabled:l},E)),E}var El=u.forwardRef(mP);El.displayName="Item";function hP(e){if(typeof MessageChannel>"u")Bt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function vP(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],hP(function(){ka.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Xa(e,t){var n=u.useState(t),r=H(n,2),i=r[0],o=r[1],a=Kn(function(l){e(function(){o(l)})});return[i,a]}var pu=J.createContext(null),yP=["component"],bP=["className"],wP=["className"],xP=function(t,n){var r=u.useContext(pu);if(!r){var i=t.component,o=i===void 0?"div":i,a=Ne(t,yP);return u.createElement(o,ae({},a,{ref:n}))}var l=r.className,s=Ne(r,bP),c=t.className,d=Ne(t,wP);return u.createElement(pu.Provider,{value:null},u.createElement(El,ae({ref:n,className:q(l,c)},s,d)))},Dx=u.forwardRef(xP);Dx.displayName="RawItem";var SP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Hx="responsive",Vx="invalidate";function CP(e){return"+ ".concat(e.length," ...")}function EP(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,p=e.style,y=e.className,b=e.maxCount,v=e.renderRest,x=e.renderRawRest,m=e.suffix,g=e.component,h=g===void 0?"div":g,w=e.itemComponent,S=e.onVisibleChange,C=Ne(e,SP),E=f==="full",$=vP(),k=Xa($,null),O=H(k,2),P=O[0],z=O[1],T=P||0,M=Xa($,new Map),A=H(M,2),B=A[0],_=A[1],R=Xa($,0),I=H(R,2),N=I[0],F=I[1],D=Xa($,0),U=H(D,2),K=U[0],G=U[1],X=Xa($,0),Q=H(X,2),Z=Q[0],ne=Q[1],fe=u.useState(null),re=H(fe,2),be=re[0],pe=re[1],xe=u.useState(null),ce=H(xe,2),Re=ce[0],ye=ce[1],oe=u.useMemo(function(){return Re===null&&E?Number.MAX_SAFE_INTEGER:Re||0},[Re,P]),Y=u.useState(!1),ge=H(Y,2),ie=ge[0],we=ge[1],Ce="".concat(r,"-item"),Ae=Math.max(N,K),De=b===Hx,Ee=o.length&&De,ct=b===Vx,$e=Ee||typeof b=="number"&&o.length>b,ue=u.useMemo(function(){var de=o;return Ee?P===null&&E?de=o:de=o.slice(0,Math.min(o.length,T/d)):typeof b=="number"&&(de=o.slice(0,b)),de},[o,d,P,b,Ee]),Te=u.useMemo(function(){return Ee?o.slice(oe+1):o.slice(ue.length)},[o,ue,Ee,oe]),Pe=u.useCallback(function(de,Oe){var Fe;return typeof s=="function"?s(de):(Fe=s&&(de==null?void 0:de[s]))!==null&&Fe!==void 0?Fe:Oe},[s]),ut=u.useCallback(a||function(de){return de},[a]);function Ke(de,Oe,Fe){Re===de&&(Oe===void 0||Oe===be)||(ye(de),Fe||(we(deT){Ke(lt-1,de-Yt-Z+K);break}}m&&He(0)+Z>T&&pe(null)}},[T,B,K,Z,Pe,ue]);var yt=ie&&!!Te.length,te={};be!==null&&Ee&&(te={position:"absolute",left:be,top:0});var he={prefixCls:Ce,responsive:Ee,component:w,invalidate:ct},Je=l?function(de,Oe){var Fe=Pe(de,Oe);return u.createElement(pu.Provider,{key:Fe,value:j(j({},he),{},{order:Oe,item:de,itemKey:Fe,registerSize:tt,display:Oe<=oe})},l(de,Oe))}:function(de,Oe){var Fe=Pe(de,Oe);return u.createElement(El,ae({},he,{order:Oe,key:Fe,item:de,renderItem:ut,itemKey:Fe,registerSize:tt,display:Oe<=oe}))},ke,qe={order:yt?oe:Number.MAX_SAFE_INTEGER,className:"".concat(Ce,"-rest"),registerSize:Le,display:yt};if(x)x&&(ke=u.createElement(pu.Provider,{value:j(j({},he),qe)},x(Te)));else{var ze=v||CP;ke=u.createElement(El,ae({},he,qe),typeof ze=="function"?ze(Te):ze)}var _e=u.createElement(h,ae({className:q(!ct&&r,y),style:p,ref:t},C),ue.map(Je),$e?ke:null,m&&u.createElement(El,ae({},he,{responsive:De,responsiveDisabled:!Ee,order:oe,className:"".concat(Ce,"-suffix"),registerSize:We,display:!0,style:te}),m));return De&&(_e=u.createElement(Tr,{onResize:dt,disabled:!Ee},_e)),_e}var Wr=u.forwardRef(EP);Wr.displayName="Overflow";Wr.Item=Dx;Wr.RESPONSIVE=Hx;Wr.INVALIDATE=Vx;function $P(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,l=o.content,s=i.x,c=s===void 0?0:s,d=i.y,f=d===void 0?0:d,p=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],v=n.points[1],x=b[0],m=b[1],g=v[0],h=v[1];x===g||!["t","b"].includes(x)?y.top=f:x==="t"?y.top=0:y.bottom=0,m===h||!["l","r"].includes(m)?y.left=c:m==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:p,className:q("".concat(t,"-arrow"),a),style:y},l)}function kP(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?u.createElement(xr,ae({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u.createElement("div",{style:{zIndex:r},className:q("".concat(t,"-mask"),l)})}):null}var OP=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),RP=u.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,y=e.arrow,b=e.arrowPos,v=e.align,x=e.motion,m=e.maskMotion,g=e.forceRender,h=e.getPopupContainer,w=e.autoDestroy,S=e.portal,C=e.zIndex,E=e.onMouseEnter,$=e.onMouseLeave,k=e.onPointerEnter,O=e.ready,P=e.offsetX,z=e.offsetY,T=e.offsetR,M=e.offsetB,A=e.onAlign,B=e.onPrepare,_=e.stretch,R=e.targetWidth,I=e.targetHeight,N=typeof n=="function"?n():n,F=s||c,D=(h==null?void 0:h.length)>0,U=u.useState(!h||!D),K=H(U,2),G=K[0],X=K[1];if(xt(function(){!G&&D&&a&&X(!0)},[G,D,a]),!G)return null;var Q="auto",Z={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(O||!s){var ne,fe=v.points,re=v.dynamicInset||((ne=v._experimental)===null||ne===void 0?void 0:ne.dynamicInset),be=re&&fe[0][1]==="r",pe=re&&fe[0][0]==="b";be?(Z.right=T,Z.left=Q):(Z.left=P,Z.right=Q),pe?(Z.bottom=M,Z.top=Q):(Z.top=z,Z.bottom=Q)}var xe={};return _&&(_.includes("height")&&I?xe.height=I:_.includes("minHeight")&&I&&(xe.minHeight=I),_.includes("width")&&R?xe.width=R:_.includes("minWidth")&&R&&(xe.minWidth=R)),s||(xe.pointerEvents="none"),u.createElement(S,{open:g||F,getContainer:h&&function(){return h(a)},autoDestroy:w},u.createElement(kP,{prefixCls:i,open:s,zIndex:C,mask:p,motion:m}),u.createElement(Tr,{onResize:A,disabled:!s},function(ce){return u.createElement(xr,ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:B,onEnterPrepare:B,visible:s,onVisibleChanged:function(ye){var oe;x==null||(oe=x.onVisibleChanged)===null||oe===void 0||oe.call(x,ye),l(ye)}}),function(Re,ye){var oe=Re.className,Y=Re.style,ge=q(i,oe,r);return u.createElement("div",{ref:zi(ce,t,ye),className:ge,style:j(j(j(j({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},Z),xe),Y),{},{boxSizing:"border-box",zIndex:C},o),onMouseEnter:E,onMouseLeave:$,onPointerEnter:k,onClick:f},y&&u.createElement($P,{prefixCls:i,arrow:y,arrowPos:b,align:v}),u.createElement(OP,{cache:!s&&!d},N))})}))}),PP=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=po(n),o=u.useCallback(function(l){Vm(t,r?r(l):l)},[r]),a=Oa(o,n.ref);return i?u.cloneElement(n,{ref:a}):n}),n1=u.createContext(null);function r1(e){return e?Array.isArray(e)?e:[e]:[]}function _P(e,t,n,r){return u.useMemo(function(){var i=r1(n??t),o=r1(r??t),a=new Set(i),l=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function TP(){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 IP(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 Ya(e){return Zl(parseFloat(e),0)}function o1(e,t){var n=j({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=vs(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,l=i.borderTopWidth,s=i.borderBottomWidth,c=i.borderLeftWidth,d=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,y=r.clientHeight,b=r.offsetWidth,v=r.clientWidth,x=Ya(l),m=Ya(s),g=Ya(c),h=Ya(d),w=Zl(Math.round(f.width/b*1e3)/1e3),S=Zl(Math.round(f.height/p*1e3)/1e3),C=(b-v-g-h)*w,E=(p-y-x-m)*S,$=x*S,k=m*S,O=g*w,P=h*w,z=0,T=0;if(o==="clip"){var M=Ya(a);z=M*w,T=M*S}var A=f.x+O-z,B=f.y+$-T,_=A+f.width+2*z-O-P-C,R=B+f.height+2*T-$-k-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,B),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,R)}}),n}function a1(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 l1(e,t){var n=t||[],r=H(n,2),i=r[0],o=r[1];return[a1(e.width,i),a1(e.height,o)]}function s1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ko(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 oi(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 zP(e,t,n,r,i,o,a){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),s=H(l,2),c=s[0],d=s[1],f=u.useRef(0),p=u.useMemo(function(){return t?Pg(t):[]},[t]),y=u.useRef({}),b=function(){y.current={}};e||b();var v=Kn(function(){if(t&&n&&e){let Ut=function(Cs,Mr){var Ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,wo=N.x+Cs,La=N.y+Mr,_d=wo+ne,Td=La+Z,Id=Math.max(wo,Ai.left),zd=Math.max(La,Ai.top),ve=Math.min(_d,Ai.right),Ie=Math.min(Td,Ai.bottom);return Math.max(0,(ve-Id)*(Ie-zd))},Aa=function(){gt=N.y+ze,Xe=gt+Z,Be=N.x+qe,nt=Be+ne};var Ch=Ut,Eh=Aa,g,h,w=t,S=w.ownerDocument,C=vs(w),E=C.getComputedStyle(w),$=E.width,k=E.height,O=E.position,P=w.style.left,z=w.style.top,T=w.style.right,M=w.style.bottom,A=w.style.overflow,B=j(j({},i[r]),o),_=S.createElement("div");(g=w.parentElement)===null||g===void 0||g.appendChild(_),_.style.left="".concat(w.offsetLeft,"px"),_.style.top="".concat(w.offsetTop,"px"),_.style.position=O,_.style.height="".concat(w.offsetHeight,"px"),_.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 R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else{var I=n.getBoundingClientRect();R={x:I.x,y:I.y,width:I.width,height:I.height}}var N=w.getBoundingClientRect(),F=S.documentElement,D=F.clientWidth,U=F.clientHeight,K=F.scrollWidth,G=F.scrollHeight,X=F.scrollTop,Q=F.scrollLeft,Z=N.height,ne=N.width,fe=R.height,re=R.width,be={left:0,top:0,right:D,bottom:U},pe={left:-Q,top:-X,right:K-Q,bottom:G-X},xe=B.htmlRegion,ce="visible",Re="visibleFirst";xe!=="scroll"&&xe!==Re&&(xe=ce);var ye=xe===Re,oe=o1(pe,p),Y=o1(be,p),ge=xe===ce?Y:oe,ie=ye?Y:ge;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var we=w.getBoundingClientRect();w.style.left=P,w.style.top=z,w.style.right=T,w.style.bottom=M,w.style.overflow=A,(h=w.parentElement)===null||h===void 0||h.removeChild(_);var Ce=Zl(Math.round(ne/parseFloat($)*1e3)/1e3),Ae=Zl(Math.round(Z/parseFloat(k)*1e3)/1e3);if(Ce===0||Ae===0||ru(n)&&!ih(n))return;var De=B.offset,Ee=B.targetOffset,ct=l1(N,De),$e=H(ct,2),ue=$e[0],Te=$e[1],Pe=l1(R,Ee),ut=H(Pe,2),Ke=ut[0],dt=ut[1];R.x-=Ke,R.y-=dt;var tt=B.points||[],Le=H(tt,2),We=Le[0],He=Le[1],yt=s1(He),te=s1(We),he=ko(R,yt),Je=ko(N,te),ke=j({},B),qe=he.x-Je.x+ue,ze=he.y-Je.y+Te,_e=Ut(qe,ze),de=Ut(qe,ze,Y),Oe=ko(R,["t","l"]),Fe=ko(N,["t","l"]),lt=ko(R,["b","r"]),Yt=ko(N,["b","r"]),Rt=B.overflow||{},Pn=Rt.adjustX,Vt=Rt.adjustY,Sn=Rt.shiftX,fn=Rt.shiftY,Qt=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},gt,Xe,Be,nt;Aa();var Pt=Qt(Vt),rn=te[0]===yt[0];if(Pt&&te[0]==="t"&&(Xe>ie.bottom||y.current.bt)){var Wt=ze;rn?Wt-=Z-fe:Wt=Oe.y-Yt.y-Te;var Cn=Ut(qe,Wt),Qr=Ut(qe,Wt,Y);Cn>_e||Cn===_e&&(!ye||Qr>=de)?(y.current.bt=!0,ze=Wt,Te=-Te,ke.points=[oi(te,0),oi(yt,0)]):y.current.bt=!1}if(Pt&&te[0]==="b"&&(gt_e||Dn===_e&&(!ye||tr>=de)?(y.current.tb=!0,ze=_t,Te=-Te,ke.points=[oi(te,0),oi(yt,0)]):y.current.tb=!1}var Sr=Qt(Pn),Zr=te[1]===yt[1];if(Sr&&te[1]==="l"&&(nt>ie.right||y.current.rl)){var nr=qe;Zr?nr-=ne-re:nr=Oe.x-Yt.x-ue;var mo=Ut(nr,ze),ho=Ut(nr,ze,Y);mo>_e||mo===_e&&(!ye||ho>=de)?(y.current.rl=!0,qe=nr,ue=-ue,ke.points=[oi(te,1),oi(yt,1)]):y.current.rl=!1}if(Sr&&te[1]==="r"&&(Be_e||vo===_e&&(!ye||Jr>=de)?(y.current.lr=!0,qe=Hn,ue=-ue,ke.points=[oi(te,1),oi(yt,1)]):y.current.lr=!1}Aa();var rr=Sn===!0?0:Sn;typeof rr=="number"&&(BeY.right&&(qe-=nt-Y.right-ue,R.x>Y.right-rr&&(qe+=R.x-Y.right+rr)));var Cr=fn===!0?0:fn;typeof Cr=="number"&&(gtY.bottom&&(ze-=Xe-Y.bottom-Te,R.y>Y.bottom-Cr&&(ze+=R.y-Y.bottom+Cr)));var ei=N.x+qe,ti=ei+ne,ir=N.y+ze,yo=ir+Z,zr=R.x,et=zr+re,Ye=R.y,ot=Ye+fe,Zt=Math.max(ei,zr),qt=Math.min(ti,et),ni=(Zt+qt)/2,Mi=ni-ei,Ma=Math.max(ir,Ye),Ni=Math.min(yo,ot),bo=(Ma+Ni)/2,Br=bo-ir;a==null||a(t,ke);var ri=we.right-N.x-(qe+N.width),Na=we.bottom-N.y-(ze+N.height);d({ready:!0,offsetX:qe/Ce,offsetY:ze/Ae,offsetR:ri/Ce,offsetB:Na/Ae,arrowX:Mi/Ce,arrowY:Br/Ae,scaleX:Ce,scaleY:Ae,align:ke})}}),x=function(){f.current+=1;var h=f.current;Promise.resolve().then(function(){f.current===h&&v()})},m=function(){d(function(h){return j(j({},h),{},{ready:!1})})};return xt(m,[r]),xt(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,x]}function BP(e,t,n,r,i){xt(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,o=t,a=n,l=Pg(o),s=Pg(a),c=vs(a),d=new Set([c].concat(Se(l),Se(s)));return d.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(y){y.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function MP(e,t,n,r,i,o,a,l){var s=u.useRef(e),c=u.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),u.useEffect(function(){var d=Bt(function(){c.current=!1});return function(){Bt.cancel(d)}},[e]),u.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){var C=!1,E=function(O){var P=O.target;C=a(P)},$=function(O){var P=O.target;!c.current&&s.current&&!C&&!a(P)&&l(!1)};return[E,$]},f=d(),p=H(f,2),y=p[0],b=p[1],v=d(),x=H(v,2),m=x[0],g=x[1],h=vs(r);h.addEventListener("mousedown",y,!0),h.addEventListener("click",b,!0),h.addEventListener("contextmenu",b,!0);var w=cu(n);return w&&(w.addEventListener("mousedown",m,!0),w.addEventListener("click",g,!0),w.addEventListener("contextmenu",g,!0)),function(){h.removeEventListener("mousedown",y,!0),h.removeEventListener("click",b,!0),h.removeEventListener("contextmenu",b,!0),w&&(w.removeEventListener("mousedown",m,!0),w.removeEventListener("click",g,!0),w.removeEventListener("contextmenu",g,!0))}}},[t,n,r,i,o])}var NP=["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 AP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yd,t=u.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,y=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,v=n.mouseEnterDelay,x=n.mouseLeaveDelay,m=x===void 0?.1:x,g=n.focusDelay,h=n.blurDelay,w=n.mask,S=n.maskClosable,C=S===void 0?!0:S,E=n.getPopupContainer,$=n.forceRender,k=n.autoDestroy,O=n.destroyPopupOnHide,P=n.popup,z=n.popupClassName,T=n.popupStyle,M=n.popupPlacement,A=n.builtinPlacements,B=A===void 0?{}:A,_=n.popupAlign,R=n.zIndex,I=n.stretch,N=n.getPopupClassNameFromAlign,F=n.fresh,D=n.alignPoint,U=n.onPopupClick,K=n.onPopupAlign,G=n.arrow,X=n.popupMotion,Q=n.maskMotion,Z=n.popupTransitionName,ne=n.popupAnimation,fe=n.maskTransitionName,re=n.maskAnimation,be=n.className,pe=n.getTriggerDOMNode,xe=Ne(n,NP),ce=k||O||!1,Re=u.useState(!1),ye=H(Re,2),oe=ye[0],Y=ye[1];xt(function(){Y(Fx())},[]);var ge=u.useRef({}),ie=u.useContext(n1),we=u.useMemo(function(){return{registerSubPopup:function(Ie,$t){ge.current[Ie]=$t,ie==null||ie.registerSubPopup(Ie,$t)}}},[ie]),Ce=Rx(),Ae=u.useState(null),De=H(Ae,2),Ee=De[0],ct=De[1],$e=Kn(function(ve){ru(ve)&&Ee!==ve&&ct(ve),ie==null||ie.registerSubPopup(Ce,ve)}),ue=u.useState(null),Te=H(ue,2),Pe=Te[0],ut=Te[1],Ke=u.useRef(null),dt=Kn(function(ve){ru(ve)&&Pe!==ve&&(ut(ve),Ke.current=ve)}),tt=u.Children.only(a),Le=(tt==null?void 0:tt.props)||{},We={},He=Kn(function(ve){var Ie,$t,Lt=Pe;return(Lt==null?void 0:Lt.contains(ve))||((Ie=cu(Lt))===null||Ie===void 0?void 0:Ie.host)===ve||ve===Lt||(Ee==null?void 0:Ee.contains(ve))||(($t=cu(Ee))===null||$t===void 0?void 0:$t.host)===ve||ve===Ee||Object.values(ge.current).some(function(kt){return(kt==null?void 0:kt.contains(ve))||ve===kt})}),yt=i1(o,X,ne,Z),te=i1(o,Q,re,fe),he=u.useState(p||!1),Je=H(he,2),ke=Je[0],qe=Je[1],ze=f??ke,_e=Kn(function(ve){f===void 0&&qe(ve)});xt(function(){qe(f||!1)},[f]);var de=u.useRef(ze);de.current=ze;var Oe=u.useRef([]);Oe.current=[];var Fe=Kn(function(ve){var Ie;_e(ve),((Ie=Oe.current[Oe.current.length-1])!==null&&Ie!==void 0?Ie:ze)!==ve&&(Oe.current.push(ve),y==null||y(ve))}),lt=u.useRef(),Yt=function(){clearTimeout(lt.current)},Rt=function(Ie){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Yt(),$t===0?Fe(Ie):lt.current=setTimeout(function(){Fe(Ie)},$t*1e3)};u.useEffect(function(){return Yt},[]);var Pn=u.useState(!1),Vt=H(Pn,2),Sn=Vt[0],fn=Vt[1];xt(function(ve){(!ve||ze)&&fn(!0)},[ze]);var Qt=u.useState(null),gt=H(Qt,2),Xe=gt[0],Be=gt[1],nt=u.useState([0,0]),Pt=H(nt,2),rn=Pt[0],Wt=Pt[1],Cn=function(Ie){Wt([Ie.clientX,Ie.clientY])},Qr=zP(ze,Ee,D?rn:Pe,M,B,_,K),_t=H(Qr,11),Dn=_t[0],tr=_t[1],Sr=_t[2],Zr=_t[3],nr=_t[4],mo=_t[5],ho=_t[6],Hn=_t[7],vo=_t[8],Jr=_t[9],rr=_t[10],Cr=_P(oe,s,c,d),ei=H(Cr,2),ti=ei[0],ir=ei[1],yo=ti.has("click"),zr=ir.has("click")||ir.has("contextMenu"),et=Kn(function(){Sn||rr()}),Ye=function(){de.current&&D&&zr&&Rt(!1)};BP(ze,Pe,Ee,et,Ye),xt(function(){et()},[rn,M]),xt(function(){ze&&!(B!=null&&B[M])&&et()},[JSON.stringify(_)]);var ot=u.useMemo(function(){var ve=IP(B,o,Jr,D);return q(ve,N==null?void 0:N(Jr))},[Jr,N,B,o,D]);u.useImperativeHandle(r,function(){return{nativeElement:Ke.current,forceAlign:et}});var Zt=u.useState(0),qt=H(Zt,2),ni=qt[0],Mi=qt[1],Ma=u.useState(0),Ni=H(Ma,2),bo=Ni[0],Br=Ni[1],ri=function(){if(I&&Pe){var Ie=Pe.getBoundingClientRect();Mi(Ie.width),Br(Ie.height)}},Na=function(){ri(),et()},Ch=function(Ie){fn(!1),rr(),b==null||b(Ie)},Eh=function(){return new Promise(function(Ie){ri(),Be(function(){return Ie})})};xt(function(){Xe&&(rr(),Xe(),Be(null))},[Xe]);function Ut(ve,Ie,$t,Lt){We[ve]=function(kt){var Es;Lt==null||Lt(kt),Rt(Ie,$t);for(var Bd=arguments.length,$h=new Array(Bd>1?Bd-1:0),$s=1;$s1?$t-1:0),kt=1;kt<$t;kt++)Lt[kt-1]=arguments[kt];(Ie=Le.onClick)===null||Ie===void 0||Ie.call.apply(Ie,[Le,ve].concat(Lt))}),MP(ze,zr,Pe,Ee,w,C,He,Rt);var Aa=ti.has("hover"),Cs=ir.has("hover"),Mr,Ai;Aa&&(Ut("onMouseEnter",!0,v,function(ve){Cn(ve)}),Ut("onPointerEnter",!0,v,function(ve){Cn(ve)}),Mr=function(Ie){(ze||Sn)&&Ee!==null&&Ee!==void 0&&Ee.contains(Ie.target)&&Rt(!0,v)},D&&(We.onMouseMove=function(ve){var Ie;(Ie=Le.onMouseMove)===null||Ie===void 0||Ie.call(Le,ve)})),Cs&&(Ut("onMouseLeave",!1,m),Ut("onPointerLeave",!1,m),Ai=function(){Rt(!1,m)}),ti.has("focus")&&Ut("onFocus",!0,g),ir.has("focus")&&Ut("onBlur",!1,h),ti.has("contextMenu")&&(We.onContextMenu=function(ve){var Ie;de.current&&ir.has("contextMenu")?Rt(!1):(Cn(ve),Rt(!0)),ve.preventDefault();for(var $t=arguments.length,Lt=new Array($t>1?$t-1:0),kt=1;kt<$t;kt++)Lt[kt-1]=arguments[kt];(Ie=Le.onContextMenu)===null||Ie===void 0||Ie.call.apply(Ie,[Le,ve].concat(Lt))}),be&&(We.className=q(Le.className,be));var wo=j(j({},Le),We),La={},_d=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];_d.forEach(function(ve){xe[ve]&&(La[ve]=function(){for(var Ie,$t=arguments.length,Lt=new Array($t),kt=0;kt<$t;kt++)Lt[kt]=arguments[kt];(Ie=wo[ve])===null||Ie===void 0||Ie.call.apply(Ie,[wo].concat(Lt)),xe[ve].apply(xe,Lt)})});var Td=u.cloneElement(tt,j(j({},wo),La)),Id={x:mo,y:ho},zd=G?j({},G!==!0?G:{}):null;return u.createElement(u.Fragment,null,u.createElement(Tr,{disabled:!ze,ref:dt,onResize:Na},u.createElement(PP,{getTriggerDOMNode:pe},Td)),u.createElement(n1.Provider,{value:we},u.createElement(RP,{portal:e,ref:$e,prefixCls:o,popup:P,className:q(z,ot),style:T,target:Pe,onMouseEnter:Mr,onMouseLeave:Ai,onPointerEnter:Mr,zIndex:R,open:ze,keepDom:Sn,fresh:F,onClick:U,mask:w,motion:yt,maskMotion:te,onVisibleChanged:Ch,onPrepare:Eh,forceRender:$,autoDestroy:ce,getPopupContainer:E,align:Jr,arrow:zd,arrowPos:Id,ready:Dn,offsetX:tr,offsetY:Sr,offsetR:Zr,offsetB:nr,onAlign:et,stretch:I,targetWidth:ni/Hn,targetHeight:bo/vo})))});return t}const dh=AP(yd);function LP(e,t,n){return q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const jP=(e,t)=>t||e,FP=["outlined","borderless","filled"],DP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=u.useContext(jR);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const i=FP.includes(r);return[r,i]};var HP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const VP=HP;var WP=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:VP}))};const Wx=u.forwardRef(WP),Jl=["xxl","xl","lg","md","sm","xs"],qP=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)`}),UP=e=>{const t=e,n=[].concat(Jl).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);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],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],l=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:d}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function GP(){const[,e]=u.useReducer(t=>t+1,0);return e}function KP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=GP(),r=qx();return xt(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}function Ux(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return u.createElement("div",{className:q("".concat(n,"-content"),o),style:a},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Oo={shiftX:64,adjustY:1},Ro={adjustX:1,shiftY:!0},Wn=[0,0],XP={left:{points:["cr","cl"],overflow:Ro,offset:[-4,0],targetOffset:Wn},right:{points:["cl","cr"],overflow:Ro,offset:[4,0],targetOffset:Wn},top:{points:["bc","tc"],overflow:Oo,offset:[0,-4],targetOffset:Wn},bottom:{points:["tc","bc"],overflow:Oo,offset:[0,4],targetOffset:Wn},topLeft:{points:["bl","tl"],overflow:Oo,offset:[0,-4],targetOffset:Wn},leftTop:{points:["tr","tl"],overflow:Ro,offset:[-4,0],targetOffset:Wn},topRight:{points:["br","tr"],overflow:Oo,offset:[0,-4],targetOffset:Wn},rightTop:{points:["tl","tr"],overflow:Ro,offset:[4,0],targetOffset:Wn},bottomRight:{points:["tr","br"],overflow:Oo,offset:[0,4],targetOffset:Wn},rightBottom:{points:["bl","br"],overflow:Ro,offset:[4,0],targetOffset:Wn},bottomLeft:{points:["tl","bl"],overflow:Oo,offset:[0,4],targetOffset:Wn},leftBottom:{points:["br","bl"],overflow:Ro,offset:[-4,0],targetOffset:Wn}},YP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],QP=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,y=t.children,b=t.onVisibleChange,v=t.afterVisibleChange,x=t.transitionName,m=t.animation,g=t.motion,h=t.placement,w=h===void 0?"right":h,S=t.align,C=S===void 0?{}:S,E=t.destroyTooltipOnHide,$=E===void 0?!1:E,k=t.defaultVisible,O=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,T=t.id,M=t.showArrow,A=M===void 0?!0:M,B=Ne(t,YP),_=u.useRef(null);u.useImperativeHandle(n,function(){return _.current});var R=j({},B);"visible"in t&&(R.popupVisible=t.visible);var I=function(){return u.createElement(Ux,{key:"content",prefixCls:p,id:T,overlayInnerStyle:P},z)};return u.createElement(dh,ae({popupClassName:r,prefixCls:p,popup:I,action:o,builtinPlacements:XP,popupPlacement:w,ref:_,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:b,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:m,popupMotion:g,defaultPopupVisible:k,autoDestroy:$,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:l,arrow:A},R),y)};const ZP=u.forwardRef(QP);function JP(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,l=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=d,y=2*i-l,b=s,v=2*i-o,x=a,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),h=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,w=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${y} ${b} A ${r} ${r} 0 0 0 ${v} ${x} Z')`;return{arrowShadowWidth:m,arrowPath:w,arrowPolygon:h}}const e_=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${W(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Gx=8;function Kx(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Gx:r}}function tc(e,t){return e?t:{}}function t_(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},e_(e,t,i)),{"&:before":{background:t}})]},tc(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),tc(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),tc(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),tc(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function n_(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 c1={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"]}},r_={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"]}},i_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function o_(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,l=t/2,s={};return Object.keys(c1).forEach(c=>{const d=r&&r_[c]||c1[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,i_.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+i;break}const p=Kx({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+l;break}f.overflow=n_(c,p,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const a_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${W(e.calc(c).div(2).equal())} ${W(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Gx)}},[`${t}-content`]:{position:"relative"}}),D5(e,(f,p)=>{let{darkColor:y}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},t_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},l_=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Kx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),JP(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Xx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Xt("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,l=Et(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[a_(l),uh(r,"zoom-big-fast")]},l_,{resetStyle:!1,injectStyle:t})(e)},s_=su.map(e=>`${e}-inverse`);function c_(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Se(s_),Se(su)).includes(e):su.includes(e)}function Yx(e,t){const n=c_(t),r=q({[`${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 u_=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("tooltip",t),[c,d,f]=Xx(s),p=Yx(s,o),y=p.arrowStyle,b=Object.assign(Object.assign({},a),p.overlayStyle),v=q(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return c(u.createElement("div",{className:v,style:y},u.createElement("div",{className:`${s}-arrow`}),u.createElement(Ux,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:b}),i)))},d_=u_;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:l,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:y,arrow:b=!0,title:v,overlay:x,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:h=!0}=e,w=!!b,[,S]=yr(),{getPopupContainer:C,getPrefixCls:E,direction:$}=u.useContext(Ve),k=$w(),O=u.useRef(null),P=()=>{var Ce;(Ce=O.current)===null||Ce===void 0||Ce.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:P,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),P()}}));const[z,T]=hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!v&&!x&&v!==0,A=Ce=>{var Ae,De;T(M?!1:Ce),M||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,Ce),(De=e.onVisibleChange)===null||De===void 0||De.call(e,Ce))},B=u.useMemo(()=>{var Ce,Ae;let De=g;return typeof b=="object"&&(De=(Ae=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:g),m||o_({arrowPointAtCenter:De,autoAdjustOverflow:h,arrowWidth:w?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[g,b,m,S]),_=u.useMemo(()=>v===0?v:x||v||"",[x,v]),R=u.createElement(qO,null,typeof _=="function"?_():_),{getPopupContainer:I,placement:N="top",mouseEnterDelay:F=.1,mouseLeaveDelay:D=.1,overlayStyle:U,rootClassName:K}=e,G=f_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=E("tooltip",i),Q=E(),Z=e["data-popover-inject"];let ne=z;!("open"in e)&&!("visible"in e)&&M&&(ne=!1);const fe=nh(d)&&!sx(d)?d:u.createElement("span",null,d),re=fe.props,be=!re.className||typeof re.className=="string"?q(re.className,o||`${X}-open`):re.className,[pe,xe,ce]=Xx(X,!Z),Re=Yx(X,s),ye=Re.arrowStyle,oe=Object.assign(Object.assign({},c),Re.overlayStyle),Y=q(l,{[`${X}-rtl`]:$==="rtl"},Re.className,K,xe,ce),[ge,ie]=rh("Tooltip",G.zIndex),we=u.createElement(ZP,Object.assign({},G,{zIndex:ge,showArrow:w,placement:N,mouseEnterDelay:F,mouseLeaveDelay:D,prefixCls:X,overlayClassName:Y,overlayStyle:Object.assign(Object.assign({},ye),U),getTooltipContainer:I||a||C,ref:O,builtinPlacements:B,overlay:R,visible:ne,onVisibleChange:A,afterVisibleChange:f??p,overlayInnerStyle:oe,arrowContent:u.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:wa(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),ne?gd(fe,{className:be}):fe);return pe(u.createElement(px.Provider,{value:ie},we))});Qx._InternalPanelDoNotUseOrYouWillBeFired=d_;const gu=Qx;var p_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const g_=p_;var m_=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:g_}))};const _g=u.forwardRef(m_);var h_=le.ESC,v_=le.TAB;function y_(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=u.useRef(!1),l=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},s=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 h_:l();break;case v_:{var p=!1;a.current||(p=s()),p?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Bt(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var b_=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=zi(t,o==null?void 0:o.ref);return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(i,"-arrow")}),J.cloneElement(o,{ref:po(o)?a:void 0}))}),Po={adjustX:1,adjustY:1},_o=[0,0],w_={topLeft:{points:["bl","tl"],overflow:Po,offset:[0,-4],targetOffset:_o},top:{points:["bc","tc"],overflow:Po,offset:[0,-4],targetOffset:_o},topRight:{points:["br","tr"],overflow:Po,offset:[0,-4],targetOffset:_o},bottomLeft:{points:["tl","bl"],overflow:Po,offset:[0,4],targetOffset:_o},bottom:{points:["tc","bc"],overflow:Po,offset:[0,4],targetOffset:_o},bottomRight:{points:["tr","br"],overflow:Po,offset:[0,4],targetOffset:_o}},x_=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function S_(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,y=p===void 0?w_:p,b=e.getPopupContainer,v=e.showAction,x=e.hideAction,m=e.overlayClassName,g=e.overlayStyle,h=e.visible,w=e.trigger,S=w===void 0?["hover"]:w,C=e.autoFocus,E=e.overlay,$=e.children,k=e.onVisibleChange,O=Ne(e,x_),P=J.useState(),z=H(P,2),T=z[0],M=z[1],A="visible"in e?h:T,B=J.useRef(null),_=J.useRef(null),R=J.useRef(null);J.useImperativeHandle(t,function(){return B.current});var I=function(Z){M(Z),k==null||k(Z)};y_({visible:A,triggerRef:R,onVisibleChange:I,autoFocus:C,overlayRef:_});var N=function(Z){var ne=e.onOverlayClick;M(!1),ne&&ne(Z)},F=function(){return J.createElement(b_,{ref:_,overlay:E,prefixCls:a,arrow:i})},D=function(){return typeof E=="function"?F:F()},U=function(){var Z=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ne},K=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(a,"-open")},G=J.cloneElement($,{className:q((n=$.props)===null||n===void 0?void 0:n.className,A&&K()),ref:po($)?zi(R,$.ref):void 0}),X=x;return!X&&S.indexOf("contextMenu")!==-1&&(X=["click"]),J.createElement(dh,ae({builtinPlacements:y},O,{prefixCls:a,ref:B,popupClassName:q(m,L({},"".concat(a,"-show-arrow"),i)),popupStyle:g,action:S,showAction:v,hideAction:X,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:A,stretch:U()?"minWidth":"",popup:D(),onPopupVisibleChange:I,onPopupClick:N,getPopupContainer:b}),G)}const C_=J.forwardRef(S_);var Zx=u.createContext(null);function Jx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function eS(e){var t=u.useContext(Zx);return Jx(t,e)}var E_=["children","locked"],br=u.createContext(null);function $_(e,t){var n=j({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function es(e){var t=e.children,n=e.locked,r=Ne(e,E_),i=u.useContext(br),o=td(function(){return $_(i,r)},[i,r],function(a,l){return!n&&(a[0]!==l[0]||!us(a[1],l[1],!0))});return u.createElement(br.Provider,{value:o},t)}var k_=[],tS=u.createContext(null);function bd(){return u.useContext(tS)}var nS=u.createContext(k_);function ys(e){var t=u.useContext(nS);return u.useMemo(function(){return e!==void 0?[].concat(Se(t),[e]):t},[t,e])}var rS=u.createContext(null),fh=u.createContext({});function u1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ih(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 O_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Se(e.querySelectorAll("*")).filter(function(r){return u1(r,t)});return u1(e,t)&&n.unshift(e),n}var Tg=le.LEFT,Ig=le.RIGHT,zg=le.UP,Oc=le.DOWN,Rc=le.ENTER,iS=le.ESC,Qa=le.HOME,Za=le.END,d1=[zg,Oc,Tg,Ig];function R_(e,t,n,r){var i,o,a,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===Rc)return{inlineTrigger:!0};var p=(i={},L(i,zg,s),L(i,Oc,c),i),y=(o={},L(o,Tg,n?c:s),L(o,Ig,n?s:c),L(o,Oc,d),L(o,Rc,d),o),b=(a={},L(a,zg,s),L(a,Oc,c),L(a,Rc,d),L(a,iS,f),L(a,Tg,n?d:f),L(a,Ig,n?f:d),a),v={inline:p,horizontal:y,vertical:b,inlineSub:p,horizontalSub:b,verticalSub:b},x=(l=v["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(x){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function P_(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function __(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function ph(e,t){var n=O_(e,!0);return n.filter(function(r){return t.has(r)})}function f1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=ph(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var Bg=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(Jx(n,a),"']"));l&&(r.add(l),o.set(l,a),i.set(a,l))}),{elements:r,key2element:i,element2key:o}};function T_(e,t,n,r,i,o,a,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var p=function(){Bt.cancel(d.current)};return u.useEffect(function(){return function(){p()}},[]),function(y){var b=y.which;if([].concat(d1,[Rc,iS,Qa,Za]).includes(b)){var v=o(),x=Bg(v,r),m=x,g=m.elements,h=m.key2element,w=m.element2key,S=h.get(t),C=__(S,g),E=w.get(C),$=R_(e,a(E,!0).length===1,n,b);if(!$&&b!==Qa&&b!==Za)return;(d1.includes(b)||[Qa,Za].includes(b))&&y.preventDefault();var k=function(_){if(_){var R=_,I=_.querySelector("a");I!=null&&I.getAttribute("href")&&(R=I);var N=w.get(_);l(N),p(),d.current=Bt(function(){f.current===N&&R.focus()})}};if([Qa,Za].includes(b)||$.sibling||!C){var O;!C||e==="inline"?O=i.current:O=P_(C);var P,z=ph(O,g);b===Qa?P=z[0]:b===Za?P=z[z.length-1]:P=f1(O,g,C,$.offset),k(P)}else if($.inlineTrigger)s(E);else if($.offset>0)s(E,!0),p(),d.current=Bt(function(){x=Bg(v,r);var B=C.getAttribute("aria-controls"),_=document.getElementById(B),R=f1(_,x.elements);k(R)},5);else if($.offset<0){var T=a(E,!0),M=T[T.length-2],A=h.get(M);s(M,!1),k(A)}}c==null||c(y)}}function I_(e){Promise.resolve().then(e)}var gh="__RC_UTIL_PATH_SPLIT__",p1=function(t){return t.join(gh)},z_=function(t){return t.split(gh)},Mg="rc-menu-more";function B_(){var e=u.useState({}),t=H(e,2),n=t[1],r=u.useRef(new Map),i=u.useRef(new Map),o=u.useState([]),a=H(o,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},p=u.useCallback(function(h,w){var S=p1(w);i.current.set(S,h),r.current.set(h,S),c.current+=1;var C=c.current;I_(function(){C===c.current&&f()})},[]),y=u.useCallback(function(h,w){var S=p1(w);i.current.delete(S),r.current.delete(h)},[]),b=u.useCallback(function(h){s(h)},[]),v=u.useCallback(function(h,w){var S=r.current.get(h)||"",C=z_(S);return w&&l.includes(C[0])&&C.unshift(Mg),C},[l]),x=u.useCallback(function(h,w){return h.some(function(S){var C=v(S,!0);return C.includes(w)})},[v]),m=function(){var w=Se(r.current.keys());return l.length&&w.push(Mg),w},g=u.useCallback(function(h){var w="".concat(r.current.get(h)).concat(gh),S=new Set;return Se(i.current.keys()).forEach(function(C){C.startsWith(w)&&S.add(i.current.get(C))}),S},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:y,refreshOverflowKeys:b,isSubPathKey:x,getKeyPath:v,getKeys:m,getSubPathKeys:g}}function sl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(g.motionAppear=!1);var h=g.onVisibleChanged;return g.onVisibleChanged=function(w){return!p.current&&!w&&x(!0),h==null?void 0:h(w)},v?null:u.createElement(es,{mode:o,locked:!p.current},u.createElement(xr,ae({visible:m},g,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var S=w.className,C=w.style;return u.createElement(mh,{id:t,className:S,style:C},i)}))}var Q_=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Z_=["active"],J_=function(t){var n,r=t.style,i=t.className,o=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,c=t.children,d=t.itemIcon,f=t.expandIcon,p=t.popupClassName,y=t.popupOffset,b=t.popupStyle,v=t.onClick,x=t.onMouseEnter,m=t.onMouseLeave,g=t.onTitleClick,h=t.onTitleMouseEnter,w=t.onTitleMouseLeave,S=Ne(t,Q_),C=eS(a),E=u.useContext(br),$=E.prefixCls,k=E.mode,O=E.openKeys,P=E.disabled,z=E.overflowDisabled,T=E.activeKey,M=E.selectedKeys,A=E.itemIcon,B=E.expandIcon,_=E.onItemClick,R=E.onOpenChange,I=E.onActive,N=u.useContext(fh),F=N._internalRenderSubMenuItem,D=u.useContext(rS),U=D.isSubPathKey,K=ys(),G="".concat($,"-submenu"),X=P||l,Q=u.useRef(),Z=u.useRef(),ne=d??A,fe=f??B,re=O.includes(a),be=!z&&re,pe=U(M,a),xe=oS(a,X,h,w),ce=xe.active,Re=Ne(xe,Z_),ye=u.useState(!1),oe=H(ye,2),Y=oe[0],ge=oe[1],ie=function(Le){X||ge(Le)},we=function(Le){ie(!0),x==null||x({key:a,domEvent:Le})},Ce=function(Le){ie(!1),m==null||m({key:a,domEvent:Le})},Ae=u.useMemo(function(){return ce||(k!=="inline"?Y||U([T],a):!1)},[k,ce,T,Y,a,U]),De=aS(K.length),Ee=function(Le){X||(g==null||g({key:a,domEvent:Le}),k==="inline"&&R(a,!re))},ct=sl(function(tt){v==null||v(mu(tt)),_(tt)}),$e=function(Le){k!=="inline"&&R(a,Le)},ue=function(){I(a)},Te=C&&"".concat(C,"-popup"),Pe=u.createElement("div",ae({role:"menuitem",style:De,className:"".concat(G,"-title"),tabIndex:X?null:-1,ref:Q,title:typeof o=="string"?o:null,"data-menu-id":z&&C?null:C,"aria-expanded":be,"aria-haspopup":!0,"aria-controls":Te,"aria-disabled":X,onClick:Ee,onFocus:ue},Re),o,u.createElement(lS,{icon:k!=="horizontal"?fe:void 0,props:j(j({},t),{},{isOpen:be,isSubMenu:!0})},u.createElement("i",{className:"".concat(G,"-arrow")}))),ut=u.useRef(k);if(k!=="inline"&&K.length>1?ut.current="vertical":ut.current=k,!z){var Ke=ut.current;Pe=u.createElement(X_,{mode:Ke,prefixCls:G,visible:!s&&be&&k!=="inline",popupClassName:p,popupOffset:y,popupStyle:b,popup:u.createElement(es,{mode:Ke==="horizontal"?"vertical":Ke},u.createElement(mh,{id:Te,ref:Z},c)),disabled:X,onVisibleChange:$e},Pe)}var dt=u.createElement(Wr.Item,ae({role:"none"},S,{component:"li",style:r,className:q(G,"".concat(G,"-").concat(k),i,(n={},L(n,"".concat(G,"-open"),be),L(n,"".concat(G,"-active"),Ae),L(n,"".concat(G,"-selected"),pe),L(n,"".concat(G,"-disabled"),X),n)),onMouseEnter:we,onMouseLeave:Ce}),Pe,!z&&u.createElement(Y_,{id:Te,open:be,keyPath:K},c));return F&&(dt=F(dt,t,{selected:pe,active:Ae,open:be,disabled:X})),u.createElement(es,{onItemClick:ct,mode:k==="horizontal"?"vertical":k,itemIcon:ne,expandIcon:fe},dt)};function vh(e){var t=e.eventKey,n=e.children,r=ys(t),i=hh(n,r),o=bd();u.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]);var a;return o?a=i:a=u.createElement(J_,e,i),u.createElement(nS.Provider,{value:r},a)}var eT=["className","title","eventKey","children"],tT=["children"],nT=function(t){var n=t.className,r=t.title;t.eventKey;var i=t.children,o=Ne(t,eT),a=u.useContext(br),l=a.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",ae({role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:q(s,n)}),u.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))};function cS(e){var t=e.children,n=Ne(e,tT),r=ys(n.eventKey),i=hh(t,r),o=bd();return o?i:u.createElement(nT,Fn(n,["warnKey"]),i)}function uS(e){var t=e.className,n=e.style,r=u.useContext(br),i=r.prefixCls,o=bd();return o?null:u.createElement("li",{role:"separator",className:q("".concat(i,"-item-divider"),t),style:n})}var rT=["label","children","key","type"];function Ng(e){return(e||[]).map(function(t,n){if(t&&Me(t)==="object"){var r=t,i=r.label,o=r.children,a=r.key,l=r.type,s=Ne(r,rT),c=a??"tmp-".concat(n);return o||l==="group"?l==="group"?u.createElement(cS,ae({key:c},s,{title:i}),Ng(o)):u.createElement(vh,ae({key:c},s,{title:i}),Ng(o)):l==="divider"?u.createElement(uS,ae({key:c},s)):u.createElement(wd,ae({key:c},s),i)}return null}).filter(function(t){return t})}function iT(e,t,n){var r=e;return t&&(r=Ng(t)),hh(r,n)}var oT=["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"],To=[],aT=u.forwardRef(function(e,t){var n,r,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,l=i.rootClassName,s=i.style,c=i.className,d=i.tabIndex,f=d===void 0?0:d,p=i.items,y=i.children,b=i.direction,v=i.id,x=i.mode,m=x===void 0?"vertical":x,g=i.inlineCollapsed,h=i.disabled,w=i.disabledOverflow,S=i.subMenuOpenDelay,C=S===void 0?.1:S,E=i.subMenuCloseDelay,$=E===void 0?.1:E,k=i.forceSubMenuRender,O=i.defaultOpenKeys,P=i.openKeys,z=i.activeKey,T=i.defaultActiveFirst,M=i.selectable,A=M===void 0?!0:M,B=i.multiple,_=B===void 0?!1:B,R=i.defaultSelectedKeys,I=i.selectedKeys,N=i.onSelect,F=i.onDeselect,D=i.inlineIndent,U=D===void 0?24:D,K=i.motion,G=i.defaultMotions,X=i.triggerSubMenuAction,Q=X===void 0?"hover":X,Z=i.builtinPlacements,ne=i.itemIcon,fe=i.expandIcon,re=i.overflowedIndicator,be=re===void 0?"...":re,pe=i.overflowedIndicatorPopupClassName,xe=i.getPopupContainer,ce=i.onClick,Re=i.onOpenChange,ye=i.onKeyDown;i.openAnimation,i.openTransitionName;var oe=i._internalRenderMenuItem,Y=i._internalRenderSubMenuItem,ge=Ne(i,oT),ie=u.useMemo(function(){return iT(y,p,To)},[y,p]),we=u.useState(!1),Ce=H(we,2),Ae=Ce[0],De=Ce[1],Ee=u.useRef(),ct=N_(v),$e=b==="rtl",ue=hn(O,{value:P,postState:function(Ye){return Ye||To}}),Te=H(ue,2),Pe=Te[0],ut=Te[1],Ke=function(Ye){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Zt(){ut(Ye),Re==null||Re(Ye)}ot?ka.flushSync(Zt):Zt()},dt=u.useState(Pe),tt=H(dt,2),Le=tt[0],We=tt[1],He=u.useRef(!1),yt=u.useMemo(function(){return(m==="inline"||m==="vertical")&&g?["vertical",g]:[m,!1]},[m,g]),te=H(yt,2),he=te[0],Je=te[1],ke=he==="inline",qe=u.useState(he),ze=H(qe,2),_e=ze[0],de=ze[1],Oe=u.useState(Je),Fe=H(Oe,2),lt=Fe[0],Yt=Fe[1];u.useEffect(function(){de(he),Yt(Je),He.current&&(ke?ut(Le):Ke(To))},[he,Je]);var Rt=u.useState(0),Pn=H(Rt,2),Vt=Pn[0],Sn=Pn[1],fn=Vt>=ie.length-1||_e!=="horizontal"||w;u.useEffect(function(){ke&&We(Pe)},[Pe]),u.useEffect(function(){return He.current=!0,function(){He.current=!1}},[]);var Qt=B_(),gt=Qt.registerPath,Xe=Qt.unregisterPath,Be=Qt.refreshOverflowKeys,nt=Qt.isSubPathKey,Pt=Qt.getKeyPath,rn=Qt.getKeys,Wt=Qt.getSubPathKeys,Cn=u.useMemo(function(){return{registerPath:gt,unregisterPath:Xe}},[gt,Xe]),Qr=u.useMemo(function(){return{isSubPathKey:nt}},[nt]);u.useEffect(function(){Be(fn?To:ie.slice(Vt+1).map(function(et){return et.key}))},[Vt,fn]);var _t=hn(z||T&&((n=ie[0])===null||n===void 0?void 0:n.key),{value:z}),Dn=H(_t,2),tr=Dn[0],Sr=Dn[1],Zr=sl(function(et){Sr(et)}),nr=sl(function(){Sr(void 0)});u.useImperativeHandle(t,function(){return{list:Ee.current,focus:function(Ye){var ot,Zt=rn(),qt=Bg(Zt,ct),ni=qt.elements,Mi=qt.key2element,Ma=qt.element2key,Ni=ph(Ee.current,ni),bo=tr??(Ni[0]?Ma.get(Ni[0]):(ot=ie.find(function(Na){return!Na.props.disabled}))===null||ot===void 0?void 0:ot.key),Br=Mi.get(bo);if(bo&&Br){var ri;Br==null||(ri=Br.focus)===null||ri===void 0||ri.call(Br,Ye)}}}});var mo=hn(R||[],{value:I,postState:function(Ye){return Array.isArray(Ye)?Ye:Ye==null?To:[Ye]}}),ho=H(mo,2),Hn=ho[0],vo=ho[1],Jr=function(Ye){if(A){var ot=Ye.key,Zt=Hn.includes(ot),qt;_?Zt?qt=Hn.filter(function(Mi){return Mi!==ot}):qt=[].concat(Se(Hn),[ot]):qt=[ot],vo(qt);var ni=j(j({},Ye),{},{selectedKeys:qt});Zt?F==null||F(ni):N==null||N(ni)}!_&&Pe.length&&_e!=="inline"&&Ke(To)},rr=sl(function(et){ce==null||ce(mu(et)),Jr(et)}),Cr=sl(function(et,Ye){var ot=Pe.filter(function(qt){return qt!==et});if(Ye)ot.push(et);else if(_e!=="inline"){var Zt=Wt(et);ot=ot.filter(function(qt){return!Zt.has(qt)})}us(Pe,ot,!0)||Ke(ot,!0)}),ei=function(Ye,ot){var Zt=ot??!Pe.includes(Ye);Cr(Ye,Zt)},ti=T_(_e,tr,$e,ct,Ee,rn,Pt,Sr,ei,ye);u.useEffect(function(){De(!0)},[]);var ir=u.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:Y}},[oe,Y]),yo=_e!=="horizontal"||w?ie:ie.map(function(et,Ye){return u.createElement(es,{key:et.key,overflowDisabled:Ye>Vt},et)}),zr=u.createElement(Wr,ae({id:v,ref:Ee,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:wd,className:q(a,"".concat(a,"-root"),"".concat(a,"-").concat(_e),c,(r={},L(r,"".concat(a,"-inline-collapsed"),lt),L(r,"".concat(a,"-rtl"),$e),r),l),dir:b,style:s,role:"menu",tabIndex:f,data:yo,renderRawItem:function(Ye){return Ye},renderRawRest:function(Ye){var ot=Ye.length,Zt=ot?ie.slice(-ot):null;return u.createElement(vh,{eventKey:Mg,title:be,disabled:fn,internalPopupClose:ot===0,popupClassName:pe},Zt)},maxCount:_e!=="horizontal"||w?Wr.INVALIDATE:Wr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ye){Sn(Ye)},onKeyDown:ti},ge));return u.createElement(fh.Provider,{value:ir},u.createElement(Zx.Provider,{value:ct},u.createElement(es,{prefixCls:a,rootClassName:l,mode:_e,openKeys:Pe,rtl:$e,disabled:h,motion:Ae?K:null,defaultMotions:Ae?G:null,activeKey:tr,onActive:Zr,onInactive:nr,selectedKeys:Hn,inlineIndent:U,subMenuOpenDelay:C,subMenuCloseDelay:$,forceSubMenuRender:k,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:xe,itemIcon:ne,expandIcon:fe,onItemClick:rr,onOpenChange:Cr},u.createElement(rS.Provider,{value:Qr},zr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(tS.Provider,{value:Cn},ie)))))}),bs=aT;bs.Item=wd;bs.SubMenu=vh;bs.ItemGroup=cS;bs.Divider=uS;var lT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const sT=lT;var cT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:sT}))};const uT=u.forwardRef(cT);var dT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const fT=dT;var pT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:fT}))};const Ag=u.forwardRef(pT),gT=e=>!isNaN(parseFloat(e))&&isFinite(e),dS=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var mT=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}`}})(),vT=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:l="dark",style:s={},collapsible:c=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:v,onBreakpoint:x}=e,m=mT(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=u.useContext(dS),[h,w]=u.useState("collapsed"in e?e.collapsed:a),[S,C]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const E=(T,M)=>{"collapsed"in e||w(T),v==null||v(T,M)},$=u.useRef();$.current=T=>{C(T.matches),x==null||x(T.matches),h!==T.matches&&E(T.matches,"responsive")},u.useEffect(()=>{function T(A){return $.current(A)}let M;if(typeof window<"u"){const{matchMedia:A}=window;if(A&&b&&b in m1){M=A(`screen and (max-width: ${m1[b]})`);try{M.addEventListener("change",T)}catch{M.addListener(T)}T(M)}}return()=>{try{M==null||M.removeEventListener("change",T)}catch{M==null||M.removeListener(T)}}},[b]),u.useEffect(()=>{const T=hT("ant-sider-");return g.addSider(T),()=>g.removeSider(T)},[]);const k=()=>{E(!h,"clickTrigger")},{getPrefixCls:O}=u.useContext(Ve),P=()=>{const T=O("layout-sider",n),M=Fn(m,["collapsed"]),A=h?p:f,B=gT(A)?`${A}px`:String(A),_=parseFloat(String(p||0))===0?u.createElement("span",{onClick:k,className:q(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:y},i||u.createElement(uT,null)):null,N={expanded:d?u.createElement(_g,null):u.createElement(Ag,null),collapsed:d?u.createElement(Ag,null):u.createElement(_g,null)}[h?"collapsed":"expanded"],F=i!==null?_||u.createElement("div",{className:`${T}-trigger`,onClick:k,style:{width:B}},i||N):null,D=Object.assign(Object.assign({},s),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),U=q(T,`${T}-${l}`,{[`${T}-collapsed`]:!!h,[`${T}-has-trigger`]:c&&i!==null&&!_,[`${T}-below`]:!!S,[`${T}-zero-width`]:parseFloat(B)===0},r);return u.createElement("aside",Object.assign({className:U},M,{style:D,ref:t}),u.createElement("div",{className:`${T}-children`},o),c||S&&_?F:null)},z=u.useMemo(()=>({siderCollapsed:h}),[h]);return u.createElement(fS.Provider,{value:z},P())}),pS=vT;var yT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const bT=yT;var wT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:bT}))};const xT=u.forwardRef(wT);function ST(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const CT=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:y,colorPrimary:b,controlOutlineWidth:v,controlOutline:x,colorErrorOutline:m,colorWarningOutline:g,colorBgContainer:h}=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-l*s)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:d-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:b,hoverBorderColor:y,activeShadow:`0 0 0 ${v}px ${x}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:h,activeBg:h,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},ET=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},ET(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gS=(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}}),h1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),$T=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yh(e))}),h1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),h1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),v1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kT=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},v1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),v1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yh(e))}})}),OT=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),mS=(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}}),y1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),RT=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yh(e))}),y1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),y1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),b1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),PT=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:`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},b1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),b1(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:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),_T=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),hS=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${W(t)} ${W(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vS=e=>({padding:`${W(e.paddingBlockSM)} ${W(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W(e.paddingBlock)} ${W(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_T(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({},hS(e)),"&-sm":Object.assign({},vS(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),TT=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({},hS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vS(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 ${W(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${W(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${W(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:`${W(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${W(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"},ds()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},uP=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},dP=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Et(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},fP=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${W(e.paddingMD)} ${W(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${W(e.padding)} ${W(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${W(e.paddingXS)} ${W(e.padding)}`:0,footerBorderTop:e.wireframe?`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${W(e.padding*2)} ${W(e.padding*2)} ${W(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});Xt("Modal",e=>{const t=dP(e);return[cP(t),uP(t),Lx(t),uh(t,"zoom")]},fP,{unitless:{titleLineHeight:!0}});const jx=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 pP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$o=void 0;function gP(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,p=e.children,y=e.display,b=e.order,v=e.component,x=v===void 0?"div":v,m=Ne(e,pP),g=a&&!y;function h($){s(c,$)}u.useEffect(function(){return function(){h(null)}},[]);var w=o&&i!==$o?o(i):p,E;r||(E={opacity:g?0:1,height:g?0:$o,overflowY:g?"hidden":$o,order:a?b:$o,pointerEvents:g?"none":$o,position:g?"absolute":$o});var S={};g&&(S["aria-hidden"]=!0);var C=u.createElement(x,ae({className:q(!r&&n,d),style:j(j({},E),f)},S,m,{ref:t}),w);return a&&(C=u.createElement(Tr,{onResize:function(k){var O=k.offsetWidth;h(O)},disabled:l},C)),C}var Cl=u.forwardRef(gP);Cl.displayName="Item";function mP(e){if(typeof MessageChannel>"u")Bt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function hP(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],mP(function(){ka.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Ka(e,t){var n=u.useState(t),r=V(n,2),i=r[0],o=r[1],a=Kn(function(l){e(function(){o(l)})});return[i,a]}var pu=J.createContext(null),vP=["component"],yP=["className"],bP=["className"],wP=function(t,n){var r=u.useContext(pu);if(!r){var i=t.component,o=i===void 0?"div":i,a=Ne(t,vP);return u.createElement(o,ae({},a,{ref:n}))}var l=r.className,s=Ne(r,yP),c=t.className,d=Ne(t,bP);return u.createElement(pu.Provider,{value:null},u.createElement(Cl,ae({ref:n,className:q(l,c)},s,d)))},Fx=u.forwardRef(wP);Fx.displayName="RawItem";var xP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Dx="responsive",Hx="invalidate";function SP(e){return"+ ".concat(e.length," ...")}function CP(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,p=e.style,y=e.className,b=e.maxCount,v=e.renderRest,x=e.renderRawRest,m=e.suffix,g=e.component,h=g===void 0?"div":g,w=e.itemComponent,E=e.onVisibleChange,S=Ne(e,xP),C=f==="full",$=hP(),k=Ka($,null),O=V(k,2),P=O[0],z=O[1],T=P||0,M=Ka($,new Map),A=V(M,2),B=A[0],_=A[1],R=Ka($,0),I=V(R,2),N=I[0],F=I[1],D=Ka($,0),U=V(D,2),K=U[0],G=U[1],X=Ka($,0),Q=V(X,2),Z=Q[0],ne=Q[1],fe=u.useState(null),re=V(fe,2),be=re[0],pe=re[1],xe=u.useState(null),ce=V(xe,2),Re=ce[0],ye=ce[1],oe=u.useMemo(function(){return Re===null&&C?Number.MAX_SAFE_INTEGER:Re||0},[Re,P]),Y=u.useState(!1),ge=V(Y,2),ie=ge[0],we=ge[1],Ce="".concat(r,"-item"),Ae=Math.max(N,K),De=b===Dx,Ee=o.length&&De,ct=b===Hx,$e=Ee||typeof b=="number"&&o.length>b,ue=u.useMemo(function(){var de=o;return Ee?P===null&&C?de=o:de=o.slice(0,Math.min(o.length,T/d)):typeof b=="number"&&(de=o.slice(0,b)),de},[o,d,P,b,Ee]),Te=u.useMemo(function(){return Ee?o.slice(oe+1):o.slice(ue.length)},[o,ue,Ee,oe]),Pe=u.useCallback(function(de,Oe){var Fe;return typeof s=="function"?s(de):(Fe=s&&(de==null?void 0:de[s]))!==null&&Fe!==void 0?Fe:Oe},[s]),ut=u.useCallback(a||function(de){return de},[a]);function Ke(de,Oe,Fe){Re===de&&(Oe===void 0||Oe===be)||(ye(de),Fe||(we(deT){Ke(lt-1,de-Yt-Z+K);break}}m&&He(0)+Z>T&&pe(null)}},[T,B,K,Z,Pe,ue]);var yt=ie&&!!Te.length,te={};be!==null&&Ee&&(te={position:"absolute",left:be,top:0});var he={prefixCls:Ce,responsive:Ee,component:w,invalidate:ct},Je=l?function(de,Oe){var Fe=Pe(de,Oe);return u.createElement(pu.Provider,{key:Fe,value:j(j({},he),{},{order:Oe,item:de,itemKey:Fe,registerSize:tt,display:Oe<=oe})},l(de,Oe))}:function(de,Oe){var Fe=Pe(de,Oe);return u.createElement(Cl,ae({},he,{order:Oe,key:Fe,item:de,renderItem:ut,itemKey:Fe,registerSize:tt,display:Oe<=oe}))},ke,qe={order:yt?oe:Number.MAX_SAFE_INTEGER,className:"".concat(Ce,"-rest"),registerSize:Le,display:yt};if(x)x&&(ke=u.createElement(pu.Provider,{value:j(j({},he),qe)},x(Te)));else{var ze=v||SP;ke=u.createElement(Cl,ae({},he,qe),typeof ze=="function"?ze(Te):ze)}var _e=u.createElement(h,ae({className:q(!ct&&r,y),style:p,ref:t},S),ue.map(Je),$e?ke:null,m&&u.createElement(Cl,ae({},he,{responsive:De,responsiveDisabled:!Ee,order:oe,className:"".concat(Ce,"-suffix"),registerSize:We,display:!0,style:te}),m));return De&&(_e=u.createElement(Tr,{onResize:dt,disabled:!Ee},_e)),_e}var Wr=u.forwardRef(CP);Wr.displayName="Overflow";Wr.Item=Fx;Wr.RESPONSIVE=Dx;Wr.INVALIDATE=Hx;function EP(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,l=o.content,s=i.x,c=s===void 0?0:s,d=i.y,f=d===void 0?0:d,p=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],v=n.points[1],x=b[0],m=b[1],g=v[0],h=v[1];x===g||!["t","b"].includes(x)?y.top=f:x==="t"?y.top=0:y.bottom=0,m===h||!["l","r"].includes(m)?y.left=c:m==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:p,className:q("".concat(t,"-arrow"),a),style:y},l)}function $P(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?u.createElement(xr,ae({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return u.createElement("div",{style:{zIndex:r},className:q("".concat(t,"-mask"),l)})}):null}var kP=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),OP=u.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,y=e.arrow,b=e.arrowPos,v=e.align,x=e.motion,m=e.maskMotion,g=e.forceRender,h=e.getPopupContainer,w=e.autoDestroy,E=e.portal,S=e.zIndex,C=e.onMouseEnter,$=e.onMouseLeave,k=e.onPointerEnter,O=e.ready,P=e.offsetX,z=e.offsetY,T=e.offsetR,M=e.offsetB,A=e.onAlign,B=e.onPrepare,_=e.stretch,R=e.targetWidth,I=e.targetHeight,N=typeof n=="function"?n():n,F=s||c,D=(h==null?void 0:h.length)>0,U=u.useState(!h||!D),K=V(U,2),G=K[0],X=K[1];if(xt(function(){!G&&D&&a&&X(!0)},[G,D,a]),!G)return null;var Q="auto",Z={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(O||!s){var ne,fe=v.points,re=v.dynamicInset||((ne=v._experimental)===null||ne===void 0?void 0:ne.dynamicInset),be=re&&fe[0][1]==="r",pe=re&&fe[0][0]==="b";be?(Z.right=T,Z.left=Q):(Z.left=P,Z.right=Q),pe?(Z.bottom=M,Z.top=Q):(Z.top=z,Z.bottom=Q)}var xe={};return _&&(_.includes("height")&&I?xe.height=I:_.includes("minHeight")&&I&&(xe.minHeight=I),_.includes("width")&&R?xe.width=R:_.includes("minWidth")&&R&&(xe.minWidth=R)),s||(xe.pointerEvents="none"),u.createElement(E,{open:g||F,getContainer:h&&function(){return h(a)},autoDestroy:w},u.createElement($P,{prefixCls:i,open:s,zIndex:S,mask:p,motion:m}),u.createElement(Tr,{onResize:A,disabled:!s},function(ce){return u.createElement(xr,ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:B,onEnterPrepare:B,visible:s,onVisibleChanged:function(ye){var oe;x==null||(oe=x.onVisibleChanged)===null||oe===void 0||oe.call(x,ye),l(ye)}}),function(Re,ye){var oe=Re.className,Y=Re.style,ge=q(i,oe,r);return u.createElement("div",{ref:zi(ce,t,ye),className:ge,style:j(j(j(j({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},Z),xe),Y),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:C,onMouseLeave:$,onPointerEnter:k,onClick:f},y&&u.createElement(EP,{prefixCls:i,arrow:y,arrowPos:b,align:v}),u.createElement(kP,{cache:!s&&!d},N))})}))}),RP=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=po(n),o=u.useCallback(function(l){Vm(t,r?r(l):l)},[r]),a=Oa(o,n.ref);return i?u.cloneElement(n,{ref:a}):n}),n1=u.createContext(null);function r1(e){return e?Array.isArray(e)?e:[e]:[]}function PP(e,t,n,r){return u.useMemo(function(){var i=r1(n??t),o=r1(r??t),a=new Set(i),l=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function _P(){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 TP(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 Xa(e){return Ql(parseFloat(e),0)}function o1(e,t){var n=j({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=hs(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,l=i.borderTopWidth,s=i.borderBottomWidth,c=i.borderLeftWidth,d=i.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,y=r.clientHeight,b=r.offsetWidth,v=r.clientWidth,x=Xa(l),m=Xa(s),g=Xa(c),h=Xa(d),w=Ql(Math.round(f.width/b*1e3)/1e3),E=Ql(Math.round(f.height/p*1e3)/1e3),S=(b-v-g-h)*w,C=(p-y-x-m)*E,$=x*E,k=m*E,O=g*w,P=h*w,z=0,T=0;if(o==="clip"){var M=Xa(a);z=M*w,T=M*E}var A=f.x+O-z,B=f.y+$-T,_=A+f.width+2*z-O-P-S,R=B+f.height+2*T-$-k-C;n.left=Math.max(n.left,A),n.top=Math.max(n.top,B),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,R)}}),n}function a1(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 l1(e,t){var n=t||[],r=V(n,2),i=r[0],o=r[1];return[a1(e.width,i),a1(e.height,o)]}function s1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ko(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 oi(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 IP(e,t,n,r,i,o,a){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),s=V(l,2),c=s[0],d=s[1],f=u.useRef(0),p=u.useMemo(function(){return t?Pg(t):[]},[t]),y=u.useRef({}),b=function(){y.current={}};e||b();var v=Kn(function(){if(t&&n&&e){let Ut=function(Cs,Mr){var Ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,wo=N.x+Cs,Aa=N.y+Mr,_d=wo+ne,Td=Aa+Z,Id=Math.max(wo,Ai.left),zd=Math.max(Aa,Ai.top),ve=Math.min(_d,Ai.right),Ie=Math.min(Td,Ai.bottom);return Math.max(0,(ve-Id)*(Ie-zd))},Na=function(){gt=N.y+ze,Xe=gt+Z,Be=N.x+qe,nt=Be+ne};var Ch=Ut,Eh=Na,g,h,w=t,E=w.ownerDocument,S=hs(w),C=S.getComputedStyle(w),$=C.width,k=C.height,O=C.position,P=w.style.left,z=w.style.top,T=w.style.right,M=w.style.bottom,A=w.style.overflow,B=j(j({},i[r]),o),_=E.createElement("div");(g=w.parentElement)===null||g===void 0||g.appendChild(_),_.style.left="".concat(w.offsetLeft,"px"),_.style.top="".concat(w.offsetTop,"px"),_.style.position=O,_.style.height="".concat(w.offsetHeight,"px"),_.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 R;if(Array.isArray(n))R={x:n[0],y:n[1],width:0,height:0};else{var I=n.getBoundingClientRect();R={x:I.x,y:I.y,width:I.width,height:I.height}}var N=w.getBoundingClientRect(),F=E.documentElement,D=F.clientWidth,U=F.clientHeight,K=F.scrollWidth,G=F.scrollHeight,X=F.scrollTop,Q=F.scrollLeft,Z=N.height,ne=N.width,fe=R.height,re=R.width,be={left:0,top:0,right:D,bottom:U},pe={left:-Q,top:-X,right:K-Q,bottom:G-X},xe=B.htmlRegion,ce="visible",Re="visibleFirst";xe!=="scroll"&&xe!==Re&&(xe=ce);var ye=xe===Re,oe=o1(pe,p),Y=o1(be,p),ge=xe===ce?Y:oe,ie=ye?Y:ge;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var we=w.getBoundingClientRect();w.style.left=P,w.style.top=z,w.style.right=T,w.style.bottom=M,w.style.overflow=A,(h=w.parentElement)===null||h===void 0||h.removeChild(_);var Ce=Ql(Math.round(ne/parseFloat($)*1e3)/1e3),Ae=Ql(Math.round(Z/parseFloat(k)*1e3)/1e3);if(Ce===0||Ae===0||ru(n)&&!ih(n))return;var De=B.offset,Ee=B.targetOffset,ct=l1(N,De),$e=V(ct,2),ue=$e[0],Te=$e[1],Pe=l1(R,Ee),ut=V(Pe,2),Ke=ut[0],dt=ut[1];R.x-=Ke,R.y-=dt;var tt=B.points||[],Le=V(tt,2),We=Le[0],He=Le[1],yt=s1(He),te=s1(We),he=ko(R,yt),Je=ko(N,te),ke=j({},B),qe=he.x-Je.x+ue,ze=he.y-Je.y+Te,_e=Ut(qe,ze),de=Ut(qe,ze,Y),Oe=ko(R,["t","l"]),Fe=ko(N,["t","l"]),lt=ko(R,["b","r"]),Yt=ko(N,["b","r"]),Rt=B.overflow||{},Pn=Rt.adjustX,Vt=Rt.adjustY,Sn=Rt.shiftX,fn=Rt.shiftY,Qt=function(Mr){return typeof Mr=="boolean"?Mr:Mr>=0},gt,Xe,Be,nt;Na();var Pt=Qt(Vt),rn=te[0]===yt[0];if(Pt&&te[0]==="t"&&(Xe>ie.bottom||y.current.bt)){var Wt=ze;rn?Wt-=Z-fe:Wt=Oe.y-Yt.y-Te;var Cn=Ut(qe,Wt),Qr=Ut(qe,Wt,Y);Cn>_e||Cn===_e&&(!ye||Qr>=de)?(y.current.bt=!0,ze=Wt,Te=-Te,ke.points=[oi(te,0),oi(yt,0)]):y.current.bt=!1}if(Pt&&te[0]==="b"&&(gt_e||Dn===_e&&(!ye||tr>=de)?(y.current.tb=!0,ze=_t,Te=-Te,ke.points=[oi(te,0),oi(yt,0)]):y.current.tb=!1}var Sr=Qt(Pn),Zr=te[1]===yt[1];if(Sr&&te[1]==="l"&&(nt>ie.right||y.current.rl)){var nr=qe;Zr?nr-=ne-re:nr=Oe.x-Yt.x-ue;var mo=Ut(nr,ze),ho=Ut(nr,ze,Y);mo>_e||mo===_e&&(!ye||ho>=de)?(y.current.rl=!0,qe=nr,ue=-ue,ke.points=[oi(te,1),oi(yt,1)]):y.current.rl=!1}if(Sr&&te[1]==="r"&&(Be_e||vo===_e&&(!ye||Jr>=de)?(y.current.lr=!0,qe=Hn,ue=-ue,ke.points=[oi(te,1),oi(yt,1)]):y.current.lr=!1}Na();var rr=Sn===!0?0:Sn;typeof rr=="number"&&(BeY.right&&(qe-=nt-Y.right-ue,R.x>Y.right-rr&&(qe+=R.x-Y.right+rr)));var Cr=fn===!0?0:fn;typeof Cr=="number"&&(gtY.bottom&&(ze-=Xe-Y.bottom-Te,R.y>Y.bottom-Cr&&(ze+=R.y-Y.bottom+Cr)));var ei=N.x+qe,ti=ei+ne,ir=N.y+ze,yo=ir+Z,zr=R.x,et=zr+re,Ye=R.y,ot=Ye+fe,Zt=Math.max(ei,zr),qt=Math.min(ti,et),ni=(Zt+qt)/2,Mi=ni-ei,Ba=Math.max(ir,Ye),Ni=Math.min(yo,ot),bo=(Ba+Ni)/2,Br=bo-ir;a==null||a(t,ke);var ri=we.right-N.x-(qe+N.width),Ma=we.bottom-N.y-(ze+N.height);d({ready:!0,offsetX:qe/Ce,offsetY:ze/Ae,offsetR:ri/Ce,offsetB:Ma/Ae,arrowX:Mi/Ce,arrowY:Br/Ae,scaleX:Ce,scaleY:Ae,align:ke})}}),x=function(){f.current+=1;var h=f.current;Promise.resolve().then(function(){f.current===h&&v()})},m=function(){d(function(h){return j(j({},h),{},{ready:!1})})};return xt(m,[r]),xt(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,x]}function zP(e,t,n,r,i){xt(function(){if(e&&t&&n){let p=function(){r(),i()};var f=p,o=t,a=n,l=Pg(o),s=Pg(a),c=hs(a),d=new Set([c].concat(Se(l),Se(s)));return d.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),c.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(y){y.removeEventListener("scroll",p),c.removeEventListener("resize",p)})}}},[e,t,n])}function BP(e,t,n,r,i,o,a,l){var s=u.useRef(e),c=u.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),u.useEffect(function(){var d=Bt(function(){c.current=!1});return function(){Bt.cancel(d)}},[e]),u.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){var S=!1,C=function(O){var P=O.target;S=a(P)},$=function(O){var P=O.target;!c.current&&s.current&&!S&&!a(P)&&l(!1)};return[C,$]},f=d(),p=V(f,2),y=p[0],b=p[1],v=d(),x=V(v,2),m=x[0],g=x[1],h=hs(r);h.addEventListener("mousedown",y,!0),h.addEventListener("click",b,!0),h.addEventListener("contextmenu",b,!0);var w=cu(n);return w&&(w.addEventListener("mousedown",m,!0),w.addEventListener("click",g,!0),w.addEventListener("contextmenu",g,!0)),function(){h.removeEventListener("mousedown",y,!0),h.removeEventListener("click",b,!0),h.removeEventListener("contextmenu",b,!0),w&&(w.removeEventListener("mousedown",m,!0),w.removeEventListener("click",g,!0),w.removeEventListener("contextmenu",g,!0))}}},[t,n,r,i,o])}var MP=["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 NP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yd,t=u.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,y=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,v=n.mouseEnterDelay,x=n.mouseLeaveDelay,m=x===void 0?.1:x,g=n.focusDelay,h=n.blurDelay,w=n.mask,E=n.maskClosable,S=E===void 0?!0:E,C=n.getPopupContainer,$=n.forceRender,k=n.autoDestroy,O=n.destroyPopupOnHide,P=n.popup,z=n.popupClassName,T=n.popupStyle,M=n.popupPlacement,A=n.builtinPlacements,B=A===void 0?{}:A,_=n.popupAlign,R=n.zIndex,I=n.stretch,N=n.getPopupClassNameFromAlign,F=n.fresh,D=n.alignPoint,U=n.onPopupClick,K=n.onPopupAlign,G=n.arrow,X=n.popupMotion,Q=n.maskMotion,Z=n.popupTransitionName,ne=n.popupAnimation,fe=n.maskTransitionName,re=n.maskAnimation,be=n.className,pe=n.getTriggerDOMNode,xe=Ne(n,MP),ce=k||O||!1,Re=u.useState(!1),ye=V(Re,2),oe=ye[0],Y=ye[1];xt(function(){Y(jx())},[]);var ge=u.useRef({}),ie=u.useContext(n1),we=u.useMemo(function(){return{registerSubPopup:function(Ie,$t){ge.current[Ie]=$t,ie==null||ie.registerSubPopup(Ie,$t)}}},[ie]),Ce=Ox(),Ae=u.useState(null),De=V(Ae,2),Ee=De[0],ct=De[1],$e=Kn(function(ve){ru(ve)&&Ee!==ve&&ct(ve),ie==null||ie.registerSubPopup(Ce,ve)}),ue=u.useState(null),Te=V(ue,2),Pe=Te[0],ut=Te[1],Ke=u.useRef(null),dt=Kn(function(ve){ru(ve)&&Pe!==ve&&(ut(ve),Ke.current=ve)}),tt=u.Children.only(a),Le=(tt==null?void 0:tt.props)||{},We={},He=Kn(function(ve){var Ie,$t,Lt=Pe;return(Lt==null?void 0:Lt.contains(ve))||((Ie=cu(Lt))===null||Ie===void 0?void 0:Ie.host)===ve||ve===Lt||(Ee==null?void 0:Ee.contains(ve))||(($t=cu(Ee))===null||$t===void 0?void 0:$t.host)===ve||ve===Ee||Object.values(ge.current).some(function(kt){return(kt==null?void 0:kt.contains(ve))||ve===kt})}),yt=i1(o,X,ne,Z),te=i1(o,Q,re,fe),he=u.useState(p||!1),Je=V(he,2),ke=Je[0],qe=Je[1],ze=f??ke,_e=Kn(function(ve){f===void 0&&qe(ve)});xt(function(){qe(f||!1)},[f]);var de=u.useRef(ze);de.current=ze;var Oe=u.useRef([]);Oe.current=[];var Fe=Kn(function(ve){var Ie;_e(ve),((Ie=Oe.current[Oe.current.length-1])!==null&&Ie!==void 0?Ie:ze)!==ve&&(Oe.current.push(ve),y==null||y(ve))}),lt=u.useRef(),Yt=function(){clearTimeout(lt.current)},Rt=function(Ie){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Yt(),$t===0?Fe(Ie):lt.current=setTimeout(function(){Fe(Ie)},$t*1e3)};u.useEffect(function(){return Yt},[]);var Pn=u.useState(!1),Vt=V(Pn,2),Sn=Vt[0],fn=Vt[1];xt(function(ve){(!ve||ze)&&fn(!0)},[ze]);var Qt=u.useState(null),gt=V(Qt,2),Xe=gt[0],Be=gt[1],nt=u.useState([0,0]),Pt=V(nt,2),rn=Pt[0],Wt=Pt[1],Cn=function(Ie){Wt([Ie.clientX,Ie.clientY])},Qr=IP(ze,Ee,D?rn:Pe,M,B,_,K),_t=V(Qr,11),Dn=_t[0],tr=_t[1],Sr=_t[2],Zr=_t[3],nr=_t[4],mo=_t[5],ho=_t[6],Hn=_t[7],vo=_t[8],Jr=_t[9],rr=_t[10],Cr=PP(oe,s,c,d),ei=V(Cr,2),ti=ei[0],ir=ei[1],yo=ti.has("click"),zr=ir.has("click")||ir.has("contextMenu"),et=Kn(function(){Sn||rr()}),Ye=function(){de.current&&D&&zr&&Rt(!1)};zP(ze,Pe,Ee,et,Ye),xt(function(){et()},[rn,M]),xt(function(){ze&&!(B!=null&&B[M])&&et()},[JSON.stringify(_)]);var ot=u.useMemo(function(){var ve=TP(B,o,Jr,D);return q(ve,N==null?void 0:N(Jr))},[Jr,N,B,o,D]);u.useImperativeHandle(r,function(){return{nativeElement:Ke.current,forceAlign:et}});var Zt=u.useState(0),qt=V(Zt,2),ni=qt[0],Mi=qt[1],Ba=u.useState(0),Ni=V(Ba,2),bo=Ni[0],Br=Ni[1],ri=function(){if(I&&Pe){var Ie=Pe.getBoundingClientRect();Mi(Ie.width),Br(Ie.height)}},Ma=function(){ri(),et()},Ch=function(Ie){fn(!1),rr(),b==null||b(Ie)},Eh=function(){return new Promise(function(Ie){ri(),Be(function(){return Ie})})};xt(function(){Xe&&(rr(),Xe(),Be(null))},[Xe]);function Ut(ve,Ie,$t,Lt){We[ve]=function(kt){var Es;Lt==null||Lt(kt),Rt(Ie,$t);for(var Bd=arguments.length,$h=new Array(Bd>1?Bd-1:0),$s=1;$s1?$t-1:0),kt=1;kt<$t;kt++)Lt[kt-1]=arguments[kt];(Ie=Le.onClick)===null||Ie===void 0||Ie.call.apply(Ie,[Le,ve].concat(Lt))}),BP(ze,zr,Pe,Ee,w,S,He,Rt);var Na=ti.has("hover"),Cs=ir.has("hover"),Mr,Ai;Na&&(Ut("onMouseEnter",!0,v,function(ve){Cn(ve)}),Ut("onPointerEnter",!0,v,function(ve){Cn(ve)}),Mr=function(Ie){(ze||Sn)&&Ee!==null&&Ee!==void 0&&Ee.contains(Ie.target)&&Rt(!0,v)},D&&(We.onMouseMove=function(ve){var Ie;(Ie=Le.onMouseMove)===null||Ie===void 0||Ie.call(Le,ve)})),Cs&&(Ut("onMouseLeave",!1,m),Ut("onPointerLeave",!1,m),Ai=function(){Rt(!1,m)}),ti.has("focus")&&Ut("onFocus",!0,g),ir.has("focus")&&Ut("onBlur",!1,h),ti.has("contextMenu")&&(We.onContextMenu=function(ve){var Ie;de.current&&ir.has("contextMenu")?Rt(!1):(Cn(ve),Rt(!0)),ve.preventDefault();for(var $t=arguments.length,Lt=new Array($t>1?$t-1:0),kt=1;kt<$t;kt++)Lt[kt-1]=arguments[kt];(Ie=Le.onContextMenu)===null||Ie===void 0||Ie.call.apply(Ie,[Le,ve].concat(Lt))}),be&&(We.className=q(Le.className,be));var wo=j(j({},Le),We),Aa={},_d=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];_d.forEach(function(ve){xe[ve]&&(Aa[ve]=function(){for(var Ie,$t=arguments.length,Lt=new Array($t),kt=0;kt<$t;kt++)Lt[kt]=arguments[kt];(Ie=wo[ve])===null||Ie===void 0||Ie.call.apply(Ie,[wo].concat(Lt)),xe[ve].apply(xe,Lt)})});var Td=u.cloneElement(tt,j(j({},wo),Aa)),Id={x:mo,y:ho},zd=G?j({},G!==!0?G:{}):null;return u.createElement(u.Fragment,null,u.createElement(Tr,{disabled:!ze,ref:dt,onResize:Ma},u.createElement(RP,{getTriggerDOMNode:pe},Td)),u.createElement(n1.Provider,{value:we},u.createElement(OP,{portal:e,ref:$e,prefixCls:o,popup:P,className:q(z,ot),style:T,target:Pe,onMouseEnter:Mr,onMouseLeave:Ai,onPointerEnter:Mr,zIndex:R,open:ze,keepDom:Sn,fresh:F,onClick:U,mask:w,motion:yt,maskMotion:te,onVisibleChanged:Ch,onPrepare:Eh,forceRender:$,autoDestroy:ce,getPopupContainer:C,align:Jr,arrow:zd,arrowPos:Id,ready:Dn,offsetX:tr,offsetY:Sr,offsetR:Zr,offsetB:nr,onAlign:et,stretch:I,targetWidth:ni/Hn,targetHeight:bo/vo})))});return t}const dh=NP(yd);function AP(e,t,n){return q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const LP=(e,t)=>t||e,jP=["outlined","borderless","filled"],FP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=u.useContext(LR);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const i=jP.includes(r);return[r,i]};var DP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const HP=DP;var VP=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:HP}))};const Vx=u.forwardRef(VP),Zl=["xxl","xl","lg","md","sm","xs"],WP=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)`}),qP=e=>{const t=e,n=[].concat(Zl).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);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],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],l=c=>{let{matches:d}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:d}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function UP(){const[,e]=u.useReducer(t=>t+1,0);return e}function GP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=u.useRef({}),n=UP(),r=Wx();return xt(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}function qx(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return u.createElement("div",{className:q("".concat(n,"-content"),o),style:a},u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Oo={shiftX:64,adjustY:1},Ro={adjustX:1,shiftY:!0},Wn=[0,0],KP={left:{points:["cr","cl"],overflow:Ro,offset:[-4,0],targetOffset:Wn},right:{points:["cl","cr"],overflow:Ro,offset:[4,0],targetOffset:Wn},top:{points:["bc","tc"],overflow:Oo,offset:[0,-4],targetOffset:Wn},bottom:{points:["tc","bc"],overflow:Oo,offset:[0,4],targetOffset:Wn},topLeft:{points:["bl","tl"],overflow:Oo,offset:[0,-4],targetOffset:Wn},leftTop:{points:["tr","tl"],overflow:Ro,offset:[-4,0],targetOffset:Wn},topRight:{points:["br","tr"],overflow:Oo,offset:[0,-4],targetOffset:Wn},rightTop:{points:["tl","tr"],overflow:Ro,offset:[4,0],targetOffset:Wn},bottomRight:{points:["tr","br"],overflow:Oo,offset:[0,4],targetOffset:Wn},rightBottom:{points:["bl","br"],overflow:Ro,offset:[4,0],targetOffset:Wn},bottomLeft:{points:["tl","bl"],overflow:Oo,offset:[0,4],targetOffset:Wn},leftBottom:{points:["br","bl"],overflow:Ro,offset:[-4,0],targetOffset:Wn}},XP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],YP=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,y=t.children,b=t.onVisibleChange,v=t.afterVisibleChange,x=t.transitionName,m=t.animation,g=t.motion,h=t.placement,w=h===void 0?"right":h,E=t.align,S=E===void 0?{}:E,C=t.destroyTooltipOnHide,$=C===void 0?!1:C,k=t.defaultVisible,O=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,T=t.id,M=t.showArrow,A=M===void 0?!0:M,B=Ne(t,XP),_=u.useRef(null);u.useImperativeHandle(n,function(){return _.current});var R=j({},B);"visible"in t&&(R.popupVisible=t.visible);var I=function(){return u.createElement(qx,{key:"content",prefixCls:p,id:T,overlayInnerStyle:P},z)};return u.createElement(dh,ae({popupClassName:r,prefixCls:p,popup:I,action:o,builtinPlacements:KP,popupPlacement:w,ref:_,popupAlign:S,getPopupContainer:O,onPopupVisibleChange:b,afterPopupVisibleChange:v,popupTransitionName:x,popupAnimation:m,popupMotion:g,defaultPopupVisible:k,autoDestroy:$,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:l,arrow:A},R),y)};const QP=u.forwardRef(YP);function ZP(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,l=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,p=d,y=2*i-l,b=s,v=2*i-o,x=a,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),h=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,w=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${y} ${b} A ${r} ${r} 0 0 0 ${v} ${x} Z')`;return{arrowShadowWidth:m,arrowPath:w,arrowPolygon:h}}const JP=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${W(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ux=8;function Gx(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Ux:r}}function tc(e,t){return e?t:{}}function e_(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},JP(e,t,i)),{"&:before":{background:t}})]},tc(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),tc(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),tc(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),tc(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function t_(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 c1={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"]}},n_={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"]}},r_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function i_(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,l=t/2,s={};return Object.keys(c1).forEach(c=>{const d=r&&n_[c]||c1[c],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,r_.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+i;break}const p=Gx({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal+l;break}f.overflow=t_(c,p,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const o_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${W(e.calc(c).div(2).equal())} ${W(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,Ux)}},[`${t}-content`]:{position:"relative"}}),F5(e,(f,p)=>{let{darkColor:y}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},e_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},a_=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Gx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),ZP(Et(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Kx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Xt("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,l=Et(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[o_(l),uh(r,"zoom-big-fast")]},a_,{resetStyle:!1,injectStyle:t})(e)},l_=su.map(e=>`${e}-inverse`);function s_(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Se(l_),Se(su)).includes(e):su.includes(e)}function Xx(e,t){const n=s_(t),r=q({[`${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 c_=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("tooltip",t),[c,d,f]=Kx(s),p=Xx(s,o),y=p.arrowStyle,b=Object.assign(Object.assign({},a),p.overlayStyle),v=q(d,f,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return c(u.createElement("div",{className:v,style:y},u.createElement("div",{className:`${s}-arrow`}),u.createElement(qx,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:b}),i)))},u_=c_;var d_=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:l,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:y,arrow:b=!0,title:v,overlay:x,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:h=!0}=e,w=!!b,[,E]=yr(),{getPopupContainer:S,getPrefixCls:C,direction:$}=u.useContext(Ve),k=Ew(),O=u.useRef(null),P=()=>{var Ce;(Ce=O.current)===null||Ce===void 0||Ce.forceAlign()};u.useImperativeHandle(t,()=>({forceAlign:P,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),P()}}));const[z,T]=hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!v&&!x&&v!==0,A=Ce=>{var Ae,De;T(M?!1:Ce),M||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,Ce),(De=e.onVisibleChange)===null||De===void 0||De.call(e,Ce))},B=u.useMemo(()=>{var Ce,Ae;let De=g;return typeof b=="object"&&(De=(Ae=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:g),m||i_({arrowPointAtCenter:De,autoAdjustOverflow:h,arrowWidth:w?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[g,b,m,E]),_=u.useMemo(()=>v===0?v:x||v||"",[x,v]),R=u.createElement(WO,null,typeof _=="function"?_():_),{getPopupContainer:I,placement:N="top",mouseEnterDelay:F=.1,mouseLeaveDelay:D=.1,overlayStyle:U,rootClassName:K}=e,G=d_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=C("tooltip",i),Q=C(),Z=e["data-popover-inject"];let ne=z;!("open"in e)&&!("visible"in e)&&M&&(ne=!1);const fe=nh(d)&&!lx(d)?d:u.createElement("span",null,d),re=fe.props,be=!re.className||typeof re.className=="string"?q(re.className,o||`${X}-open`):re.className,[pe,xe,ce]=Kx(X,!Z),Re=Xx(X,s),ye=Re.arrowStyle,oe=Object.assign(Object.assign({},c),Re.overlayStyle),Y=q(l,{[`${X}-rtl`]:$==="rtl"},Re.className,K,xe,ce),[ge,ie]=rh("Tooltip",G.zIndex),we=u.createElement(QP,Object.assign({},G,{zIndex:ge,showArrow:w,placement:N,mouseEnterDelay:F,mouseLeaveDelay:D,prefixCls:X,overlayClassName:Y,overlayStyle:Object.assign(Object.assign({},ye),U),getTooltipContainer:I||a||S,ref:O,builtinPlacements:B,overlay:R,visible:ne,onVisibleChange:A,afterVisibleChange:f??p,overlayInnerStyle:oe,arrowContent:u.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:wa(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),ne?gd(fe,{className:be}):fe);return pe(u.createElement(fx.Provider,{value:ie},we))});Yx._InternalPanelDoNotUseOrYouWillBeFired=u_;const gu=Yx;var f_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const p_=f_;var g_=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:p_}))};const _g=u.forwardRef(g_);var m_=le.ESC,h_=le.TAB;function v_(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=u.useRef(!1),l=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},s=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 m_:l();break;case h_:{var p=!1;a.current||(p=s()),p?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Bt(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var y_=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=zi(t,o==null?void 0:o.ref);return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(i,"-arrow")}),J.cloneElement(o,{ref:po(o)?a:void 0}))}),Po={adjustX:1,adjustY:1},_o=[0,0],b_={topLeft:{points:["bl","tl"],overflow:Po,offset:[0,-4],targetOffset:_o},top:{points:["bc","tc"],overflow:Po,offset:[0,-4],targetOffset:_o},topRight:{points:["br","tr"],overflow:Po,offset:[0,-4],targetOffset:_o},bottomLeft:{points:["tl","bl"],overflow:Po,offset:[0,4],targetOffset:_o},bottom:{points:["tc","bc"],overflow:Po,offset:[0,4],targetOffset:_o},bottomRight:{points:["tr","br"],overflow:Po,offset:[0,4],targetOffset:_o}},w_=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x_(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,y=p===void 0?b_:p,b=e.getPopupContainer,v=e.showAction,x=e.hideAction,m=e.overlayClassName,g=e.overlayStyle,h=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,S=e.autoFocus,C=e.overlay,$=e.children,k=e.onVisibleChange,O=Ne(e,w_),P=J.useState(),z=V(P,2),T=z[0],M=z[1],A="visible"in e?h:T,B=J.useRef(null),_=J.useRef(null),R=J.useRef(null);J.useImperativeHandle(t,function(){return B.current});var I=function(Z){M(Z),k==null||k(Z)};v_({visible:A,triggerRef:R,onVisibleChange:I,autoFocus:S,overlayRef:_});var N=function(Z){var ne=e.onOverlayClick;M(!1),ne&&ne(Z)},F=function(){return J.createElement(y_,{ref:_,overlay:C,prefixCls:a,arrow:i})},D=function(){return typeof C=="function"?F:F()},U=function(){var Z=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ne},K=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(a,"-open")},G=J.cloneElement($,{className:q((n=$.props)===null||n===void 0?void 0:n.className,A&&K()),ref:po($)?zi(R,$.ref):void 0}),X=x;return!X&&E.indexOf("contextMenu")!==-1&&(X=["click"]),J.createElement(dh,ae({builtinPlacements:y},O,{prefixCls:a,ref:B,popupClassName:q(m,L({},"".concat(a,"-show-arrow"),i)),popupStyle:g,action:E,showAction:v,hideAction:X,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:A,stretch:U()?"minWidth":"",popup:D(),onPopupVisibleChange:I,onPopupClick:N,getPopupContainer:b}),G)}const S_=J.forwardRef(x_);var Qx=u.createContext(null);function Zx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Jx(e){var t=u.useContext(Qx);return Zx(t,e)}var C_=["children","locked"],br=u.createContext(null);function E_(e,t){var n=j({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Jl(e){var t=e.children,n=e.locked,r=Ne(e,C_),i=u.useContext(br),o=td(function(){return E_(i,r)},[i,r],function(a,l){return!n&&(a[0]!==l[0]||!cs(a[1],l[1],!0))});return u.createElement(br.Provider,{value:o},t)}var $_=[],eS=u.createContext(null);function bd(){return u.useContext(eS)}var tS=u.createContext($_);function vs(e){var t=u.useContext(tS);return u.useMemo(function(){return e!==void 0?[].concat(Se(t),[e]):t},[t,e])}var nS=u.createContext(null),fh=u.createContext({});function u1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ih(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 k_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Se(e.querySelectorAll("*")).filter(function(r){return u1(r,t)});return u1(e,t)&&n.unshift(e),n}var Tg=le.LEFT,Ig=le.RIGHT,zg=le.UP,Oc=le.DOWN,Rc=le.ENTER,rS=le.ESC,Ya=le.HOME,Qa=le.END,d1=[zg,Oc,Tg,Ig];function O_(e,t,n,r){var i,o,a,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===Rc)return{inlineTrigger:!0};var p=(i={},L(i,zg,s),L(i,Oc,c),i),y=(o={},L(o,Tg,n?c:s),L(o,Ig,n?s:c),L(o,Oc,d),L(o,Rc,d),o),b=(a={},L(a,zg,s),L(a,Oc,c),L(a,Rc,d),L(a,rS,f),L(a,Tg,n?d:f),L(a,Ig,n?f:d),a),v={inline:p,horizontal:y,vertical:b,inlineSub:p,horizontalSub:b,verticalSub:b},x=(l=v["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(x){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function R_(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function P_(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function ph(e,t){var n=k_(e,!0);return n.filter(function(r){return t.has(r)})}function f1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=ph(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var Bg=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(Zx(n,a),"']"));l&&(r.add(l),o.set(l,a),i.set(a,l))}),{elements:r,key2element:i,element2key:o}};function __(e,t,n,r,i,o,a,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var p=function(){Bt.cancel(d.current)};return u.useEffect(function(){return function(){p()}},[]),function(y){var b=y.which;if([].concat(d1,[Rc,rS,Ya,Qa]).includes(b)){var v=o(),x=Bg(v,r),m=x,g=m.elements,h=m.key2element,w=m.element2key,E=h.get(t),S=P_(E,g),C=w.get(S),$=O_(e,a(C,!0).length===1,n,b);if(!$&&b!==Ya&&b!==Qa)return;(d1.includes(b)||[Ya,Qa].includes(b))&&y.preventDefault();var k=function(_){if(_){var R=_,I=_.querySelector("a");I!=null&&I.getAttribute("href")&&(R=I);var N=w.get(_);l(N),p(),d.current=Bt(function(){f.current===N&&R.focus()})}};if([Ya,Qa].includes(b)||$.sibling||!S){var O;!S||e==="inline"?O=i.current:O=R_(S);var P,z=ph(O,g);b===Ya?P=z[0]:b===Qa?P=z[z.length-1]:P=f1(O,g,S,$.offset),k(P)}else if($.inlineTrigger)s(C);else if($.offset>0)s(C,!0),p(),d.current=Bt(function(){x=Bg(v,r);var B=S.getAttribute("aria-controls"),_=document.getElementById(B),R=f1(_,x.elements);k(R)},5);else if($.offset<0){var T=a(C,!0),M=T[T.length-2],A=h.get(M);s(M,!1),k(A)}}c==null||c(y)}}function T_(e){Promise.resolve().then(e)}var gh="__RC_UTIL_PATH_SPLIT__",p1=function(t){return t.join(gh)},I_=function(t){return t.split(gh)},Mg="rc-menu-more";function z_(){var e=u.useState({}),t=V(e,2),n=t[1],r=u.useRef(new Map),i=u.useRef(new Map),o=u.useState([]),a=V(o,2),l=a[0],s=a[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},p=u.useCallback(function(h,w){var E=p1(w);i.current.set(E,h),r.current.set(h,E),c.current+=1;var S=c.current;T_(function(){S===c.current&&f()})},[]),y=u.useCallback(function(h,w){var E=p1(w);i.current.delete(E),r.current.delete(h)},[]),b=u.useCallback(function(h){s(h)},[]),v=u.useCallback(function(h,w){var E=r.current.get(h)||"",S=I_(E);return w&&l.includes(S[0])&&S.unshift(Mg),S},[l]),x=u.useCallback(function(h,w){return h.some(function(E){var S=v(E,!0);return S.includes(w)})},[v]),m=function(){var w=Se(r.current.keys());return l.length&&w.push(Mg),w},g=u.useCallback(function(h){var w="".concat(r.current.get(h)).concat(gh),E=new Set;return Se(i.current.keys()).forEach(function(S){S.startsWith(w)&&E.add(i.current.get(S))}),E},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:y,refreshOverflowKeys:b,isSubPathKey:x,getKeyPath:v,getKeys:m,getSubPathKeys:g}}function ll(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(g.motionAppear=!1);var h=g.onVisibleChanged;return g.onVisibleChanged=function(w){return!p.current&&!w&&x(!0),h==null?void 0:h(w)},v?null:u.createElement(Jl,{mode:o,locked:!p.current},u.createElement(xr,ae({visible:m},g,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var E=w.className,S=w.style;return u.createElement(mh,{id:t,className:E,style:S},i)}))}var Y_=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Q_=["active"],Z_=function(t){var n,r=t.style,i=t.className,o=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,c=t.children,d=t.itemIcon,f=t.expandIcon,p=t.popupClassName,y=t.popupOffset,b=t.popupStyle,v=t.onClick,x=t.onMouseEnter,m=t.onMouseLeave,g=t.onTitleClick,h=t.onTitleMouseEnter,w=t.onTitleMouseLeave,E=Ne(t,Y_),S=Jx(a),C=u.useContext(br),$=C.prefixCls,k=C.mode,O=C.openKeys,P=C.disabled,z=C.overflowDisabled,T=C.activeKey,M=C.selectedKeys,A=C.itemIcon,B=C.expandIcon,_=C.onItemClick,R=C.onOpenChange,I=C.onActive,N=u.useContext(fh),F=N._internalRenderSubMenuItem,D=u.useContext(nS),U=D.isSubPathKey,K=vs(),G="".concat($,"-submenu"),X=P||l,Q=u.useRef(),Z=u.useRef(),ne=d??A,fe=f??B,re=O.includes(a),be=!z&&re,pe=U(M,a),xe=iS(a,X,h,w),ce=xe.active,Re=Ne(xe,Q_),ye=u.useState(!1),oe=V(ye,2),Y=oe[0],ge=oe[1],ie=function(Le){X||ge(Le)},we=function(Le){ie(!0),x==null||x({key:a,domEvent:Le})},Ce=function(Le){ie(!1),m==null||m({key:a,domEvent:Le})},Ae=u.useMemo(function(){return ce||(k!=="inline"?Y||U([T],a):!1)},[k,ce,T,Y,a,U]),De=oS(K.length),Ee=function(Le){X||(g==null||g({key:a,domEvent:Le}),k==="inline"&&R(a,!re))},ct=ll(function(tt){v==null||v(mu(tt)),_(tt)}),$e=function(Le){k!=="inline"&&R(a,Le)},ue=function(){I(a)},Te=S&&"".concat(S,"-popup"),Pe=u.createElement("div",ae({role:"menuitem",style:De,className:"".concat(G,"-title"),tabIndex:X?null:-1,ref:Q,title:typeof o=="string"?o:null,"data-menu-id":z&&S?null:S,"aria-expanded":be,"aria-haspopup":!0,"aria-controls":Te,"aria-disabled":X,onClick:Ee,onFocus:ue},Re),o,u.createElement(aS,{icon:k!=="horizontal"?fe:void 0,props:j(j({},t),{},{isOpen:be,isSubMenu:!0})},u.createElement("i",{className:"".concat(G,"-arrow")}))),ut=u.useRef(k);if(k!=="inline"&&K.length>1?ut.current="vertical":ut.current=k,!z){var Ke=ut.current;Pe=u.createElement(K_,{mode:Ke,prefixCls:G,visible:!s&&be&&k!=="inline",popupClassName:p,popupOffset:y,popupStyle:b,popup:u.createElement(Jl,{mode:Ke==="horizontal"?"vertical":Ke},u.createElement(mh,{id:Te,ref:Z},c)),disabled:X,onVisibleChange:$e},Pe)}var dt=u.createElement(Wr.Item,ae({role:"none"},E,{component:"li",style:r,className:q(G,"".concat(G,"-").concat(k),i,(n={},L(n,"".concat(G,"-open"),be),L(n,"".concat(G,"-active"),Ae),L(n,"".concat(G,"-selected"),pe),L(n,"".concat(G,"-disabled"),X),n)),onMouseEnter:we,onMouseLeave:Ce}),Pe,!z&&u.createElement(X_,{id:Te,open:be,keyPath:K},c));return F&&(dt=F(dt,t,{selected:pe,active:Ae,open:be,disabled:X})),u.createElement(Jl,{onItemClick:ct,mode:k==="horizontal"?"vertical":k,itemIcon:ne,expandIcon:fe},dt)};function vh(e){var t=e.eventKey,n=e.children,r=vs(t),i=hh(n,r),o=bd();u.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]);var a;return o?a=i:a=u.createElement(Z_,e,i),u.createElement(tS.Provider,{value:r},a)}var J_=["className","title","eventKey","children"],eT=["children"],tT=function(t){var n=t.className,r=t.title;t.eventKey;var i=t.children,o=Ne(t,J_),a=u.useContext(br),l=a.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",ae({role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:q(s,n)}),u.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))};function sS(e){var t=e.children,n=Ne(e,eT),r=vs(n.eventKey),i=hh(t,r),o=bd();return o?i:u.createElement(tT,Fn(n,["warnKey"]),i)}function cS(e){var t=e.className,n=e.style,r=u.useContext(br),i=r.prefixCls,o=bd();return o?null:u.createElement("li",{role:"separator",className:q("".concat(i,"-item-divider"),t),style:n})}var nT=["label","children","key","type"];function Ng(e){return(e||[]).map(function(t,n){if(t&&Me(t)==="object"){var r=t,i=r.label,o=r.children,a=r.key,l=r.type,s=Ne(r,nT),c=a??"tmp-".concat(n);return o||l==="group"?l==="group"?u.createElement(sS,ae({key:c},s,{title:i}),Ng(o)):u.createElement(vh,ae({key:c},s,{title:i}),Ng(o)):l==="divider"?u.createElement(cS,ae({key:c},s)):u.createElement(wd,ae({key:c},s),i)}return null}).filter(function(t){return t})}function rT(e,t,n){var r=e;return t&&(r=Ng(t)),hh(r,n)}var iT=["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"],To=[],oT=u.forwardRef(function(e,t){var n,r,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,l=i.rootClassName,s=i.style,c=i.className,d=i.tabIndex,f=d===void 0?0:d,p=i.items,y=i.children,b=i.direction,v=i.id,x=i.mode,m=x===void 0?"vertical":x,g=i.inlineCollapsed,h=i.disabled,w=i.disabledOverflow,E=i.subMenuOpenDelay,S=E===void 0?.1:E,C=i.subMenuCloseDelay,$=C===void 0?.1:C,k=i.forceSubMenuRender,O=i.defaultOpenKeys,P=i.openKeys,z=i.activeKey,T=i.defaultActiveFirst,M=i.selectable,A=M===void 0?!0:M,B=i.multiple,_=B===void 0?!1:B,R=i.defaultSelectedKeys,I=i.selectedKeys,N=i.onSelect,F=i.onDeselect,D=i.inlineIndent,U=D===void 0?24:D,K=i.motion,G=i.defaultMotions,X=i.triggerSubMenuAction,Q=X===void 0?"hover":X,Z=i.builtinPlacements,ne=i.itemIcon,fe=i.expandIcon,re=i.overflowedIndicator,be=re===void 0?"...":re,pe=i.overflowedIndicatorPopupClassName,xe=i.getPopupContainer,ce=i.onClick,Re=i.onOpenChange,ye=i.onKeyDown;i.openAnimation,i.openTransitionName;var oe=i._internalRenderMenuItem,Y=i._internalRenderSubMenuItem,ge=Ne(i,iT),ie=u.useMemo(function(){return rT(y,p,To)},[y,p]),we=u.useState(!1),Ce=V(we,2),Ae=Ce[0],De=Ce[1],Ee=u.useRef(),ct=M_(v),$e=b==="rtl",ue=hn(O,{value:P,postState:function(Ye){return Ye||To}}),Te=V(ue,2),Pe=Te[0],ut=Te[1],Ke=function(Ye){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Zt(){ut(Ye),Re==null||Re(Ye)}ot?ka.flushSync(Zt):Zt()},dt=u.useState(Pe),tt=V(dt,2),Le=tt[0],We=tt[1],He=u.useRef(!1),yt=u.useMemo(function(){return(m==="inline"||m==="vertical")&&g?["vertical",g]:[m,!1]},[m,g]),te=V(yt,2),he=te[0],Je=te[1],ke=he==="inline",qe=u.useState(he),ze=V(qe,2),_e=ze[0],de=ze[1],Oe=u.useState(Je),Fe=V(Oe,2),lt=Fe[0],Yt=Fe[1];u.useEffect(function(){de(he),Yt(Je),He.current&&(ke?ut(Le):Ke(To))},[he,Je]);var Rt=u.useState(0),Pn=V(Rt,2),Vt=Pn[0],Sn=Pn[1],fn=Vt>=ie.length-1||_e!=="horizontal"||w;u.useEffect(function(){ke&&We(Pe)},[Pe]),u.useEffect(function(){return He.current=!0,function(){He.current=!1}},[]);var Qt=z_(),gt=Qt.registerPath,Xe=Qt.unregisterPath,Be=Qt.refreshOverflowKeys,nt=Qt.isSubPathKey,Pt=Qt.getKeyPath,rn=Qt.getKeys,Wt=Qt.getSubPathKeys,Cn=u.useMemo(function(){return{registerPath:gt,unregisterPath:Xe}},[gt,Xe]),Qr=u.useMemo(function(){return{isSubPathKey:nt}},[nt]);u.useEffect(function(){Be(fn?To:ie.slice(Vt+1).map(function(et){return et.key}))},[Vt,fn]);var _t=hn(z||T&&((n=ie[0])===null||n===void 0?void 0:n.key),{value:z}),Dn=V(_t,2),tr=Dn[0],Sr=Dn[1],Zr=ll(function(et){Sr(et)}),nr=ll(function(){Sr(void 0)});u.useImperativeHandle(t,function(){return{list:Ee.current,focus:function(Ye){var ot,Zt=rn(),qt=Bg(Zt,ct),ni=qt.elements,Mi=qt.key2element,Ba=qt.element2key,Ni=ph(Ee.current,ni),bo=tr??(Ni[0]?Ba.get(Ni[0]):(ot=ie.find(function(Ma){return!Ma.props.disabled}))===null||ot===void 0?void 0:ot.key),Br=Mi.get(bo);if(bo&&Br){var ri;Br==null||(ri=Br.focus)===null||ri===void 0||ri.call(Br,Ye)}}}});var mo=hn(R||[],{value:I,postState:function(Ye){return Array.isArray(Ye)?Ye:Ye==null?To:[Ye]}}),ho=V(mo,2),Hn=ho[0],vo=ho[1],Jr=function(Ye){if(A){var ot=Ye.key,Zt=Hn.includes(ot),qt;_?Zt?qt=Hn.filter(function(Mi){return Mi!==ot}):qt=[].concat(Se(Hn),[ot]):qt=[ot],vo(qt);var ni=j(j({},Ye),{},{selectedKeys:qt});Zt?F==null||F(ni):N==null||N(ni)}!_&&Pe.length&&_e!=="inline"&&Ke(To)},rr=ll(function(et){ce==null||ce(mu(et)),Jr(et)}),Cr=ll(function(et,Ye){var ot=Pe.filter(function(qt){return qt!==et});if(Ye)ot.push(et);else if(_e!=="inline"){var Zt=Wt(et);ot=ot.filter(function(qt){return!Zt.has(qt)})}cs(Pe,ot,!0)||Ke(ot,!0)}),ei=function(Ye,ot){var Zt=ot??!Pe.includes(Ye);Cr(Ye,Zt)},ti=__(_e,tr,$e,ct,Ee,rn,Pt,Sr,ei,ye);u.useEffect(function(){De(!0)},[]);var ir=u.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:Y}},[oe,Y]),yo=_e!=="horizontal"||w?ie:ie.map(function(et,Ye){return u.createElement(Jl,{key:et.key,overflowDisabled:Ye>Vt},et)}),zr=u.createElement(Wr,ae({id:v,ref:Ee,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:wd,className:q(a,"".concat(a,"-root"),"".concat(a,"-").concat(_e),c,(r={},L(r,"".concat(a,"-inline-collapsed"),lt),L(r,"".concat(a,"-rtl"),$e),r),l),dir:b,style:s,role:"menu",tabIndex:f,data:yo,renderRawItem:function(Ye){return Ye},renderRawRest:function(Ye){var ot=Ye.length,Zt=ot?ie.slice(-ot):null;return u.createElement(vh,{eventKey:Mg,title:be,disabled:fn,internalPopupClose:ot===0,popupClassName:pe},Zt)},maxCount:_e!=="horizontal"||w?Wr.INVALIDATE:Wr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ye){Sn(Ye)},onKeyDown:ti},ge));return u.createElement(fh.Provider,{value:ir},u.createElement(Qx.Provider,{value:ct},u.createElement(Jl,{prefixCls:a,rootClassName:l,mode:_e,openKeys:Pe,rtl:$e,disabled:h,motion:Ae?K:null,defaultMotions:Ae?G:null,activeKey:tr,onActive:Zr,onInactive:nr,selectedKeys:Hn,inlineIndent:U,subMenuOpenDelay:S,subMenuCloseDelay:$,forceSubMenuRender:k,builtinPlacements:Z,triggerSubMenuAction:Q,getPopupContainer:xe,itemIcon:ne,expandIcon:fe,onItemClick:rr,onOpenChange:Cr},u.createElement(nS.Provider,{value:Qr},zr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(eS.Provider,{value:Cn},ie)))))}),ys=oT;ys.Item=wd;ys.SubMenu=vh;ys.ItemGroup=sS;ys.Divider=cS;var aT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const lT=aT;var sT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:lT}))};const cT=u.forwardRef(sT);var uT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const dT=uT;var fT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:dT}))};const Ag=u.forwardRef(fT),pT=e=>!isNaN(parseFloat(e))&&isFinite(e),uS=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var gT=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}`}})(),hT=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:l="dark",style:s={},collapsible:c=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:v,onBreakpoint:x}=e,m=gT(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=u.useContext(uS),[h,w]=u.useState("collapsed"in e?e.collapsed:a),[E,S]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const C=(T,M)=>{"collapsed"in e||w(T),v==null||v(T,M)},$=u.useRef();$.current=T=>{S(T.matches),x==null||x(T.matches),h!==T.matches&&C(T.matches,"responsive")},u.useEffect(()=>{function T(A){return $.current(A)}let M;if(typeof window<"u"){const{matchMedia:A}=window;if(A&&b&&b in m1){M=A(`screen and (max-width: ${m1[b]})`);try{M.addEventListener("change",T)}catch{M.addListener(T)}T(M)}}return()=>{try{M==null||M.removeEventListener("change",T)}catch{M==null||M.removeListener(T)}}},[b]),u.useEffect(()=>{const T=mT("ant-sider-");return g.addSider(T),()=>g.removeSider(T)},[]);const k=()=>{C(!h,"clickTrigger")},{getPrefixCls:O}=u.useContext(Ve),P=()=>{const T=O("layout-sider",n),M=Fn(m,["collapsed"]),A=h?p:f,B=pT(A)?`${A}px`:String(A),_=parseFloat(String(p||0))===0?u.createElement("span",{onClick:k,className:q(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:y},i||u.createElement(cT,null)):null,N={expanded:d?u.createElement(_g,null):u.createElement(Ag,null),collapsed:d?u.createElement(Ag,null):u.createElement(_g,null)}[h?"collapsed":"expanded"],F=i!==null?_||u.createElement("div",{className:`${T}-trigger`,onClick:k,style:{width:B}},i||N):null,D=Object.assign(Object.assign({},s),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),U=q(T,`${T}-${l}`,{[`${T}-collapsed`]:!!h,[`${T}-has-trigger`]:c&&i!==null&&!_,[`${T}-below`]:!!E,[`${T}-zero-width`]:parseFloat(B)===0},r);return u.createElement("aside",Object.assign({className:U},M,{style:D,ref:t}),u.createElement("div",{className:`${T}-children`},o),c||E&&_?F:null)},z=u.useMemo(()=>({siderCollapsed:h}),[h]);return u.createElement(dS.Provider,{value:z},P())}),fS=hT;var vT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const yT=vT;var bT=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:yT}))};const wT=u.forwardRef(bT);function xT(e){return Et(e,{inputAffixPadding:e.paddingXXS})}const ST=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:y,colorPrimary:b,controlOutlineWidth:v,controlOutline:x,colorErrorOutline:m,colorWarningOutline:g,colorBgContainer:h}=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-l*s)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:d-i,paddingInlineLG:f-i,addonBg:p,activeBorderColor:b,hoverBorderColor:y,activeShadow:`0 0 0 ${v}px ${x}`,errorActiveShadow:`0 0 0 ${v}px ${m}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:h,activeBg:h,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},CT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},CT(Et(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),pS=(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}}),h1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},pS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ET=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yh(e))}),h1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),h1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),v1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),$T=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},v1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),v1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yh(e))}})}),kT=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),gS=(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}}),y1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),OT=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yh(e))}),y1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),y1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),b1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),RT=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:`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},b1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),b1(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:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),PT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mS=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${W(t)} ${W(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hS=e=>({padding:`${W(e.paddingBlockSM)} ${W(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W(e.paddingBlock)} ${W(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},PT(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({},mS(e)),"&-sm":Object.assign({},hS(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_T=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({},mS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},hS(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 ${W(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${W(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${W(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:`${W(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${W(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"},us()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -236,27 +236,27 @@ html body { & > ${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}}}})}},IT=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({},wr(e)),yS(e)),$T(e)),RT(e)),OT(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"}})}},zT=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 ${W(e.inputAffixPadding)}`}}}},BT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},yS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${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}}}),zT(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}})}},MT=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wr(e)),TT(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}}},kT(e)),PT(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}}})})}},NT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${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}}}})}},TT=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({},wr(e)),vS(e)),ET(e)),OT(e)),kT(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"}})}},IT=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 ${W(e.inputAffixPadding)}`}}}},zT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},vS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${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}}}),IT(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}})}},BT=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wr(e)),_T(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}}},$T(e)),RT(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}}})})}},MT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},AT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},LT=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jT=Xt("Input",e=>{const t=Et(e,ST(e));return[IT(t),AT(t),BT(t),MT(t),NT(t),LT(t),$x(t)]},CT),FT=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=q({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=q({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),s=u.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement("span",{className:q(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},xd=FT,DT=new ht("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sd=e=>({height:e,lineHeight:W(e)}),ca=e=>Object.assign({width:e},Sd(e)),HT=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:DT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Pf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Sd(e)),VT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ca(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ca(i)),[`${t}${t}-sm`]:Object.assign({},ca(o))}},WT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Pf(t,l)),[`${r}-lg`]:Object.assign({},Pf(i,l)),[`${r}-sm`]:Object.assign({},Pf(o,l))}},w1=e=>Object.assign({width:e},Sd(e)),qT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},w1(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},w1(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%"}}},_f=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Tf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Sd(e)),UT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=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:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Tf(r,l))},_f(e,r,n)),{[`${n}-lg`]:Object.assign({},Tf(i,l))}),_f(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Tf(o,l))}),_f(e,o,`${n}-sm`))},GT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:y,borderRadius:b,titleHeight:v,blockRadius:x,paragraphLiHeight:m,controlHeightXS:g,paragraphMarginTop:h}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ca(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ca(c)),[`${n}-sm`]:Object.assign({},ca(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:f,borderRadius:x,[`+ ${i}`]:{marginBlockStart:d}},[`${i}`]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:f,borderRadius:x,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:y,[`+ ${i}`]:{marginBlockStart:h}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},UT(e)),VT(e)),WT(e)),qT(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},NT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},AT=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},LT=Xt("Input",e=>{const t=Et(e,xT(e));return[TT(t),NT(t),zT(t),BT(t),MT(t),AT(t),Ex(t)]},ST),jT=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=q({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=q({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),s=u.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return u.createElement("span",{className:q(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},xd=jT,FT=new ht("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sd=e=>({height:e,lineHeight:W(e)}),ca=e=>Object.assign({width:e},Sd(e)),DT=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Pf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Sd(e)),HT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ca(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ca(i)),[`${t}${t}-sm`]:Object.assign({},ca(o))}},VT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Pf(t,l)),[`${r}-lg`]:Object.assign({},Pf(i,l)),[`${r}-sm`]:Object.assign({},Pf(o,l))}},w1=e=>Object.assign({width:e},Sd(e)),WT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},w1(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},w1(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%"}}},_f=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Tf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Sd(e)),qT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=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:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Tf(r,l))},_f(e,r,n)),{[`${n}-lg`]:Object.assign({},Tf(i,l))}),_f(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Tf(o,l))}),_f(e,o,`${n}-sm`))},UT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:y,borderRadius:b,titleHeight:v,blockRadius:x,paragraphLiHeight:m,controlHeightXS:g,paragraphMarginTop:h}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ca(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ca(c)),[`${n}-sm`]:Object.assign({},ca(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:f,borderRadius:x,[`+ ${i}`]:{marginBlockStart:d}},[`${i}`]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:f,borderRadius:x,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:y,[`+ ${i}`]:{marginBlockStart:h}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},qT(e)),HT(e)),VT(e)),WT(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${o}, ${a}, ${l} - `]:Object.assign({},HT(e))}}},KT=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}},_a=Xt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Et(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[GT(r)]},KT,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),XT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls","className"]),y=q(s,`${s}-element`,{[`${s}-active`]:i},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-avatar`,shape:o,size:a},p))))},YT=XT,QT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls"]),y=q(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-button`,size:a},p))))},ZT=QT,JT="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",eI=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=u.useContext(Ve),l=a("skeleton",t),[s,c,d]=_a(l),f=q(l,`${l}-element`,{[`${l}-active`]:o},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:q(`${l}-image`,n),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("path",{d:JT,className:`${l}-image-path`})))))},tI=eI,nI=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls"]),y=q(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-input`,size:a},p))))},rI=nI;var iI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const oI=iI;var aI=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:oI}))};const lI=u.forwardRef(aI),sI=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=q(s,`${s}-element`,{[`${s}-active`]:o},d,n,r,f),y=a??u.createElement(lI,null);return c(u.createElement("div",{className:p},u.createElement("div",{className:q(`${s}-image`,n),style:i},y)))},cI=sI,uI=e=>{const t=l=>{const{width:s,rows:c=2}=e;if(Array.isArray(s))return s[l];if(c-1===l)return s},{prefixCls:n,className:r,style:i,rows:o}=e,a=Se(Array(o)).map((l,s)=>u.createElement("li",{key:s,style:{width:t(s)}}));return u.createElement("ul",{className:q(n,r),style:i},a)},dI=uI,fI=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return u.createElement("h3",{className:q(t,n),style:Object.assign({width:r},i)})},pI=fI;function If(e){return e&&typeof e=="object"?e:{}}function gI(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function mI(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function hI(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ta=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:p,direction:y,skeleton:b}=u.useContext(Ve),v=p("skeleton",t),[x,m,g]=_a(v);if(n||!("loading"in e)){const h=!!l,w=!!s,S=!!c;let C;if(h){const k=Object.assign(Object.assign({prefixCls:`${v}-avatar`},gI(w,S)),If(l));C=u.createElement("div",{className:`${v}-header`},u.createElement(xd,Object.assign({},k)))}let E;if(w||S){let k;if(w){const P=Object.assign(Object.assign({prefixCls:`${v}-title`},mI(h,S)),If(s));k=u.createElement(pI,Object.assign({},P))}let O;if(S){const P=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},hI(h,w)),If(c));O=u.createElement(dI,Object.assign({},P))}E=u.createElement("div",{className:`${v}-content`},k,O)}const $=q(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:d,[`${v}-rtl`]:y==="rtl",[`${v}-round`]:f},b==null?void 0:b.className,r,i,m,g);return x(u.createElement("div",{className:$,style:Object.assign(Object.assign({},b==null?void 0:b.style),o)},C,E))}return typeof a<"u"?a:null};Ta.Button=ZT;Ta.Avatar=YT;Ta.Input=rI;Ta.Image=tI;Ta.Node=cI;const vI=Ta;var yI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const bI=yI;var wI=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:bI}))};const xI=u.forwardRef(wI),Cd=u.createContext(null);var SI=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,l=a.size,s=a.align,c=s===void 0?"center":s,d=u.useState(),f=H(d,2),p=f[0],y=f[1],b=u.useRef(),v=J.useCallback(function(m){return typeof l=="function"?l(m):typeof l=="number"?l:m},[l]);function x(){Bt.cancel(b.current)}return u.useEffect(function(){var m={};if(n)if(r){m.width=v(n.width);var g=i?"right":"left";c==="start"&&(m[g]=n[g]),c==="center"&&(m[g]=n[g]+n.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(m[g]=n[g]+n.width,m.transform="translateX(-100%)")}else m.height=v(n.height),c==="start"&&(m.top=n.top),c==="center"&&(m.top=n.top+n.height/2,m.transform="translateY(-50%)"),c==="end"&&(m.top=n.top+n.height,m.transform="translateY(-100%)");return x(),b.current=Bt(function(){y(m)}),x},[n,r,i,c,v]),{style:p}},x1={width:0,height:0,left:0,top:0};function CI(e,t,n){return u.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||x1,a=o.left+o.width,l=0;lM?(z=O,C.current="x"):(z=P,C.current="y"),t(-z,-z)&&k.preventDefault()}var $=u.useRef(null);$.current={onTouchStart:h,onTouchMove:w,onTouchEnd:S,onWheel:E},u.useEffect(function(){function k(T){$.current.onTouchStart(T)}function O(T){$.current.onTouchMove(T)}function P(T){$.current.onTouchEnd(T)}function z(T){$.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",P,{passive:!1}),e.current.addEventListener("touchstart",k,{passive:!1}),e.current.addEventListener("wheel",z),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",P)}},[])}function bS(e){var t=u.useState(0),n=H(t,2),r=n[0],i=n[1],o=u.useRef(0),a=u.useRef();return a.current=e,Qp(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function kI(e){var t=u.useRef([]),n=u.useState({}),r=H(n,2),i=r[1],o=u.useRef(typeof e=="function"?e():e),a=bS(function(){var s=o.current;t.current.forEach(function(c){s=c(s)}),t.current=[],o.current=s,i({})});function l(s){t.current.push(s),a()}return[o.current,l]}var $1={width:0,height:0,left:0,top:0,right:0};function OI(e,t,n,r,i,o,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,p;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var y=l.length,b=y,v=0;vp+t){b=v-1;break}}for(var m=0,g=y-1;g>=0;g-=1){var h=e.get(l[g].key)||$1;if(h[f]=b?[0,0]:[m,b]},[e,t,r,i,o,p,s,l.map(function(y){return y.key}).join("_"),c])}function k1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var RI="TABS_DQ";function wS(e){return String(e).replace(/"/g,RI)}function xS(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var SS=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:u.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(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),O1=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return Me(i)==="object"&&!u.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),PI=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,c=e.moreTransitionName,d=e.style,f=e.className,p=e.editable,y=e.tabBarGutter,b=e.rtl,v=e.removeAriaLabel,x=e.onTabClick,m=e.getPopupContainer,g=e.popupClassName,h=u.useState(!1),w=H(h,2),S=w[0],C=w[1],E=u.useState(null),$=H(E,2),k=$[0],O=$[1],P="".concat(r,"-more-popup"),z="".concat(n,"-dropdown"),T=k!==null?"".concat(P,"-").concat(k):null,M=o==null?void 0:o.dropdownAriaLabel;function A(D,U){D.preventDefault(),D.stopPropagation(),p.onEdit("remove",{key:U,event:D})}var B=u.createElement(bs,{onClick:function(U){var K=U.key,G=U.domEvent;x(K,G),C(!1)},prefixCls:"".concat(z,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[k],"aria-label":M!==void 0?M:"expanded dropdown"},i.map(function(D){var U=D.closable,K=D.disabled,G=D.closeIcon,X=D.key,Q=D.label,Z=xS(U,G,p,K);return u.createElement(wd,{key:X,id:"".concat(P,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},u.createElement("span",null,Q),Z&&u.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),A(fe,X)}},G||p.removeIcon||"×"))}));function _(D){for(var U=i.filter(function(Z){return!Z.disabled}),K=U.findIndex(function(Z){return Z.key===k})||0,G=U.length,X=0;XBe?"left":"right"})}),T=H(z,2),M=T[0],A=T[1],B=S1(0,function(Xe,Be){!P&&v&&v({direction:Xe>Be?"top":"bottom"})}),_=H(B,2),R=_[0],I=_[1],N=u.useState([0,0]),F=H(N,2),D=F[0],U=F[1],K=u.useState([0,0]),G=H(K,2),X=G[0],Q=G[1],Z=u.useState([0,0]),ne=H(Z,2),fe=ne[0],re=ne[1],be=u.useState([0,0]),pe=H(be,2),xe=pe[0],ce=pe[1],Re=kI(new Map),ye=H(Re,2),oe=ye[0],Y=ye[1],ge=CI(h,oe,X[0]),ie=nc(D,P),we=nc(X,P),Ce=nc(fe,P),Ae=nc(xe,P),De=ieue?ue:Xe}var Pe=u.useRef(null),ut=u.useState(),Ke=H(ut,2),dt=Ke[0],tt=Ke[1];function Le(){tt(Date.now())}function We(){Pe.current&&clearTimeout(Pe.current)}$I(E,function(Xe,Be){function nt(Pt,rn){Pt(function(Wt){var Cn=Te(Wt+rn);return Cn})}return De?(P?nt(A,Xe):nt(I,Be),We(),Le(),!0):!1}),u.useEffect(function(){return We(),dt&&(Pe.current=setTimeout(function(){tt(0)},100)),We},[dt]);var He=OI(ge,Ee,P?M:R,we,Ce,Ae,j(j({},e),{},{tabs:h})),yt=H(He,2),te=yt[0],he=yt[1],Je=Kn(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Be=ge.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(P){var nt=M;l?Be.rightM+Ee&&(nt=Be.right+Be.width-Ee):Be.left<-M?nt=-Be.left:Be.left+Be.width>-M+Ee&&(nt=-(Be.left+Be.width-Ee)),I(0),A(Te(nt))}else{var Pt=R;Be.top<-R?Pt=-Be.top:Be.top+Be.height>-R+Ee&&(Pt=-(Be.top+Be.height-Ee)),A(0),I(Te(Pt))}}),ke={};f==="top"||f==="bottom"?ke[l?"marginRight":"marginLeft"]=p:ke.marginTop=p;var qe=h.map(function(Xe,Be){var nt=Xe.key;return u.createElement(TI,{id:i,prefixCls:g,key:nt,tab:Xe,style:Be===0?void 0:ke,closable:Xe.closable,editable:c,active:nt===a,renderWrapper:y,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(rn){b(nt,rn)},onFocus:function(){Je(nt),Le(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),ze=function(){return Y(function(){var Be,nt=new Map,Pt=(Be=$.current)===null||Be===void 0?void 0:Be.getBoundingClientRect();return h.forEach(function(rn){var Wt,Cn=rn.key,Qr=(Wt=$.current)===null||Wt===void 0?void 0:Wt.querySelector('[data-node-key="'.concat(wS(Cn),'"]'));if(Qr){var _t=II(Qr,Pt),Dn=H(_t,4),tr=Dn[0],Sr=Dn[1],Zr=Dn[2],nr=Dn[3];nt.set(Cn,{width:tr,height:Sr,left:Zr,top:nr})}}),nt})};u.useEffect(function(){ze()},[h.map(function(Xe){return Xe.key}).join("_")]);var _e=bS(function(){var Xe=Io(w),Be=Io(S),nt=Io(C);U([Xe[0]-Be[0]-nt[0],Xe[1]-Be[1]-nt[1]]);var Pt=Io(O);re(Pt);var rn=Io(k);ce(rn);var Wt=Io($);Q([Wt[0]-Pt[0],Wt[1]-Pt[1]]),ze()}),de=h.slice(0,te),Oe=h.slice(he+1),Fe=[].concat(Se(de),Se(Oe)),lt=ge.get(a),Yt=SI({activeTabOffset:lt,horizontal:P,indicator:x,rtl:l}),Rt=Yt.style;u.useEffect(function(){Je()},[a,$e,ue,k1(lt),k1(ge),P]),u.useEffect(function(){_e()},[l]);var Pn=!!Fe.length,Vt="".concat(g,"-nav-wrap"),Sn,fn,Qt,gt;return P?l?(fn=M>0,Sn=M!==ue):(Sn=M<0,fn=M!==$e):(Qt=R<0,gt=R!==$e),u.createElement(Tr,{onResize:_e},u.createElement("div",{ref:Oa(t,w),role:"tablist",className:q("".concat(g,"-nav"),n),style:r,onKeyDown:function(){Le()}},u.createElement(O1,{ref:S,position:"left",extra:s,prefixCls:g}),u.createElement(Tr,{onResize:_e},u.createElement("div",{className:q(Vt,L(L(L(L({},"".concat(Vt,"-ping-left"),Sn),"".concat(Vt,"-ping-right"),fn),"".concat(Vt,"-ping-top"),Qt),"".concat(Vt,"-ping-bottom"),gt)),ref:E},u.createElement(Tr,{onResize:_e},u.createElement("div",{ref:$,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(R,"px)"),transition:dt?"none":void 0}},qe,u.createElement(SS,{ref:O,prefixCls:g,locale:d,editable:c,style:j(j({},qe.length===0?void 0:ke),{},{visibility:Pn?"hidden":null})}),u.createElement("div",{className:q("".concat(g,"-ink-bar"),L({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:Rt}))))),u.createElement(_I,ae({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:k,prefixCls:g,tabs:Fe,className:!Pn&&ct,tabMoving:!!dt})),u.createElement(O1,{ref:C,position:"right",extra:s,prefixCls:g})))}),CS=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:q(n,a&&"".concat(n,"-active"),r),ref:t},s)}),zI=["renderTabBar"],BI=["label","key"],MI=function(t){var n=t.renderTabBar,r=Ne(t,zI),i=u.useContext(Cd),o=i.tabs;if(n){var a=j(j({},r),{},{panes:o.map(function(l){var s=l.label,c=l.key,d=Ne(l,BI);return u.createElement(CS,ae({tab:s,key:c,tabKey:c},d))})});return n(a,R1)}return u.createElement(R1,r)},NI=["key","forceRender","style","className","destroyInactiveTabPane"],AI=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,l=u.useContext(Cd),s=l.prefixCls,c=l.tabs,d=i.tabPane,f="".concat(s,"-tabpane");return u.createElement("div",{className:q("".concat(s,"-content-holder"))},u.createElement("div",{className:q("".concat(s,"-content"),"".concat(s,"-content-").concat(o),L({},"".concat(s,"-content-animated"),d))},c.map(function(p){var y=p.key,b=p.forceRender,v=p.style,x=p.className,m=p.destroyInactiveTabPane,g=Ne(p,NI),h=y===r;return u.createElement(xr,ae({key:y,visible:h,forceRender:b,removeOnLeave:!!(a||m),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(w,S){var C=w.style,E=w.className;return u.createElement(CS,ae({},g,{prefixCls:f,id:n,tabKey:y,animated:d,active:h,style:j(j({},v),C),className:q(x,E),ref:S}))})})))};function LI(){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=j({inkBar:!0},Me(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var jI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],P1=0,FI=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,y=p===void 0?"top":p,b=e.tabBarGutter,v=e.tabBarStyle,x=e.tabBarExtraContent,m=e.locale,g=e.moreIcon,h=e.moreTransitionName,w=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,E=e.onTabClick,$=e.onTabScroll,k=e.getPopupContainer,O=e.popupClassName,P=e.indicator,z=Ne(e,jI),T=u.useMemo(function(){return(a||[]).filter(function(ce){return ce&&Me(ce)==="object"&&"key"in ce})},[a]),M=l==="rtl",A=LI(f),B=u.useState(!1),_=H(B,2),R=_[0],I=_[1];u.useEffect(function(){I(Fx())},[]);var N=hn(function(){var ce;return(ce=T[0])===null||ce===void 0?void 0:ce.key},{value:s,defaultValue:c}),F=H(N,2),D=F[0],U=F[1],K=u.useState(function(){return T.findIndex(function(ce){return ce.key===D})}),G=H(K,2),X=G[0],Q=G[1];u.useEffect(function(){var ce=T.findIndex(function(ye){return ye.key===D});if(ce===-1){var Re;ce=Math.max(0,Math.min(X,T.length-1)),U((Re=T[ce])===null||Re===void 0?void 0:Re.key)}Q(ce)},[T.map(function(ce){return ce.key}).join("_"),D,X]);var Z=hn(null,{value:n}),ne=H(Z,2),fe=ne[0],re=ne[1];u.useEffect(function(){n||(re("rc-tabs-".concat(P1)),P1+=1)},[]);function be(ce,Re){E==null||E(ce,Re);var ye=ce!==D;U(ce),ye&&(C==null||C(ce))}var pe={id:fe,activeKey:D,animated:A,tabPosition:y,rtl:M,mobile:R},xe=j(j({},pe),{},{editable:d,locale:m,moreIcon:g,moreTransitionName:h,tabBarGutter:b,onTabClick:be,onTabScroll:$,extra:x,style:v,panes:null,getPopupContainer:k,popupClassName:O,indicator:P});return u.createElement(Cd.Provider,{value:{tabs:T,prefixCls:i}},u.createElement("div",ae({ref:t,id:n,className:q(i,"".concat(i,"-").concat(y),L(L(L({},"".concat(i,"-mobile"),R),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),M),o)},z),u.createElement(MI,ae({},xe,{renderTabBar:S})),u.createElement(AI,ae({destroyInactiveTabPane:w},pe,{animated:A}))))});const DI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function HI(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({},DI),{motionName:wa(e,"switch")})),n}var VI=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 qI(e,t){if(e)return e;const n=vr(t).map(r=>{if(u.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,s=VI(a,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return WI(n)}const UI=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}`}}}}},[Zv(e,"slide-up"),Zv(e,"slide-down")]]},GI=UI,KI=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:`${W(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:W(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:W(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${W(e.borderRadiusLG)} 0 0 ${W(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 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},XI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},wr(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:`${W(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({},ud),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${W(e.paddingXXS)} ${W(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"}}})}})}},YI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:l}=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:`${W(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + `]:Object.assign({},DT(e))}}},GT=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}},_a=Xt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Et(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[UT(r)]},GT,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),KT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls","className"]),y=q(s,`${s}-element`,{[`${s}-active`]:i},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-avatar`,shape:o,size:a},p))))},XT=KT,YT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls"]),y=q(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-button`,size:a},p))))},QT=YT,ZT="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",JT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=u.useContext(Ve),l=a("skeleton",t),[s,c,d]=_a(l),f=q(l,`${l}-element`,{[`${l}-active`]:o},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:q(`${l}-image`,n),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("path",{d:ZT,className:`${l}-image-path`})))))},eI=JT,tI=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=Fn(e,["prefixCls"]),y=q(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:y},u.createElement(xd,Object.assign({prefixCls:`${s}-input`,size:a},p))))},nI=tI;var rI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const iI=rI;var oI=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:iI}))};const aI=u.forwardRef(oI),lI=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:l}=u.useContext(Ve),s=l("skeleton",t),[c,d,f]=_a(s),p=q(s,`${s}-element`,{[`${s}-active`]:o},d,n,r,f),y=a??u.createElement(aI,null);return c(u.createElement("div",{className:p},u.createElement("div",{className:q(`${s}-image`,n),style:i},y)))},sI=lI,cI=e=>{const t=l=>{const{width:s,rows:c=2}=e;if(Array.isArray(s))return s[l];if(c-1===l)return s},{prefixCls:n,className:r,style:i,rows:o}=e,a=Se(Array(o)).map((l,s)=>u.createElement("li",{key:s,style:{width:t(s)}}));return u.createElement("ul",{className:q(n,r),style:i},a)},uI=cI,dI=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return u.createElement("h3",{className:q(t,n),style:Object.assign({width:r},i)})},fI=dI;function If(e){return e&&typeof e=="object"?e:{}}function pI(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function gI(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function mI(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ta=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:p,direction:y,skeleton:b}=u.useContext(Ve),v=p("skeleton",t),[x,m,g]=_a(v);if(n||!("loading"in e)){const h=!!l,w=!!s,E=!!c;let S;if(h){const k=Object.assign(Object.assign({prefixCls:`${v}-avatar`},pI(w,E)),If(l));S=u.createElement("div",{className:`${v}-header`},u.createElement(xd,Object.assign({},k)))}let C;if(w||E){let k;if(w){const P=Object.assign(Object.assign({prefixCls:`${v}-title`},gI(h,E)),If(s));k=u.createElement(fI,Object.assign({},P))}let O;if(E){const P=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},mI(h,w)),If(c));O=u.createElement(uI,Object.assign({},P))}C=u.createElement("div",{className:`${v}-content`},k,O)}const $=q(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:d,[`${v}-rtl`]:y==="rtl",[`${v}-round`]:f},b==null?void 0:b.className,r,i,m,g);return x(u.createElement("div",{className:$,style:Object.assign(Object.assign({},b==null?void 0:b.style),o)},S,C))}return typeof a<"u"?a:null};Ta.Button=QT;Ta.Avatar=XT;Ta.Input=nI;Ta.Image=eI;Ta.Node=sI;const hI=Ta;var vI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const yI=vI;var bI=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:yI}))};const wI=u.forwardRef(bI),Cd=u.createContext(null);var xI=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,l=a.size,s=a.align,c=s===void 0?"center":s,d=u.useState(),f=V(d,2),p=f[0],y=f[1],b=u.useRef(),v=J.useCallback(function(m){return typeof l=="function"?l(m):typeof l=="number"?l:m},[l]);function x(){Bt.cancel(b.current)}return u.useEffect(function(){var m={};if(n)if(r){m.width=v(n.width);var g=i?"right":"left";c==="start"&&(m[g]=n[g]),c==="center"&&(m[g]=n[g]+n.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(m[g]=n[g]+n.width,m.transform="translateX(-100%)")}else m.height=v(n.height),c==="start"&&(m.top=n.top),c==="center"&&(m.top=n.top+n.height/2,m.transform="translateY(-50%)"),c==="end"&&(m.top=n.top+n.height,m.transform="translateY(-100%)");return x(),b.current=Bt(function(){y(m)}),x},[n,r,i,c,v]),{style:p}},x1={width:0,height:0,left:0,top:0};function SI(e,t,n){return u.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||x1,a=o.left+o.width,l=0;lM?(z=O,S.current="x"):(z=P,S.current="y"),t(-z,-z)&&k.preventDefault()}var $=u.useRef(null);$.current={onTouchStart:h,onTouchMove:w,onTouchEnd:E,onWheel:C},u.useEffect(function(){function k(T){$.current.onTouchStart(T)}function O(T){$.current.onTouchMove(T)}function P(T){$.current.onTouchEnd(T)}function z(T){$.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",P,{passive:!1}),e.current.addEventListener("touchstart",k,{passive:!1}),e.current.addEventListener("wheel",z),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",P)}},[])}function yS(e){var t=u.useState(0),n=V(t,2),r=n[0],i=n[1],o=u.useRef(0),a=u.useRef();return a.current=e,Qp(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function $I(e){var t=u.useRef([]),n=u.useState({}),r=V(n,2),i=r[1],o=u.useRef(typeof e=="function"?e():e),a=yS(function(){var s=o.current;t.current.forEach(function(c){s=c(s)}),t.current=[],o.current=s,i({})});function l(s){t.current.push(s),a()}return[o.current,l]}var $1={width:0,height:0,left:0,top:0,right:0};function kI(e,t,n,r,i,o,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,d,f,p;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var y=l.length,b=y,v=0;vp+t){b=v-1;break}}for(var m=0,g=y-1;g>=0;g-=1){var h=e.get(l[g].key)||$1;if(h[f]=b?[0,0]:[m,b]},[e,t,r,i,o,p,s,l.map(function(y){return y.key}).join("_"),c])}function k1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var OI="TABS_DQ";function bS(e){return String(e).replace(/"/g,OI)}function wS(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var xS=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:u.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(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),O1=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return Me(i)==="object"&&!u.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),RI=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,c=e.moreTransitionName,d=e.style,f=e.className,p=e.editable,y=e.tabBarGutter,b=e.rtl,v=e.removeAriaLabel,x=e.onTabClick,m=e.getPopupContainer,g=e.popupClassName,h=u.useState(!1),w=V(h,2),E=w[0],S=w[1],C=u.useState(null),$=V(C,2),k=$[0],O=$[1],P="".concat(r,"-more-popup"),z="".concat(n,"-dropdown"),T=k!==null?"".concat(P,"-").concat(k):null,M=o==null?void 0:o.dropdownAriaLabel;function A(D,U){D.preventDefault(),D.stopPropagation(),p.onEdit("remove",{key:U,event:D})}var B=u.createElement(ys,{onClick:function(U){var K=U.key,G=U.domEvent;x(K,G),S(!1)},prefixCls:"".concat(z,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[k],"aria-label":M!==void 0?M:"expanded dropdown"},i.map(function(D){var U=D.closable,K=D.disabled,G=D.closeIcon,X=D.key,Q=D.label,Z=wS(U,G,p,K);return u.createElement(wd,{key:X,id:"".concat(P,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},u.createElement("span",null,Q),Z&&u.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(fe){fe.stopPropagation(),A(fe,X)}},G||p.removeIcon||"×"))}));function _(D){for(var U=i.filter(function(Z){return!Z.disabled}),K=U.findIndex(function(Z){return Z.key===k})||0,G=U.length,X=0;XBe?"left":"right"})}),T=V(z,2),M=T[0],A=T[1],B=S1(0,function(Xe,Be){!P&&v&&v({direction:Xe>Be?"top":"bottom"})}),_=V(B,2),R=_[0],I=_[1],N=u.useState([0,0]),F=V(N,2),D=F[0],U=F[1],K=u.useState([0,0]),G=V(K,2),X=G[0],Q=G[1],Z=u.useState([0,0]),ne=V(Z,2),fe=ne[0],re=ne[1],be=u.useState([0,0]),pe=V(be,2),xe=pe[0],ce=pe[1],Re=$I(new Map),ye=V(Re,2),oe=ye[0],Y=ye[1],ge=SI(h,oe,X[0]),ie=nc(D,P),we=nc(X,P),Ce=nc(fe,P),Ae=nc(xe,P),De=ieue?ue:Xe}var Pe=u.useRef(null),ut=u.useState(),Ke=V(ut,2),dt=Ke[0],tt=Ke[1];function Le(){tt(Date.now())}function We(){Pe.current&&clearTimeout(Pe.current)}EI(C,function(Xe,Be){function nt(Pt,rn){Pt(function(Wt){var Cn=Te(Wt+rn);return Cn})}return De?(P?nt(A,Xe):nt(I,Be),We(),Le(),!0):!1}),u.useEffect(function(){return We(),dt&&(Pe.current=setTimeout(function(){tt(0)},100)),We},[dt]);var He=kI(ge,Ee,P?M:R,we,Ce,Ae,j(j({},e),{},{tabs:h})),yt=V(He,2),te=yt[0],he=yt[1],Je=Kn(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Be=ge.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(P){var nt=M;l?Be.rightM+Ee&&(nt=Be.right+Be.width-Ee):Be.left<-M?nt=-Be.left:Be.left+Be.width>-M+Ee&&(nt=-(Be.left+Be.width-Ee)),I(0),A(Te(nt))}else{var Pt=R;Be.top<-R?Pt=-Be.top:Be.top+Be.height>-R+Ee&&(Pt=-(Be.top+Be.height-Ee)),A(0),I(Te(Pt))}}),ke={};f==="top"||f==="bottom"?ke[l?"marginRight":"marginLeft"]=p:ke.marginTop=p;var qe=h.map(function(Xe,Be){var nt=Xe.key;return u.createElement(_I,{id:i,prefixCls:g,key:nt,tab:Xe,style:Be===0?void 0:ke,closable:Xe.closable,editable:c,active:nt===a,renderWrapper:y,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(rn){b(nt,rn)},onFocus:function(){Je(nt),Le(),C.current&&(l||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),ze=function(){return Y(function(){var Be,nt=new Map,Pt=(Be=$.current)===null||Be===void 0?void 0:Be.getBoundingClientRect();return h.forEach(function(rn){var Wt,Cn=rn.key,Qr=(Wt=$.current)===null||Wt===void 0?void 0:Wt.querySelector('[data-node-key="'.concat(bS(Cn),'"]'));if(Qr){var _t=TI(Qr,Pt),Dn=V(_t,4),tr=Dn[0],Sr=Dn[1],Zr=Dn[2],nr=Dn[3];nt.set(Cn,{width:tr,height:Sr,left:Zr,top:nr})}}),nt})};u.useEffect(function(){ze()},[h.map(function(Xe){return Xe.key}).join("_")]);var _e=yS(function(){var Xe=Io(w),Be=Io(E),nt=Io(S);U([Xe[0]-Be[0]-nt[0],Xe[1]-Be[1]-nt[1]]);var Pt=Io(O);re(Pt);var rn=Io(k);ce(rn);var Wt=Io($);Q([Wt[0]-Pt[0],Wt[1]-Pt[1]]),ze()}),de=h.slice(0,te),Oe=h.slice(he+1),Fe=[].concat(Se(de),Se(Oe)),lt=ge.get(a),Yt=xI({activeTabOffset:lt,horizontal:P,indicator:x,rtl:l}),Rt=Yt.style;u.useEffect(function(){Je()},[a,$e,ue,k1(lt),k1(ge),P]),u.useEffect(function(){_e()},[l]);var Pn=!!Fe.length,Vt="".concat(g,"-nav-wrap"),Sn,fn,Qt,gt;return P?l?(fn=M>0,Sn=M!==ue):(Sn=M<0,fn=M!==$e):(Qt=R<0,gt=R!==$e),u.createElement(Tr,{onResize:_e},u.createElement("div",{ref:Oa(t,w),role:"tablist",className:q("".concat(g,"-nav"),n),style:r,onKeyDown:function(){Le()}},u.createElement(O1,{ref:E,position:"left",extra:s,prefixCls:g}),u.createElement(Tr,{onResize:_e},u.createElement("div",{className:q(Vt,L(L(L(L({},"".concat(Vt,"-ping-left"),Sn),"".concat(Vt,"-ping-right"),fn),"".concat(Vt,"-ping-top"),Qt),"".concat(Vt,"-ping-bottom"),gt)),ref:C},u.createElement(Tr,{onResize:_e},u.createElement("div",{ref:$,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(R,"px)"),transition:dt?"none":void 0}},qe,u.createElement(xS,{ref:O,prefixCls:g,locale:d,editable:c,style:j(j({},qe.length===0?void 0:ke),{},{visibility:Pn?"hidden":null})}),u.createElement("div",{className:q("".concat(g,"-ink-bar"),L({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:Rt}))))),u.createElement(PI,ae({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:k,prefixCls:g,tabs:Fe,className:!Pn&&ct,tabMoving:!!dt})),u.createElement(O1,{ref:S,position:"right",extra:s,prefixCls:g})))}),SS=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:q(n,a&&"".concat(n,"-active"),r),ref:t},s)}),II=["renderTabBar"],zI=["label","key"],BI=function(t){var n=t.renderTabBar,r=Ne(t,II),i=u.useContext(Cd),o=i.tabs;if(n){var a=j(j({},r),{},{panes:o.map(function(l){var s=l.label,c=l.key,d=Ne(l,zI);return u.createElement(SS,ae({tab:s,key:c,tabKey:c},d))})});return n(a,R1)}return u.createElement(R1,r)},MI=["key","forceRender","style","className","destroyInactiveTabPane"],NI=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,l=u.useContext(Cd),s=l.prefixCls,c=l.tabs,d=i.tabPane,f="".concat(s,"-tabpane");return u.createElement("div",{className:q("".concat(s,"-content-holder"))},u.createElement("div",{className:q("".concat(s,"-content"),"".concat(s,"-content-").concat(o),L({},"".concat(s,"-content-animated"),d))},c.map(function(p){var y=p.key,b=p.forceRender,v=p.style,x=p.className,m=p.destroyInactiveTabPane,g=Ne(p,MI),h=y===r;return u.createElement(xr,ae({key:y,visible:h,forceRender:b,removeOnLeave:!!(a||m),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(w,E){var S=w.style,C=w.className;return u.createElement(SS,ae({},g,{prefixCls:f,id:n,tabKey:y,animated:d,active:h,style:j(j({},v),S),className:q(x,C),ref:E}))})})))};function AI(){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=j({inkBar:!0},Me(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var LI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],P1=0,jI=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,y=p===void 0?"top":p,b=e.tabBarGutter,v=e.tabBarStyle,x=e.tabBarExtraContent,m=e.locale,g=e.moreIcon,h=e.moreTransitionName,w=e.destroyInactiveTabPane,E=e.renderTabBar,S=e.onChange,C=e.onTabClick,$=e.onTabScroll,k=e.getPopupContainer,O=e.popupClassName,P=e.indicator,z=Ne(e,LI),T=u.useMemo(function(){return(a||[]).filter(function(ce){return ce&&Me(ce)==="object"&&"key"in ce})},[a]),M=l==="rtl",A=AI(f),B=u.useState(!1),_=V(B,2),R=_[0],I=_[1];u.useEffect(function(){I(jx())},[]);var N=hn(function(){var ce;return(ce=T[0])===null||ce===void 0?void 0:ce.key},{value:s,defaultValue:c}),F=V(N,2),D=F[0],U=F[1],K=u.useState(function(){return T.findIndex(function(ce){return ce.key===D})}),G=V(K,2),X=G[0],Q=G[1];u.useEffect(function(){var ce=T.findIndex(function(ye){return ye.key===D});if(ce===-1){var Re;ce=Math.max(0,Math.min(X,T.length-1)),U((Re=T[ce])===null||Re===void 0?void 0:Re.key)}Q(ce)},[T.map(function(ce){return ce.key}).join("_"),D,X]);var Z=hn(null,{value:n}),ne=V(Z,2),fe=ne[0],re=ne[1];u.useEffect(function(){n||(re("rc-tabs-".concat(P1)),P1+=1)},[]);function be(ce,Re){C==null||C(ce,Re);var ye=ce!==D;U(ce),ye&&(S==null||S(ce))}var pe={id:fe,activeKey:D,animated:A,tabPosition:y,rtl:M,mobile:R},xe=j(j({},pe),{},{editable:d,locale:m,moreIcon:g,moreTransitionName:h,tabBarGutter:b,onTabClick:be,onTabScroll:$,extra:x,style:v,panes:null,getPopupContainer:k,popupClassName:O,indicator:P});return u.createElement(Cd.Provider,{value:{tabs:T,prefixCls:i}},u.createElement("div",ae({ref:t,id:n,className:q(i,"".concat(i,"-").concat(y),L(L(L({},"".concat(i,"-mobile"),R),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),M),o)},z),u.createElement(BI,ae({},xe,{renderTabBar:E})),u.createElement(NI,ae({destroyInactiveTabPane:w},pe,{animated:A}))))});const FI={motionAppear:!1,motionEnter:!0,motionLeave:!0};function DI(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({},FI),{motionName:wa(e,"switch")})),n}var HI=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 WI(e,t){if(e)return e;const n=vr(t).map(r=>{if(u.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,s=HI(a,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return VI(n)}const qI=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}`}}}}},[Zv(e,"slide-up"),Zv(e,"slide-down")]]},UI=qI,GI=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:`${W(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:W(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:W(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${W(e.borderRadiusLG)} 0 0 ${W(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 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},KI=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},wr(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:`${W(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({},ud),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${W(e.paddingXXS)} ${W(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"}}})}})}},XI=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:l}=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:`${W(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:l(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:W(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${W(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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QI=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 ${W(e.borderRadius)} ${W(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${W(e.borderRadius)} ${W(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${W(e.borderRadius)} ${W(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${W(e.borderRadius)} 0 0 ${W(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ZI=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},fs(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${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:l,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}}}},JI=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:W(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:W(e.marginXS)},marginLeft:{_skip_check_:!0,value:W(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"}}}}},ez=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(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 ${W(e.paddingXS)}`,background:"transparent",border:`${W(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${W(e.borderRadiusLG)} ${W(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}},fs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ZI(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"}}}}}},tz=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}},nz=Xt("Tabs",e=>{const t=Et(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${W(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${W(e.horizontalItemGutter)}`});return[QI(t),JI(t),YI(t),XI(t),KI(t),ez(t),GI(t)]},tz),rz=()=>null,iz=rz;var oz=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,l;const{type:s,className:c,rootClassName:d,size:f,onEdit:p,hideAdd:y,centered:b,addIcon:v,moreIcon:x,popupClassName:m,children:g,items:h,animated:w,style:S,indicatorSize:C,indicator:E}=e,$=oz(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=$,{direction:O,tabs:P,getPrefixCls:z,getPopupContainer:T}=u.useContext(Ve),M=z("tabs",k),A=md(M),[B,_,R]=nz(M,A);let I;s==="editable-card"&&(I={onEdit:(X,Q)=>{let{key:Z,event:ne}=Q;p==null||p(X==="add"?ne:Z,X)},removeIcon:u.createElement(pd,null),addIcon:(v??(P==null?void 0:P.addIcon))||u.createElement(xI,null),showAdd:y!==!0});const N=z(),F=Pa(f),D=qI(h,g),U=HI(M,w),K=Object.assign(Object.assign({},P==null?void 0:P.style),S),G={align:(t=E==null?void 0:E.align)!==null&&t!==void 0?t:(n=P==null?void 0:P.indicator)===null||n===void 0?void 0:n.align,size:(a=(i=(r=E==null?void 0:E.size)!==null&&r!==void 0?r:C)!==null&&i!==void 0?i:(o=P==null?void 0:P.indicator)===null||o===void 0?void 0:o.size)!==null&&a!==void 0?a:P==null?void 0:P.indicatorSize};return B(u.createElement(FI,Object.assign({direction:O,getPopupContainer:T,moreTransitionName:`${N}-slide-up`},$,{items:D,className:q({[`${M}-${F}`]:F,[`${M}-card`]:["card","editable-card"].includes(s),[`${M}-editable-card`]:s==="editable-card",[`${M}-centered`]:b},P==null?void 0:P.className,c,d,_,R,A),popupClassName:q(m,_,R,A),style:K,editable:I,moreIcon:(l=x??(P==null?void 0:P.moreIcon))!==null&&l!==void 0?l:u.createElement(xT,null),prefixCls:M,animated:U,indicator:G})))};ES.TabPane=iz;const az=ES;var lz=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=lz(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=u.useContext(Ve),a=o("card",t),l=q(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},i,{className:l}))},$S=sz,cz=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 ${W(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`},ds()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ud),{[` + > 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:l(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:W(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${W(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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},YI=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 ${W(e.borderRadius)} ${W(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${W(e.borderRadius)} ${W(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${W(e.borderRadius)} ${W(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${W(e.borderRadius)} 0 0 ${W(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},QI=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ds(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${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:l,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}}}},ZI=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:W(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:W(e.marginXS)},marginLeft:{_skip_check_:!0,value:W(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"}}}}},JI=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(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 ${W(e.paddingXS)}`,background:"transparent",border:`${W(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${W(e.borderRadiusLG)} ${W(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}},ds(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),QI(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"}}}}}},ez=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}},tz=Xt("Tabs",e=>{const t=Et(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${W(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${W(e.horizontalItemGutter)}`});return[YI(t),ZI(t),XI(t),KI(t),GI(t),JI(t),UI(t)]},ez),nz=()=>null,rz=nz;var iz=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,l;const{type:s,className:c,rootClassName:d,size:f,onEdit:p,hideAdd:y,centered:b,addIcon:v,moreIcon:x,popupClassName:m,children:g,items:h,animated:w,style:E,indicatorSize:S,indicator:C}=e,$=iz(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=$,{direction:O,tabs:P,getPrefixCls:z,getPopupContainer:T}=u.useContext(Ve),M=z("tabs",k),A=md(M),[B,_,R]=tz(M,A);let I;s==="editable-card"&&(I={onEdit:(X,Q)=>{let{key:Z,event:ne}=Q;p==null||p(X==="add"?ne:Z,X)},removeIcon:u.createElement(pd,null),addIcon:(v??(P==null?void 0:P.addIcon))||u.createElement(wI,null),showAdd:y!==!0});const N=z(),F=Pa(f),D=WI(h,g),U=DI(M,w),K=Object.assign(Object.assign({},P==null?void 0:P.style),E),G={align:(t=C==null?void 0:C.align)!==null&&t!==void 0?t:(n=P==null?void 0:P.indicator)===null||n===void 0?void 0:n.align,size:(a=(i=(r=C==null?void 0:C.size)!==null&&r!==void 0?r:S)!==null&&i!==void 0?i:(o=P==null?void 0:P.indicator)===null||o===void 0?void 0:o.size)!==null&&a!==void 0?a:P==null?void 0:P.indicatorSize};return B(u.createElement(jI,Object.assign({direction:O,getPopupContainer:T,moreTransitionName:`${N}-slide-up`},$,{items:D,className:q({[`${M}-${F}`]:F,[`${M}-card`]:["card","editable-card"].includes(s),[`${M}-editable-card`]:s==="editable-card",[`${M}-centered`]:b},P==null?void 0:P.className,c,d,_,R,A),popupClassName:q(m,_,R,A),style:K,editable:I,moreIcon:(l=x??(P==null?void 0:P.moreIcon))!==null&&l!==void 0?l:u.createElement(wT,null),prefixCls:M,animated:U,indicator:G})))};CS.TabPane=rz;const oz=CS;var az=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=az(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=u.useContext(Ve),a=o("card",t),l=q(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},i,{className:l}))},ES=lz,sz=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 ${W(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`},us()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ud),{[` > ${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:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},uz=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${W(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},cz=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${W(i)} 0 0 0 ${n}, 0 ${W(i)} 0 0 ${n}, ${W(i)} ${W(i)} 0 0 ${n}, ${W(i)} 0 0 0 ${n} inset, 0 ${W(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},dz=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:`${W(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},ds()),{"& > 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:W(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:W(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${o}`}}})},fz=e=>Object.assign(Object.assign({margin:`${W(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ds()),{"&-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},ud),"&-description":{color:e.colorTextDescription}}),pz=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${W(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${W(e.padding)} ${W(n)}`}}},gz=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},mz=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},wr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:cz(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},ds()),[`${n}-grid`]:uz(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:dz(e),[`${n}-meta`]:fz(e)}),[`${n}-bordered`]:{border:`${W(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:pz(e),[`${n}-loading`]:gz(e),[`${n}-rtl`]:{direction:"rtl"}}},hz=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${W(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"}}}}},vz=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}),yz=Xt("Card",e=>{const t=Et(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[mz(t),hz(t)]},vz);var _1=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 u.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,i))}))},wz=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:f=!0,size:p,type:y,cover:b,actions:v,tabList:x,children:m,activeTabKey:g,defaultActiveTabKey:h,tabBarExtraContent:w,hoverable:S,tabProps:C={},classNames:E,styles:$}=e,k=_1(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:O,direction:P,card:z}=u.useContext(Ve),T=oe=>{var Y;(Y=e.onTabChange)===null||Y===void 0||Y.call(e,oe)},M=oe=>{var Y;return q((Y=z==null?void 0:z.classNames)===null||Y===void 0?void 0:Y[oe],E==null?void 0:E[oe])},A=oe=>{var Y;return Object.assign(Object.assign({},(Y=z==null?void 0:z.styles)===null||Y===void 0?void 0:Y[oe]),$==null?void 0:$[oe])},B=u.useMemo(()=>{let oe=!1;return u.Children.forEach(m,Y=>{Y&&Y.type&&Y.type===$S&&(oe=!0)}),oe},[m]),_=O("card",n),[R,I,N]=yz(_),F=u.createElement(vI,{loading:!0,active:!0,paragraph:{rows:4},title:!1},m),D=g!==void 0,U=Object.assign(Object.assign({},C),{[D?"activeKey":"defaultActiveKey"]:D?g:h,tabBarExtraContent:w});let K;const G=Pa(p),X=!G||G==="default"?"large":G,Q=x?u.createElement(az,Object.assign({size:X},U,{className:`${_}-head-tabs`,onChange:T,items:x.map(oe=>{var{tab:Y}=oe,ge=_1(oe,["tab"]);return Object.assign({label:Y},ge)})})):null;if(c||a||Q){const oe=q(`${_}-head`,M("header")),Y=q(`${_}-head-title`,M("title")),ge=q(`${_}-extra`,M("extra")),ie=Object.assign(Object.assign({},l),A("header"));K=u.createElement("div",{className:oe,style:ie},u.createElement("div",{className:`${_}-head-wrapper`},c&&u.createElement("div",{className:Y,style:A("title")},c),a&&u.createElement("div",{className:ge,style:A("extra")},a)),Q)}const Z=q(`${_}-cover`,M("cover")),ne=b?u.createElement("div",{className:Z,style:A("cover")},b):null,fe=q(`${_}-body`,M("body")),re=Object.assign(Object.assign({},s),A("body")),be=u.createElement("div",{className:fe,style:re},d?F:m),pe=q(`${_}-actions`,M("actions")),xe=v&&v.length?u.createElement(bz,{actionClasses:pe,actionStyle:A("actions"),actions:v}):null,ce=Fn(k,["onTabChange"]),Re=q(_,z==null?void 0:z.className,{[`${_}-loading`]:d,[`${_}-bordered`]:f,[`${_}-hoverable`]:S,[`${_}-contain-grid`]:B,[`${_}-contain-tabs`]:x&&x.length,[`${_}-${G}`]:G,[`${_}-type-${y}`]:!!y,[`${_}-rtl`]:P==="rtl"},r,i,I,N),ye=Object.assign(Object.assign({},z==null?void 0:z.style),o);return R(u.createElement("div",Object.assign({ref:t},ce,{className:Re,style:ye}),K,ne,be,xe))}),xz=wz;var Sz=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=Sz(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(Ve),s=l("card",t),c=q(`${s}-meta`,n),d=r?u.createElement("div",{className:`${s}-meta-avatar`},r):null,f=i?u.createElement("div",{className:`${s}-meta-title`},i):null,p=o?u.createElement("div",{className:`${s}-meta-description`},o):null,y=f||p?u.createElement("div",{className:`${s}-meta-detail`},f,p):null;return u.createElement("div",Object.assign({},a,{className:c}),d,y)},Ez=Cz,bh=xz;bh.Grid=$S;bh.Meta=Ez;const $l=bh,$z=u.createContext({}),kS=$z,kz=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"}}}},Oz=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Rz=(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},Lg=(e,t)=>Rz(e,t),Pz=(e,t,n)=>({[`@media (min-width: ${W(t)})`]:Object.assign({},Lg(e,n))}),_z=()=>({}),Tz=()=>({}),Iz=Xt("Grid",kz,_z),zz=Xt("Grid",e=>{const t=Et(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Oz(t),Lg(t,""),Lg(t,"-xs"),Object.keys(n).map(r=>Pz(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},Tz);var Bz=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}=u.useContext(Ve),{gutter:i,wrap:o}=u.useContext(kS),{prefixCls:a,span:l,order:s,offset:c,push:d,pull:f,className:p,children:y,flex:b,style:v}=e,x=Bz(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",a),[g,h,w]=zz(m),S={};let C={};Mz.forEach(k=>{let O={};const P=e[k];typeof P=="number"?O.span=P:typeof P=="object"&&(O=P||{}),delete x[k],C=Object.assign(Object.assign({},C),{[`${m}-${k}-${O.span}`]:O.span!==void 0,[`${m}-${k}-order-${O.order}`]:O.order||O.order===0,[`${m}-${k}-offset-${O.offset}`]:O.offset||O.offset===0,[`${m}-${k}-push-${O.push}`]:O.push||O.push===0,[`${m}-${k}-pull-${O.pull}`]:O.pull||O.pull===0,[`${m}-rtl`]:r==="rtl"}),O.flex&&(C[`${m}-${k}-flex`]=!0,S[`--${m}-${k}-flex`]=T1(O.flex))});const E=q(m,{[`${m}-${l}`]:l!==void 0,[`${m}-order-${s}`]:s,[`${m}-offset-${c}`]:c,[`${m}-push-${d}`]:d,[`${m}-pull-${f}`]:f},p,C,h,w),$={};if(i&&i[0]>0){const k=i[0]/2;$.paddingLeft=k,$.paddingRight=k}return b&&($.flex=T1(b),o===!1&&!$.minWidth&&($.minWidth=0)),g(u.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},$),v),S),className:E,ref:t}),y))}),I1=Nz;var Az=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 Lz=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:s=0,wrap:c}=e,d=Az(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=u.useContext(Ve),[y,b]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,x]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=z1(i,v),g=z1(r,v),h=u.useRef(s),w=qx();u.useEffect(()=>{const _=w.subscribe(R=>{x(R);const I=h.current||0;(!Array.isArray(I)&&typeof I=="object"||Array.isArray(I)&&(typeof I[0]=="object"||typeof I[1]=="object"))&&b(R)});return()=>w.unsubscribe(_)},[]);const S=()=>{const _=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((I,N)=>{if(typeof I=="object")for(let F=0;F0?O[0]/-2:void 0;T&&(z.marginLeft=T,z.marginRight=T),[,z.rowGap]=O;const[M,A]=O,B=u.useMemo(()=>({gutter:[M,A],wrap:c}),[M,A,c]);return E(u.createElement(kS.Provider,{value:B},u.createElement("div",Object.assign({},d,{className:P,style:Object.assign(Object.assign({},z),a),ref:t}),l)))}),B1=Lz;function jz(){return KP()}const Fz={useBreakpoint:jz},Dz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{borderBlockStart:`${W(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${W(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${W(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${W(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${W(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${W(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Hz=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Vz=Xt("Divider",e=>{const t=Et(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Dz(t)]},Hz,{unitless:{orientationMargin:!0}});var Wz=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,divider:r}=u.useContext(Ve),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:d,dashed:f,plain:p,style:y}=e,b=Wz(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",i),[x,m,g]=Vz(v),h=a.length>0?`-${a}`:a,w=!!d,S=a==="left"&&l!=null,C=a==="right"&&l!=null,E=q(v,r==null?void 0:r.className,m,g,`${v}-${o}`,{[`${v}-with-text`]:w,[`${v}-with-text${h}`]:w,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:S,[`${v}-no-default-orientation-margin-right`]:C},s,c),$=u.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),k=Object.assign(Object.assign({},S&&{marginLeft:$}),C&&{marginRight:$});return x(u.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),y)},b,{role:"separator"}),d&&o!=="vertical"&&u.createElement("span",{className:`${v}-inner-text`,style:k},d)))},ai=qz;function Uz(e){return!!(e.addonBefore||e.addonAfter)}function Gz(e){return!!(e.prefix||e.suffix||e.allowClear)}function M1(e,t,n,r){if(n){var i=t;if(t.type==="click"){var o=e.cloneNode(!0);i=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",n(i);return}if(e.type!=="file"&&r!==void 0){var a=e.cloneNode(!0);i=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=r,n(i);return}n(i)}}var Kz=function(t){var n,r,i=t.inputElement,o=t.children,a=t.prefixCls,l=t.prefix,s=t.suffix,c=t.addonBefore,d=t.addonAfter,f=t.className,p=t.style,y=t.disabled,b=t.readOnly,v=t.focused,x=t.triggerFocus,m=t.allowClear,g=t.value,h=t.handleReset,w=t.hidden,S=t.classes,C=t.classNames,E=t.dataAttrs,$=t.styles,k=t.components,O=o??i,P=(k==null?void 0:k.affixWrapper)||"span",z=(k==null?void 0:k.groupWrapper)||"span",T=(k==null?void 0:k.wrapper)||"span",M=(k==null?void 0:k.groupAddon)||"span",A=u.useRef(null),B=function(xe){var ce;(ce=A.current)!==null&&ce!==void 0&&ce.contains(xe.target)&&(x==null||x())},_=Gz(t),R=u.cloneElement(O,{value:g,className:q(O.props.className,!_&&(C==null?void 0:C.variant))||null});if(_){var I,N=null;if(m){var F,D=!y&&!b&&g,U="".concat(a,"-clear-icon"),K=Me(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";N=J.createElement("span",{onClick:h,onMouseDown:function(xe){return xe.preventDefault()},className:q(U,(F={},L(F,"".concat(U,"-hidden"),!D),L(F,"".concat(U,"-has-suffix"),!!s),F)),role:"button",tabIndex:-1},K)}var G="".concat(a,"-affix-wrapper"),X=q(G,(I={},L(I,"".concat(a,"-disabled"),y),L(I,"".concat(G,"-disabled"),y),L(I,"".concat(G,"-focused"),v),L(I,"".concat(G,"-readonly"),b),L(I,"".concat(G,"-input-with-clear-btn"),s&&m&&g),I),S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),Q=(s||m)&&J.createElement("span",{className:q("".concat(a,"-suffix"),C==null?void 0:C.suffix),style:$==null?void 0:$.suffix},N,s);R=J.createElement(P,ae({className:X,style:$==null?void 0:$.affixWrapper,onClick:B},E==null?void 0:E.affixWrapper,{ref:A}),l&&J.createElement("span",{className:q("".concat(a,"-prefix"),C==null?void 0:C.prefix),style:$==null?void 0:$.prefix},l),R,Q)}if(Uz(t)){var Z="".concat(a,"-group"),ne="".concat(Z,"-addon"),fe="".concat(Z,"-wrapper"),re=q("".concat(a,"-wrapper"),Z,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),be=q(fe,L({},"".concat(fe,"-disabled"),y),S==null?void 0:S.group,C==null?void 0:C.groupWrapper);R=J.createElement(z,{className:be},J.createElement(T,{className:re},c&&J.createElement(M,{className:ne},c),R,d&&J.createElement(M,{className:ne},d)))}return J.cloneElement(R,{className:q((n=R.props)===null||n===void 0?void 0:n.className,f)||null,style:j(j({},(r=R.props)===null||r===void 0?void 0:r.style),p),hidden:w})},Xz=["show"];function Yz(e,t){return u.useMemo(function(){var n={};t&&(n.show=Me(t)==="object"&&t.formatter?t.formatter:!!t),n=j(j({},n),e);var r=n,i=r.show,o=Ne(r,Xz);return j(j({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}function Qz(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}var Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Jz=Zz;var e9=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Jz}))};const t9=u.forwardRef(e9);var n9=` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},uz=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:`${W(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},us()),{"& > 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:W(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:W(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${W(e.lineWidth)} ${e.lineType} ${o}`}}})},dz=e=>Object.assign(Object.assign({margin:`${W(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},us()),{"&-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},ud),"&-description":{color:e.colorTextDescription}}),fz=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${W(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${W(e.padding)} ${W(n)}`}}},pz=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},gz=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},wr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:sz(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)}`},us()),[`${n}-grid`]:cz(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:uz(e),[`${n}-meta`]:dz(e)}),[`${n}-bordered`]:{border:`${W(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${W(e.borderRadiusLG)} ${W(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:fz(e),[`${n}-loading`]:pz(e),[`${n}-rtl`]:{direction:"rtl"}}},mz=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${W(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"}}}}},hz=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}),vz=Xt("Card",e=>{const t=Et(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[gz(t),mz(t)]},hz);var _1=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 u.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:a},u.createElement("span",null,i))}))},bz=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:f=!0,size:p,type:y,cover:b,actions:v,tabList:x,children:m,activeTabKey:g,defaultActiveTabKey:h,tabBarExtraContent:w,hoverable:E,tabProps:S={},classNames:C,styles:$}=e,k=_1(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:O,direction:P,card:z}=u.useContext(Ve),T=oe=>{var Y;(Y=e.onTabChange)===null||Y===void 0||Y.call(e,oe)},M=oe=>{var Y;return q((Y=z==null?void 0:z.classNames)===null||Y===void 0?void 0:Y[oe],C==null?void 0:C[oe])},A=oe=>{var Y;return Object.assign(Object.assign({},(Y=z==null?void 0:z.styles)===null||Y===void 0?void 0:Y[oe]),$==null?void 0:$[oe])},B=u.useMemo(()=>{let oe=!1;return u.Children.forEach(m,Y=>{Y&&Y.type&&Y.type===ES&&(oe=!0)}),oe},[m]),_=O("card",n),[R,I,N]=vz(_),F=u.createElement(hI,{loading:!0,active:!0,paragraph:{rows:4},title:!1},m),D=g!==void 0,U=Object.assign(Object.assign({},S),{[D?"activeKey":"defaultActiveKey"]:D?g:h,tabBarExtraContent:w});let K;const G=Pa(p),X=!G||G==="default"?"large":G,Q=x?u.createElement(oz,Object.assign({size:X},U,{className:`${_}-head-tabs`,onChange:T,items:x.map(oe=>{var{tab:Y}=oe,ge=_1(oe,["tab"]);return Object.assign({label:Y},ge)})})):null;if(c||a||Q){const oe=q(`${_}-head`,M("header")),Y=q(`${_}-head-title`,M("title")),ge=q(`${_}-extra`,M("extra")),ie=Object.assign(Object.assign({},l),A("header"));K=u.createElement("div",{className:oe,style:ie},u.createElement("div",{className:`${_}-head-wrapper`},c&&u.createElement("div",{className:Y,style:A("title")},c),a&&u.createElement("div",{className:ge,style:A("extra")},a)),Q)}const Z=q(`${_}-cover`,M("cover")),ne=b?u.createElement("div",{className:Z,style:A("cover")},b):null,fe=q(`${_}-body`,M("body")),re=Object.assign(Object.assign({},s),A("body")),be=u.createElement("div",{className:fe,style:re},d?F:m),pe=q(`${_}-actions`,M("actions")),xe=v&&v.length?u.createElement(yz,{actionClasses:pe,actionStyle:A("actions"),actions:v}):null,ce=Fn(k,["onTabChange"]),Re=q(_,z==null?void 0:z.className,{[`${_}-loading`]:d,[`${_}-bordered`]:f,[`${_}-hoverable`]:E,[`${_}-contain-grid`]:B,[`${_}-contain-tabs`]:x&&x.length,[`${_}-${G}`]:G,[`${_}-type-${y}`]:!!y,[`${_}-rtl`]:P==="rtl"},r,i,I,N),ye=Object.assign(Object.assign({},z==null?void 0:z.style),o);return R(u.createElement("div",Object.assign({ref:t},ce,{className:Re,style:ye}),K,ne,be,xe))}),wz=bz;var xz=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=xz(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(Ve),s=l("card",t),c=q(`${s}-meta`,n),d=r?u.createElement("div",{className:`${s}-meta-avatar`},r):null,f=i?u.createElement("div",{className:`${s}-meta-title`},i):null,p=o?u.createElement("div",{className:`${s}-meta-description`},o):null,y=f||p?u.createElement("div",{className:`${s}-meta-detail`},f,p):null;return u.createElement("div",Object.assign({},a,{className:c}),d,y)},Cz=Sz,bh=wz;bh.Grid=ES;bh.Meta=Cz;const El=bh,Ez=u.createContext({}),$S=Ez,$z=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"}}}},kz=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Oz=(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},Lg=(e,t)=>Oz(e,t),Rz=(e,t,n)=>({[`@media (min-width: ${W(t)})`]:Object.assign({},Lg(e,n))}),Pz=()=>({}),_z=()=>({}),Tz=Xt("Grid",$z,Pz),Iz=Xt("Grid",e=>{const t=Et(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[kz(t),Lg(t,""),Lg(t,"-xs"),Object.keys(n).map(r=>Rz(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},_z);var zz=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}=u.useContext(Ve),{gutter:i,wrap:o}=u.useContext($S),{prefixCls:a,span:l,order:s,offset:c,push:d,pull:f,className:p,children:y,flex:b,style:v}=e,x=zz(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",a),[g,h,w]=Iz(m),E={};let S={};Bz.forEach(k=>{let O={};const P=e[k];typeof P=="number"?O.span=P:typeof P=="object"&&(O=P||{}),delete x[k],S=Object.assign(Object.assign({},S),{[`${m}-${k}-${O.span}`]:O.span!==void 0,[`${m}-${k}-order-${O.order}`]:O.order||O.order===0,[`${m}-${k}-offset-${O.offset}`]:O.offset||O.offset===0,[`${m}-${k}-push-${O.push}`]:O.push||O.push===0,[`${m}-${k}-pull-${O.pull}`]:O.pull||O.pull===0,[`${m}-rtl`]:r==="rtl"}),O.flex&&(S[`${m}-${k}-flex`]=!0,E[`--${m}-${k}-flex`]=T1(O.flex))});const C=q(m,{[`${m}-${l}`]:l!==void 0,[`${m}-order-${s}`]:s,[`${m}-offset-${c}`]:c,[`${m}-push-${d}`]:d,[`${m}-pull-${f}`]:f},p,S,h,w),$={};if(i&&i[0]>0){const k=i[0]/2;$.paddingLeft=k,$.paddingRight=k}return b&&($.flex=T1(b),o===!1&&!$.minWidth&&($.minWidth=0)),g(u.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},$),v),E),className:C,ref:t}),y))}),I1=Mz;var Nz=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 Az=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:s=0,wrap:c}=e,d=Nz(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=u.useContext(Ve),[y,b]=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,x]=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=z1(i,v),g=z1(r,v),h=u.useRef(s),w=Wx();u.useEffect(()=>{const _=w.subscribe(R=>{x(R);const I=h.current||0;(!Array.isArray(I)&&typeof I=="object"||Array.isArray(I)&&(typeof I[0]=="object"||typeof I[1]=="object"))&&b(R)});return()=>w.unsubscribe(_)},[]);const E=()=>{const _=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((I,N)=>{if(typeof I=="object")for(let F=0;F0?O[0]/-2:void 0;T&&(z.marginLeft=T,z.marginRight=T),[,z.rowGap]=O;const[M,A]=O,B=u.useMemo(()=>({gutter:[M,A],wrap:c}),[M,A,c]);return C(u.createElement($S.Provider,{value:B},u.createElement("div",Object.assign({},d,{className:P,style:Object.assign(Object.assign({},z),a),ref:t}),l)))}),B1=Az;function Lz(){return GP()}const jz={useBreakpoint:Lz},Fz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{borderBlockStart:`${W(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${W(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${W(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${W(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${W(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${W(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Dz=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Hz=Xt("Divider",e=>{const t=Et(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Fz(t)]},Dz,{unitless:{orientationMargin:!0}});var Vz=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,divider:r}=u.useContext(Ve),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:d,dashed:f,plain:p,style:y}=e,b=Vz(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",i),[x,m,g]=Hz(v),h=a.length>0?`-${a}`:a,w=!!d,E=a==="left"&&l!=null,S=a==="right"&&l!=null,C=q(v,r==null?void 0:r.className,m,g,`${v}-${o}`,{[`${v}-with-text`]:w,[`${v}-with-text${h}`]:w,[`${v}-dashed`]:!!f,[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:S},s,c),$=u.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),k=Object.assign(Object.assign({},E&&{marginLeft:$}),S&&{marginRight:$});return x(u.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},r==null?void 0:r.style),y)},b,{role:"separator"}),d&&o!=="vertical"&&u.createElement("span",{className:`${v}-inner-text`,style:k},d)))},ai=Wz;function qz(e){return!!(e.addonBefore||e.addonAfter)}function Uz(e){return!!(e.prefix||e.suffix||e.allowClear)}function M1(e,t,n,r){if(n){var i=t;if(t.type==="click"){var o=e.cloneNode(!0);i=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",n(i);return}if(e.type!=="file"&&r!==void 0){var a=e.cloneNode(!0);i=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=r,n(i);return}n(i)}}var Gz=function(t){var n,r,i=t.inputElement,o=t.children,a=t.prefixCls,l=t.prefix,s=t.suffix,c=t.addonBefore,d=t.addonAfter,f=t.className,p=t.style,y=t.disabled,b=t.readOnly,v=t.focused,x=t.triggerFocus,m=t.allowClear,g=t.value,h=t.handleReset,w=t.hidden,E=t.classes,S=t.classNames,C=t.dataAttrs,$=t.styles,k=t.components,O=o??i,P=(k==null?void 0:k.affixWrapper)||"span",z=(k==null?void 0:k.groupWrapper)||"span",T=(k==null?void 0:k.wrapper)||"span",M=(k==null?void 0:k.groupAddon)||"span",A=u.useRef(null),B=function(xe){var ce;(ce=A.current)!==null&&ce!==void 0&&ce.contains(xe.target)&&(x==null||x())},_=Uz(t),R=u.cloneElement(O,{value:g,className:q(O.props.className,!_&&(S==null?void 0:S.variant))||null});if(_){var I,N=null;if(m){var F,D=!y&&!b&&g,U="".concat(a,"-clear-icon"),K=Me(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";N=J.createElement("span",{onClick:h,onMouseDown:function(xe){return xe.preventDefault()},className:q(U,(F={},L(F,"".concat(U,"-hidden"),!D),L(F,"".concat(U,"-has-suffix"),!!s),F)),role:"button",tabIndex:-1},K)}var G="".concat(a,"-affix-wrapper"),X=q(G,(I={},L(I,"".concat(a,"-disabled"),y),L(I,"".concat(G,"-disabled"),y),L(I,"".concat(G,"-focused"),v),L(I,"".concat(G,"-readonly"),b),L(I,"".concat(G,"-input-with-clear-btn"),s&&m&&g),I),E==null?void 0:E.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),Q=(s||m)&&J.createElement("span",{className:q("".concat(a,"-suffix"),S==null?void 0:S.suffix),style:$==null?void 0:$.suffix},N,s);R=J.createElement(P,ae({className:X,style:$==null?void 0:$.affixWrapper,onClick:B},C==null?void 0:C.affixWrapper,{ref:A}),l&&J.createElement("span",{className:q("".concat(a,"-prefix"),S==null?void 0:S.prefix),style:$==null?void 0:$.prefix},l),R,Q)}if(qz(t)){var Z="".concat(a,"-group"),ne="".concat(Z,"-addon"),fe="".concat(Z,"-wrapper"),re=q("".concat(a,"-wrapper"),Z,E==null?void 0:E.wrapper,S==null?void 0:S.wrapper),be=q(fe,L({},"".concat(fe,"-disabled"),y),E==null?void 0:E.group,S==null?void 0:S.groupWrapper);R=J.createElement(z,{className:be},J.createElement(T,{className:re},c&&J.createElement(M,{className:ne},c),R,d&&J.createElement(M,{className:ne},d)))}return J.cloneElement(R,{className:q((n=R.props)===null||n===void 0?void 0:n.className,f)||null,style:j(j({},(r=R.props)===null||r===void 0?void 0:r.style),p),hidden:w})},Kz=["show"];function Xz(e,t){return u.useMemo(function(){var n={};t&&(n.show=Me(t)==="object"&&t.formatter?t.formatter:!!t),n=j(j({},n),e);var r=n,i=r.show,o=Ne(r,Kz);return j(j({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}function Yz(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}var Qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Zz=Qz;var Jz=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:Zz}))};const e9=u.forwardRef(Jz);var t9=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -267,31 +267,25 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,r9=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],zf={},qn;function i9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&zf[n])return zf[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=r9.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(zf[n]=s),s}function o9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;qn||(qn=document.createElement("textarea"),qn.setAttribute("tab-index","-1"),qn.setAttribute("aria-hidden","true"),document.body.appendChild(qn)),e.getAttribute("wrap")?qn.setAttribute("wrap",e.getAttribute("wrap")):qn.removeAttribute("wrap");var i=i9(e,t),o=i.paddingSize,a=i.borderSize,l=i.boxSizing,s=i.sizingStyle;qn.setAttribute("style","".concat(s,";").concat(n9)),qn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,p=qn.scrollHeight;if(l==="border-box"?p+=a:l==="content-box"&&(p-=o),n!==null||r!==null){qn.value=" ";var y=qn.scrollHeight-o;n!==null&&(c=y*n,l==="border-box"&&(c=c+o+a),p=Math.max(c,p)),r!==null&&(d=y*r,l==="border-box"&&(d=d+o+a),f=p>d?"":"hidden",p=Math.min(d,p))}var b={height:p,overflowY:f,resize:"none"};return c&&(b.minHeight=c),d&&(b.maxHeight=d),b}var a9=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bf=0,Mf=1,Nf=2,l9=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var i=n.defaultValue,o=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ne(n,a9),y=hn(i,{value:o,postState:function(K){return K??""}}),b=H(y,2),v=b[0],x=b[1],m=function(K){x(K.target.value),f==null||f(K)},g=u.useRef();u.useImperativeHandle(t,function(){return{textArea:g.current}});var h=u.useMemo(function(){return a&&Me(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=H(h,2),S=w[0],C=w[1],E=!!a,$=function(){try{if(document.activeElement===g.current){var K=g.current,G=K.selectionStart,X=K.selectionEnd,Q=K.scrollTop;g.current.setSelectionRange(G,X),g.current.scrollTop=Q}}catch{}},k=u.useState(Nf),O=H(k,2),P=O[0],z=O[1],T=u.useState(),M=H(T,2),A=M[0],B=M[1],_=function(){z(Bf)};xt(function(){E&&_()},[o,S,C,E]),xt(function(){if(P===Bf)z(Mf);else if(P===Mf){var U=o9(g.current,!1,S,C);z(Nf),B(U)}else $()},[P]);var R=u.useRef(),I=function(){Bt.cancel(R.current)},N=function(K){P===Nf&&(l==null||l(K),a&&(I(),R.current=Bt(function(){_()})))};u.useEffect(function(){return I},[]);var F=E?A:null,D=j(j({},c),F);return(P===Bf||P===Mf)&&(D.overflowY="hidden",D.overflowX="hidden"),u.createElement(Tr,{onResize:N,disabled:!(a||l)},u.createElement("textarea",ae({},p,{ref:g,style:D,className:q(r,s,L({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:m})))}),s9=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],c9=J.forwardRef(function(e,t){var n,r,i=e.defaultValue,o=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,y=e.suffix,b=e.prefixCls,v=b===void 0?"rc-textarea":b,x=e.showCount,m=e.count,g=e.className,h=e.style,w=e.disabled,S=e.hidden,C=e.classNames,E=e.styles,$=e.onResize,k=Ne(e,s9),O=hn(i,{value:o,defaultValue:i}),P=H(O,2),z=P[0],T=P[1],M=z==null?"":String(z),A=J.useState(!1),B=H(A,2),_=B[0],R=B[1],I=J.useRef(!1),N=J.useState(null),F=H(N,2),D=F[0],U=F[1],K=u.useRef(null),G=function(){var ue;return(ue=K.current)===null||ue===void 0?void 0:ue.textArea},X=function(){G().focus()};u.useImperativeHandle(t,function(){return{resizableTextArea:K.current,focus:X,blur:function(){G().blur()}}}),u.useEffect(function(){R(function($e){return!w&&$e})},[w]);var Q=J.useState(null),Z=H(Q,2),ne=Z[0],fe=Z[1];J.useEffect(function(){if(ne){var $e;($e=G()).setSelectionRange.apply($e,Se(ne))}},[ne]);var re=Yz(m,x),be=(n=re.max)!==null&&n!==void 0?n:d,pe=Number(be)>0,xe=re.strategy(M),ce=!!be&&xe>be,Re=function(ue,Te){var Pe=Te;!I.current&&re.exceedFormatter&&re.max&&re.strategy(Te)>re.max&&(Pe=re.exceedFormatter(Te,{max:re.max}),Te!==Pe&&fe([G().selectionStart||0,G().selectionEnd||0])),T(Pe),M1(ue.currentTarget,ue,s,Pe)},ye=function(ue){I.current=!0,f==null||f(ue)},oe=function(ue){I.current=!1,Re(ue,ue.currentTarget.value),p==null||p(ue)},Y=function(ue){Re(ue,ue.target.value)},ge=function(ue){var Te=k.onPressEnter,Pe=k.onKeyDown;ue.key==="Enter"&&Te&&Te(ue),Pe==null||Pe(ue)},ie=function(ue){R(!0),a==null||a(ue)},we=function(ue){R(!1),l==null||l(ue)},Ce=function(ue){T(""),X(),M1(G(),ue,s)},Ae=y,De;re.show&&(re.showFormatter?De=re.showFormatter({value:M,count:xe,maxLength:be}):De="".concat(xe).concat(pe?" / ".concat(be):""),Ae=J.createElement(J.Fragment,null,Ae,J.createElement("span",{className:q("".concat(v,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},De)));var Ee=function(ue){var Te;$==null||$(ue),(Te=G())!==null&&Te!==void 0&&Te.style.height&&U(!0)},ct=!k.autoSize&&!x&&!c;return J.createElement(Kz,{value:M,allowClear:c,handleReset:Ce,suffix:Ae,prefixCls:v,classNames:j(j({},C),{},{affixWrapper:q(C==null?void 0:C.affixWrapper,(r={},L(r,"".concat(v,"-show-count"),x),L(r,"".concat(v,"-textarea-allow-clear"),c),r))}),disabled:w,focused:_,className:q(g,ce&&"".concat(v,"-out-of-range")),style:j(j({},h),D&&!ct?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof De=="string"?De:void 0}},hidden:S},J.createElement(l9,ae({},k,{maxLength:d,onKeyDown:ge,onChange:Y,onFocus:ie,onBlur:we,onCompositionStart:ye,onCompositionEnd:oe,className:q(C==null?void 0:C.textarea),style:j(j({},E==null?void 0:E.textarea),{},{resize:h==null?void 0:h.resize}),disabled:w,prefixCls:v,onResize:Ee,ref:K})))}),u9=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;const{prefixCls:r,bordered:i=!0,size:o,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,variant:p}=e,y=u9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:b,direction:v}=u.useContext(Ve),x=Pa(o),m=u.useContext(sd),g=a??m,{status:h,hasFeedback:w,feedbackIcon:S}=u.useContext(LR),C=jP(h,l),E=u.useRef(null);u.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=E.current)===null||B===void 0?void 0:B.resizableTextArea,focus:_=>{var R,I;Qz((I=(R=E.current)===null||R===void 0?void 0:R.resizableTextArea)===null||I===void 0?void 0:I.textArea,_)},blur:()=>{var _;return(_=E.current)===null||_===void 0?void 0:_.blur()}}});const $=b("input",r);let k;typeof s=="object"&&(s!=null&&s.clearIcon)?k=s:s&&(k={clearIcon:u.createElement(th,null)});const O=md($),[P,z,T]=jT($,O),[M,A]=DP(p,i);return P(u.createElement(c9,Object.assign({},y,{disabled:g,allowClear:k,className:q(T,O,f,d),classNames:Object.assign(Object.assign({},c),{textarea:q({[`${$}-sm`]:x==="small",[`${$}-lg`]:x==="large"},z,c==null?void 0:c.textarea),variant:q({[`${$}-${M}`]:A},LP($,C)),affixWrapper:q(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:v==="rtl",[`${$}-affix-wrapper-sm`]:x==="small",[`${$}-affix-wrapper-lg`]:x==="large",[`${$}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:$,suffix:w&&u.createElement("span",{className:`${$}-textarea-suffix`},S),ref:E})))}),f9=d9;function hu(e){return["small","middle","large"].includes(e)}function N1(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const OS=J.createContext({latestIndex:0}),p9=OS.Provider,g9=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=u.useContext(OS);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:o},r),n{var n,r;const{getPrefixCls:i,space:o,direction:a}=u.useContext(Ve),{size:l=(o==null?void 0:o.size)||"small",align:s,className:c,rootClassName:d,children:f,direction:p="horizontal",prefixCls:y,split:b,style:v,wrap:x=!1,classNames:m,styles:g}=e,h=h9(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(l)?l:[l,l],C=hu(S),E=hu(w),$=N1(S),k=N1(w),O=vr(f,{keepEmpty:!0}),P=s===void 0&&p==="horizontal"?"center":s,z=i("space",y),[T,M,A]=vx(z),B=q(z,o==null?void 0:o.className,M,`${z}-${p}`,{[`${z}-rtl`]:a==="rtl",[`${z}-align-${P}`]:P,[`${z}-gap-row-${S}`]:C,[`${z}-gap-col-${w}`]:E},c,d,A),_=q(`${z}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(r=o==null?void 0:o.classNames)===null||r===void 0?void 0:r.item);let R=0;const I=O.map((D,U)=>{var K,G;D!=null&&(R=U);const X=D&&D.key||`${_}-${U}`;return u.createElement(m9,{className:_,key:X,index:U,split:b,style:(K=g==null?void 0:g.item)!==null&&K!==void 0?K:(G=o==null?void 0:o.styles)===null||G===void 0?void 0:G.item},D)}),N=u.useMemo(()=>({latestIndex:R}),[R]);if(O.length===0)return null;const F={};return x&&(F.flexWrap="wrap"),!E&&k&&(F.columnGap=w),!C&&$&&(F.rowGap=S),T(u.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},F),o==null?void 0:o.style),v)},h),u.createElement(p9,{value:N},I)))}),RS=v9;RS.Compact=KO;const y9=RS,PS=["wrap","nowrap","wrap-reverse"],_S=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],TS=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],b9=(e,t)=>{const n={};return PS.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},w9=(e,t)=>{const n={};return TS.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},x9=(e,t)=>{const n={};return _S.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function S9(e,t){return q(Object.assign(Object.assign(Object.assign({},b9(e,t)),w9(e,t)),x9(e,t)))}const C9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},E9=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},$9=e=>{const{componentCls:t}=e,n={};return PS.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},k9=e=>{const{componentCls:t}=e,n={};return TS.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},O9=e=>{const{componentCls:t}=e,n={};return _S.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},R9=()=>({}),P9=Xt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Et(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[C9(i),E9(i),$9(i),k9(i),O9(i)]},R9,{resetStyle:!1});var _9=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:n,rootClassName:r,className:i,style:o,flex:a,gap:l,children:s,vertical:c=!1,component:d="div"}=e,f=_9(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:y,getPrefixCls:b}=J.useContext(Ve),v=b("flex",n),[x,m,g]=P9(v),h=c??(p==null?void 0:p.vertical),w=q(i,r,p==null?void 0:p.className,v,m,g,S9(v,e),{[`${v}-rtl`]:y==="rtl",[`${v}-gap-${l}`]:hu(l),[`${v}-vertical`]:h}),S=Object.assign(Object.assign({},p==null?void 0:p.style),o);return a&&(S.flex=a),l&&!hu(l)&&(S.gap=l),x(J.createElement(d,Object.assign({ref:t,className:w,style:S},Fn(f,["justify","wrap","align"])),s))}),Nt=T9;function IS(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function I9(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var jg=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ws=u.createContext(null),A1=0;function z9(e,t){var n=u.useState(function(){return A1+=1,String(A1)}),r=H(n,1),i=r[0],o=u.useContext(ws),a={data:t,canPreview:e};return u.useEffect(function(){if(o)return o.register(i,a)},[]),u.useEffect(function(){o&&o.register(i,a)},[e,t]),i}function B9(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function zS(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=u.useState(n?"loading":"normal"),o=H(i,2),a=o[0],l=o[1],s=u.useRef(!1),c=a==="error";u.useEffect(function(){var y=!0;return B9(t).then(function(b){!b&&y&&l("error")}),function(){y=!1}},[t]),u.useEffect(function(){n&&!s.current?l("loading"):c&&l("normal")},[t]);var d=function(){l("normal")},f=function(b){s.current=!1,a==="loading"&&b!==null&&b!==void 0&&b.complete&&(b.naturalWidth||b.naturalHeight)&&(s.current=!0,d())},p=c&&r?{src:r}:{onLoad:d,src:t};return[f,p,a]}function Zo(e,t,n,r){var i=eu.unstable_batchedUpdates?function(a){eu.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var rc={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function M9(e,t,n,r){var i=u.useRef(null),o=u.useRef([]),a=u.useState(rc),l=H(a,2),s=l[0],c=l[1],d=function(b){c(rc),r&&!us(rc,s)&&r({transform:rc,action:b})},f=function(b,v){i.current===null&&(o.current=[],i.current=Bt(function(){c(function(x){var m=x;return o.current.forEach(function(g){m=j(j({},m),g)}),i.current=null,r==null||r({transform:m,action:v}),m})})),o.current.push(j(j({},s),b))},p=function(b,v,x,m,g){var h=e.current,w=h.width,S=h.height,C=h.offsetWidth,E=h.offsetHeight,$=h.offsetLeft,k=h.offsetTop,O=b,P=s.scale*b;P>n?(P=n,O=n/s.scale):Pr){if(t>0)return L({},e,o);if(t<0&&ir)return L({},e,t<0?o:-o);return{}}function BS(e,t,n,r){var i=IS(),o=i.width,a=i.height,l=null;return e<=o&&t<=a?l={x:0,y:0}:(e>o||t>a)&&(l=j(j({},L1("x",n,e,o)),L1("y",r,t,a))),l}var Jo=1,N9=1;function A9(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,c=i.x,d=i.y,f=u.useState(!1),p=H(f,2),y=p[0],b=p[1],v=u.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(S){!t||S.button!==0||(S.preventDefault(),S.stopPropagation(),v.current={diffX:S.pageX-c,diffY:S.pageY-d,transformX:c,transformY:d},b(!0))},m=function(S){n&&y&&o({x:S.pageX-v.current.diffX,y:S.pageY-v.current.diffY},"move")},g=function(){if(n&&y){b(!1);var S=v.current,C=S.transformX,E=S.transformY,$=c!==C&&d!==E;if(!$)return;var k=e.current.offsetWidth*s,O=e.current.offsetHeight*s,P=e.current.getBoundingClientRect(),z=P.left,T=P.top,M=l%180!==0,A=BS(M?O:k,M?k:O,z,T);A&&o(j({},A),"dragRebound")}},h=function(S){if(!(!n||S.deltaY==0)){var C=Math.abs(S.deltaY/100),E=Math.min(C,N9),$=Jo+E*r;S.deltaY>0&&($=Jo/$),a($,"wheel",S.clientX,S.clientY)}};return u.useEffect(function(){var w,S,C,E;if(t){C=Zo(window,"mouseup",g,!1),E=Zo(window,"mousemove",m,!1);try{window.top!==window.self&&(w=Zo(window.top,"mouseup",g,!1),S=Zo(window.top,"mousemove",m,!1))}catch{}}return function(){var $,k,O,P;($=C)===null||$===void 0||$.remove(),(k=E)===null||k===void 0||k.remove(),(O=w)===null||O===void 0||O.remove(),(P=S)===null||P===void 0||P.remove()}},[n,y,c,d,l,t]),{isMoving:y,onMouseDown:x,onMouseMove:m,onMouseUp:g,onWheel:h}}function vu(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function L9(e,t,n,r){var i=vu(e,n),o=vu(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),l=e.x+a*(t.x-e.x),s=e.y+a*(t.y-e.y);return[l,s]}function j9(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,c=i.x,d=i.y,f=u.useState(!1),p=H(f,2),y=p[0],b=p[1],v=u.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(S){v.current=j(j({},v.current),S)},m=function(S){if(t){S.stopPropagation(),b(!0);var C=S.touches,E=C===void 0?[]:C;E.length>1?x({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):x({point1:{x:E[0].clientX-c,y:E[0].clientY-d},eventType:"move"})}},g=function(S){var C=S.touches,E=C===void 0?[]:C,$=v.current,k=$.point1,O=$.point2,P=$.eventType;if(E.length>1&&P==="touchZoom"){var z={x:E[0].clientX,y:E[0].clientY},T={x:E[1].clientX,y:E[1].clientY},M=L9(k,O,z,T),A=H(M,2),B=A[0],_=A[1],R=vu(z,T)/vu(k,O);a(R,"touchZoom",B,_,!0),x({point1:z,point2:T,eventType:"touchZoom"})}else P==="move"&&(o({x:E[0].clientX-k.x,y:E[0].clientY-k.y},"move"),x({eventType:"move"}))},h=function(){if(n){if(y&&b(!1),x({eventType:"none"}),r>s)return o({x:0,y:0,scale:r},"touchZoom");var S=e.current.offsetWidth*s,C=e.current.offsetHeight*s,E=e.current.getBoundingClientRect(),$=E.left,k=E.top,O=l%180!==0,P=BS(O?C:S,O?S:C,$,k);P&&o(j({},P),"dragRebound")}};return u.useEffect(function(){var w;return n&&t&&(w=Zo(window,"touchmove",function(S){return S.preventDefault()},{passive:!1})),function(){var S;(S=w)===null||S===void 0||S.remove()}},[n,t]),{isTouching:y,onTouchStart:m,onTouchMove:g,onTouchEnd:h}}var F9=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,l=t.icons,s=t.countRender,c=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,y=t.count,b=t.scale,v=t.minScale,x=t.maxScale,m=t.closeIcon,g=t.onSwitchLeft,h=t.onSwitchRight,w=t.onClose,S=t.onZoomIn,C=t.onZoomOut,E=t.onRotateRight,$=t.onRotateLeft,k=t.onFlipX,O=t.onFlipY,P=t.toolbarRender,z=t.zIndex,T=u.useContext(ws),M=l.rotateLeft,A=l.rotateRight,B=l.zoomIn,_=l.zoomOut,R=l.close,I=l.left,N=l.right,F=l.flipX,D=l.flipY,U="".concat(o,"-operations-operation");u.useEffect(function(){var Q=function(ne){ne.keyCode===le.ESC&&w()};return n&&window.addEventListener("keydown",Q),function(){window.removeEventListener("keydown",Q)}},[n]);var K=[{icon:D,onClick:O,type:"flipY"},{icon:F,onClick:k,type:"flipX"},{icon:M,onClick:$,type:"rotateLeft"},{icon:A,onClick:E,type:"rotateRight"},{icon:_,onClick:C,type:"zoomOut",disabled:b<=v},{icon:B,onClick:S,type:"zoomIn",disabled:b===x}],G=K.map(function(Q){var Z,ne=Q.icon,fe=Q.onClick,re=Q.type,be=Q.disabled;return u.createElement("div",{className:q(U,(Z={},L(Z,"".concat(o,"-operations-operation-").concat(re),!0),L(Z,"".concat(o,"-operations-operation-disabled"),!!be),Z)),onClick:fe,key:re},ne)}),X=u.createElement("div",{className:"".concat(o,"-operations")},G);return u.createElement(xr,{visible:n,motionName:r},function(Q){var Z=Q.className,ne=Q.style;return u.createElement(yd,{open:!0,getContainer:i??document.body},u.createElement("div",{className:q("".concat(o,"-operations-wrapper"),Z,a),style:j(j({},ne),{},{zIndex:z})},m===null?null:u.createElement("button",{className:"".concat(o,"-close"),onClick:w},m||R),c&&u.createElement(u.Fragment,null,u.createElement("div",{className:q("".concat(o,"-switch-left"),L({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:g},I),u.createElement("div",{className:q("".concat(o,"-switch-right"),L({},"".concat(o,"-switch-right-disabled"),f===y-1)),onClick:h},N)),u.createElement("div",{className:"".concat(o,"-footer")},d&&u.createElement("div",{className:"".concat(o,"-progress")},s?s(f+1,y):"".concat(f+1," / ").concat(y)),P?P(X,j({icons:{flipYIcon:G[0],flipXIcon:G[1],rotateLeftIcon:G[2],rotateRightIcon:G[3],zoomOutIcon:G[4],zoomInIcon:G[5]},actions:{onFlipY:O,onFlipX:k,onRotateLeft:$,onRotateRight:E,onZoomOut:C,onZoomIn:S},transform:p},T?{current:f,total:y}:{})):X)))})},D9=["fallback","src","imgRef"],H9=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],V9=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=Ne(t,D9),a=zS({src:r,fallback:n}),l=H(a,2),s=l[0],c=l[1];return J.createElement("img",ae({ref:function(f){i.current=f,s(f)}},o,c))},MS=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.fallback,a=t.movable,l=a===void 0?!0:a,s=t.onClose,c=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,y=t.closeIcon,b=t.getContainer,v=t.current,x=v===void 0?0:v,m=t.count,g=m===void 0?1:m,h=t.countRender,w=t.scaleStep,S=w===void 0?.5:w,C=t.minScale,E=C===void 0?1:C,$=t.maxScale,k=$===void 0?50:$,O=t.transitionName,P=O===void 0?"zoom":O,z=t.maskTransitionName,T=z===void 0?"fade":z,M=t.imageRender,A=t.imgCommonProps,B=t.toolbarRender,_=t.onTransform,R=t.onChange,I=Ne(t,H9),N=u.useRef(),F=u.useContext(ws),D=F&&g>1,U=F&&g>=1,K=u.useState(!0),G=H(K,2),X=G[0],Q=G[1],Z=M9(N,E,k,_),ne=Z.transform,fe=Z.resetTransform,re=Z.updateTransform,be=Z.dispatchZoomChange,pe=A9(N,l,c,S,ne,re,be),xe=pe.isMoving,ce=pe.onMouseDown,Re=pe.onWheel,ye=j9(N,l,c,E,ne,re,be),oe=ye.isTouching,Y=ye.onTouchStart,ge=ye.onTouchMove,ie=ye.onTouchEnd,we=ne.rotate,Ce=ne.scale,Ae=q(L({},"".concat(n,"-moving"),xe));u.useEffect(function(){X||Q(!0)},[X]);var De=function(){fe("close")},Ee=function(){be(Jo+S,"zoomIn")},ct=function(){be(Jo/(Jo+S),"zoomOut")},$e=function(){re({rotate:we+90},"rotateRight")},ue=function(){re({rotate:we-90},"rotateLeft")},Te=function(){re({flipX:!ne.flipX},"flipX")},Pe=function(){re({flipY:!ne.flipY},"flipY")},ut=function(He){He==null||He.preventDefault(),He==null||He.stopPropagation(),x>0&&(Q(!1),fe("prev"),R==null||R(x-1,x))},Ke=function(He){He==null||He.preventDefault(),He==null||He.stopPropagation(),x({position:e||"absolute",inset:0}),mB=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new zt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},ud),{padding:`0 ${W(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},hB=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:d,colorTextLightSolid:f}=e,p=new zt(n).setAlpha(.1),y=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:y.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${W(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},vB=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,l=new zt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},yB=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Fg()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Fg()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[hB(e),vB(e)]}]},bB=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},mB(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Fg())}}},wB=e=>{const{previewCls:t}=e;return{[`${t}-root`]:uh(e,"zoom"),"&":Lx(e,!0)}},xB=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new zt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new zt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new zt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),NS=Xt("Image",e=>{const t=`${e.componentCls}-preview`,n=Et(e,{previewCls:t,modalMaskBg:new zt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[bB(n),yB(n),jx(Et(n,{componentCls:t})),wB(n)]},xB);var SB=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{previewPrefixCls:t,preview:n}=e,r=SB(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=u.useContext(Ve),o=i("image",t),a=`${o}-preview`,l=i(),s=md(o),[c,d,f]=NS(o,s),[p]=rh("ImagePreview",typeof n=="object"?n.zIndex:void 0),y=u.useMemo(()=>{var b;if(n===!1)return n;const v=typeof n=="object"?n:{},x=q(d,f,s,(b=v.rootClassName)!==null&&b!==void 0?b:"");return Object.assign(Object.assign({},v),{transitionName:wa(l,"zoom",v.transitionName),maskTransitionName:wa(l,"fade",v.maskTransitionName),rootClassName:x,zIndex:p})},[n]);return c(u.createElement(Ed.PreviewGroup,Object.assign({preview:y,previewPrefixCls:a,icons:AS},r)))},EB=CB;var F1=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;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,l=F1(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:c=Pi,getPopupContainer:d,image:f}=u.useContext(Ve),p=s("image",n),y=s(),b=c.Image||Pi.Image,v=md(p),[x,m,g]=NS(p,v),h=q(o,m,g,v),w=q(i,m,f==null?void 0:f.className),[S]=rh("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=u.useMemo(()=>{var $;if(r===!1)return r;const k=typeof r=="object"?r:{},{getContainer:O,closeIcon:P}=k,z=F1(k,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:u.createElement("div",{className:`${p}-mask-info`},u.createElement(t9,null),b==null?void 0:b.preview),icons:AS},z),{getContainer:O??d,transitionName:wa(y,"zoom",k.transitionName),maskTransitionName:wa(y,"fade",k.maskTransitionName),zIndex:S,closeIcon:P??(($=f==null?void 0:f.preview)===null||$===void 0?void 0:$.closeIcon)})},[r,b,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},f==null?void 0:f.style),a);return x(u.createElement(Ed,Object.assign({prefixCls:p,preview:C,rootClassName:h,className:w,style:E},l)))};LS.PreviewGroup=EB;const Dg=LS;function $B(e,t,n){return typeof n=="boolean"?n:e.length?!0:vr(t).some(i=>i.type===pS)}const kB=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:i},[`${t}-sider-zero-width-trigger`]:{color:o,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},OB=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:y,motionDurationMid:b,motionDurationSlow:v,fontSize:x,borderRadius:m,bodyBg:g,headerBg:h,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${b}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:i,lineHeight:W(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${b}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(y).mul(-1).equal(),zIndex:1,width:y,height:p,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(y).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}}}},kB(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:c,lineHeight:W(l),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:x,background:o},[`${n}-content`]:{flex:"auto",minHeight:0}}},RB=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=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:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:i}},jS=Xt("Layout",e=>[OB(e)],RB,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var FS=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);iu.forwardRef((a,l)=>u.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const wh=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=FS(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=u.useContext(Ve),s=l("layout",n),[c,d,f]=jS(s),p=r?`${s}-${r}`:s;return c(u.createElement(o,Object.assign({className:q(n||p,i,d,f),ref:t},a)))}),PB=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Ve),[r,i]=u.useState([]),{prefixCls:o,className:a,rootClassName:l,children:s,hasSider:c,tagName:d,style:f}=e,p=FS(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Fn(p,["suffixCls"]),{getPrefixCls:b,layout:v}=u.useContext(Ve),x=b("layout",o),m=$B(r,s,c),[g,h,w]=jS(x),S=q(x,{[`${x}-has-sider`]:m,[`${x}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,l,h,w),C=u.useMemo(()=>({siderHook:{addSider:E=>{i($=>[].concat(Se($),[E]))},removeSider:E=>{i($=>$.filter(k=>k!==E))}}}),[]);return g(u.createElement(dS.Provider,{value:C},u.createElement(d,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},y),s)))}),_B=$d({tagName:"div",displayName:"Layout"})(PB),TB=$d({suffixCls:"header",tagName:"header",displayName:"Header"})(wh),IB=$d({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(wh),zB=$d({suffixCls:"content",tagName:"main",displayName:"Content"})(wh),BB=_B,Ia=BB;Ia.Header=TB;Ia.Footer=IB;Ia.Content=zB;Ia.Sider=pS;Ia._InternalSiderContext=fS;const kd=Ia;var MB={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},NB=function(){var t=u.useRef([]),n=u.useRef(null);return u.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},D1=0,AB=un();function LB(){var e;return AB?(e=D1,D1+=1):e="TEST_OR_SSR",e}const jB=function(e){var t=u.useState(),n=H(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_progress_".concat(LB()))},[]),e||r};var H1=function(t){var n=t.bg,r=t.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function V1(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var FB=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,l=e.ptg,s=e.strokeLinecap,c=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&Me(r)==="object",y=p?"#FFF":void 0,b=d/2,v=u.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:b,cy:b,stroke:y,strokeLinecap:s,strokeWidth:c,opacity:l===0?0:1,style:a,ref:t});if(!p)return v;var x="".concat(i,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",g=V1(r,(360-f)/360),h=V1(r,1),w="conic-gradient(from ".concat(m,", ").concat(g.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(h.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:x},v),u.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(x,")")},u.createElement(H1,{bg:S},u.createElement(H1,{bg:w}))))}),cl=100,Af=function(t,n,r,i,o,a,l,s,c,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),y=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],b=(100-i)/100*n;c==="round"&&i!==100&&(b+=d/2,b>=n&&(b=n-.01));var v=cl/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+f,transform:"rotate(".concat(o+p+y,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},DB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function W1(e){var t=e??[];return Array.isArray(t)?t:[t]}var HB=function(t){var n=j(j({},MB),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,c=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,y=n.style,b=n.className,v=n.strokeColor,x=n.percent,m=Ne(n,DB),g=cl/2,h=jB(r),w="".concat(h,"-gradient"),S=g-a/2,C=Math.PI*2*S,E=c>0?90+c/2:-90,$=C*((360-c)/360),k=Me(o)==="object"?o:{count:o,space:2},O=k.count,P=k.space,z=W1(x),T=W1(v),M=T.find(function(F){return F&&Me(F)==="object"}),A=M&&Me(M)==="object",B=A?"butt":p,_=Af(C,$,0,100,E,c,d,f,B,a),R=NB(),I=function(){var D=0;return z.map(function(U,K){var G=T[K]||T[T.length-1],X=Af(C,$,D,U,E,c,d,G,B,a);return D+=U,u.createElement(FB,{key:K,color:G,ptg:U,radius:S,prefixCls:i,gradientId:w,style:X,strokeLinecap:B,strokeWidth:a,gapDegree:c,ref:function(Z){R[K]=Z},size:cl})}).reverse()},N=function(){var D=Math.round(O*(z[0]/100)),U=100/O,K=0;return new Array(O).fill(null).map(function(G,X){var Q=X<=D-1?T[0]:f,Z=Q&&Me(Q)==="object"?"url(#".concat(w,")"):void 0,ne=Af(C,$,K,U,E,c,d,Q,"butt",a,P);return K+=($-ne.strokeDashoffset+P)*100/$,u.createElement("circle",{key:X,className:"".concat(i,"-circle-path"),r:S,cx:g,cy:g,stroke:Z,strokeWidth:a,opacity:1,style:ne,ref:function(re){R[X]=re}})})};return u.createElement("svg",ae({className:q("".concat(i,"-circle"),b),viewBox:"0 0 ".concat(cl," ").concat(cl),style:y,id:r,role:"presentation"},m),!O&&u.createElement("circle",{className:"".concat(i,"-circle-trail"),r:S,cx:g,cy:g,stroke:f,strokeLinecap:B,strokeWidth:l||a,style:_}),O?N():I())};function $i(e){return!e||e<0?0:e>100?100:e}function yu(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const VB=e=>{let{percent:t,success:n,successPercent:r}=e;const i=$i(yu({success:n,successPercent:r}));return[i,$i($i(t)-i)]},WB=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||aa.green,n||null]},Od=(e,t,n)=>{var r,i,o,a;let l=-1,s=-1;if(t==="step"){const c=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,s=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,s]},qB=3,UB=e=>qB/e*100,GB=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:s,success:c,size:d=a}=e,[f,p]=Od(d,"circle");let{strokeWidth:y}=e;y===void 0&&(y=Math.max(UB(f),6));const b={width:f,height:p,fontSize:f*.15+6},v=u.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),x=i||l==="dashboard"&&"bottom"||void 0,m=Object.prototype.toString.call(e.strokeColor)==="[object Object]",g=WB({success:c,strokeColor:e.strokeColor}),h=q(`${t}-inner`,{[`${t}-circle-gradient`]:m}),w=u.createElement(HB,{percent:VB(e),strokeWidth:y,trailWidth:y,strokeColor:g,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:x});return u.createElement("div",{className:h,style:b},f<=20?u.createElement(gu,{title:s},u.createElement("span",null,w)):u.createElement(u.Fragment,null,w,s))},KB=GB,bu="--progress-line-stroke-color",DS="--progress-percent",q1=e=>{const t=e?"100%":"-100%";return new ht(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},XB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${W(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${W(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${bu})`]},height:"100%",width:`calc(1 / var(${DS}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:q1(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:q1(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},YB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},QB=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},ZB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},JB=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),eM=Xt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Et(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[XB(n),YB(n),QB(n),ZB(n)]},JB);var tM=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 t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},rM=(e,t)=>{const{from:n=aa.blue,to:r=aa.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=tM(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=nM(o),s=`linear-gradient(${i}, ${l})`;return{background:s,[bu]:s}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[bu]:a}},iM=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,success:d}=e,f=a&&typeof a!="string"?rM(a,n):{[bu]:a,background:a},p=l==="square"||l==="butt"?0:void 0,y=i??[-1,o||(i==="small"?6:8)],[b,v]=Od(y,"line",{strokeWidth:o}),x={backgroundColor:c||void 0,borderRadius:p},m=Object.assign(Object.assign({width:`${$i(r)}%`,height:v,borderRadius:p},f),{[DS]:$i(r)/100}),g=yu(e),h={width:`${$i(g)}%`,height:v,borderRadius:p,backgroundColor:d==null?void 0:d.strokeColor},w={width:b<0?"100%":b,height:v};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${t}-outer`,style:w},u.createElement("div",{className:`${t}-inner`,style:x},u.createElement("div",{className:`${t}-bg`,style:m}),g!==void 0?u.createElement("div",{className:`${t}-success-bg`,style:h}):null)),s)},oM=iM,aM=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:s}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,y]=Od(f,"step",{steps:n,strokeWidth:i}),b=p/n,v=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:s="default",showInfo:c=!0,type:d="line",status:f,format:p,style:y}=e,b=sM(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=u.useMemo(()=>{var T,M;const A=yu(e);return parseInt(A!==void 0?(T=A??0)===null||T===void 0?void 0:T.toString():(M=l??0)===null||M===void 0?void 0:M.toString(),10)},[l,e.success,e.successPercent]),x=u.useMemo(()=>!cM.includes(f)&&v>=100?"success":f||"normal",[f,v]),{getPrefixCls:m,direction:g,progress:h}=u.useContext(Ve),w=m("progress",n),[S,C,E]=eM(w),$=u.useMemo(()=>{if(!c)return null;const T=yu(e);let M;const A=p||(_=>`${_}%`),B=d==="line";return p||x!=="exception"&&x!=="success"?M=A($i(l),$i(T)):x==="exception"?M=B?u.createElement(th,null):u.createElement(pd,null):x==="success"&&(M=B?u.createElement(ax,null):u.createElement(Wx,null)),u.createElement("span",{className:`${w}-text`,title:typeof M=="string"?M:void 0},M)},[c,l,v,x,d,w,p]),k=Array.isArray(a)?a[0]:a,O=typeof a=="string"||Array.isArray(a)?a:void 0;let P;d==="line"?P=o?u.createElement(lM,Object.assign({},e,{strokeColor:O,prefixCls:w,steps:o}),$):u.createElement(oM,Object.assign({},e,{strokeColor:k,prefixCls:w,direction:g}),$):(d==="circle"||d==="dashboard")&&(P=u.createElement(KB,Object.assign({},e,{strokeColor:k,prefixCls:w,progressStatus:x}),$));const z=q(w,`${w}-status-${x}`,`${w}-${d==="dashboard"&&"circle"||o&&"steps"||d}`,{[`${w}-inline-circle`]:d==="circle"&&Od(s,"circle")[0]<=20,[`${w}-show-info`]:c,[`${w}-${s}`]:typeof s=="string",[`${w}-rtl`]:g==="rtl"},h==null?void 0:h.className,r,i,C,E);return S(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},h==null?void 0:h.style),y),className:z,role:"progressbar","aria-valuenow":v},Fn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),P))}),Lf=uM;var dM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],HS=u.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,y=e.onChange,b=e.onKeyDown,v=Ne(e,dM),x=hn(!1,{value:a,defaultValue:l}),m=H(x,2),g=m[0],h=m[1];function w($,k){var O=g;return s||(O=$,h(O),y==null||y(O,k)),O}function S($){$.which===le.LEFT?w(!1,$):$.which===le.RIGHT&&w(!0,$),b==null||b($)}function C($){var k=w(!g,$);p==null||p(k,$)}var E=q(i,o,(n={},L(n,"".concat(i,"-checked"),g),L(n,"".concat(i,"-disabled"),s),n));return u.createElement("button",ae({},v,{type:"button",role:"switch","aria-checked":g,disabled:s,className:E,ref:t,onKeyDown:S,onClick:C}),c,u.createElement("span",{className:"".concat(i,"-inner")},u.createElement("span",{className:"".concat(i,"-inner-checked")},d),u.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});HS.displayName="Switch";const fM=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,d=W(s(l).add(s(r).mul(2)).equal()),f=W(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:W(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${W(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},pM=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},gM=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${W(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},mM=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:l}=e,s=`${t}-inner`,c=W(l(a).add(l(r).mul(2)).equal()),d=W(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},hM=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${W(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),fs(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},vM=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,l=2,s=o-l*2,c=a-l*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new zt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},yM=Xt("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[hM(t),mM(t),gM(t),pM(t),fM(t)]},vM);var bM=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:n,size:r,disabled:i,loading:o,className:a,rootClassName:l,style:s,checked:c,value:d,defaultChecked:f,defaultValue:p,onChange:y}=e,b=bM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,x]=hn(!1,{value:c??d,defaultValue:f??p}),{getPrefixCls:m,direction:g,switch:h}=u.useContext(Ve),w=u.useContext(sd),S=(i??w)||o,C=m("switch",n),E=u.createElement("div",{className:`${C}-handle`},o&&u.createElement(fx,{className:`${C}-loading-icon`})),[$,k,O]=yM(C),P=Pa(r),z=q(h==null?void 0:h.className,{[`${C}-small`]:P==="small",[`${C}-loading`]:o,[`${C}-rtl`]:g==="rtl"},a,l,k,O),T=Object.assign(Object.assign({},h==null?void 0:h.style),s),M=function(){x(arguments.length<=0?void 0:arguments[0]),y==null||y.apply(void 0,arguments)};return $(u.createElement(hx,{component:"Switch"},u.createElement(HS,Object.assign({},b,{checked:v,onChange:M,prefixCls:C,className:z,style:T,disabled:S,ref:t,loadingIcon:E}))))});VS.__ANT_SWITCH=!0;const jf=VS;var wM=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=c=>{const{keyCode:d}=c;d===le.ENTER&&c.preventDefault()},r=c=>{const{keyCode:d}=c,{onClick:f}=e;d===le.ENTER&&f&&f()},{style:i,noStyle:o,disabled:a}=e,l=wM(e,["style","noStyle","disabled"]);let s={};return o||(s=Object.assign({},xM)),a&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),i),u.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),U1=SM;var CM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const EM=CM;var $M=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:EM}))};const kM=u.forwardRef($M);var OM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const RM=OM;var PM=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:RM}))};const _M=u.forwardRef(PM);var TM=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=G1[t.format]||G1.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");s=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=BM("message"in t?t.message:zM),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}var NM=MM;const AM=Eu(NM);var LM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const jM=LM;var FM=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:jM}))};const DM=u.forwardRef(FM),HM=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},VM=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` +`,n9=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],zf={},qn;function r9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&zf[n])return zf[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=n9.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(zf[n]=s),s}function i9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;qn||(qn=document.createElement("textarea"),qn.setAttribute("tab-index","-1"),qn.setAttribute("aria-hidden","true"),document.body.appendChild(qn)),e.getAttribute("wrap")?qn.setAttribute("wrap",e.getAttribute("wrap")):qn.removeAttribute("wrap");var i=r9(e,t),o=i.paddingSize,a=i.borderSize,l=i.boxSizing,s=i.sizingStyle;qn.setAttribute("style","".concat(s,";").concat(t9)),qn.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,p=qn.scrollHeight;if(l==="border-box"?p+=a:l==="content-box"&&(p-=o),n!==null||r!==null){qn.value=" ";var y=qn.scrollHeight-o;n!==null&&(c=y*n,l==="border-box"&&(c=c+o+a),p=Math.max(c,p)),r!==null&&(d=y*r,l==="border-box"&&(d=d+o+a),f=p>d?"":"hidden",p=Math.min(d,p))}var b={height:p,overflowY:f,resize:"none"};return c&&(b.minHeight=c),d&&(b.maxHeight=d),b}var o9=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bf=0,Mf=1,Nf=2,a9=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var i=n.defaultValue,o=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Ne(n,o9),y=hn(i,{value:o,postState:function(K){return K??""}}),b=V(y,2),v=b[0],x=b[1],m=function(K){x(K.target.value),f==null||f(K)},g=u.useRef();u.useImperativeHandle(t,function(){return{textArea:g.current}});var h=u.useMemo(function(){return a&&Me(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=V(h,2),E=w[0],S=w[1],C=!!a,$=function(){try{if(document.activeElement===g.current){var K=g.current,G=K.selectionStart,X=K.selectionEnd,Q=K.scrollTop;g.current.setSelectionRange(G,X),g.current.scrollTop=Q}}catch{}},k=u.useState(Nf),O=V(k,2),P=O[0],z=O[1],T=u.useState(),M=V(T,2),A=M[0],B=M[1],_=function(){z(Bf)};xt(function(){C&&_()},[o,E,S,C]),xt(function(){if(P===Bf)z(Mf);else if(P===Mf){var U=i9(g.current,!1,E,S);z(Nf),B(U)}else $()},[P]);var R=u.useRef(),I=function(){Bt.cancel(R.current)},N=function(K){P===Nf&&(l==null||l(K),a&&(I(),R.current=Bt(function(){_()})))};u.useEffect(function(){return I},[]);var F=C?A:null,D=j(j({},c),F);return(P===Bf||P===Mf)&&(D.overflowY="hidden",D.overflowX="hidden"),u.createElement(Tr,{onResize:N,disabled:!(a||l)},u.createElement("textarea",ae({},p,{ref:g,style:D,className:q(r,s,L({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:m})))}),l9=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],s9=J.forwardRef(function(e,t){var n,r,i=e.defaultValue,o=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,p=e.onCompositionEnd,y=e.suffix,b=e.prefixCls,v=b===void 0?"rc-textarea":b,x=e.showCount,m=e.count,g=e.className,h=e.style,w=e.disabled,E=e.hidden,S=e.classNames,C=e.styles,$=e.onResize,k=Ne(e,l9),O=hn(i,{value:o,defaultValue:i}),P=V(O,2),z=P[0],T=P[1],M=z==null?"":String(z),A=J.useState(!1),B=V(A,2),_=B[0],R=B[1],I=J.useRef(!1),N=J.useState(null),F=V(N,2),D=F[0],U=F[1],K=u.useRef(null),G=function(){var ue;return(ue=K.current)===null||ue===void 0?void 0:ue.textArea},X=function(){G().focus()};u.useImperativeHandle(t,function(){return{resizableTextArea:K.current,focus:X,blur:function(){G().blur()}}}),u.useEffect(function(){R(function($e){return!w&&$e})},[w]);var Q=J.useState(null),Z=V(Q,2),ne=Z[0],fe=Z[1];J.useEffect(function(){if(ne){var $e;($e=G()).setSelectionRange.apply($e,Se(ne))}},[ne]);var re=Xz(m,x),be=(n=re.max)!==null&&n!==void 0?n:d,pe=Number(be)>0,xe=re.strategy(M),ce=!!be&&xe>be,Re=function(ue,Te){var Pe=Te;!I.current&&re.exceedFormatter&&re.max&&re.strategy(Te)>re.max&&(Pe=re.exceedFormatter(Te,{max:re.max}),Te!==Pe&&fe([G().selectionStart||0,G().selectionEnd||0])),T(Pe),M1(ue.currentTarget,ue,s,Pe)},ye=function(ue){I.current=!0,f==null||f(ue)},oe=function(ue){I.current=!1,Re(ue,ue.currentTarget.value),p==null||p(ue)},Y=function(ue){Re(ue,ue.target.value)},ge=function(ue){var Te=k.onPressEnter,Pe=k.onKeyDown;ue.key==="Enter"&&Te&&Te(ue),Pe==null||Pe(ue)},ie=function(ue){R(!0),a==null||a(ue)},we=function(ue){R(!1),l==null||l(ue)},Ce=function(ue){T(""),X(),M1(G(),ue,s)},Ae=y,De;re.show&&(re.showFormatter?De=re.showFormatter({value:M,count:xe,maxLength:be}):De="".concat(xe).concat(pe?" / ".concat(be):""),Ae=J.createElement(J.Fragment,null,Ae,J.createElement("span",{className:q("".concat(v,"-data-count"),S==null?void 0:S.count),style:C==null?void 0:C.count},De)));var Ee=function(ue){var Te;$==null||$(ue),(Te=G())!==null&&Te!==void 0&&Te.style.height&&U(!0)},ct=!k.autoSize&&!x&&!c;return J.createElement(Gz,{value:M,allowClear:c,handleReset:Ce,suffix:Ae,prefixCls:v,classNames:j(j({},S),{},{affixWrapper:q(S==null?void 0:S.affixWrapper,(r={},L(r,"".concat(v,"-show-count"),x),L(r,"".concat(v,"-textarea-allow-clear"),c),r))}),disabled:w,focused:_,className:q(g,ce&&"".concat(v,"-out-of-range")),style:j(j({},h),D&&!ct?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof De=="string"?De:void 0}},hidden:E},J.createElement(a9,ae({},k,{maxLength:d,onKeyDown:ge,onChange:Y,onFocus:ie,onBlur:we,onCompositionStart:ye,onCompositionEnd:oe,className:q(S==null?void 0:S.textarea),style:j(j({},C==null?void 0:C.textarea),{},{resize:h==null?void 0:h.resize}),disabled:w,prefixCls:v,onResize:Ee,ref:K})))}),c9=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;const{prefixCls:r,bordered:i=!0,size:o,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:d,className:f,variant:p}=e,y=c9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:b,direction:v}=u.useContext(Ve),x=Pa(o),m=u.useContext(sd),g=a??m,{status:h,hasFeedback:w,feedbackIcon:E}=u.useContext(AR),S=LP(h,l),C=u.useRef(null);u.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=C.current)===null||B===void 0?void 0:B.resizableTextArea,focus:_=>{var R,I;Yz((I=(R=C.current)===null||R===void 0?void 0:R.resizableTextArea)===null||I===void 0?void 0:I.textArea,_)},blur:()=>{var _;return(_=C.current)===null||_===void 0?void 0:_.blur()}}});const $=b("input",r);let k;typeof s=="object"&&(s!=null&&s.clearIcon)?k=s:s&&(k={clearIcon:u.createElement(th,null)});const O=md($),[P,z,T]=LT($,O),[M,A]=FP(p,i);return P(u.createElement(s9,Object.assign({},y,{disabled:g,allowClear:k,className:q(T,O,f,d),classNames:Object.assign(Object.assign({},c),{textarea:q({[`${$}-sm`]:x==="small",[`${$}-lg`]:x==="large"},z,c==null?void 0:c.textarea),variant:q({[`${$}-${M}`]:A},AP($,S)),affixWrapper:q(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:v==="rtl",[`${$}-affix-wrapper-sm`]:x==="small",[`${$}-affix-wrapper-lg`]:x==="large",[`${$}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:$,suffix:w&&u.createElement("span",{className:`${$}-textarea-suffix`},E),ref:C})))}),d9=u9;function hu(e){return["small","middle","large"].includes(e)}function N1(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const kS=J.createContext({latestIndex:0}),f9=kS.Provider,p9=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=u.useContext(kS);return r==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:t,style:o},r),n{var n,r;const{getPrefixCls:i,space:o,direction:a}=u.useContext(Ve),{size:l=(o==null?void 0:o.size)||"small",align:s,className:c,rootClassName:d,children:f,direction:p="horizontal",prefixCls:y,split:b,style:v,wrap:x=!1,classNames:m,styles:g}=e,h=m9(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(l)?l:[l,l],S=hu(E),C=hu(w),$=N1(E),k=N1(w),O=vr(f,{keepEmpty:!0}),P=s===void 0&&p==="horizontal"?"center":s,z=i("space",y),[T,M,A]=hx(z),B=q(z,o==null?void 0:o.className,M,`${z}-${p}`,{[`${z}-rtl`]:a==="rtl",[`${z}-align-${P}`]:P,[`${z}-gap-row-${E}`]:S,[`${z}-gap-col-${w}`]:C},c,d,A),_=q(`${z}-item`,(n=m==null?void 0:m.item)!==null&&n!==void 0?n:(r=o==null?void 0:o.classNames)===null||r===void 0?void 0:r.item);let R=0;const I=O.map((D,U)=>{var K,G;D!=null&&(R=U);const X=D&&D.key||`${_}-${U}`;return u.createElement(g9,{className:_,key:X,index:U,split:b,style:(K=g==null?void 0:g.item)!==null&&K!==void 0?K:(G=o==null?void 0:o.styles)===null||G===void 0?void 0:G.item},D)}),N=u.useMemo(()=>({latestIndex:R}),[R]);if(O.length===0)return null;const F={};return x&&(F.flexWrap="wrap"),!C&&k&&(F.columnGap=w),!S&&$&&(F.rowGap=E),T(u.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},F),o==null?void 0:o.style),v)},h),u.createElement(f9,{value:N},I)))}),OS=h9;OS.Compact=GO;const v9=OS,RS=["wrap","nowrap","wrap-reverse"],PS=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_S=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],y9=(e,t)=>{const n={};return RS.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},b9=(e,t)=>{const n={};return _S.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},w9=(e,t)=>{const n={};return PS.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function x9(e,t){return q(Object.assign(Object.assign(Object.assign({},y9(e,t)),b9(e,t)),w9(e,t)))}const S9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},C9=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},E9=e=>{const{componentCls:t}=e,n={};return RS.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},$9=e=>{const{componentCls:t}=e,n={};return _S.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},k9=e=>{const{componentCls:t}=e,n={};return PS.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},O9=()=>({}),R9=Xt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Et(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[S9(i),C9(i),E9(i),$9(i),k9(i)]},O9,{resetStyle:!1});var P9=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:n,rootClassName:r,className:i,style:o,flex:a,gap:l,children:s,vertical:c=!1,component:d="div"}=e,f=P9(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:y,getPrefixCls:b}=J.useContext(Ve),v=b("flex",n),[x,m,g]=R9(v),h=c??(p==null?void 0:p.vertical),w=q(i,r,p==null?void 0:p.className,v,m,g,x9(v,e),{[`${v}-rtl`]:y==="rtl",[`${v}-gap-${l}`]:hu(l),[`${v}-vertical`]:h}),E=Object.assign(Object.assign({},p==null?void 0:p.style),o);return a&&(E.flex=a),l&&!hu(l)&&(E.gap=l),x(J.createElement(d,Object.assign({ref:t,className:w,style:E},Fn(f,["justify","wrap","align"])),s))}),Nt=_9;function TS(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function T9(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var jg=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],bs=u.createContext(null),A1=0;function I9(e,t){var n=u.useState(function(){return A1+=1,String(A1)}),r=V(n,1),i=r[0],o=u.useContext(bs),a={data:t,canPreview:e};return u.useEffect(function(){if(o)return o.register(i,a)},[]),u.useEffect(function(){o&&o.register(i,a)},[e,t]),i}function z9(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function IS(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=u.useState(n?"loading":"normal"),o=V(i,2),a=o[0],l=o[1],s=u.useRef(!1),c=a==="error";u.useEffect(function(){var y=!0;return z9(t).then(function(b){!b&&y&&l("error")}),function(){y=!1}},[t]),u.useEffect(function(){n&&!s.current?l("loading"):c&&l("normal")},[t]);var d=function(){l("normal")},f=function(b){s.current=!1,a==="loading"&&b!==null&&b!==void 0&&b.complete&&(b.naturalWidth||b.naturalHeight)&&(s.current=!0,d())},p=c&&r?{src:r}:{onLoad:d,src:t};return[f,p,a]}function Zo(e,t,n,r){var i=eu.unstable_batchedUpdates?function(a){eu.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var rc={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function B9(e,t,n,r){var i=u.useRef(null),o=u.useRef([]),a=u.useState(rc),l=V(a,2),s=l[0],c=l[1],d=function(b){c(rc),r&&!cs(rc,s)&&r({transform:rc,action:b})},f=function(b,v){i.current===null&&(o.current=[],i.current=Bt(function(){c(function(x){var m=x;return o.current.forEach(function(g){m=j(j({},m),g)}),i.current=null,r==null||r({transform:m,action:v}),m})})),o.current.push(j(j({},s),b))},p=function(b,v,x,m,g){var h=e.current,w=h.width,E=h.height,S=h.offsetWidth,C=h.offsetHeight,$=h.offsetLeft,k=h.offsetTop,O=b,P=s.scale*b;P>n?(P=n,O=n/s.scale):Pr){if(t>0)return L({},e,o);if(t<0&&ir)return L({},e,t<0?o:-o);return{}}function zS(e,t,n,r){var i=TS(),o=i.width,a=i.height,l=null;return e<=o&&t<=a?l={x:0,y:0}:(e>o||t>a)&&(l=j(j({},L1("x",n,e,o)),L1("y",r,t,a))),l}var Jo=1,M9=1;function N9(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,c=i.x,d=i.y,f=u.useState(!1),p=V(f,2),y=p[0],b=p[1],v=u.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(E){!t||E.button!==0||(E.preventDefault(),E.stopPropagation(),v.current={diffX:E.pageX-c,diffY:E.pageY-d,transformX:c,transformY:d},b(!0))},m=function(E){n&&y&&o({x:E.pageX-v.current.diffX,y:E.pageY-v.current.diffY},"move")},g=function(){if(n&&y){b(!1);var E=v.current,S=E.transformX,C=E.transformY,$=c!==S&&d!==C;if(!$)return;var k=e.current.offsetWidth*s,O=e.current.offsetHeight*s,P=e.current.getBoundingClientRect(),z=P.left,T=P.top,M=l%180!==0,A=zS(M?O:k,M?k:O,z,T);A&&o(j({},A),"dragRebound")}},h=function(E){if(!(!n||E.deltaY==0)){var S=Math.abs(E.deltaY/100),C=Math.min(S,M9),$=Jo+C*r;E.deltaY>0&&($=Jo/$),a($,"wheel",E.clientX,E.clientY)}};return u.useEffect(function(){var w,E,S,C;if(t){S=Zo(window,"mouseup",g,!1),C=Zo(window,"mousemove",m,!1);try{window.top!==window.self&&(w=Zo(window.top,"mouseup",g,!1),E=Zo(window.top,"mousemove",m,!1))}catch{}}return function(){var $,k,O,P;($=S)===null||$===void 0||$.remove(),(k=C)===null||k===void 0||k.remove(),(O=w)===null||O===void 0||O.remove(),(P=E)===null||P===void 0||P.remove()}},[n,y,c,d,l,t]),{isMoving:y,onMouseDown:x,onMouseMove:m,onMouseUp:g,onWheel:h}}function vu(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function A9(e,t,n,r){var i=vu(e,n),o=vu(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),l=e.x+a*(t.x-e.x),s=e.y+a*(t.y-e.y);return[l,s]}function L9(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,c=i.x,d=i.y,f=u.useState(!1),p=V(f,2),y=p[0],b=p[1],v=u.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(E){v.current=j(j({},v.current),E)},m=function(E){if(t){E.stopPropagation(),b(!0);var S=E.touches,C=S===void 0?[]:S;C.length>1?x({point1:{x:C[0].clientX,y:C[0].clientY},point2:{x:C[1].clientX,y:C[1].clientY},eventType:"touchZoom"}):x({point1:{x:C[0].clientX-c,y:C[0].clientY-d},eventType:"move"})}},g=function(E){var S=E.touches,C=S===void 0?[]:S,$=v.current,k=$.point1,O=$.point2,P=$.eventType;if(C.length>1&&P==="touchZoom"){var z={x:C[0].clientX,y:C[0].clientY},T={x:C[1].clientX,y:C[1].clientY},M=A9(k,O,z,T),A=V(M,2),B=A[0],_=A[1],R=vu(z,T)/vu(k,O);a(R,"touchZoom",B,_,!0),x({point1:z,point2:T,eventType:"touchZoom"})}else P==="move"&&(o({x:C[0].clientX-k.x,y:C[0].clientY-k.y},"move"),x({eventType:"move"}))},h=function(){if(n){if(y&&b(!1),x({eventType:"none"}),r>s)return o({x:0,y:0,scale:r},"touchZoom");var E=e.current.offsetWidth*s,S=e.current.offsetHeight*s,C=e.current.getBoundingClientRect(),$=C.left,k=C.top,O=l%180!==0,P=zS(O?S:E,O?E:S,$,k);P&&o(j({},P),"dragRebound")}};return u.useEffect(function(){var w;return n&&t&&(w=Zo(window,"touchmove",function(E){return E.preventDefault()},{passive:!1})),function(){var E;(E=w)===null||E===void 0||E.remove()}},[n,t]),{isTouching:y,onTouchStart:m,onTouchMove:g,onTouchEnd:h}}var j9=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,l=t.icons,s=t.countRender,c=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,y=t.count,b=t.scale,v=t.minScale,x=t.maxScale,m=t.closeIcon,g=t.onSwitchLeft,h=t.onSwitchRight,w=t.onClose,E=t.onZoomIn,S=t.onZoomOut,C=t.onRotateRight,$=t.onRotateLeft,k=t.onFlipX,O=t.onFlipY,P=t.toolbarRender,z=t.zIndex,T=u.useContext(bs),M=l.rotateLeft,A=l.rotateRight,B=l.zoomIn,_=l.zoomOut,R=l.close,I=l.left,N=l.right,F=l.flipX,D=l.flipY,U="".concat(o,"-operations-operation");u.useEffect(function(){var Q=function(ne){ne.keyCode===le.ESC&&w()};return n&&window.addEventListener("keydown",Q),function(){window.removeEventListener("keydown",Q)}},[n]);var K=[{icon:D,onClick:O,type:"flipY"},{icon:F,onClick:k,type:"flipX"},{icon:M,onClick:$,type:"rotateLeft"},{icon:A,onClick:C,type:"rotateRight"},{icon:_,onClick:S,type:"zoomOut",disabled:b<=v},{icon:B,onClick:E,type:"zoomIn",disabled:b===x}],G=K.map(function(Q){var Z,ne=Q.icon,fe=Q.onClick,re=Q.type,be=Q.disabled;return u.createElement("div",{className:q(U,(Z={},L(Z,"".concat(o,"-operations-operation-").concat(re),!0),L(Z,"".concat(o,"-operations-operation-disabled"),!!be),Z)),onClick:fe,key:re},ne)}),X=u.createElement("div",{className:"".concat(o,"-operations")},G);return u.createElement(xr,{visible:n,motionName:r},function(Q){var Z=Q.className,ne=Q.style;return u.createElement(yd,{open:!0,getContainer:i??document.body},u.createElement("div",{className:q("".concat(o,"-operations-wrapper"),Z,a),style:j(j({},ne),{},{zIndex:z})},m===null?null:u.createElement("button",{className:"".concat(o,"-close"),onClick:w},m||R),c&&u.createElement(u.Fragment,null,u.createElement("div",{className:q("".concat(o,"-switch-left"),L({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:g},I),u.createElement("div",{className:q("".concat(o,"-switch-right"),L({},"".concat(o,"-switch-right-disabled"),f===y-1)),onClick:h},N)),u.createElement("div",{className:"".concat(o,"-footer")},d&&u.createElement("div",{className:"".concat(o,"-progress")},s?s(f+1,y):"".concat(f+1," / ").concat(y)),P?P(X,j({icons:{flipYIcon:G[0],flipXIcon:G[1],rotateLeftIcon:G[2],rotateRightIcon:G[3],zoomOutIcon:G[4],zoomInIcon:G[5]},actions:{onFlipY:O,onFlipX:k,onRotateLeft:$,onRotateRight:C,onZoomOut:S,onZoomIn:E},transform:p},T?{current:f,total:y}:{})):X)))})},F9=["fallback","src","imgRef"],D9=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],H9=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=Ne(t,F9),a=IS({src:r,fallback:n}),l=V(a,2),s=l[0],c=l[1];return J.createElement("img",ae({ref:function(f){i.current=f,s(f)}},o,c))},BS=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.fallback,a=t.movable,l=a===void 0?!0:a,s=t.onClose,c=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,y=t.closeIcon,b=t.getContainer,v=t.current,x=v===void 0?0:v,m=t.count,g=m===void 0?1:m,h=t.countRender,w=t.scaleStep,E=w===void 0?.5:w,S=t.minScale,C=S===void 0?1:S,$=t.maxScale,k=$===void 0?50:$,O=t.transitionName,P=O===void 0?"zoom":O,z=t.maskTransitionName,T=z===void 0?"fade":z,M=t.imageRender,A=t.imgCommonProps,B=t.toolbarRender,_=t.onTransform,R=t.onChange,I=Ne(t,D9),N=u.useRef(),F=u.useContext(bs),D=F&&g>1,U=F&&g>=1,K=u.useState(!0),G=V(K,2),X=G[0],Q=G[1],Z=B9(N,C,k,_),ne=Z.transform,fe=Z.resetTransform,re=Z.updateTransform,be=Z.dispatchZoomChange,pe=N9(N,l,c,E,ne,re,be),xe=pe.isMoving,ce=pe.onMouseDown,Re=pe.onWheel,ye=L9(N,l,c,C,ne,re,be),oe=ye.isTouching,Y=ye.onTouchStart,ge=ye.onTouchMove,ie=ye.onTouchEnd,we=ne.rotate,Ce=ne.scale,Ae=q(L({},"".concat(n,"-moving"),xe));u.useEffect(function(){X||Q(!0)},[X]);var De=function(){fe("close")},Ee=function(){be(Jo+E,"zoomIn")},ct=function(){be(Jo/(Jo+E),"zoomOut")},$e=function(){re({rotate:we+90},"rotateRight")},ue=function(){re({rotate:we-90},"rotateLeft")},Te=function(){re({flipX:!ne.flipX},"flipX")},Pe=function(){re({flipY:!ne.flipY},"flipY")},ut=function(He){He==null||He.preventDefault(),He==null||He.stopPropagation(),x>0&&(Q(!1),fe("prev"),R==null||R(x-1,x))},Ke=function(He){He==null||He.preventDefault(),He==null||He.stopPropagation(),x({position:e||"absolute",inset:0}),gB=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new zt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},ud),{padding:`0 ${W(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},mB=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:d,colorTextLightSolid:f}=e,p=new zt(n).setAlpha(.1),y=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:y.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${W(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},hB=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,l=new zt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},vB=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Fg()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Fg()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[mB(e),hB(e)]}]},yB=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gB(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Fg())}}},bB=e=>{const{previewCls:t}=e;return{[`${t}-root`]:uh(e,"zoom"),"&":Ax(e,!0)}},wB=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new zt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new zt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new zt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),MS=Xt("Image",e=>{const t=`${e.componentCls}-preview`,n=Et(e,{previewCls:t,modalMaskBg:new zt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[yB(n),vB(n),Lx(Et(n,{componentCls:t})),bB(n)]},wB);var xB=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{previewPrefixCls:t,preview:n}=e,r=xB(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=u.useContext(Ve),o=i("image",t),a=`${o}-preview`,l=i(),s=md(o),[c,d,f]=MS(o,s),[p]=rh("ImagePreview",typeof n=="object"?n.zIndex:void 0),y=u.useMemo(()=>{var b;if(n===!1)return n;const v=typeof n=="object"?n:{},x=q(d,f,s,(b=v.rootClassName)!==null&&b!==void 0?b:"");return Object.assign(Object.assign({},v),{transitionName:wa(l,"zoom",v.transitionName),maskTransitionName:wa(l,"fade",v.maskTransitionName),rootClassName:x,zIndex:p})},[n]);return c(u.createElement(Ed.PreviewGroup,Object.assign({preview:y,previewPrefixCls:a,icons:NS},r)))},CB=SB;var F1=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;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,l=F1(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:c=Pi,getPopupContainer:d,image:f}=u.useContext(Ve),p=s("image",n),y=s(),b=c.Image||Pi.Image,v=md(p),[x,m,g]=MS(p,v),h=q(o,m,g,v),w=q(i,m,f==null?void 0:f.className),[E]=rh("ImagePreview",typeof r=="object"?r.zIndex:void 0),S=u.useMemo(()=>{var $;if(r===!1)return r;const k=typeof r=="object"?r:{},{getContainer:O,closeIcon:P}=k,z=F1(k,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:u.createElement("div",{className:`${p}-mask-info`},u.createElement(e9,null),b==null?void 0:b.preview),icons:NS},z),{getContainer:O??d,transitionName:wa(y,"zoom",k.transitionName),maskTransitionName:wa(y,"fade",k.maskTransitionName),zIndex:E,closeIcon:P??(($=f==null?void 0:f.preview)===null||$===void 0?void 0:$.closeIcon)})},[r,b,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),C=Object.assign(Object.assign({},f==null?void 0:f.style),a);return x(u.createElement(Ed,Object.assign({prefixCls:p,preview:S,rootClassName:h,className:w,style:C},l)))};AS.PreviewGroup=CB;const Dg=AS;function EB(e,t,n){return typeof n=="boolean"?n:e.length?!0:vr(t).some(i=>i.type===fS)}const $B=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:i},[`${t}-sider-zero-width-trigger`]:{color:o,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},kB=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:y,motionDurationMid:b,motionDurationSlow:v,fontSize:x,borderRadius:m,bodyBg:g,headerBg:h,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${b}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:i,lineHeight:W(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${b}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(y).mul(-1).equal(),zIndex:1,width:y,height:p,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(y).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}}}},$B(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:c,lineHeight:W(l),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:x,background:o},[`${n}-content`]:{flex:"auto",minHeight:0}}},OB=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=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:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:i}},LS=Xt("Layout",e=>[kB(e)],OB,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var jS=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);iu.forwardRef((a,l)=>u.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const wh=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=jS(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=u.useContext(Ve),s=l("layout",n),[c,d,f]=LS(s),p=r?`${s}-${r}`:s;return c(u.createElement(o,Object.assign({className:q(n||p,i,d,f),ref:t},a)))}),RB=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Ve),[r,i]=u.useState([]),{prefixCls:o,className:a,rootClassName:l,children:s,hasSider:c,tagName:d,style:f}=e,p=jS(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Fn(p,["suffixCls"]),{getPrefixCls:b,layout:v}=u.useContext(Ve),x=b("layout",o),m=EB(r,s,c),[g,h,w]=LS(x),E=q(x,{[`${x}-has-sider`]:m,[`${x}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,l,h,w),S=u.useMemo(()=>({siderHook:{addSider:C=>{i($=>[].concat(Se($),[C]))},removeSider:C=>{i($=>$.filter(k=>k!==C))}}}),[]);return g(u.createElement(uS.Provider,{value:S},u.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},y),s)))}),PB=$d({tagName:"div",displayName:"Layout"})(RB),_B=$d({suffixCls:"header",tagName:"header",displayName:"Header"})(wh),TB=$d({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(wh),IB=$d({suffixCls:"content",tagName:"main",displayName:"Content"})(wh),zB=PB,Ia=zB;Ia.Header=_B;Ia.Footer=TB;Ia.Content=IB;Ia.Sider=fS;Ia._InternalSiderContext=dS;const kd=Ia;var BB={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},MB=function(){var t=u.useRef([]),n=u.useRef(null);return u.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},D1=0,NB=un();function AB(){var e;return NB?(e=D1,D1+=1):e="TEST_OR_SSR",e}const LB=function(e){var t=u.useState(),n=V(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_progress_".concat(AB()))},[]),e||r};var H1=function(t){var n=t.bg,r=t.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function V1(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var jB=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,l=e.ptg,s=e.strokeLinecap,c=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&Me(r)==="object",y=p?"#FFF":void 0,b=d/2,v=u.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:b,cy:b,stroke:y,strokeLinecap:s,strokeWidth:c,opacity:l===0?0:1,style:a,ref:t});if(!p)return v;var x="".concat(i,"-conic"),m=f?"".concat(180+f/2,"deg"):"0deg",g=V1(r,(360-f)/360),h=V1(r,1),w="conic-gradient(from ".concat(m,", ").concat(g.join(", "),")"),E="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(h.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:x},v),u.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(x,")")},u.createElement(H1,{bg:E},u.createElement(H1,{bg:w}))))}),sl=100,Af=function(t,n,r,i,o,a,l,s,c,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),y=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],b=(100-i)/100*n;c==="round"&&i!==100&&(b+=d/2,b>=n&&(b=n-.01));var v=sl/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+f,transform:"rotate(".concat(o+p+y,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},FB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function W1(e){var t=e??[];return Array.isArray(t)?t:[t]}var DB=function(t){var n=j(j({},BB),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,c=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,y=n.style,b=n.className,v=n.strokeColor,x=n.percent,m=Ne(n,FB),g=sl/2,h=LB(r),w="".concat(h,"-gradient"),E=g-a/2,S=Math.PI*2*E,C=c>0?90+c/2:-90,$=S*((360-c)/360),k=Me(o)==="object"?o:{count:o,space:2},O=k.count,P=k.space,z=W1(x),T=W1(v),M=T.find(function(F){return F&&Me(F)==="object"}),A=M&&Me(M)==="object",B=A?"butt":p,_=Af(S,$,0,100,C,c,d,f,B,a),R=MB(),I=function(){var D=0;return z.map(function(U,K){var G=T[K]||T[T.length-1],X=Af(S,$,D,U,C,c,d,G,B,a);return D+=U,u.createElement(jB,{key:K,color:G,ptg:U,radius:E,prefixCls:i,gradientId:w,style:X,strokeLinecap:B,strokeWidth:a,gapDegree:c,ref:function(Z){R[K]=Z},size:sl})}).reverse()},N=function(){var D=Math.round(O*(z[0]/100)),U=100/O,K=0;return new Array(O).fill(null).map(function(G,X){var Q=X<=D-1?T[0]:f,Z=Q&&Me(Q)==="object"?"url(#".concat(w,")"):void 0,ne=Af(S,$,K,U,C,c,d,Q,"butt",a,P);return K+=($-ne.strokeDashoffset+P)*100/$,u.createElement("circle",{key:X,className:"".concat(i,"-circle-path"),r:E,cx:g,cy:g,stroke:Z,strokeWidth:a,opacity:1,style:ne,ref:function(re){R[X]=re}})})};return u.createElement("svg",ae({className:q("".concat(i,"-circle"),b),viewBox:"0 0 ".concat(sl," ").concat(sl),style:y,id:r,role:"presentation"},m),!O&&u.createElement("circle",{className:"".concat(i,"-circle-trail"),r:E,cx:g,cy:g,stroke:f,strokeLinecap:B,strokeWidth:l||a,style:_}),O?N():I())};function $i(e){return!e||e<0?0:e>100?100:e}function yu(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const HB=e=>{let{percent:t,success:n,successPercent:r}=e;const i=$i(yu({success:n,successPercent:r}));return[i,$i($i(t)-i)]},VB=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||aa.green,n||null]},Od=(e,t,n)=>{var r,i,o,a;let l=-1,s=-1;if(t==="step"){const c=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,s=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,s]},WB=3,qB=e=>WB/e*100,UB=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:s,success:c,size:d=a}=e,[f,p]=Od(d,"circle");let{strokeWidth:y}=e;y===void 0&&(y=Math.max(qB(f),6));const b={width:f,height:p,fontSize:f*.15+6},v=u.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),x=i||l==="dashboard"&&"bottom"||void 0,m=Object.prototype.toString.call(e.strokeColor)==="[object Object]",g=VB({success:c,strokeColor:e.strokeColor}),h=q(`${t}-inner`,{[`${t}-circle-gradient`]:m}),w=u.createElement(DB,{percent:HB(e),strokeWidth:y,trailWidth:y,strokeColor:g,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:x});return u.createElement("div",{className:h,style:b},f<=20?u.createElement(gu,{title:s},u.createElement("span",null,w)):u.createElement(u.Fragment,null,w,s))},GB=UB,bu="--progress-line-stroke-color",FS="--progress-percent",q1=e=>{const t=e?"100%":"-100%";return new ht(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},wr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${W(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${W(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${bu})`]},height:"100%",width:`calc(1 / var(${FS}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:q1(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:q1(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},XB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},YB=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},QB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},ZB=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),JB=Xt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Et(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KB(n),XB(n),YB(n),QB(n)]},ZB);var eM=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 t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},nM=(e,t)=>{const{from:n=aa.blue,to:r=aa.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=eM(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=tM(o),s=`linear-gradient(${i}, ${l})`;return{background:s,[bu]:s}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[bu]:a}},rM=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,success:d}=e,f=a&&typeof a!="string"?nM(a,n):{[bu]:a,background:a},p=l==="square"||l==="butt"?0:void 0,y=i??[-1,o||(i==="small"?6:8)],[b,v]=Od(y,"line",{strokeWidth:o}),x={backgroundColor:c||void 0,borderRadius:p},m=Object.assign(Object.assign({width:`${$i(r)}%`,height:v,borderRadius:p},f),{[FS]:$i(r)/100}),g=yu(e),h={width:`${$i(g)}%`,height:v,borderRadius:p,backgroundColor:d==null?void 0:d.strokeColor},w={width:b<0?"100%":b,height:v};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${t}-outer`,style:w},u.createElement("div",{className:`${t}-inner`,style:x},u.createElement("div",{className:`${t}-bg`,style:m}),g!==void 0?u.createElement("div",{className:`${t}-success-bg`,style:h}):null)),s)},iM=rM,oM=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:s}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,y]=Od(f,"step",{steps:n,strokeWidth:i}),b=p/n,v=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:s="default",showInfo:c=!0,type:d="line",status:f,format:p,style:y}=e,b=lM(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),v=u.useMemo(()=>{var T,M;const A=yu(e);return parseInt(A!==void 0?(T=A??0)===null||T===void 0?void 0:T.toString():(M=l??0)===null||M===void 0?void 0:M.toString(),10)},[l,e.success,e.successPercent]),x=u.useMemo(()=>!sM.includes(f)&&v>=100?"success":f||"normal",[f,v]),{getPrefixCls:m,direction:g,progress:h}=u.useContext(Ve),w=m("progress",n),[E,S,C]=JB(w),$=u.useMemo(()=>{if(!c)return null;const T=yu(e);let M;const A=p||(_=>`${_}%`),B=d==="line";return p||x!=="exception"&&x!=="success"?M=A($i(l),$i(T)):x==="exception"?M=B?u.createElement(th,null):u.createElement(pd,null):x==="success"&&(M=B?u.createElement(ox,null):u.createElement(Vx,null)),u.createElement("span",{className:`${w}-text`,title:typeof M=="string"?M:void 0},M)},[c,l,v,x,d,w,p]),k=Array.isArray(a)?a[0]:a,O=typeof a=="string"||Array.isArray(a)?a:void 0;let P;d==="line"?P=o?u.createElement(aM,Object.assign({},e,{strokeColor:O,prefixCls:w,steps:o}),$):u.createElement(iM,Object.assign({},e,{strokeColor:k,prefixCls:w,direction:g}),$):(d==="circle"||d==="dashboard")&&(P=u.createElement(GB,Object.assign({},e,{strokeColor:k,prefixCls:w,progressStatus:x}),$));const z=q(w,`${w}-status-${x}`,`${w}-${d==="dashboard"&&"circle"||o&&"steps"||d}`,{[`${w}-inline-circle`]:d==="circle"&&Od(s,"circle")[0]<=20,[`${w}-show-info`]:c,[`${w}-${s}`]:typeof s=="string",[`${w}-rtl`]:g==="rtl"},h==null?void 0:h.className,r,i,S,C);return E(u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},h==null?void 0:h.style),y),className:z,role:"progressbar","aria-valuenow":v},Fn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),P))}),Lf=cM;var uM=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],DS=u.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,y=e.onChange,b=e.onKeyDown,v=Ne(e,uM),x=hn(!1,{value:a,defaultValue:l}),m=V(x,2),g=m[0],h=m[1];function w($,k){var O=g;return s||(O=$,h(O),y==null||y(O,k)),O}function E($){$.which===le.LEFT?w(!1,$):$.which===le.RIGHT&&w(!0,$),b==null||b($)}function S($){var k=w(!g,$);p==null||p(k,$)}var C=q(i,o,(n={},L(n,"".concat(i,"-checked"),g),L(n,"".concat(i,"-disabled"),s),n));return u.createElement("button",ae({},v,{type:"button",role:"switch","aria-checked":g,disabled:s,className:C,ref:t,onKeyDown:E,onClick:S}),c,u.createElement("span",{className:"".concat(i,"-inner")},u.createElement("span",{className:"".concat(i,"-inner-checked")},d),u.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});DS.displayName="Switch";const dM=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,d=W(s(l).add(s(r).mul(2)).equal()),f=W(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:W(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${W(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},fM=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},pM=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${W(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},gM=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:l}=e,s=`${t}-inner`,c=W(l(a).add(l(r).mul(2)).equal()),d=W(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},mM=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${W(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ds(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},hM=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,l=2,s=o-l*2,c=a-l*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new zt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},vM=Xt("Switch",e=>{const t=Et(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[mM(t),gM(t),pM(t),fM(t),dM(t)]},hM);var yM=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:n,size:r,disabled:i,loading:o,className:a,rootClassName:l,style:s,checked:c,value:d,defaultChecked:f,defaultValue:p,onChange:y}=e,b=yM(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,x]=hn(!1,{value:c??d,defaultValue:f??p}),{getPrefixCls:m,direction:g,switch:h}=u.useContext(Ve),w=u.useContext(sd),E=(i??w)||o,S=m("switch",n),C=u.createElement("div",{className:`${S}-handle`},o&&u.createElement(dx,{className:`${S}-loading-icon`})),[$,k,O]=vM(S),P=Pa(r),z=q(h==null?void 0:h.className,{[`${S}-small`]:P==="small",[`${S}-loading`]:o,[`${S}-rtl`]:g==="rtl"},a,l,k,O),T=Object.assign(Object.assign({},h==null?void 0:h.style),s),M=function(){x(arguments.length<=0?void 0:arguments[0]),y==null||y.apply(void 0,arguments)};return $(u.createElement(mx,{component:"Switch"},u.createElement(DS,Object.assign({},b,{checked:v,onChange:M,prefixCls:S,className:z,style:T,disabled:E,ref:t,loadingIcon:C}))))});HS.__ANT_SWITCH=!0;const jf=HS;var bM=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=c=>{const{keyCode:d}=c;d===le.ENTER&&c.preventDefault()},r=c=>{const{keyCode:d}=c,{onClick:f}=e;d===le.ENTER&&f&&f()},{style:i,noStyle:o,disabled:a}=e,l=bM(e,["style","noStyle","disabled"]);let s={};return o||(s=Object.assign({},wM)),a&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),i),u.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),U1=xM;var SM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const CM=SM;var EM=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:CM}))};const $M=u.forwardRef(EM);var kM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const OM=kM;var RM=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:OM}))};const PM=u.forwardRef(RM);var _M=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=G1[t.format]||G1.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");s=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=zM("message"in t?t.message:IM),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}var MM=BM;const NM=Eu(MM);var AM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const LM=AM;var jM=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:LM}))};const FM=u.forwardRef(jM),DM=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},HM=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=HM(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},WM=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Lw(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},qM=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:n5[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),UM=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${W(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},GM=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),KM=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),XM=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},VM(e)),{[` + `]=DM(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},VM=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Aw(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},WM=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:t5[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),qM=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${W(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},UM=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),GM=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),KM=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},HM(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),qM(e)),WM(e)),{[` + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),WM(e)),VM(e)),{[` ${t}-expand, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},Lw(e)),{marginInlineStart:e.marginXXS})}),UM(e)),GM(e)),KM()),{"&-rtl":{direction:"rtl"}})}},YM=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),WS=Xt("Typography",e=>[XM(e)],YM),QM=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:l=!0,value:s,onSave:c,onCancel:d,onEnd:f,component:p,enterIcon:y=u.createElement(DM,null)}=e,b=u.useRef(null),v=u.useRef(!1),x=u.useRef(),[m,g]=u.useState(s);u.useEffect(()=>{g(s)},[s]),u.useEffect(()=>{if(b.current&&b.current.resizableTextArea){const{textArea:A}=b.current.resizableTextArea;A.focus();const{length:B}=A.value;A.setSelectionRange(B,B)}},[]);const h=A=>{let{target:B}=A;g(B.value.replace(/[\n\r]/g,""))},w=()=>{v.current=!0},S=()=>{v.current=!1},C=A=>{let{keyCode:B}=A;v.current||(x.current=B)},E=()=>{c(m.trim())},$=A=>{let{keyCode:B,ctrlKey:_,altKey:R,metaKey:I,shiftKey:N}=A;x.current===B&&!v.current&&!_&&!R&&!I&&!N&&(B===le.ENTER?(E(),f==null||f()):B===le.ESC&&d())},k=()=>{E()},O=p?`${t}-${p}`:"",[P,z,T]=WS(t),M=q(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},r,O,z,T);return P(u.createElement("div",{className:M,style:i},u.createElement(f9,{ref:b,maxLength:a,value:m,onChange:h,onKeyDown:C,onKeyUp:$,onCompositionStart:w,onCompositionEnd:S,onBlur:k,"aria-label":n,rows:1,autoSize:l}),y!==null?gd(y,{className:`${t}-edit-content-confirm`}):null))},ZM=QM;function Ff(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const JM=(e,t)=>{const n=u.useRef(!1);u.useEffect(()=>{n.current?e():n.current=!0},t)};var e7=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:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:l,direction:s,style:c}=e,d=e7(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:y}=u.useContext(Ve),b=s??p;let v=t;a&&(v=zi(t,a));const x=f("typography",n),[m,g,h]=WS(x),w=q(x,y==null?void 0:y.className,{[`${x}-rtl`]:b==="rtl"},i,o,g,h),S=Object.assign(Object.assign({},y==null?void 0:y.style),c);return m(u.createElement(r,Object.assign({className:w,style:S,ref:v},d),l))}),qS=t7;function US(e){const t=typeof e;return t==="string"||t==="number"}function n7(e){let t=0;return e.forEach(n=>{US(n)?t+=String(n).length:t+=1}),t}function Df(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=s}return e}const r7=0,ic=1,K1=2,Hf=3,Vf=4,i7=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:o,rows:a,onEllipsis:l}=e;const[[s,c,d],f]=u.useState([0,0,0]),[p,y]=u.useState(0),[b,v]=u.useState(r7),[x,m]=u.useState(0),g=u.useRef(null),h=u.useRef(null),w=u.useMemo(()=>vr(r),[r]),S=u.useMemo(()=>n7(w),[w]),C=u.useMemo(()=>!t||b!==Hf?p&&b!==Vf&&t?n(Df(w,p),p{t&&i&&o&&S&&(v(ic),f([0,Math.ceil(S/2),S]))},[t,i,o,r,S,a]),xt(()=>{var O;b===ic&&m(((O=g.current)===null||O===void 0?void 0:O.offsetHeight)||0)},[b]),xt(()=>{var O,P;if(x){if(b===ic){const z=((O=h.current)===null||O===void 0?void 0:O.offsetHeight)||0,T=a*x;z<=T?(v(Vf),l(!1)):v(K1)}else if(b===K1)if(s!==d){const z=((P=h.current)===null||P===void 0?void 0:P.offsetHeight)||0,T=a*x;let M=s,A=d;s===d-1?A=s:z<=T?M=c:A=c;const B=Math.ceil((M+A)/2);f([M,B,A])}else v(Hf),y(c),l(!0)}},[b,s,d,a,x]);const E={width:i,whiteSpace:"normal",margin:0,padding:0},$=(O,P,z)=>u.createElement("span",{"aria-hidden":!0,ref:P,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(o/2)*2},z)},O),k=(O,P)=>{const z=Df(w,O);return $(n(z,!0),P,E)};return u.createElement(u.Fragment,null,C,t&&b!==Hf&&b!==Vf&&u.createElement(u.Fragment,null,$("lg",g,{wordBreak:"keep-all",whiteSpace:"nowrap"}),b===ic?$(n(w,!1),h,E):k(c,h)))},o7=i7,a7=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:u.createElement(gu,Object.assign({open:n?void 0:!1},i),r)},l7=a7;var s7=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{prefixCls:o,className:a,style:l,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:y,component:b,title:v}=e,x=s7(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:g}=u.useContext(Ve),[h]=N8("Text"),w=u.useRef(null),S=u.useRef(null),C=m("typography",o),E=Fn(x,["mark","code","delete","underline","strong","keyboard","italic"]),[$,k]=Ff(p),[O,P]=hn(!1,{value:k.editing}),{triggerType:z=["icon"]}=k,T=te=>{var he;te&&((he=k.onStart)===null||he===void 0||he.call(k)),P(te)};JM(()=>{var te;O||(te=S.current)===null||te===void 0||te.focus()},[O]);const M=te=>{te==null||te.preventDefault(),T(!0)},A=te=>{var he;(he=k.onChange)===null||he===void 0||he.call(k,te),T(!1)},B=()=>{var te;(te=k.onCancel)===null||te===void 0||te.call(k),T(!1)},[_,R]=Ff(y),[I,N]=u.useState(!1),F=u.useRef(null),D={};R.format&&(D.format=R.format);const U=()=>{F.current&&clearTimeout(F.current)},K=te=>{var he;te==null||te.preventDefault(),te==null||te.stopPropagation(),AM(R.text||String(d)||"",D),N(!0),U(),F.current=setTimeout(()=>{N(!1)},3e3),(he=R.onCopy)===null||he===void 0||he.call(R,te)};u.useEffect(()=>U,[]);const[G,X]=u.useState(!1),[Q,Z]=u.useState(!1),[ne,fe]=u.useState(!1),[re,be]=u.useState(!1),[pe,xe]=u.useState(!1),[ce,Re]=u.useState(!0),[ye,oe]=Ff(f,{expandable:!1}),Y=ye&&!ne,{rows:ge=1}=oe,ie=u.useMemo(()=>!Y||oe.suffix!==void 0||oe.onEllipsis||oe.expandable||$||_,[Y,oe,$,_]);xt(()=>{ye&&!ie&&(X(Fv("webkitLineClamp")),Z(Fv("textOverflow")))},[ie,ye]);const we=u.useMemo(()=>ie?!1:ge===1?Q:G,[ie,Q,G]),Ce=Y&&(we?pe:re),Ae=Y&&ge===1&&we,De=Y&&ge>1&&we,Ee=te=>{var he;fe(!0),(he=oe.onExpand)===null||he===void 0||he.call(oe,te)},[ct,$e]=u.useState(0),[ue,Te]=u.useState(0),Pe=(te,he)=>{let{offsetWidth:Je}=te;var ke;$e(Je),Te(parseInt((ke=window.getComputedStyle)===null||ke===void 0?void 0:ke.call(window,he).fontSize,10)||0)},ut=te=>{var he;be(te),re!==te&&((he=oe.onEllipsis)===null||he===void 0||he.call(oe,te))};u.useEffect(()=>{const te=w.current;if(ye&&we&&te){const he=De?te.offsetHeight{const te=w.current;if(typeof IntersectionObserver>"u"||!te||!we||!Y)return;const he=new IntersectionObserver(()=>{Re(!!te.offsetParent)});return he.observe(te),()=>{he.disconnect()}},[we,Y]);let Ke={};oe.tooltip===!0?Ke={title:(n=k.text)!==null&&n!==void 0?n:d}:u.isValidElement(oe.tooltip)?Ke={title:oe.tooltip}:typeof oe.tooltip=="object"?Ke=Object.assign({title:(r=k.text)!==null&&r!==void 0?r:d},oe.tooltip):Ke={title:oe.tooltip};const dt=u.useMemo(()=>{const te=he=>["string","number"].includes(typeof he);if(!(!ye||we)){if(te(k.text))return k.text;if(te(d))return d;if(te(v))return v;if(te(Ke.title))return Ke.title}},[ye,we,v,Ke.title,Ce]);if(O)return u.createElement(ZM,{value:(i=k.text)!==null&&i!==void 0?i:typeof d=="string"?d:"",onSave:A,onCancel:B,onEnd:k.onEnd,prefixCls:C,className:a,style:l,direction:g,component:b,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const tt=()=>{const{expandable:te,symbol:he}=oe;if(!te)return null;let Je;return he?Je=he:Je=h==null?void 0:h.expand,u.createElement("a",{key:"expand",className:`${C}-expand`,onClick:Ee,"aria-label":h==null?void 0:h.expand},Je)},Le=()=>{if(!$)return;const{icon:te,tooltip:he}=k,Je=vr(he)[0]||(h==null?void 0:h.edit),ke=typeof Je=="string"?Je:"";return z.includes("icon")?u.createElement(gu,{key:"edit",title:he===!1?"":Je},u.createElement(U1,{ref:S,className:`${C}-edit`,onClick:M,"aria-label":ke},te||u.createElement(_M,{role:"button"}))):null},We=()=>{if(!_)return null;const{tooltips:te,icon:he}=R,Je=X1(te),ke=X1(he),qe=I?oc(Je[1],h==null?void 0:h.copied):oc(Je[0],h==null?void 0:h.copy),ze=I?h==null?void 0:h.copied:h==null?void 0:h.copy,_e=typeof qe=="string"?qe:ze;return u.createElement(gu,{key:"copy",title:qe},u.createElement(U1,{className:q(`${C}-copy`,{[`${C}-copy-success`]:I,[`${C}-copy-icon-only`]:d==null}),onClick:K,"aria-label":_e},I?oc(ke[1],u.createElement(Wx,null),!0):oc(ke[0],u.createElement(kM,null),!0)))},He=te=>[te&&tt(),Le(),We()],yt=te=>[te&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},u7),oe.suffix,He(te)];return u.createElement(Tr,{onResize:Pe,disabled:!Y},te=>u.createElement(l7,{tooltipProps:Ke,enabledEllipsis:Y,isEllipsis:Ce},u.createElement(qS,Object.assign({className:q({[`${C}-${s}`]:s,[`${C}-disabled`]:c,[`${C}-ellipsis`]:ye,[`${C}-single-line`]:Y&&ge===1,[`${C}-ellipsis-single-line`]:Ae,[`${C}-ellipsis-multiple-line`]:De},a),prefixCls:o,style:Object.assign(Object.assign({},l),{WebkitLineClamp:De?ge:void 0}),component:b,ref:zi(te,w,t),direction:g,onClick:z.includes("text")?M:void 0,"aria-label":dt==null?void 0:dt.toString(),title:v},E),u.createElement(o7,{enabledMeasure:Y&&!we,text:d,rows:ge,width:ct,fontSize:ue,onEllipsis:ut},(he,Je)=>{let ke=he;return he.length&&Je&&dt&&(ke=u.createElement("span",{key:"show-content","aria-hidden":!0},ke)),c7(e,u.createElement(u.Fragment,null,ke,yt(Je)))}))))}),Rd=d7;var f7=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{ellipsis:n,rel:r}=e,i=f7(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,u.createElement(Rd,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),g7=p7,m7=u.forwardRef((e,t)=>u.createElement(Rd,Object.assign({ref:t},e,{component:"div"}))),h7=m7;var v7=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{ellipsis:n}=e,r=v7(e,["ellipsis"]);const i=u.useMemo(()=>n&&typeof n=="object"?Fn(n,["expandable","rows"]):n,[n]);return u.createElement(Rd,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},b7=u.forwardRef(y7);var w7=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{level:n=1}=e,r=w7(e,["level"]);let i;return x7.includes(n)?i=`h${n}`:i="h1",u.createElement(Rd,Object.assign({ref:t},r,{component:i}))}),C7=S7,xs=qS;xs.Text=b7;xs.Link=g7;xs.Title=C7;xs.Paragraph=h7;const za=xs;var E7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z"}}]},name:"diff",theme:"filled"};const $7=E7;var k7=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:$7}))};const Y1=u.forwardRef(k7);var O7={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"};const R7=O7;var P7=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:R7}))};const _7=u.forwardRef(P7),Ba=()=>{const e=Fz.useBreakpoint();return e.xxl?{...e,size:"xxl"}:e.xl?{...e,size:"xl"}:e.lg?{...e,size:"lg"}:e.md?{...e,size:"md"}:{...e,size:"sm"}},GS=()=>({sm:{maxWidth:"1080px"},md:{maxWidth:"1080px"},lg:{maxWidth:"1080px"},xl:{maxWidth:"1080px"},xxl:{maxWidth:"1080px"}})[Ba().size],xh=()=>({sm:{maxWidth:"960px"},md:{maxWidth:"960px"},lg:{maxWidth:"960px"},xl:{maxWidth:"960px"},xxl:{maxWidth:"960px"}})[Ba().size],T7="tw-values",I7="0.34.1",z7="module",B7={"@ant-design/icons":"^5.1.4","@stylexjs/stylex":"^0.5.1",antd:"^5.7.0",i18next:"^23.2.11",react:"^18.2.0","react-dom":"^18.2.0","react-i18next":"^13.0.2","react-router-dom":"^6.14.1","web-vitals":"^2.1.4"},M7={start:"vite",test:"vitest","lint:check":"eslint ./src",lint:"eslint --fix ./src",build:"tsc && vite build",preview:"vite preview",deploy:"gh-pages -d dist"},N7={extends:["react-app","react-app/jest"]},A7={production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},L7={"@vitejs/plugin-react":"^4.2.1",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.33.2","gh-pages":"^5.0.0",prettier:"^3.2.4",typescript:"^5.3.3",vite:"^5.0.11","vite-plugin-stylex":"^0.5.0","vite-tsconfig-paths":"^4.2.3",vitest:"^1.2.0"},Q1={name:T7,version:I7,private:!0,type:z7,dependencies:B7,scripts:M7,eslintConfig:N7,browserslist:A7,devDependencies:L7};function j7(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function J1(e,t,n){e.loadNamespaces(t,KS(e,n))}function ey(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,KS(e,r))}function F7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const c=t.services.backendConnector.state[`${l}|${s}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}function D7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Hg("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):F7(e,t,n)}const H7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,V7={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},W7=e=>V7[e],q7=e=>e.replace(H7,W7);let Vg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:q7};function U7(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vg={...Vg,...e}}function G7(){return Vg}let XS;function K7(e){XS=e}function X7(){return XS}const Y7={type:"3rdParty",init(e){U7(e.options.react),K7(e)}},Q7=u.createContext();class Z7{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const J7=(e,t)=>{const n=u.useRef();return u.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Ss(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=u.useContext(Q7)||{},o=n||r||X7();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Z7),!o){Hg("You will need to pass in an i18next instance by using initReactI18next");const h=(S,C)=>typeof C=="string"?C:C&&typeof C=="object"&&typeof C.defaultValue=="string"?C.defaultValue:Array.isArray(S)?S[S.length-1]:S,w=[h,{},!1];return w.t=h,w.i18n={},w.ready=!1,w}o.options.react&&o.options.react.wait!==void 0&&Hg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...G7(),...o.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let c=e||i||o.options&&o.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(c);const d=(o.isInitialized||o.initializedStoreOnce)&&c.every(h=>D7(h,o,a));function f(){return o.getFixedT(t.lng||null,a.nsMode==="fallback"?c:c[0],s)}const[p,y]=u.useState(f);let b=c.join();t.lng&&(b=`${t.lng}${b}`);const v=J7(b),x=u.useRef(!0);u.useEffect(()=>{const{bindI18n:h,bindI18nStore:w}=a;x.current=!0,!d&&!l&&(t.lng?ey(o,t.lng,c,()=>{x.current&&y(f)}):J1(o,c,()=>{x.current&&y(f)})),d&&v&&v!==b&&x.current&&y(f);function S(){x.current&&y(f)}return h&&o&&o.on(h,S),w&&o&&o.store.on(w,S),()=>{x.current=!1,h&&o&&h.split(" ").forEach(C=>o.off(C,S)),w&&o&&w.split(" ").forEach(C=>o.store.off(C,S))}},[o,b]);const m=u.useRef(!0);u.useEffect(()=>{x.current&&!m.current&&y(f),m.current=!1},[o,s]);const g=[p,o,d];if(g.t=p,g.i18n=o,g.ready=d,d||!d&&!l)return g;throw new Promise(h=>{t.lng?ey(o,t.lng,c,()=>h()):J1(o,c,()=>h())})}const{Title:eN}=za,tN=()=>{const e=ls(),{i18n:t}=Ss(),n=[{key:"zhtw",text:"繁"},{key:"zhcn",text:"简"},{key:"en",text:"EN"}],r=i=>{localStorage.setItem("ui.language",i),t.changeLanguage(i)};return V.jsx(kd.Header,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"0"},children:V.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{...GS(),width:"100%",margin:"0 auto"},children:[V.jsx(eN,{level:1,style:{cursor:"pointer",color:"white",margin:"0 5px",padding:"0"},onClick:()=>{e("/")},children:"TW Values"}),V.jsxs(y9,{size:8,children:[n.map((i,o)=>V.jsx($c,{onClick:()=>{r(i.key)},style:{backgroundColor:"transparent",borderColor:t.language===i.key?"transparent":"white",color:"white",padding:"0 5px",fontSize:"medium"},children:i.text},o)),V.jsx($c,{type:"link",href:`https://github.com/TWValues/TW-Values/tree/v${Q1.version}`,target:"_blank",style:{backgroundColor:"transparent",borderColor:"transparent",color:"white",padding:"0 5px",fontSize:"medium"},children:`v${Q1.version}`}),V.jsx($c,{type:"link",href:"https://github.com/TWValues/TW-Values",target:"_blank",icon:V.jsx(_7,{style:{color:"white",fontSize:"x-large"}}),style:{margin:"0 5px"}})]})]})})},{Title:ty}=za,nN=()=>{const e=ls();return V.jsx(kd.Footer,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"5px"},children:V.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{...GS(),width:"100%",margin:"0 auto"},children:[V.jsx(ty,{level:5,style:{cursor:"pointer",color:"white",margin:"auto 0 auto 0"},onClick:()=>{e("/")},children:"TW Values"}),V.jsx(ty,{level:5,style:{color:"white",margin:"auto 0 auto 0"},children:"Copyright (c) 2023-2024 TW Values"})]})})},rN=e=>e,ny=(e,t,n=rN)=>e.reduce((r,i)=>(r.length>0&&(r+=t),r+=n(i),r),""),iN="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3cpath%20d='M%200%20150%20Q%20200%200%20400%20150'%20stroke='blue'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20150%20Q%20200%20300%20400%20150'%20stroke='green'%20stroke-width='4'%20fill='none'/%3e%3cpath%20d='M%200%200%20Q%2050%20100%20200%20150%20Q%20350%20200%20400%20300'%20stroke='orange'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20300%20Q%20150%20250%20200%20150%20Q%20250%2050%20400%200'%20stroke='magenta'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20200%20Q%20130%20240%20180%20300'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%20180%200%20Q%20300%20150%20400%20200'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",oN="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3ccircle%20r='18'%20cx='120'%20cy='30'%20stroke='red'%20stroke-width='4'%20fill='none'%20/%3e%3cpolygon%20points='280,240%20260,275%20300,275'%20stroke='limegreen'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='350'%20y1='50'%20x2='380'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='380'%20y1='50'%20x2='350'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3crect%20width='35'%20height='35'%20x='80'%20y='140'%20rx='5'%20ry='5'%20stroke='purple'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",{Content:aN}=kd,lN=()=>{const e=[iN,oN],[t,n]=u.useState(e.map(()=>0),[]);return u.useEffect(()=>{window.addEventListener("scroll",r=>{const i=r.target.documentElement.scrollTop;n(e.map((o,a)=>`${(2*a+1)*i*-.01}em`))})}),V.jsxs(kd,{style:{minHeight:"100vh",minWidth:"460px",overflow:"auto"},children:[V.jsx(tN,{}),V.jsx(aN,{style:{display:"flex",justifyContent:"center",alignItems:"center",backgroundImage:ny(e,",",r=>`url("${r}")`),backgroundRepeat:"repeat",backgroundPositionY:ny(t,","),transition:"all 0.25s ease-out 0s",width:"100%"},children:V.jsx(S3,{})}),V.jsx(nN,{})]})},{Text:Wf}=za,Li=({title:e,leftTitle:t,rightTitle:n,leftColor:r,rightColor:i,leftDescription:o,rightDescription:a})=>{const l=Ba(),s=()=>({sm:{fontSize:"large"},md:{fontSize:"large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],c=()=>({sm:{fontSize:"large"},md:{fontSize:"large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],d=()=>({sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"large"},xl:{fontSize:"large"},xxl:{fontSize:"large"}})[l.size],f=({title:v,description:x,color:m})=>V.jsxs(Nt,{vertical:!0,justify:"start",align:"center",gap:10,style:{margin:"5px"},children:[V.jsx(Wf,{style:{...c(),fontWeight:"bold",textTransform:"uppercase",color:m},children:v}),V.jsx(Wf,{style:{...d()},children:x})]}),p=()=>V.jsx(Wf,{style:{...s(),margin:"10px",textTransform:"uppercase",textAlign:"center",whiteSpace:"nowrap"},children:e}),y=()=>V.jsx(f,{title:t,description:o,color:r}),b=()=>V.jsx(f,{title:n,description:a,color:i});return l.lg?V.jsxs("div",{style:{display:"grid",gridTemplateColumns:"320px auto 320px",width:"100%"},children:[V.jsx(y,{}),V.jsx(p,{}),V.jsx(b,{})]}):V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[V.jsx(p,{}),V.jsxs("div",{style:{display:"grid",gridTemplateColumns:l.md?"45% 10% 45%":"48% 4% 48%",alignItems:"start",width:"100%"},children:[V.jsx(y,{}),V.jsx("div",{}),V.jsx(b,{})]})]})},sN="data:image/svg+xml,%3csvg%20fill='%23DC143C'%20height='256px'%20width='256px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20455.00%20455.00'%20xml:space='preserve'%20stroke='%23DC143C'%20transform='matrix(1,%200,%200,%201,%200,%200)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke='%23CCCCCC'%20stroke-width='2.73'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpolygon%20points='150.618,395%20130.5,455%20324.5,455%20304.382,395%20'%3e%3c/polygon%3e%3cpath%20d='M0,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H0z'%3e%3c/path%3e%3cpath%20d='M318,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H318z'%3e%3c/path%3e%3cpath%20d='M68.5,148.477L103.012,230h32.577l-44.45-105H212.5v240h30V125h121.362l-44.45,105h32.577l34.511-81.523L421.011,230%20h32.578l-57.15-135H242.5V55.977c8.964-5.188,15-14.874,15-25.977c0-16.569-13.431-30-30-30s-30,13.431-30,30%20c0,11.102,6.036,20.789,15,25.977V95H58.561L1.411,230h32.578L68.5,148.477z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",cN="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20stroke='%237B68EE'%20stroke-width='1.5'%3e%3c/circle%3e%3cpath%20d='M12%206V18'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3cpath%20d='M15%209.5C15%208.11929%2013.6569%207%2012%207C10.3431%207%209%208.11929%209%209.5C9%2010.8807%2010.3431%2012%2012%2012C13.6569%2012%2015%2013.1193%2015%2014.5C15%2015.8807%2013.6569%2017%2012%2017C10.3431%2017%209%2015.8807%209%2014.5'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",uN="/TW-Values/assets/Globe-B1wDQrZS.svg",dN="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='M5%2022V14M5%2014V4M5%2014L7.47067%2013.5059C9.1212%2013.1758%2010.8321%2013.3328%2012.3949%2013.958C14.0885%2014.6354%2015.9524%2014.7619%2017.722%2014.3195L17.8221%2014.2945C18.4082%2014.148%2018.6861%2013.4769%2018.3753%2012.9589L16.8147%2010.3578C16.4732%209.78863%2016.3024%209.50405%2016.2619%209.19451C16.2451%209.06539%2016.2451%208.93461%2016.2619%208.80549C16.3024%208.49595%2016.4732%208.21137%2016.8147%207.64221L18.0932%205.51132C18.4278%204.9536%2017.9211%204.26972%2017.2901%204.42746C15.8013%204.79967%2014.2331%204.69323%2012.8082%204.12329L12.3949%203.95797C10.8321%203.33284%209.1212%203.17576%207.47067%203.50587L5%204M5%204V2'%20stroke='%23ff8c00'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",fN="data:image/svg+xml,%3csvg%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20width='800px'%20height='800px'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD700;}%20%3c/style%3e%3cg%3e%3crect%20x='146.663'%20y='55.252'%20class='st0'%20width='46.389'%20height='17.681'/%3e%3cpolygon%20class='st0'%20points='206.033,149.149%20188.641,78.726%20163.786,78.726%20155.501,78.726%20155.501,97.782%20167.691,109.972%20175.385,171.518%20'/%3e%3cpath%20class='st0'%20d='M368.801,250.766l-30.247-25.092c-2.906-2.413-6.655-3.557-10.409-3.176c-3.755,0.382-7.2,2.242-9.568,5.188%20l-10.554,13.125l16.649,87.072l46.12-57.456C375.613,264.429,374.725,255.677,368.801,250.766z'/%3e%3crect%20x='138.102'%20y='452.348'%20class='st0'%20width='225.347'%20height='59.652'/%3e%3cpath%20class='st0'%20d='M223.615,127.384c-0.152,0.565-0.401,1.085-0.52,1.663c19.45-3.774,39.617-3.82,59.081-0.145%20c-0.026-0.125-0.092-0.243-0.118-0.368l22.843-14.604c0.526-0.329,0.73-0.999,0.486-1.565c-0.25-0.572-0.874-0.882-1.472-0.73%20l-26.315,6.569c-0.572-0.842-1.243-1.578-1.894-2.354l8.989-25.848c0.204-0.578-0.04-1.217-0.572-1.519%20c-0.533-0.302-1.196-0.184-1.591,0.283l-17.294,20.535c-2.005-0.131-4.011-0.184-6.023-0.256l-5.411-29.346%20c-0.119-0.598-0.638-1.039-1.25-1.039c-0.611,0-1.137,0.441-1.242,1.039l-5.432,29.372c-2.478,0.099-4.951,0.145-7.423,0.342%20l-17.379-20.647c-0.394-0.467-1.065-0.592-1.604-0.283c-0.532,0.296-0.77,0.94-0.572,1.512l9.304,26.769l1.184-0.671%20c-0.795,0.966-1.539,1.96-2.209,3.025l0.92-2.13l-26.512-6.622c-0.604-0.145-1.222,0.158-1.472,0.73%20c-0.244,0.572-0.04,1.236,0.486,1.572L223.615,127.384z'/%3e%3cpath%20class='st0'%20d='M296.076,213.608c-0.868-4.57-3.938-8.41-8.193-10.271l-65.281-28.505l-9.107-23.198l-41.34,32.674%20c-5.688,4.49-7.042,12.572-3.117,18.667l15.459,24.046l-2.078,1.604c-5.109,3.932-6.904,10.83-4.346,16.748l10.04,23.264%20l20.404-21.048l4.754,4.616l-36.093,37.243l5.063,40.518l18.819-19.41l4.76,4.616l-28.07,28.958l-5.458,101.59h156.574%20l-4.359-28.972l9.942-2.492L296.076,213.608z%20M243.993,410.305l-6.312-2.026l28.162-87.821l6.312,2.025L243.993,410.305z'/%3e%3cpath%20class='st0'%20d='M157.71,49.176h8.778c-3.557-3.288-6.819-13.19,1.992-21.541c3.866-6.075,3.866-6.075,3.866-6.075%20s9.916,14.623,3.354,27.616h6.312c0,0,6.628-3.866,7.18-18.779c0.552-14.913-12.152-29.82-18.78-30.372%20c-6.628-0.552,1.105,8.278-12.704,17.668C143.901,27.083,149.977,45.31,157.71,49.176z'/%3e%3cpath%20class='st0'%20d='M228.587,164.582l-3.051,3.051l0.526,1.341l40.367,17.629c7.088-3.551,12.552-9.817,15.084-17.432%20l-28.051-31.996L228.587,164.582z'/%3e%3cpath%20class='st0'%20d='M283.057,159.347l-0.243-23.296l-1.874-0.356c-7.108-1.348-14.355-2.157-21.64-2.466l23.73,27.071%20C283.037,159.985,283.057,159.67,283.057,159.347z'/%3e%3cpath%20class='st0'%20d='M222.511,136.189l0.244,23.796c0,0.02,0,0.033,0,0.053l24.756-26.821c-7.785,0.283-15.55,1.137-23.146,2.616%20L222.511,136.189z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",pN="/TW-Values/assets/Crown-D3eiD2Sz.svg",gN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='625'%20height='625'%3e%3cpath%20d='m10%20207l38%2030-36%2069c-18%2032%2013%2063%2033%2074%2019%2011%2050%2012%2078%2012l51-83%2038%2021-66-123-135%201m6%20169l82%20152c17%2021%2048%2026%2080%2025h87v-144l-165-1c-26%202-59-4-85-32m517-280l-45%2019-43-65c-19-31-61-19-80-7-19%2012-34%2038-48%2062l48%2085-37%2023%20140%202%2065-119zm-151-77l-173-2c-26%204-46%2029-61%2058l-42%2076%20126%2070%2081-143c11-23%2032-50%2069-58m8%20586l5-48%2078-6c37-2%2046-44%2045-67-1-22-16-48-31-72l-97.16.925-3-43-69%20122%2073%20114m140-94l85-150c9-25-3-54-21-81l-46-74-122%2076%2086%20140c15%2021%2028%2052%2017%2089z'%20fill='%23006E27'/%3e%3c/svg%3e",mN="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%238B4513'%20d='M4.4%201.3c-0.6%200.3-0.8%201.1-0.4%201.5%200.5-0.9%201.3-0.6%202.5%200.4%200.8%200.7%201.9%200.1%201.9%200.1s0.2%201.2%201.7%201.4c1.7%200.2%202.3-0.8%202.3-0.8s0.4%201%201.9%200.4c1.1-0.4%200.7-1.1%200.7-1.1s1%200%201-0.7c0-0.9-1.1-0.8-1.1-0.8s0.2-1-0.9-1.1c-1-0.1-1.3%200.5-1.3%200.5s-0.3-1.1-1.8-1.1c-1.4%200-1.9%201.3-1.9%201.3s-0.4-0.6-1.6-0.6c-0.9%200-1.3%200.7-1.3%200.7s-1.1-0.5-1.7-0.1z'%3e%3c/path%3e%3cpath%20fill='%238B4513'%20d='M12%2012.1v-2.1l-4%202.1v-2.1h-2.4l-0.6-7h-2l-0.6%207h-2.4v6h16v-6l-4%202.1zM6%2014h-4v-2h4v2z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",hN="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--emojione'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%23ed4c5c'%20d='M52.382%205.075C40.137%203.203%2024.137%2028.036%209.213%2020.497c-.582-1.575-1.143-3.158-1.725-4.73C25.077%2019.105%2033.07-2.995%2050.658.345c.584%201.572%201.14%203.156%201.724%204.73'%3e%3c/path%3e%3cpath%20fill='%23ff8736'%20d='M54.105%209.804C43.762%207.786%2022.512%2031.453%2010.938%2025.227c-.585-1.573-1.14-3.157-1.725-4.73C26.802%2023.835%2034.794%201.734%2052.382%205.075c.584%201.572%201.14%203.156%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%23ffce31'%20d='M55.83%2014.535C45.762%2012.744%2027.086%2038.25%2012.662%2029.957c-.585-1.573-1.142-3.157-1.725-4.73C28.525%2028.566%2036.52%206.467%2054.105%209.805c.585%201.574%201.142%203.157%201.725%204.73'%3e%3c/path%3e%3cpath%20fill='%2383bf4f'%20d='M57.556%2019.265c-9.711-1.521-31.086%2025.813-43.171%2015.422c-.584-1.572-1.139-3.157-1.723-4.73c17.585%203.341%2025.579-18.762%2043.168-15.422c.583%201.573%201.142%203.156%201.726%204.73'%3e%3c/path%3e%3cpath%20fill='%23275fd9'%20d='M59.278%2023.995C48.22%2022.161%2028.595%2050.453%2016.109%2039.418c-.584-1.574-1.144-3.156-1.725-4.73c17.588%203.338%2025.582-18.761%2043.171-15.422c.583%201.573%201.141%203.155%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%239028e0'%20d='M61%2028.726c-17.583-3.34-25.579%2018.761-43.166%2015.421c-.584-1.572-1.142-3.156-1.725-4.729c17.588%203.338%2025.581-18.762%2043.169-15.423c.583%201.575%201.142%203.158%201.722%204.731'%3e%3c/path%3e%3cg%20fill='%233e4347'%3e%3ccircle%20cx='5.168'%20cy='13.336'%20r='2.168'%3e%3c/circle%3e%3cpath%20d='M7.04%2014.49l-2.56.929L22.186%2064h2.896z'%3e%3c/path%3e%3cpath%20d='M3.688%2015.602l4.076-1.48l.37%201.017l-4.077%201.48z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",vN="data:image/svg+xml,%3csvg%20height='200px'%20width='200px'%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23800000;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M78.641,118.933c22.88,0,41.416-18.551,41.416-41.414c0-22.887-18.536-41.423-41.416-41.423%20c-22.887,0-41.422,18.536-41.422,41.423C37.218,100.382,55.754,118.933,78.641,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M255.706,228.73v0.062c0.101,0,0.194-0.031,0.294-0.031c0.101,0,0.194,0.031,0.294,0.031v-0.062%20c15.562-0.317,28.082-12.976,28.082-28.601c0-15.648-12.52-28.299-28.082-28.616v-0.063c-0.101,0-0.194,0.031-0.294,0.031%20c-0.1,0-0.193-0.031-0.294-0.031v0.063c-15.563,0.317-28.082,12.968-28.082,28.616C227.623,215.754,240.143,228.413,255.706,228.73%20z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M433.359,118.933c22.887,0,41.423-18.551,41.423-41.414c0-22.887-18.536-41.423-41.423-41.423%20c-22.88,0-41.416,18.536-41.416,41.423C391.944,100.382,410.48,118.933,433.359,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M470.097,138.553h-36.312h-18.404c-21.106,0-40.432,11.831-50.033,30.622l-33.494,97.967%20c-1.154,2.246-3.298,3.84-5.792,4.282c-2.493,0.442-5.048-0.309-6.914-2.036l-20.836-18.04c-6.233-5.769-14.408-8.973-22.902-8.973%20H256h-19.41c-8.494,0-16.669,3.204-22.902,8.973l-20.835,18.04c-1.866,1.727-4.421,2.478-6.914,2.036%20c-2.492-0.442-4.637-2.036-5.791-4.282l-33.495-97.967c-9.6-18.791-28.926-30.622-50.032-30.622H78.215H41.902%20C21.834,138.553,0,160.387,0,180.464v139.211c0,10.034,8.13,18.171,18.164,18.171c4.939,0,0,0,12.682,0l6.906,118.725%20c0,10.676,8.664,19.332,19.34,19.332c4.506,0,12.814,0,21.122,0c8.308,0,16.616,0,21.122,0c10.676,0,19.34-8.656,19.34-19.332%20l6.906-118.725l-0.085-84.766c0-1.339,0.914-2.493,2.222-2.818c1.309-0.31,2.648,0.309,3.26,1.502l26.572,65.401%20c3.206,6.256,9.152,10.654,16.074,11.885c6.922,1.231,14.022-0.844,19.186-5.613l25.426-18.729%20c0.852-0.782,2.083-0.984,3.136-0.542c1.061,0.473,1.743,1.518,1.743,2.663l0.093,73.508l4.777,82.187%20c0,7.387,6.001,13.379,13.395,13.379c3.113,0,8.865,0,14.618,0c5.753,0,11.506,0,14.618,0c7.394,0,13.394-5.992,13.394-13.379%20l4.778-82.187l0.093-73.508c0-1.146,0.681-2.19,1.742-2.663c1.053-0.442,2.284-0.24,3.136,0.542l25.427,18.729%20c5.164,4.769,12.264,6.844,19.186,5.613c6.922-1.231,12.868-5.629,16.073-11.885l26.573-65.401%20c0.611-1.192,1.951-1.812,3.259-1.502c1.309,0.325,2.222,1.478,2.222,2.818l-0.085,84.766l6.906,118.725%20c0,10.676,8.664,19.332,19.341,19.332c4.507,0,12.814,0,21.122,0c8.308,0,16.616,0,21.121,0c10.677,0,19.342-8.656,19.342-19.332%20l6.906-118.725c12.682,0,7.742,0,12.682,0c10.034,0,18.164-8.137,18.164-18.171V180.464%20C512,160.387,490.166,138.553,470.097,138.553z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",yN="/TW-Values/assets/FlagOfTWIndependence-BSLd3Q55.svg",bN="/TW-Values/assets/ChinaTerritory-BGtJl0no.svg",wN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='1235'%20height='650'%20viewBox='0%200%207410%203900'%3e%3cpath%20d='M0,0h7410v3900H0'%20fill='%23b31942'/%3e%3cpath%20d='M0,450H7410m0,600H0m0,600H7410m0,600H0m0,600H7410m0,600H0'%20stroke='%23FFF'%20stroke-width='300'/%3e%3cpath%20d='M0,0h2964v2100H0'%20fill='%230a3161'/%3e%3cg%20fill='%23FFF'%3e%3cg%20id='s18'%3e%3cg%20id='s9'%3e%3cg%20id='s5'%3e%3cg%20id='s4'%3e%3cpath%20id='s'%20d='M247,90%20317.534230,307.082039%20132.873218,172.917961H361.126782L176.465770,307.082039z'/%3e%3cuse%20xlink:href='%23s'%20y='420'/%3e%3cuse%20xlink:href='%23s'%20y='840'/%3e%3cuse%20xlink:href='%23s'%20y='1260'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20y='1680'/%3e%3c/g%3e%3cuse%20xlink:href='%23s4'%20x='247'%20y='210'/%3e%3c/g%3e%3cuse%20xlink:href='%23s9'%20x='494'/%3e%3c/g%3e%3cuse%20xlink:href='%23s18'%20x='988'/%3e%3cuse%20xlink:href='%23s9'%20x='1976'/%3e%3cuse%20xlink:href='%23s5'%20x='2470'/%3e%3c/g%3e%3c/svg%3e",xN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='900'%20height='600'%3e%3cpath%20fill='%23EE1C25'%20d='M0%200h900v600H0z'/%3e%3cg%20transform='translate(150,150)%20scale(3)'%3e%3cpath%20id='s'%20d='M0,-30%2017.63355,24.27051%20-28.53171,-9.27051H28.53171L-17.63355,24.27051z'%20fill='%23FF0'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,60)%20rotate(23.036243)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,120)%20rotate(45.869898)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,210)%20rotate(69.945396)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,270)%20rotate(20.659808)'/%3e%3c/svg%3e",je=()=>({equality:{color:"crimson",image:sN},efficiency:{color:"mediumslateblue",image:cN},globe:{color:"royalblue",image:uN},nation:{color:"darkorange",image:dN},liberty:{color:"gold",image:fN},authority:{color:"red",image:pN},ecology:{color:"forestgreen",image:gN},production:{color:"saddlebrown",image:mN},progress:{color:"magenta",image:hN},tradition:{color:"maroon",image:vN},independence:{color:"green",image:yN},unification:{color:"black",image:bN},pro_american:{color:"navy",image:wN},pro_chinese:{color:"red",image:xN}}),se={p150:24,p100:16,p075:12,p050:8},YS=()=>[{id:"q0000",weight:{economic:se.p100}},{id:"q0001",weight:{economic:se.p100}},{id:"q0002",weight:{economic:se.p100}},{id:"q0003",weight:{economic:se.p100}},{id:"q0004",weight:{economic:se.p100}},{id:"q0100",weight:{economic:-se.p100}},{id:"q0101",weight:{economic:-se.p100}},{id:"q0102",weight:{economic:-se.p100}},{id:"q0103",weight:{economic:-se.p100}},{id:"q0104",weight:{economic:-se.p100}},{id:"q0105",weight:{economic:-se.p100}},{id:"q0200",weight:{diplomatic:se.p100}},{id:"q0201",weight:{diplomatic:se.p100}},{id:"q0202",weight:{diplomatic:se.p075,sovereignty:-se.p050}},{id:"q0203",weight:{diplomatic:se.p100,civil:se.p050}},{id:"q0300",weight:{diplomatic:-se.p100,economic:-se.p050}},{id:"q0301",weight:{diplomatic:-se.p100}},{id:"q0302",weight:{diplomatic:-se.p100}},{id:"q0303",weight:{diplomatic:-se.p100}},{id:"q0400",weight:{civil:se.p100,societal:se.p050}},{id:"q0401",weight:{civil:se.p100}},{id:"q0402",weight:{civil:se.p100}},{id:"q0403",weight:{civil:se.p100}},{id:"q0404",weight:{civil:se.p100}},{id:"q0405",weight:{civil:se.p100}},{id:"q0500",weight:{civil:-se.p075}},{id:"q0501",weight:{civil:-se.p100}},{id:"q0502",weight:{civil:-se.p100}},{id:"q0503",weight:{civil:-se.p100,diplomatic:-se.p050}},{id:"q0504",weight:{civil:-se.p100}},{id:"q0505",weight:{civil:-se.p100}},{id:"q0506",weight:{civil:-se.p075}},{id:"q0600",weight:{societal:se.p100}},{id:"q0601",weight:{societal:se.p100}},{id:"q0602",weight:{societal:se.p100}},{id:"q0603",weight:{societal:se.p100}},{id:"q0604",weight:{societal:se.p100}},{id:"q0605",weight:{societal:se.p100,sovereignty:se.p050}},{id:"q0700",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0701",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0702",weight:{societal:-se.p100}},{id:"q0703",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0704",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0705",weight:{societal:-se.p100}},{id:"q0800",weight:{environmental:se.p100}},{id:"q0801",weight:{environmental:se.p100}},{id:"q0802",weight:{environmental:se.p100}},{id:"q0803",weight:{environmental:se.p100}},{id:"q0900",weight:{environmental:-se.p100}},{id:"q0901",weight:{environmental:-se.p100}},{id:"q0902",weight:{environmental:-se.p100}},{id:"q1000",weight:{sovereignty:se.p100}},{id:"q1001",weight:{sovereignty:se.p150,diplomatic:-se.p100}},{id:"q1002",weight:{sovereignty:se.p100,diplomatic:-se.p050}},{id:"q1003",weight:{sovereignty:se.p100}},{id:"q1100",weight:{sovereignty:-se.p075}},{id:"q1101",weight:{sovereignty:-se.p150,us_vs_china:-se.p100}},{id:"q1102",weight:{sovereignty:-se.p100,us_vs_china:-se.p075}},{id:"q1103",weight:{}},{id:"q1200",weight:{us_vs_china:se.p100}},{id:"q1201",weight:{us_vs_china:se.p100}},{id:"q1202",weight:{us_vs_china:se.p100}},{id:"q1300",weight:{us_vs_china:-se.p100,diplomatic:se.p050}},{id:"q1301",weight:{us_vs_china:-se.p100,diplomatic:-se.p050}}];var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});var QS=Sh.styleq=void 0,SN=new WeakMap,CN="$$css";function ZS(e){var t,n,r;return e!=null&&(t=e.disableCache===!0,n=e.disableMix===!0,r=e.transform),function(){for(var o=[],a="",l=null,s=t?null:SN,c=new Array(arguments.length),d=0;d0;){var f=c.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p0&&(a.style=o),a}const ry={},{Title:iy,Text:oy}=za,$N=()=>{const{t:e}=Ss(),t=ls(),n=Ba();return V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:"white",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px auto",padding:"5px"},children:[V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",backgroundColor:"white",border:"dodgerblue solid 4px",borderRadius:"20px",padding:"16px"},children:[V.jsx(iy,{level:1,style:{color:"black",padding:"10px"},children:e("quiz.welcome.title")}),V.jsx(oy,{style:{color:"black",fontSize:"x-large",padding:"10px"},children:e("quiz.welcome.content")}),V.jsx(ai,{style:{backgroundColor:"crimson"}}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xt0237e x16zck5j xng8ra x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",style:{width:{sm:"100%",md:"60%",lg:"50%",xl:"40%",xxl:"40%"}[n.size]},onClick:()=>{t("/quiz")},children:e("quiz.welcome.start")}),V.jsx(fO,{message:e("quiz.welcome.privacy"),type:"info",showIcon:!0,style:{margin:"20px"}})]}),V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",backgroundColor:"white",border:"orange solid 4px",borderRadius:"20px",padding:"16px"},children:[V.jsx(iy,{level:2,children:e("quiz.introduction.title")}),V.jsx(oy,{style:{fontSize:"large"},children:e("quiz.introduction.description",{count:YS().length})}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.economic.title"),leftTitle:e("quiz.result.axes.economic.equality.name"),rightTitle:e("quiz.result.axes.economic.efficiency.name"),leftColor:je().equality.color,rightColor:je().efficiency.color,leftDescription:e("quiz.result.axes.economic.equality.description"),rightDescription:e("quiz.result.axes.economic.efficiency.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.diplomatic.title"),leftTitle:e("quiz.result.axes.diplomatic.globe.name"),rightTitle:e("quiz.result.axes.diplomatic.nation.name"),leftColor:je().globe.color,rightColor:je().nation.color,leftDescription:e("quiz.result.axes.diplomatic.globe.description"),rightDescription:e("quiz.result.axes.diplomatic.nation.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.civil.title"),leftTitle:e("quiz.result.axes.civil.liberty.name"),rightTitle:e("quiz.result.axes.civil.authority.name"),leftColor:je().liberty.color,rightColor:je().authority.color,leftDescription:e("quiz.result.axes.civil.liberty.description"),rightDescription:e("quiz.result.axes.civil.authority.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.environmental.title"),leftTitle:e("quiz.result.axes.environmental.ecology.name"),rightTitle:e("quiz.result.axes.environmental.production.name"),leftColor:je().ecology.color,rightColor:je().production.color,leftDescription:e("quiz.result.axes.environmental.ecology.description"),rightDescription:e("quiz.result.axes.environmental.production.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.societal.title"),leftTitle:e("quiz.result.axes.societal.progress.name"),rightTitle:e("quiz.result.axes.societal.tradition.name"),leftColor:je().progress.color,rightColor:je().tradition.color,leftDescription:e("quiz.result.axes.societal.progress.description"),rightDescription:e("quiz.result.axes.societal.tradition.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.sovereignty.title"),leftTitle:e("quiz.result.axes.sovereignty.independence.name"),rightTitle:e("quiz.result.axes.sovereignty.unification.name"),leftColor:je().independence.color,rightColor:je().unification.color,leftDescription:e("quiz.result.axes.sovereignty.independence.description"),rightDescription:e("quiz.result.axes.sovereignty.unification.description")}),V.jsx(ai,{style:{backgroundColor:"black"}}),V.jsx(Li,{title:e("quiz.result.axes.us_vs_china.title"),leftTitle:e("quiz.result.axes.us_vs_china.pro_american.name"),rightTitle:e("quiz.result.axes.us_vs_china.pro_chinese.name"),leftColor:je().pro_american.color,rightColor:je().pro_chinese.color,leftDescription:e("quiz.result.axes.us_vs_china.pro_american.description"),rightDescription:e("quiz.result.axes.us_vs_china.pro_chinese.description")})]})]})},kN=e=>{for(let t=0;t[{id:"roc_unification",predicate:e=>e.q1103>bt.n},{id:"roc_independence",predicate:e=>e.q1000>bt.n},{id:"tw_independence",predicate:e=>e.q1001>bt.n},{id:"prc_unification",predicate:e=>e.q1101>bt.n},{id:"death_penalty_abolitionists",predicate:e=>e.q0603>bt.n},{id:"homophobia",predicate:e=>e.q0602e.q0705>bt.n},{id:"feminism",predicate:e=>{let t=0;return t+=e.q0602>bt.n,t+=e.q0701bt.n&&e.q0705=2}},{id:"feminism_buffet",predicate:e=>e.q0605{const t=Object.entries(e);return t.filter(r=>bt.sd<=r[1]&&r[1]<=bt.sa).length>=.8*t.length}}],ON=e=>eC().filter(t=>t.predicate(e)).map(t=>t.id),tC="api_version",nC=1,RN=()=>[{id:"anarcho_communism",weight:{economic:100,diplomatic:50,civil:100,societal:90}},{id:"libertarian_communism",weight:{economic:100,diplomatic:70,civil:80,societal:80}},{id:"trotskyism",weight:{economic:100,diplomatic:100,civil:60,societal:80}},{id:"marxism",weight:{economic:100,diplomatic:70,civil:40,societal:80}},{id:"de_leonism",weight:{economic:100,diplomatic:30,civil:30,societal:80}},{id:"leninism",weight:{economic:100,diplomatic:40,civil:20,societal:70}},{id:"stalinism",weight:{economic:100,diplomatic:20,civil:0,societal:60}},{id:"religious_communism",weight:{economic:100,diplomatic:50,civil:30,societal:30}},{id:"state_socialism",weight:{economic:80,diplomatic:30,civil:30,societal:70}},{id:"theocratic_socialism",weight:{economic:80,diplomatic:50,civil:30,societal:20}},{id:"religious_socialism",weight:{economic:80,diplomatic:50,civil:70,societal:20}},{id:"democratic_socialism",weight:{economic:80,diplomatic:50,civil:50,societal:80}},{id:"revolutionary_socialism",weight:{economic:80,diplomatic:20,civil:50,societal:70}},{id:"liberal_socialism",weight:{economic:80,diplomatic:70,civil:60,societal:80}},{id:"libertarian_socialism",weight:{economic:80,diplomatic:80,civil:80,societal:80}},{id:"anarcho_syndicalism",weight:{economic:80,diplomatic:50,civil:100,societal:80}},{id:"left_wing_populism",weight:{economic:60,diplomatic:40,civil:30,societal:70}},{id:"theocratic_distributism",weight:{economic:60,diplomatic:40,civil:30,societal:20}},{id:"distributism",weight:{economic:60,diplomatic:50,civil:50,societal:20}},{id:"social_liberalism",weight:{economic:60,diplomatic:60,civil:60,societal:80}},{id:"christian_democracy",weight:{economic:60,diplomatic:60,civil:50,societal:30}},{id:"social_democracy",weight:{economic:60,diplomatic:70,civil:60,societal:80}},{id:"progressivism",weight:{economic:60,diplomatic:80,civil:60,societal:100}},{id:"anarcho_mutualism",weight:{economic:60,diplomatic:50,civil:100,societal:70}},{id:"national_totalitarianism",weight:{economic:50,diplomatic:20,civil:0,societal:50}},{id:"global_totalitarianism",weight:{economic:50,diplomatic:80,civil:0,societal:50}},{id:"technocracy",weight:{economic:60,diplomatic:60,civil:20,societal:70}},{id:"centrist",weight:{economic:50,diplomatic:50,civil:50,societal:50}},{id:"liberalism",weight:{economic:50,diplomatic:60,civil:60,societal:60}},{id:"religious_anarchism",weight:{economic:50,diplomatic:50,civil:100,societal:20}},{id:"right_wing_populism",weight:{economic:40,diplomatic:30,civil:30,societal:30}},{id:"liberal_conservatism",weight:{economic:40,diplomatic:40,civil:50,societal:30}},{id:"reactionary",weight:{economic:40,diplomatic:40,civil:40,societal:10}},{id:"social_libertarianism",weight:{economic:60,diplomatic:70,civil:80,societal:70}},{id:"libertarianism",weight:{economic:40,diplomatic:60,civil:80,societal:60}},{id:"anarcho_egoism",weight:{economic:40,diplomatic:50,civil:100,societal:50}},{id:"nazism",weight:{economic:40,diplomatic:0,civil:0,societal:10}},{id:"autocracy",weight:{economic:50,diplomatic:20,civil:20,societal:50}},{id:"fascism",weight:{economic:40,diplomatic:20,civil:20,societal:20}},{id:"capitalist_fascism",weight:{economic:20,diplomatic:20,civil:20,societal:20}},{id:"conservatism",weight:{economic:30,diplomatic:40,civil:40,societal:20}},{id:"neo_liberalism",weight:{economic:30,diplomatic:30,civil:50,societal:60}},{id:"classical_liberalism",weight:{economic:30,diplomatic:60,civil:60,societal:80}},{id:"authoritarian_capitalism",weight:{economic:20,diplomatic:30,civil:20,societal:40}},{id:"state_capitalism",weight:{economic:20,diplomatic:50,civil:30,societal:50}},{id:"neo_conservatism",weight:{economic:20,diplomatic:20,civil:40,societal:20}},{id:"fundamentalism",weight:{economic:20,diplomatic:30,civil:30,societal:5}},{id:"libertarian_capitalism",weight:{economic:20,diplomatic:50,civil:80,societal:60}},{id:"market_anarchism",weight:{economic:20,diplomatic:50,civil:100,societal:50}},{id:"objectivism",weight:{economic:10,diplomatic:50,civil:90,societal:40}},{id:"totalitarian_capitalism",weight:{economic:0,diplomatic:30,civil:0,societal:50}},{id:"ultra_capitalism",weight:{economic:0,diplomatic:40,civil:50,societal:50}},{id:"anarcho_capitalism",weight:{economic:0,diplomatic:50,civil:100,societal:50}}],PN=()=>[{id:"kmt",icon:"https://upload.wikimedia.org/wikipedia/commons/d/dc/Blue_Sky_White_Sun.png",weight:{economic:40,environmental:35,civil:40,societal:30,sovereignty:35,us_vs_china:35}},{id:"lp",icon:"https://upload.wikimedia.org/wikipedia/commons/9/9d/Labor_Party_%28Taiwan%29_emblem.svg",weight:{economic:85,environmental:50,civil:50,societal:55,sovereignty:15,us_vs_china:10}},{id:"dpp",icon:"https://upload.wikimedia.org/wikipedia/commons/1/16/Green_Island_with_White_Cross.svg",weight:{economic:60,environmental:60,civil:55,societal:60,sovereignty:75,us_vs_china:75}},{id:"tsu",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4c/Taiwan_orange.svg",weight:{economic:40,environmental:40,civil:50,societal:40,sovereignty:75,us_vs_china:70}},{id:"np",icon:"https://upload.wikimedia.org/wikipedia/commons/3/32/LogoCNP.svg",weight:{economic:35,environmental:35,civil:30,societal:25,sovereignty:20,us_vs_china:20}},{id:"npp",icon:"https://upload.wikimedia.org/wikipedia/commons/2/29/Black_Lik_Gold_Circle.svg",weight:{economic:75,environmental:75,civil:70,societal:75,sovereignty:75,us_vs_china:75}},{id:"tpp",icon:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Emblem_of_Taiwan_People%27s_Party_2019_Logo_Only.svg",weight:{economic:50,environmental:45,civil:45,societal:45,sovereignty:45,us_vs_china:40}},{id:"tsp",icon:"https://upload.wikimedia.org/wikipedia/commons/7/77/Daijish%C5%8D_in_brown.svg",weight:{economic:60,environmental:50,civil:75,societal:60,sovereignty:75,us_vs_china:70}},{id:"cupp",icon:"https://upload.wikimedia.org/wikipedia/zh/6/66/China_unify_party_logo.gif",weight:{economic:10,environmental:20,civil:10,societal:20,sovereignty:10,us_vs_china:10}},{id:"gpt",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a5/Green_Party_Taiwan_logo.png",weight:{economic:70,environmental:90,civil:75,societal:75,sovereignty:75,us_vs_china:75}}],_N=(e,t)=>{const n=r=>{const i=c=>c.reduce((d,f)=>d+f.prop*t[f.id],0),o=c=>c.reduce((d,f)=>d+Math.abs(f.prop),0),a=(c,d)=>100*(c+d)/(2*d),l=i(r),s=o(r);return Math.round(a(l,s))};return{economic:n(e.map(r=>({id:r.id,prop:r.weight.economic||0}))),environmental:n(e.map(r=>({id:r.id,prop:r.weight.environmental||0}))),civil:n(e.map(r=>({id:r.id,prop:r.weight.civil||0}))),societal:n(e.map(r=>({id:r.id,prop:r.weight.societal||0}))),diplomatic:n(e.map(r=>({id:r.id,prop:r.weight.diplomatic||0}))),sovereignty:n(e.map(r=>({id:r.id,prop:r.weight.sovereignty||0}))),us_vs_china:n(e.map(r=>({id:r.id,prop:r.weight.us_vs_china||0})))}},TN=e=>RN().map(n=>{let r=0;return r+=Math.pow(Math.abs(n.weight.economic-e.economic),2),r+=Math.pow(Math.abs(n.weight.diplomatic-e.diplomatic),2),r+=Math.pow(Math.abs(n.weight.civil-e.civil),2),r+=Math.pow(Math.abs(n.weight.societal-(.25*e.environmental+.75*e.societal)),2),{id:n.id,distance:r,diff:Math.sqrt(r/4)/100}}).sort((n,r)=>n.distancer.distance?1:0),IN=e=>PN().map(n=>{let r=0;return r+=Math.pow(Math.abs(n.weight.economic-e.economic),2),r+=Math.pow(Math.abs(n.weight.civil-e.civil),2),r+=Math.pow(Math.abs(n.weight.environmental-e.environmental),2),r+=Math.pow(Math.abs(n.weight.societal-e.societal),2),r+=Math.pow(Math.abs(n.weight.sovereignty-e.sovereignty),2),r+=Math.pow(Math.abs(n.weight.us_vs_china-e.us_vs_china),2),{...n,distance:r,diff:Math.sqrt(r/6)/100}}).sort((n,r)=>n.distancer.distance?1:0),zN=()=>{const{t:e}=Ss(),t=ls(),n=u.useMemo(()=>kN(YS()),[]),[r,i]=u.useState(0),[o,a]=u.useState(n.reduce((d,f)=>({...d,[f.id]:0}),{})),l=d=>{a({...o,[n[r].id]:d})},s=()=>{r>0&&i(r-1)},c=()=>{i(r+1)};return u.useEffect(()=>{r===n.length&&t({pathname:"/result",search:nu({[tC]:nC,..._N(n,o),tags:ON(o).join(",")}).toString()})},[r]),V.jsx(Nt,{vertical:!0,justify:"center",align:"center",style:{backgroundColor:"white",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px auto",padding:"10px"},children:r{l(bt.ca),c()},children:e("quiz.answers.completely_agree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng x921d23 x1s7o1zc x1u857p9 xo30pwf x4u2hfz x1bg2uv5 x1ddbq83 xf7yueu",onClick:()=>{l(bt.a),c()},children:e("quiz.answers.agree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x18hdcfm xhi5ub0 xesu2hl xo30pwf x4u2hfz xfi8w6l x1ip647a x1o2m7i8",onClick:()=>{l(bt.sa),c()},children:e("quiz.answers.slightly_agree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1q364g7 xqk8jxb x1cbl2y9 xo30pwf x4u2hfz xzppbbw x1ymtr6h x117c0mp",onClick:()=>{l(bt.n),c()},children:e("quiz.answers.neutral")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x120uepz xgl1eqo x2g70cf",onClick:()=>{l(bt.sd),c()},children:e("quiz.answers.slightly_disagree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng xynlrxq x96fq8s xrkmrrc xo30pwf x4u2hfz x71xlcl xc2cfjo x19lfm6a",onClick:()=>{l(bt.d),c()},children:e("quiz.answers.disagree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 xh8yej3 x1awj2ng x1tzsxso x1up30ld xixu7ty xo30pwf x4u2hfz xusra0j xae71uu x1aurdsm",onClick:()=>{l(bt.cd),c()},children:e("quiz.answers.completely_disagree")}),V.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1ywq5td x8nnhh1 x42x0ya xo30pwf x4u2hfz x1nvupfo xrenkp0 x1jk8ig0",onClick:()=>{s()},disabled:r===0,children:e("quiz.answers.back")})]})]})})},{Text:zo}=za,ji=({title:e,leftTitle:t,rightTitle:n,leftImage:r,rightImage:i,leftColor:o,rightColor:a,percent:l,descriptionTitle:s})=>{const{i18n:c}=Ss(),d=Ba(),f=()=>l>=60?o:l<=40?a:"black",p=()=>c.language=="en"?{sm:{fontSize:"x-small",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},lg:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},xl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"}}[d.size]:{sm:{fontSize:"medium",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},lg:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},xl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"}}[d.size],y=()=>c.language=="en"?{sm:{fontSize:"x-small"},md:{fontSize:"small"},lg:{fontSize:"small"},xl:{fontSize:"medium"},xxl:{fontSize:"medium"}}[d.size]:{sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"medium"},xl:{fontSize:"large"},xxl:{fontSize:"large"}}[d.size];return V.jsx($l,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",borderBottom:`${f()} solid 4px`},body:{padding:{sm:"10px",md:"16px",lg:"24px",xl:"24px",xll:"24px"}[d.size]}},style:{width:"100%",backgroundColor:"white",border:`${f()} solid 4px`,borderRadius:"20px"},children:V.jsxs(Nt,{vertical:!1,justify:"center",align:"center",style:{width:"100%",maxWidth:"720px",margin:"auto"},children:[V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[V.jsx(Dg,{width:60,src:r||"",preview:!1,style:{padding:"4px"}}),V.jsx(zo,{style:{color:o,textAlign:"center",...p()},children:t})]}),d.md?V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",margin:"0px 20px"},children:[V.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[V.jsx(zo,{style:{margin:"5px"},children:`${l} %`}),V.jsx(zo,{style:{...y(),color:f(),textAlign:"center"},children:s}),V.jsx(zo,{style:{margin:"5px"},children:`${100-l} %`})]}),V.jsx(Lf,{type:"line",percent:l,showInfo:!1,strokeLinecap:"square",strokeColor:o,trailColor:a,style:{paddingBottom:"20px"}})]}):V.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[V.jsx(Lf,{type:"dashboard",percent:l,showInfo:!0,status:"active",strokeColor:o,trailColor:"gray",size:50,style:{margin:"5px"}}),V.jsx(zo,{style:{...y(),color:f(),textAlign:"center"},children:s}),V.jsx(Lf,{type:"dashboard",percent:100-l,showInfo:!0,status:"active",strokeColor:a,trailColor:"gray",size:50,style:{margin:"5px"}})]}),V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[V.jsx(Dg,{width:60,src:i||"",preview:!1,style:{padding:"5px"}}),V.jsx(zo,{style:{color:a,textAlign:"center",...p()},children:n})]})]})})},{Text:Ja,Title:BN}=za,el={base:{display:"x1rg5ohu",whiteSpace:"xuxw1ft",borderRadius:"x1m3ak92",borderStyle:"x1y0btm7",borderWidth:"xdh2fpr",padding:"xvid92k",margin:"xd3odtx",$$css:!0},enabled:{color:"x1awj2ng",backgroundColor:"x1vgg7vs",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},enabledWithLink:{color:"x1awj2ng x1uezp9v x1vx81tn",backgroundColor:"x1vgg7vs xo30pwf x4u2hfz",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabled:{color:"x1awj2ng",backgroundColor:"x1cbl2y9",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabledWithLink:{color:"x1awj2ng x1q364g7 xqk8jxb",backgroundColor:"x1cbl2y9 xo30pwf x4u2hfz",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0}},MN=()=>{const[e,t]=P3(),{t:n,i18n:r}=Ss(),i=Ba(),[o,a]=u.useState(!1,[]),[l,s]=u.useState(!1,[]),[c,d]=u.useState(!1,[]),f=S=>r.language==S,p=e.get(tC)==nC,y={economic:e.get("economic"),diplomatic:e.get("diplomatic"),civil:e.get("civil"),environmental:e.get("environmental"),societal:e.get("societal"),sovereignty:e.get("sovereignty"),us_vs_china:e.get("us_vs_china")},b=new Set(e.get("tags").split(",")),v=(S,C,E)=>C?S:S.slice(0,Math.min(S.length,E)),x=(S,C)=>C?S.sort((E,$)=>{const k=b.has(E.id),O=b.has($.id);return k&&!O?-1:!k&&O?1:0}):S.filter(E=>b.has(E.id)),m=S=>S<=10?6:S<=25?5:S<=40?4:S>=90?0:S>=75?1:S>=60?2:3,g=(S,C,E,$)=>S+C*Math.min(Math.max(1,E)-1,$),h=()=>({sm:"10px",md:"16px",lg:"24px",xl:"24px",xll:"24px"})[i.size],w=S=>S<=10?"green":S<=20?"orange":"red";return p?V.jsxs(Nt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:"white",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px",padding:"5px"},children:[V.jsx($l,{title:n("quiz.result.ideologies.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"dodgerblue solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"dodgerblue solid 4px",borderRadius:"20px"},extra:V.jsx(jf,{unCheckedChildren:"3",checkedChildren:"∞",size:"small",onChange:S=>{a(S)},style:{backgroundColor:o?"crimson":"dodgerblue",margin:"5px 20px"}}),children:V.jsx(B1,{children:v(TN(y),o,3).map((S,C)=>{const E=Math.round(100*S.diff),$=`quiz.result.ideologies.data.${S.id}.link`,k=r.exists($)?n($):null,O=()=>V.jsxs(V.Fragment,{children:[V.jsx(Ja,{style:{margin:"8px",fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(140,-16,4,C)}%`,fontWeight:"bold",color:"black",textAlign:"center"},children:n(`quiz.result.ideologies.data.${S.id}.name`)}),V.jsx(Y1,{style:{margin:"3px",color:w(E)}}),V.jsx(Ja,{style:{color:w(E),fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(100,-8,4,C)}%`,textAlign:"center"},children:`${E}%`})]}),P=z=>k&&k.length>0?V.jsx("a",{href:k,target:"_blank",rel:"noreferrer",children:V.jsx("div",{className:"xdfu9ks x1khhgft xjbqb8w xfw5lei x1u0xgjp",children:z})}):V.jsx("div",{className:"xdfu9ks x1khhgft",children:z});return V.jsx(I1,{xs:24,sm:24,md:C<3?24:12,lg:C<3?24:12,xl:C<3?24:8,xxl:C<3?24:8,children:V.jsx(Nt,{vertical:!1,justify:"center",align:"center",children:P(O())})},`ideology.${S.id}`)})})}),V.jsx($l,{title:n("quiz.result.political_parties.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"tomato solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"tomato solid 4px",borderRadius:"20px"},extra:V.jsx(jf,{unCheckedChildren:"3",checkedChildren:"∞",size:"small",onChange:S=>{s(S)},style:{backgroundColor:l?"crimson":"tomato",margin:"5px 20px"}}),children:V.jsx(B1,{children:v(IN(y),l,3).map((S,C)=>{const E=Math.round(100*S.diff),$=n(`quiz.result.political_parties.data.${S.id}.link`),k=()=>V.jsxs(V.Fragment,{children:[V.jsx(Dg,{height:g(24,-3,4,C),src:S.icon,preview:!1}),V.jsx(Ja,{style:{margin:"8px",fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(140,-16,4,C)}%`,fontWeight:"bold",color:"black",textAlign:"center"},children:n(`quiz.result.political_parties.data.${S.id}.name`)}),V.jsx(Y1,{style:{margin:"3px",color:w(E)}}),V.jsx(Ja,{style:{color:w(E),fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(100,-8,4,C)}%`,textAlign:"center"},children:`${E}%`})]}),O=P=>$&&$.length>0?V.jsx("a",{href:$,target:"_blank",rel:"noreferrer",children:V.jsx("div",{className:"xdfu9ks x1khhgft xjbqb8w xfw5lei x1u0xgjp",children:P})}):V.jsx("div",{className:"xdfu9ks x1khhgft",children:P});return V.jsx(I1,{xs:24,sm:24,md:C<3?24:12,lg:C<3?24:12,xl:C<3?24:8,xxl:C<3?24:8,children:V.jsx(Nt,{vertical:!1,justify:"center",align:"center",children:O(k())})},`party.${S.id}`)})})}),V.jsx($l,{title:n("quiz.result.tags.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"greenyellow solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"greenyellow solid 4px",borderRadius:"20px"},extra:V.jsx(jf,{unCheckedChildren:"M",checkedChildren:"∞",size:"small",onChange:S=>{d(S)},style:{backgroundColor:c?"crimson":"greenyellow",margin:"5px 20px"}}),children:x(eC(),c).map(S=>{const C=n(`quiz.result.tags.data.${S.id}.name`),E=n(`quiz.result.tags.data.${S.id}.description`),$=n(`quiz.result.tags.data.${S.id}.link`),k=$&&$.length>0,O=()=>V.jsx("div",{...EN(el.base,b.has(S.id)?k?el.enabledWithLink:el.enabled:k?el.disabledWithLink:el.disabled),children:C});return V.jsxs(Nt,{justify:"start",align:"center",style:{margin:"10px auto 10px auto",maxWidth:"800px"},children:[k?V.jsx("a",{href:$,target:"_blank",rel:"noreferrer",children:O()}):O(),V.jsx(Ja,{style:{margin:"4px",color:b.has(S.id)?"black":"gray"},children:E})]},`tags.${S.id}`)})}),V.jsx(ji,{title:n("quiz.result.axes.economic.title"),leftTitle:n("quiz.result.axes.economic.equality.name"),rightTitle:n("quiz.result.axes.economic.efficiency.name"),leftImage:je().equality.image,rightImage:je().efficiency.image,leftColor:je().equality.color,rightColor:je().efficiency.color,percent:y.economic,descriptionTitle:n(`quiz.result.axes.economic.categories.${m(y.economic)}`)}),V.jsx(ji,{title:n("quiz.result.axes.diplomatic.title"),leftTitle:n("quiz.result.axes.diplomatic.globe.name"),rightTitle:n("quiz.result.axes.diplomatic.nation.name"),leftImage:je().globe.image,rightImage:je().nation.image,leftColor:je().globe.color,rightColor:je().nation.color,percent:y.diplomatic,descriptionTitle:n(`quiz.result.axes.diplomatic.categories.${m(y.diplomatic)}`)}),V.jsx(ji,{title:n("quiz.result.axes.civil.title"),leftTitle:n("quiz.result.axes.civil.liberty.name"),rightTitle:n("quiz.result.axes.civil.authority.name"),leftImage:je().liberty.image,rightImage:je().authority.image,leftColor:je().liberty.color,rightColor:je().authority.color,percent:y.civil,descriptionTitle:n(`quiz.result.axes.civil.categories.${m(y.civil)}`)}),V.jsx(ji,{title:n("quiz.result.axes.environmental.title"),leftTitle:n("quiz.result.axes.environmental.ecology.name"),rightTitle:n("quiz.result.axes.environmental.production.name"),leftImage:je().ecology.image,rightImage:je().production.image,leftColor:je().ecology.color,rightColor:je().production.color,percent:y.environmental,descriptionTitle:n(`quiz.result.axes.environmental.categories.${m(y.environmental)}`)}),V.jsx(ji,{title:n("quiz.result.axes.societal.title"),leftTitle:n("quiz.result.axes.societal.progress.name"),rightTitle:n("quiz.result.axes.societal.tradition.name"),leftImage:je().progress.image,rightImage:je().tradition.image,leftColor:je().progress.color,rightColor:je().tradition.color,percent:y.societal,descriptionTitle:n(`quiz.result.axes.societal.categories.${m(y.societal)}`)}),V.jsx(ji,{title:n("quiz.result.axes.sovereignty.title"),leftTitle:n("quiz.result.axes.sovereignty.independence.name"),rightTitle:n("quiz.result.axes.sovereignty.unification.name"),leftImage:je().independence.image,rightImage:je().unification.image,leftColor:je().independence.color,rightColor:je().unification.color,percent:y.sovereignty,descriptionTitle:n(`quiz.result.axes.sovereignty.categories.${m(y.sovereignty)}`)}),V.jsx(ji,{title:n("quiz.result.axes.us_vs_china.title"),leftTitle:n("quiz.result.axes.us_vs_china.pro_american.name"),rightTitle:n("quiz.result.axes.us_vs_china.pro_chinese.name"),leftImage:je().pro_american.image,rightImage:je().pro_chinese.image,leftColor:je().pro_american.color,rightColor:je().pro_chinese.color,percent:y.us_vs_china,descriptionTitle:n(`quiz.result.axes.us_vs_china.categories.${m(y.us_vs_china)}`)})]}):V.jsxs(Nt,{vertical:!0,align:"center",style:{width:"100%",backgroundColor:"white",border:"black solid 4px",borderRadius:"20px"},children:[V.jsx(BN,{level:4,style:{margin:"40px",color:"red"},children:n("quiz.result.api_error.description")}),V.jsx($c,{href:"/",style:{height:"auto",margin:"40px",borderRadius:"20px",fontSize:"large",fontWeight:"bold",textAlign:"center"},children:n("quiz.result.api_error.index")})]})};function NN(){return V.jsx(R3,{children:V.jsx(E3,{children:V.jsxs(al,{path:"/",element:V.jsx(lN,{}),children:[V.jsx(al,{path:"/",element:V.jsx($N,{})}),V.jsx(al,{path:"/quiz",element:V.jsx(zN,{})}),V.jsx(al,{path:"/result",element:V.jsx(MN,{})})]})})})}const AN="modulepreload",LN=function(e){return"/TW-Values/"+e},ay={},jN=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");i=Promise.all(n.map(a=>{if(a=LN(a),a in ay)return;ay[a]=!0;const l=a.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const p=o[f];if(p.href===a&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":AN,l||(d.as="script",d.crossOrigin=""),d.href=a,document.head.appendChild(d),l)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})},FN=e=>{e&&e instanceof Function&&jN(()=>import("./web-vitals-BA3w2fPb.js"),__vite__mapDeps([])).then(({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)})},DN={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class wu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||DN,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,s]=a;for(let c=0;c{let[l,s]=a;for(let c=0;c{e=r,t=i});return n.resolve=e,n.reject=t,n}function ly(e){return e==null?"":""+e}function HN(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const VN=/###/g;function kl(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(VN,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function GN(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>UN[t]):e}class KN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const XN=[" ",",","?","!",";"],YN=new KN(20);function QN(e,t,n){t=t||"",n=n||"";const r=XN.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=YN.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Wg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class cy extends Pd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const s=xu(this.data,l);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),s||!a||typeof r!="string"?s:Wg(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),sy(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let s=xu(this.data,l)||{};i?rC(s,r,o):s={...s,...r},sy(this.data,l,s),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var iC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const uy={};class Cu extends Pd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),HN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!QN(t,r,i);if(a&&!l){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),s=l[l.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:a}const f=this.resolve(t,n);let p=f&&f.res;const y=f&&f.usedKey||a,b=f&&f.exactUsedKey||a,v=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(v)<0&&!(typeof m=="string"&&v==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,p,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=v==="[object Array]",S=w?[]:{},C=w?b:y;for(const E in p)if(Object.prototype.hasOwnProperty.call(p,E)){const $=`${C}${o}${E}`;S[E]=this.translate($,{...n,joinArrays:!1,ns:l}),S[E]===$&&(S[E]=p[E])}p=S}}else if(g&&typeof m=="string"&&v==="[object Array]")p=p.join(m),p&&(p=this.extendTranslation(p,t,n,r));else{let w=!1,S=!1;const C=n.count!==void 0&&typeof n.count!="string",E=Cu.hasDefaultValue(n),$=C?this.pluralResolver.getSuffix(c,n.count,n):"",k=n.ordinal&&C?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",O=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),P=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&E&&(w=!0,p=P),this.isValidLookup(p)||(S=!0,p=a);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:p,M=E&&P!==p&&this.options.updateMissing;if(S||w||M){if(this.logger.log(M?"updateKey":"missingKey",c,s,a,M?P:p),o){const R=this.resolve(a,{...n,keySeparator:!1});R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let R=0;R{const F=E&&N!==p?N:T;this.options.missingKeyHandler?this.options.missingKeyHandler(R,s,I,F,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,s,I,F,M,n),this.emit("missingKey",R,s,I,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?A.forEach(R=>{const I=this.pluralResolver.getSuffixes(R,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&I.indexOf(`${this.options.pluralSeparator}zero`)<0&&I.push(`${this.options.pluralSeparator}zero`),I.forEach(N=>{_([R],a+N,n[`defaultValue${N}`]||P)})}):_(A,a,P))}p=this.extendTranslation(p,t,n,f,r),S&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(S||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,w?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),c){const p=t.match(this.interpolator.nestingRegexp),y=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(s,n),d=c.key;i=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",y=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!uy[`${v[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(uy[`${v[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(m=>{if(this.isValidLookup(r))return;a=m;const g=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,d,m,x,n);else{let w;p&&(w=this.pluralResolver.getSuffix(m,n.count,n));const S=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(g.push(d+w),n.ordinal&&w.indexOf(C)===0&&g.push(d+w.replace(C,this.options.pluralSeparator)),y&&g.push(d+S)),b){const E=`${d}${this.options.contextSeparator}${n.context}`;g.push(E),p&&(g.push(E+w),n.ordinal&&w.indexOf(C)===0&&g.push(E+w.replace(C,this.options.pluralSeparator)),y&&g.push(E+S))}}let h;for(;h=g.pop();)this.isValidLookup(r)||(o=h,r=this.getResource(m,x,h,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function qf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class dy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rr.create("languageUtils")}getScriptPartFromCode(t){if(t=Su(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Su(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=qf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=qf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=qf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&o.indexOf(i)===0)return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let ZN=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],JN={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const eA=["v1","v2","v3"],tA=["v4"],fy={zero:0,one:1,two:2,few:3,many:4,other:5};function nA(){const e={};return ZN.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:JN[t.fc]}})}),e}class rA{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Rr.create("pluralResolver"),(!this.options.compatibilityJSON||tA.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nA()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Su(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>fy[i]-fy[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!eA.includes(this.options.compatibilityJSON)}}function py(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=qN(e,t,n);return!o&&i&&typeof n=="string"&&(o=Wg(e,n,r),o===void 0&&(o=Wg(t,n,r))),o}class iA{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:GN,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Bo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Bo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Bo(n.nestingPrefix):n.nestingPrefixEscaped||Bo("$t("),this.nestingSuffix=n.nestingSuffix?Bo(n.nestingSuffix):n.nestingSuffixEscaped||Bo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(b){return b.replace(/\$/g,"$$$$")}const d=b=>{if(b.indexOf(this.formatSeparator)<0){const g=py(n,s,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,r,{...i,...n,interpolationkey:b}):g}const v=b.split(this.formatSeparator),x=v.shift().trim(),m=v.join(this.formatSeparator).trim();return this.format(py(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>c(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?c(this.escape(b)):c(b)}].forEach(b=>{for(l=0;o=b.regex.exec(t);){const v=o[1].trim();if(a=d(v),a===void 0)if(typeof f=="function"){const m=f(t,o,i);a=typeof m=="string"?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=ly(a));const x=b.safeValue(a);if(t=t.replace(o[0],x),p?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function l(s,c){const d=this.nestingOptionsSeparator;if(s.indexOf(d)<0)return s;const f=s.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;s=f[0],p=this.interpolate(p,a);const y=p.match(/'/g),b=p.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,v),`${s}${d}${p}`}return delete a.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=d.shift(),s=d,c=!0}if(o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=ly(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=s.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function oA(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...s]=a.split(":"),c=s.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=c),c==="false"&&(n[l.trim()]=!1),c==="true"&&(n[l.trim()]=!0),isNaN(c)||(n[l.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function Mo(e){const t={};return function(r,i,o){const a=i+JSON.stringify(o);let l=t[a];return l||(l=e(Su(i),o),t[a]=l),l(r)}}class aA{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rr.create("formatter"),this.options=t,this.formats={number:Mo((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Mo((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Mo((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Mo((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Mo((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mo(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,s)=>{const{formatName:c,formatOptions:d}=oA(s);if(this.formats[c]){let f=l;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[c](l,y,{...d,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}function lA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class sA extends Pd{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Rr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},s={};return t.forEach(c=>{let d=!0;n.forEach(f=>{const p=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),s[f]===void 0&&(s[f]=!0)))}),d||(l[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),r&&this.store.addResourceBundle(o,a,r),this.state[t]=n?-1:2;const l={};this.queue.forEach(s=>{WN(s.loaded,[o],a),lA(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(c=>{l[c]||(l[c]={});const d=s.loaded[c];d.length&&d.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&i{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,d)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const c=s(t,n);c&&typeof c.then=="function"?c.then(d=>l(null,d)).catch(l):l(null,c)}catch(c){l(c)}return}return s(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(t,n,r,i,s):d=c(t,n,r,i),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else c(t,n,r,i,l,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function gy(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function my(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ac(){}function cA(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ts extends Pd{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=my(t),this.services={},this.logger=Rr,this.modules={external:[]},cA(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=gy();this.options={...i,...this.options,...my(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?Rr.init(o(this.modules.logger),this.options):Rr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=aA);const f=new dy(this.options);this.store=new cy(this.options.resources,this.options);const p=this.services;p.logger=Rr,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new rA(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new iA(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new sA(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(y){for(var b=arguments.length,v=new Array(b>1?b-1:0),x=1;x1?b-1:0),x=1;x{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ac),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const s=tl(),c=()=>{const d=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ac;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>a(s)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=tl();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ac),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&iC.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=tl();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},l=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const c=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{a(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(a,l){let s;if(typeof l!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),f=2;f`${s.keyPrefix}${p}${b}`):y=s.keyPrefix?`${s.keyPrefix}${p}${a}`:a,i.t(y,s)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const c=this.services.backendConnector.state[`${l}|${s}`];return c===-1||c===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=tl();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=tl();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new dy(gy());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ts(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ac;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new ts(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new cy(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Cu(o.services,i),o.translator.on("*",function(l){for(var s=arguments.length,c=new Array(s>1?s-1:0),d=1;d({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),VS=Xt("Typography",e=>[KM(e)],XM),YM=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:l=!0,value:s,onSave:c,onCancel:d,onEnd:f,component:p,enterIcon:y=u.createElement(FM,null)}=e,b=u.useRef(null),v=u.useRef(!1),x=u.useRef(),[m,g]=u.useState(s);u.useEffect(()=>{g(s)},[s]),u.useEffect(()=>{if(b.current&&b.current.resizableTextArea){const{textArea:A}=b.current.resizableTextArea;A.focus();const{length:B}=A.value;A.setSelectionRange(B,B)}},[]);const h=A=>{let{target:B}=A;g(B.value.replace(/[\n\r]/g,""))},w=()=>{v.current=!0},E=()=>{v.current=!1},S=A=>{let{keyCode:B}=A;v.current||(x.current=B)},C=()=>{c(m.trim())},$=A=>{let{keyCode:B,ctrlKey:_,altKey:R,metaKey:I,shiftKey:N}=A;x.current===B&&!v.current&&!_&&!R&&!I&&!N&&(B===le.ENTER?(C(),f==null||f()):B===le.ESC&&d())},k=()=>{C()},O=p?`${t}-${p}`:"",[P,z,T]=VS(t),M=q(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl"},r,O,z,T);return P(u.createElement("div",{className:M,style:i},u.createElement(d9,{ref:b,maxLength:a,value:m,onChange:h,onKeyDown:S,onKeyUp:$,onCompositionStart:w,onCompositionEnd:E,onBlur:k,"aria-label":n,rows:1,autoSize:l}),y!==null?gd(y,{className:`${t}-edit-content-confirm`}):null))},QM=YM;function Ff(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ZM=(e,t)=>{const n=u.useRef(!1);u.useEffect(()=>{n.current?e():n.current=!0},t)};var JM=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:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:l,direction:s,style:c}=e,d=JM(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:y}=u.useContext(Ve),b=s??p;let v=t;a&&(v=zi(t,a));const x=f("typography",n),[m,g,h]=VS(x),w=q(x,y==null?void 0:y.className,{[`${x}-rtl`]:b==="rtl"},i,o,g,h),E=Object.assign(Object.assign({},y==null?void 0:y.style),c);return m(u.createElement(r,Object.assign({className:w,style:E,ref:v},d),l))}),WS=e7;function qS(e){const t=typeof e;return t==="string"||t==="number"}function t7(e){let t=0;return e.forEach(n=>{qS(n)?t+=String(n).length:t+=1}),t}function Df(e,t){let n=0;const r=[];for(let i=0;it){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=s}return e}const n7=0,ic=1,K1=2,Hf=3,Vf=4,r7=e=>{let{enabledMeasure:t,children:n,text:r,width:i,fontSize:o,rows:a,onEllipsis:l}=e;const[[s,c,d],f]=u.useState([0,0,0]),[p,y]=u.useState(0),[b,v]=u.useState(n7),[x,m]=u.useState(0),g=u.useRef(null),h=u.useRef(null),w=u.useMemo(()=>vr(r),[r]),E=u.useMemo(()=>t7(w),[w]),S=u.useMemo(()=>!t||b!==Hf?p&&b!==Vf&&t?n(Df(w,p),p{t&&i&&o&&E&&(v(ic),f([0,Math.ceil(E/2),E]))},[t,i,o,r,E,a]),xt(()=>{var O;b===ic&&m(((O=g.current)===null||O===void 0?void 0:O.offsetHeight)||0)},[b]),xt(()=>{var O,P;if(x){if(b===ic){const z=((O=h.current)===null||O===void 0?void 0:O.offsetHeight)||0,T=a*x;z<=T?(v(Vf),l(!1)):v(K1)}else if(b===K1)if(s!==d){const z=((P=h.current)===null||P===void 0?void 0:P.offsetHeight)||0,T=a*x;let M=s,A=d;s===d-1?A=s:z<=T?M=c:A=c;const B=Math.ceil((M+A)/2);f([M,B,A])}else v(Hf),y(c),l(!0)}},[b,s,d,a,x]);const C={width:i,whiteSpace:"normal",margin:0,padding:0},$=(O,P,z)=>u.createElement("span",{"aria-hidden":!0,ref:P,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(o/2)*2},z)},O),k=(O,P)=>{const z=Df(w,O);return $(n(z,!0),P,C)};return u.createElement(u.Fragment,null,S,t&&b!==Hf&&b!==Vf&&u.createElement(u.Fragment,null,$("lg",g,{wordBreak:"keep-all",whiteSpace:"nowrap"}),b===ic?$(n(w,!1),h,C):k(c,h)))},i7=r7,o7=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:u.createElement(gu,Object.assign({open:n?void 0:!1},i),r)},a7=o7;var l7=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{prefixCls:o,className:a,style:l,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:y,component:b,title:v}=e,x=l7(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:g}=u.useContext(Ve),[h]=M8("Text"),w=u.useRef(null),E=u.useRef(null),S=m("typography",o),C=Fn(x,["mark","code","delete","underline","strong","keyboard","italic"]),[$,k]=Ff(p),[O,P]=hn(!1,{value:k.editing}),{triggerType:z=["icon"]}=k,T=te=>{var he;te&&((he=k.onStart)===null||he===void 0||he.call(k)),P(te)};ZM(()=>{var te;O||(te=E.current)===null||te===void 0||te.focus()},[O]);const M=te=>{te==null||te.preventDefault(),T(!0)},A=te=>{var he;(he=k.onChange)===null||he===void 0||he.call(k,te),T(!1)},B=()=>{var te;(te=k.onCancel)===null||te===void 0||te.call(k),T(!1)},[_,R]=Ff(y),[I,N]=u.useState(!1),F=u.useRef(null),D={};R.format&&(D.format=R.format);const U=()=>{F.current&&clearTimeout(F.current)},K=te=>{var he;te==null||te.preventDefault(),te==null||te.stopPropagation(),NM(R.text||String(d)||"",D),N(!0),U(),F.current=setTimeout(()=>{N(!1)},3e3),(he=R.onCopy)===null||he===void 0||he.call(R,te)};u.useEffect(()=>U,[]);const[G,X]=u.useState(!1),[Q,Z]=u.useState(!1),[ne,fe]=u.useState(!1),[re,be]=u.useState(!1),[pe,xe]=u.useState(!1),[ce,Re]=u.useState(!0),[ye,oe]=Ff(f,{expandable:!1}),Y=ye&&!ne,{rows:ge=1}=oe,ie=u.useMemo(()=>!Y||oe.suffix!==void 0||oe.onEllipsis||oe.expandable||$||_,[Y,oe,$,_]);xt(()=>{ye&&!ie&&(X(Fv("webkitLineClamp")),Z(Fv("textOverflow")))},[ie,ye]);const we=u.useMemo(()=>ie?!1:ge===1?Q:G,[ie,Q,G]),Ce=Y&&(we?pe:re),Ae=Y&&ge===1&&we,De=Y&&ge>1&&we,Ee=te=>{var he;fe(!0),(he=oe.onExpand)===null||he===void 0||he.call(oe,te)},[ct,$e]=u.useState(0),[ue,Te]=u.useState(0),Pe=(te,he)=>{let{offsetWidth:Je}=te;var ke;$e(Je),Te(parseInt((ke=window.getComputedStyle)===null||ke===void 0?void 0:ke.call(window,he).fontSize,10)||0)},ut=te=>{var he;be(te),re!==te&&((he=oe.onEllipsis)===null||he===void 0||he.call(oe,te))};u.useEffect(()=>{const te=w.current;if(ye&&we&&te){const he=De?te.offsetHeight{const te=w.current;if(typeof IntersectionObserver>"u"||!te||!we||!Y)return;const he=new IntersectionObserver(()=>{Re(!!te.offsetParent)});return he.observe(te),()=>{he.disconnect()}},[we,Y]);let Ke={};oe.tooltip===!0?Ke={title:(n=k.text)!==null&&n!==void 0?n:d}:u.isValidElement(oe.tooltip)?Ke={title:oe.tooltip}:typeof oe.tooltip=="object"?Ke=Object.assign({title:(r=k.text)!==null&&r!==void 0?r:d},oe.tooltip):Ke={title:oe.tooltip};const dt=u.useMemo(()=>{const te=he=>["string","number"].includes(typeof he);if(!(!ye||we)){if(te(k.text))return k.text;if(te(d))return d;if(te(v))return v;if(te(Ke.title))return Ke.title}},[ye,we,v,Ke.title,Ce]);if(O)return u.createElement(QM,{value:(i=k.text)!==null&&i!==void 0?i:typeof d=="string"?d:"",onSave:A,onCancel:B,onEnd:k.onEnd,prefixCls:S,className:a,style:l,direction:g,component:b,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const tt=()=>{const{expandable:te,symbol:he}=oe;if(!te)return null;let Je;return he?Je=he:Je=h==null?void 0:h.expand,u.createElement("a",{key:"expand",className:`${S}-expand`,onClick:Ee,"aria-label":h==null?void 0:h.expand},Je)},Le=()=>{if(!$)return;const{icon:te,tooltip:he}=k,Je=vr(he)[0]||(h==null?void 0:h.edit),ke=typeof Je=="string"?Je:"";return z.includes("icon")?u.createElement(gu,{key:"edit",title:he===!1?"":Je},u.createElement(U1,{ref:E,className:`${S}-edit`,onClick:M,"aria-label":ke},te||u.createElement(PM,{role:"button"}))):null},We=()=>{if(!_)return null;const{tooltips:te,icon:he}=R,Je=X1(te),ke=X1(he),qe=I?oc(Je[1],h==null?void 0:h.copied):oc(Je[0],h==null?void 0:h.copy),ze=I?h==null?void 0:h.copied:h==null?void 0:h.copy,_e=typeof qe=="string"?qe:ze;return u.createElement(gu,{key:"copy",title:qe},u.createElement(U1,{className:q(`${S}-copy`,{[`${S}-copy-success`]:I,[`${S}-copy-icon-only`]:d==null}),onClick:K,"aria-label":_e},I?oc(ke[1],u.createElement(Vx,null),!0):oc(ke[0],u.createElement($M,null),!0)))},He=te=>[te&&tt(),Le(),We()],yt=te=>[te&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},c7),oe.suffix,He(te)];return u.createElement(Tr,{onResize:Pe,disabled:!Y},te=>u.createElement(a7,{tooltipProps:Ke,enabledEllipsis:Y,isEllipsis:Ce},u.createElement(WS,Object.assign({className:q({[`${S}-${s}`]:s,[`${S}-disabled`]:c,[`${S}-ellipsis`]:ye,[`${S}-single-line`]:Y&&ge===1,[`${S}-ellipsis-single-line`]:Ae,[`${S}-ellipsis-multiple-line`]:De},a),prefixCls:o,style:Object.assign(Object.assign({},l),{WebkitLineClamp:De?ge:void 0}),component:b,ref:zi(te,w,t),direction:g,onClick:z.includes("text")?M:void 0,"aria-label":dt==null?void 0:dt.toString(),title:v},C),u.createElement(i7,{enabledMeasure:Y&&!we,text:d,rows:ge,width:ct,fontSize:ue,onEllipsis:ut},(he,Je)=>{let ke=he;return he.length&&Je&&dt&&(ke=u.createElement("span",{key:"show-content","aria-hidden":!0},ke)),s7(e,u.createElement(u.Fragment,null,ke,yt(Je)))}))))}),Rd=u7;var d7=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{ellipsis:n,rel:r}=e,i=d7(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,u.createElement(Rd,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),p7=f7,g7=u.forwardRef((e,t)=>u.createElement(Rd,Object.assign({ref:t},e,{component:"div"}))),m7=g7;var h7=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{ellipsis:n}=e,r=h7(e,["ellipsis"]);const i=u.useMemo(()=>n&&typeof n=="object"?Fn(n,["expandable","rows"]):n,[n]);return u.createElement(Rd,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},y7=u.forwardRef(v7);var b7=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{level:n=1}=e,r=b7(e,["level"]);let i;return w7.includes(n)?i=`h${n}`:i="h1",u.createElement(Rd,Object.assign({ref:t},r,{component:i}))}),S7=x7,ws=WS;ws.Text=y7;ws.Link=p7;ws.Title=S7;ws.Paragraph=m7;const za=ws;var C7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z"}}]},name:"diff",theme:"filled"};const E7=C7;var $7=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:E7}))};const Y1=u.forwardRef($7);var k7={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"};const O7=k7;var R7=function(t,n){return u.createElement(vt,ae({},t,{ref:n,icon:O7}))};const P7=u.forwardRef(R7),xs=()=>{const e=jz.useBreakpoint();return e.xxl?{...e,size:"xxl"}:e.xl?{...e,size:"xl"}:e.lg?{...e,size:"lg"}:e.md?{...e,size:"md"}:{...e,size:"sm"}},US=()=>({sm:{maxWidth:"1080px"},md:{maxWidth:"1080px"},lg:{maxWidth:"1080px"},xl:{maxWidth:"1080px"},xxl:{maxWidth:"1080px"}})[xs().size],xh=()=>({sm:{maxWidth:"960px"},md:{maxWidth:"960px"},lg:{maxWidth:"960px"},xl:{maxWidth:"960px"},xxl:{maxWidth:"960px"}})[xs().size],_7="tw-values",T7="0.35.0",I7="module",z7={"@ant-design/icons":"^5.1.4","@stylexjs/stylex":"^0.5.1",antd:"^5.7.0",i18next:"^23.2.11",react:"^18.2.0","react-dom":"^18.2.0","react-i18next":"^13.0.2","react-router-dom":"^6.14.1"},B7={start:"vite",test:"vitest","lint:check":"eslint ./src",lint:"eslint --fix ./src",build:"tsc && vite build",preview:"vite preview",deploy:"gh-pages -d dist"},M7={extends:["react-app","react-app/jest"]},N7={production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},A7={"@vitejs/plugin-react":"^4.2.1",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.33.2","gh-pages":"^5.0.0",prettier:"^3.2.4",typescript:"^5.3.3",vite:"^5.0.11","vite-plugin-stylex":"^0.5.0","vite-tsconfig-paths":"^4.2.3",vitest:"^1.2.0"},Q1={name:_7,version:T7,private:!0,type:I7,dependencies:z7,scripts:B7,eslintConfig:M7,browserslist:N7,devDependencies:A7};function L7(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function J1(e,t,n){e.loadNamespaces(t,GS(e,n))}function ey(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,GS(e,r))}function j7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const c=t.services.backendConnector.state[`${l}|${s}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}function F7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Hg("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):j7(e,t,n)}const D7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,H7={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},V7=e=>H7[e],W7=e=>e.replace(D7,V7);let Vg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W7};function q7(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vg={...Vg,...e}}function U7(){return Vg}let KS;function G7(e){KS=e}function K7(){return KS}const X7={type:"3rdParty",init(e){q7(e.options.react),G7(e)}},Y7=u.createContext();class Q7{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Z7=(e,t)=>{const n=u.useRef();return u.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function Ss(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=u.useContext(Y7)||{},o=n||r||K7();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Q7),!o){Hg("You will need to pass in an i18next instance by using initReactI18next");const h=(E,S)=>typeof S=="string"?S:S&&typeof S=="object"&&typeof S.defaultValue=="string"?S.defaultValue:Array.isArray(E)?E[E.length-1]:E,w=[h,{},!1];return w.t=h,w.i18n={},w.ready=!1,w}o.options.react&&o.options.react.wait!==void 0&&Hg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...U7(),...o.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let c=e||i||o.options&&o.options.defaultNS;c=typeof c=="string"?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(c);const d=(o.isInitialized||o.initializedStoreOnce)&&c.every(h=>F7(h,o,a));function f(){return o.getFixedT(t.lng||null,a.nsMode==="fallback"?c:c[0],s)}const[p,y]=u.useState(f);let b=c.join();t.lng&&(b=`${t.lng}${b}`);const v=Z7(b),x=u.useRef(!0);u.useEffect(()=>{const{bindI18n:h,bindI18nStore:w}=a;x.current=!0,!d&&!l&&(t.lng?ey(o,t.lng,c,()=>{x.current&&y(f)}):J1(o,c,()=>{x.current&&y(f)})),d&&v&&v!==b&&x.current&&y(f);function E(){x.current&&y(f)}return h&&o&&o.on(h,E),w&&o&&o.store.on(w,E),()=>{x.current=!1,h&&o&&h.split(" ").forEach(S=>o.off(S,E)),w&&o&&w.split(" ").forEach(S=>o.store.off(S,E))}},[o,b]);const m=u.useRef(!0);u.useEffect(()=>{x.current&&!m.current&&y(f),m.current=!1},[o,s]);const g=[p,o,d];if(g.t=p,g.i18n=o,g.ready=d,d||!d&&!l)return g;throw new Promise(h=>{t.lng?ey(o,t.lng,c,()=>h()):J1(o,c,()=>h())})}const{Title:J7}=za,eN=()=>{const e=as(),{i18n:t}=Ss(),n=[{key:"zhtw",text:"繁"},{key:"zhcn",text:"简"},{key:"en",text:"EN"}],r=i=>{localStorage.setItem("ui.language",i),t.changeLanguage(i)};return H.jsx(kd.Header,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"0"},children:H.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{...US(),width:"100%",margin:"0 auto"},children:[H.jsx(J7,{level:1,style:{cursor:"pointer",color:"white",margin:"0 5px",padding:"0"},onClick:()=>{e("/")},children:"TW Values"}),H.jsxs(v9,{size:8,children:[n.map((i,o)=>H.jsx($c,{onClick:()=>{r(i.key)},style:{backgroundColor:"transparent",borderColor:t.language===i.key?"transparent":"white",color:"white",padding:"0 5px",fontSize:"medium"},children:i.text},o)),H.jsx($c,{type:"link",href:`https://github.com/TWValues/TW-Values/tree/v${Q1.version}`,target:"_blank",style:{backgroundColor:"transparent",borderColor:"transparent",color:"white",padding:"0 5px",fontSize:"medium"},children:`v${Q1.version}`}),H.jsx($c,{type:"link",href:"https://github.com/TWValues/TW-Values",target:"_blank",icon:H.jsx(P7,{style:{color:"white",fontSize:"x-large"}}),style:{margin:"0 5px"}})]})]})})},{Title:ty}=za,tN=()=>{const e=as();return H.jsx(kd.Footer,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"5px"},children:H.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{...US(),width:"100%",margin:"0 auto"},children:[H.jsx(ty,{level:5,style:{cursor:"pointer",color:"white",margin:"auto 0 auto 0"},onClick:()=>{e("/")},children:"TW Values"}),H.jsx(ty,{level:5,style:{color:"white",margin:"auto 0 auto 0"},children:"Copyright (c) 2023-2024 TW Values"})]})})},nN=e=>e,ny=(e,t,n=nN)=>e.reduce((r,i)=>(r.length>0&&(r+=t),r+=n(i),r),""),rN="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3cpath%20d='M%200%20150%20Q%20200%200%20400%20150'%20stroke='blue'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20150%20Q%20200%20300%20400%20150'%20stroke='green'%20stroke-width='4'%20fill='none'/%3e%3cpath%20d='M%200%200%20Q%2050%20100%20200%20150%20Q%20350%20200%20400%20300'%20stroke='orange'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20300%20Q%20150%20250%20200%20150%20Q%20250%2050%20400%200'%20stroke='magenta'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20200%20Q%20130%20240%20180%20300'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%20180%200%20Q%20300%20150%20400%20200'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",iN="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3ccircle%20r='18'%20cx='120'%20cy='30'%20stroke='red'%20stroke-width='4'%20fill='none'%20/%3e%3cpolygon%20points='280,240%20260,275%20300,275'%20stroke='limegreen'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='350'%20y1='50'%20x2='380'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='380'%20y1='50'%20x2='350'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3crect%20width='35'%20height='35'%20x='80'%20y='140'%20rx='5'%20ry='5'%20stroke='purple'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",{Content:oN}=kd,aN=()=>{const e=[rN,iN],[t,n]=u.useState(e.map(()=>0),[]);return u.useEffect(()=>{window.addEventListener("scroll",r=>{const i=r.target.documentElement.scrollTop;n(e.map((o,a)=>`${(2*a+1)*i*-.01}em`))})}),H.jsxs(kd,{style:{minHeight:"100vh",minWidth:"460px",overflow:"auto"},children:[H.jsx(eN,{}),H.jsx(oN,{style:{display:"flex",justifyContent:"center",alignItems:"center",backgroundImage:ny(e,",",r=>`url("${r}")`),backgroundRepeat:"repeat",backgroundPositionY:ny(t,","),transition:"all 0.25s ease-out 0s",width:"100%"},children:H.jsx(x3,{})}),H.jsx(tN,{})]})},{Text:Wf}=za,Li=({title:e,leftTitle:t,rightTitle:n,leftColor:r,rightColor:i,leftDescription:o,rightDescription:a})=>{const l=xs(),s=()=>({sm:{fontSize:"x-large"},md:{fontSize:"x-large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],c=()=>({sm:{fontSize:"large"},md:{fontSize:"large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],d=()=>({sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"large"},xl:{fontSize:"large"},xxl:{fontSize:"large"}})[l.size],f=({title:v,description:x,color:m})=>H.jsxs(Nt,{vertical:!0,justify:"start",align:"center",gap:10,style:{height:"100%",margin:"2px",padding:"10px",borderColor:m,borderStyle:"solid",borderWidth:"2px",borderRadius:"20px"},children:[H.jsx(Wf,{style:{...c(),fontWeight:"bold",textTransform:"uppercase",color:m},children:v}),H.jsx(Wf,{style:{...d()},children:x})]}),p=()=>H.jsx(Wf,{style:{...s(),margin:"10px",textTransform:"uppercase",textAlign:"center",whiteSpace:"nowrap"},children:e}),y=()=>H.jsx(f,{title:t,description:o,color:r}),b=()=>H.jsx(f,{title:n,description:a,color:i});return l.lg?H.jsxs("div",{style:{display:"grid",gridTemplateColumns:"320px auto 320px",width:"100%"},children:[H.jsx(y,{}),H.jsx(p,{}),H.jsx(b,{})]}):H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[H.jsx(p,{}),H.jsxs("div",{style:{display:"grid",gridTemplateColumns:l.md?"45% 10% 45%":"50% 0% 50%",alignItems:"start",width:"100%"},children:[H.jsx(y,{}),H.jsx("div",{}),H.jsx(b,{})]})]})},lN="data:image/svg+xml,%3csvg%20fill='%23DC143C'%20height='256px'%20width='256px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20455.00%20455.00'%20xml:space='preserve'%20stroke='%23DC143C'%20transform='matrix(1,%200,%200,%201,%200,%200)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke='%23CCCCCC'%20stroke-width='2.73'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpolygon%20points='150.618,395%20130.5,455%20324.5,455%20304.382,395%20'%3e%3c/polygon%3e%3cpath%20d='M0,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H0z'%3e%3c/path%3e%3cpath%20d='M318,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H318z'%3e%3c/path%3e%3cpath%20d='M68.5,148.477L103.012,230h32.577l-44.45-105H212.5v240h30V125h121.362l-44.45,105h32.577l34.511-81.523L421.011,230%20h32.578l-57.15-135H242.5V55.977c8.964-5.188,15-14.874,15-25.977c0-16.569-13.431-30-30-30s-30,13.431-30,30%20c0,11.102,6.036,20.789,15,25.977V95H58.561L1.411,230h32.578L68.5,148.477z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",sN="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20stroke='%237B68EE'%20stroke-width='1.5'%3e%3c/circle%3e%3cpath%20d='M12%206V18'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3cpath%20d='M15%209.5C15%208.11929%2013.6569%207%2012%207C10.3431%207%209%208.11929%209%209.5C9%2010.8807%2010.3431%2012%2012%2012C13.6569%2012%2015%2013.1193%2015%2014.5C15%2015.8807%2013.6569%2017%2012%2017C10.3431%2017%209%2015.8807%209%2014.5'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",cN="/TW-Values/assets/Globe-B1wDQrZS.svg",uN="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='M5%2022V14M5%2014V4M5%2014L7.47067%2013.5059C9.1212%2013.1758%2010.8321%2013.3328%2012.3949%2013.958C14.0885%2014.6354%2015.9524%2014.7619%2017.722%2014.3195L17.8221%2014.2945C18.4082%2014.148%2018.6861%2013.4769%2018.3753%2012.9589L16.8147%2010.3578C16.4732%209.78863%2016.3024%209.50405%2016.2619%209.19451C16.2451%209.06539%2016.2451%208.93461%2016.2619%208.80549C16.3024%208.49595%2016.4732%208.21137%2016.8147%207.64221L18.0932%205.51132C18.4278%204.9536%2017.9211%204.26972%2017.2901%204.42746C15.8013%204.79967%2014.2331%204.69323%2012.8082%204.12329L12.3949%203.95797C10.8321%203.33284%209.1212%203.17576%207.47067%203.50587L5%204M5%204V2'%20stroke='%23ff8c00'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",dN="data:image/svg+xml,%3csvg%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20width='800px'%20height='800px'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD700;}%20%3c/style%3e%3cg%3e%3crect%20x='146.663'%20y='55.252'%20class='st0'%20width='46.389'%20height='17.681'/%3e%3cpolygon%20class='st0'%20points='206.033,149.149%20188.641,78.726%20163.786,78.726%20155.501,78.726%20155.501,97.782%20167.691,109.972%20175.385,171.518%20'/%3e%3cpath%20class='st0'%20d='M368.801,250.766l-30.247-25.092c-2.906-2.413-6.655-3.557-10.409-3.176c-3.755,0.382-7.2,2.242-9.568,5.188%20l-10.554,13.125l16.649,87.072l46.12-57.456C375.613,264.429,374.725,255.677,368.801,250.766z'/%3e%3crect%20x='138.102'%20y='452.348'%20class='st0'%20width='225.347'%20height='59.652'/%3e%3cpath%20class='st0'%20d='M223.615,127.384c-0.152,0.565-0.401,1.085-0.52,1.663c19.45-3.774,39.617-3.82,59.081-0.145%20c-0.026-0.125-0.092-0.243-0.118-0.368l22.843-14.604c0.526-0.329,0.73-0.999,0.486-1.565c-0.25-0.572-0.874-0.882-1.472-0.73%20l-26.315,6.569c-0.572-0.842-1.243-1.578-1.894-2.354l8.989-25.848c0.204-0.578-0.04-1.217-0.572-1.519%20c-0.533-0.302-1.196-0.184-1.591,0.283l-17.294,20.535c-2.005-0.131-4.011-0.184-6.023-0.256l-5.411-29.346%20c-0.119-0.598-0.638-1.039-1.25-1.039c-0.611,0-1.137,0.441-1.242,1.039l-5.432,29.372c-2.478,0.099-4.951,0.145-7.423,0.342%20l-17.379-20.647c-0.394-0.467-1.065-0.592-1.604-0.283c-0.532,0.296-0.77,0.94-0.572,1.512l9.304,26.769l1.184-0.671%20c-0.795,0.966-1.539,1.96-2.209,3.025l0.92-2.13l-26.512-6.622c-0.604-0.145-1.222,0.158-1.472,0.73%20c-0.244,0.572-0.04,1.236,0.486,1.572L223.615,127.384z'/%3e%3cpath%20class='st0'%20d='M296.076,213.608c-0.868-4.57-3.938-8.41-8.193-10.271l-65.281-28.505l-9.107-23.198l-41.34,32.674%20c-5.688,4.49-7.042,12.572-3.117,18.667l15.459,24.046l-2.078,1.604c-5.109,3.932-6.904,10.83-4.346,16.748l10.04,23.264%20l20.404-21.048l4.754,4.616l-36.093,37.243l5.063,40.518l18.819-19.41l4.76,4.616l-28.07,28.958l-5.458,101.59h156.574%20l-4.359-28.972l9.942-2.492L296.076,213.608z%20M243.993,410.305l-6.312-2.026l28.162-87.821l6.312,2.025L243.993,410.305z'/%3e%3cpath%20class='st0'%20d='M157.71,49.176h8.778c-3.557-3.288-6.819-13.19,1.992-21.541c3.866-6.075,3.866-6.075,3.866-6.075%20s9.916,14.623,3.354,27.616h6.312c0,0,6.628-3.866,7.18-18.779c0.552-14.913-12.152-29.82-18.78-30.372%20c-6.628-0.552,1.105,8.278-12.704,17.668C143.901,27.083,149.977,45.31,157.71,49.176z'/%3e%3cpath%20class='st0'%20d='M228.587,164.582l-3.051,3.051l0.526,1.341l40.367,17.629c7.088-3.551,12.552-9.817,15.084-17.432%20l-28.051-31.996L228.587,164.582z'/%3e%3cpath%20class='st0'%20d='M283.057,159.347l-0.243-23.296l-1.874-0.356c-7.108-1.348-14.355-2.157-21.64-2.466l23.73,27.071%20C283.037,159.985,283.057,159.67,283.057,159.347z'/%3e%3cpath%20class='st0'%20d='M222.511,136.189l0.244,23.796c0,0.02,0,0.033,0,0.053l24.756-26.821c-7.785,0.283-15.55,1.137-23.146,2.616%20L222.511,136.189z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",fN="/TW-Values/assets/Crown-D3eiD2Sz.svg",pN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='625'%20height='625'%3e%3cpath%20d='m10%20207l38%2030-36%2069c-18%2032%2013%2063%2033%2074%2019%2011%2050%2012%2078%2012l51-83%2038%2021-66-123-135%201m6%20169l82%20152c17%2021%2048%2026%2080%2025h87v-144l-165-1c-26%202-59-4-85-32m517-280l-45%2019-43-65c-19-31-61-19-80-7-19%2012-34%2038-48%2062l48%2085-37%2023%20140%202%2065-119zm-151-77l-173-2c-26%204-46%2029-61%2058l-42%2076%20126%2070%2081-143c11-23%2032-50%2069-58m8%20586l5-48%2078-6c37-2%2046-44%2045-67-1-22-16-48-31-72l-97.16.925-3-43-69%20122%2073%20114m140-94l85-150c9-25-3-54-21-81l-46-74-122%2076%2086%20140c15%2021%2028%2052%2017%2089z'%20fill='%23006E27'/%3e%3c/svg%3e",gN="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%238B4513'%20d='M4.4%201.3c-0.6%200.3-0.8%201.1-0.4%201.5%200.5-0.9%201.3-0.6%202.5%200.4%200.8%200.7%201.9%200.1%201.9%200.1s0.2%201.2%201.7%201.4c1.7%200.2%202.3-0.8%202.3-0.8s0.4%201%201.9%200.4c1.1-0.4%200.7-1.1%200.7-1.1s1%200%201-0.7c0-0.9-1.1-0.8-1.1-0.8s0.2-1-0.9-1.1c-1-0.1-1.3%200.5-1.3%200.5s-0.3-1.1-1.8-1.1c-1.4%200-1.9%201.3-1.9%201.3s-0.4-0.6-1.6-0.6c-0.9%200-1.3%200.7-1.3%200.7s-1.1-0.5-1.7-0.1z'%3e%3c/path%3e%3cpath%20fill='%238B4513'%20d='M12%2012.1v-2.1l-4%202.1v-2.1h-2.4l-0.6-7h-2l-0.6%207h-2.4v6h16v-6l-4%202.1zM6%2014h-4v-2h4v2z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",mN="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--emojione'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%23ed4c5c'%20d='M52.382%205.075C40.137%203.203%2024.137%2028.036%209.213%2020.497c-.582-1.575-1.143-3.158-1.725-4.73C25.077%2019.105%2033.07-2.995%2050.658.345c.584%201.572%201.14%203.156%201.724%204.73'%3e%3c/path%3e%3cpath%20fill='%23ff8736'%20d='M54.105%209.804C43.762%207.786%2022.512%2031.453%2010.938%2025.227c-.585-1.573-1.14-3.157-1.725-4.73C26.802%2023.835%2034.794%201.734%2052.382%205.075c.584%201.572%201.14%203.156%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%23ffce31'%20d='M55.83%2014.535C45.762%2012.744%2027.086%2038.25%2012.662%2029.957c-.585-1.573-1.142-3.157-1.725-4.73C28.525%2028.566%2036.52%206.467%2054.105%209.805c.585%201.574%201.142%203.157%201.725%204.73'%3e%3c/path%3e%3cpath%20fill='%2383bf4f'%20d='M57.556%2019.265c-9.711-1.521-31.086%2025.813-43.171%2015.422c-.584-1.572-1.139-3.157-1.723-4.73c17.585%203.341%2025.579-18.762%2043.168-15.422c.583%201.573%201.142%203.156%201.726%204.73'%3e%3c/path%3e%3cpath%20fill='%23275fd9'%20d='M59.278%2023.995C48.22%2022.161%2028.595%2050.453%2016.109%2039.418c-.584-1.574-1.144-3.156-1.725-4.73c17.588%203.338%2025.582-18.761%2043.171-15.422c.583%201.573%201.141%203.155%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%239028e0'%20d='M61%2028.726c-17.583-3.34-25.579%2018.761-43.166%2015.421c-.584-1.572-1.142-3.156-1.725-4.729c17.588%203.338%2025.581-18.762%2043.169-15.423c.583%201.575%201.142%203.158%201.722%204.731'%3e%3c/path%3e%3cg%20fill='%233e4347'%3e%3ccircle%20cx='5.168'%20cy='13.336'%20r='2.168'%3e%3c/circle%3e%3cpath%20d='M7.04%2014.49l-2.56.929L22.186%2064h2.896z'%3e%3c/path%3e%3cpath%20d='M3.688%2015.602l4.076-1.48l.37%201.017l-4.077%201.48z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",hN="data:image/svg+xml,%3csvg%20height='200px'%20width='200px'%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23800000;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M78.641,118.933c22.88,0,41.416-18.551,41.416-41.414c0-22.887-18.536-41.423-41.416-41.423%20c-22.887,0-41.422,18.536-41.422,41.423C37.218,100.382,55.754,118.933,78.641,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M255.706,228.73v0.062c0.101,0,0.194-0.031,0.294-0.031c0.101,0,0.194,0.031,0.294,0.031v-0.062%20c15.562-0.317,28.082-12.976,28.082-28.601c0-15.648-12.52-28.299-28.082-28.616v-0.063c-0.101,0-0.194,0.031-0.294,0.031%20c-0.1,0-0.193-0.031-0.294-0.031v0.063c-15.563,0.317-28.082,12.968-28.082,28.616C227.623,215.754,240.143,228.413,255.706,228.73%20z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M433.359,118.933c22.887,0,41.423-18.551,41.423-41.414c0-22.887-18.536-41.423-41.423-41.423%20c-22.88,0-41.416,18.536-41.416,41.423C391.944,100.382,410.48,118.933,433.359,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M470.097,138.553h-36.312h-18.404c-21.106,0-40.432,11.831-50.033,30.622l-33.494,97.967%20c-1.154,2.246-3.298,3.84-5.792,4.282c-2.493,0.442-5.048-0.309-6.914-2.036l-20.836-18.04c-6.233-5.769-14.408-8.973-22.902-8.973%20H256h-19.41c-8.494,0-16.669,3.204-22.902,8.973l-20.835,18.04c-1.866,1.727-4.421,2.478-6.914,2.036%20c-2.492-0.442-4.637-2.036-5.791-4.282l-33.495-97.967c-9.6-18.791-28.926-30.622-50.032-30.622H78.215H41.902%20C21.834,138.553,0,160.387,0,180.464v139.211c0,10.034,8.13,18.171,18.164,18.171c4.939,0,0,0,12.682,0l6.906,118.725%20c0,10.676,8.664,19.332,19.34,19.332c4.506,0,12.814,0,21.122,0c8.308,0,16.616,0,21.122,0c10.676,0,19.34-8.656,19.34-19.332%20l6.906-118.725l-0.085-84.766c0-1.339,0.914-2.493,2.222-2.818c1.309-0.31,2.648,0.309,3.26,1.502l26.572,65.401%20c3.206,6.256,9.152,10.654,16.074,11.885c6.922,1.231,14.022-0.844,19.186-5.613l25.426-18.729%20c0.852-0.782,2.083-0.984,3.136-0.542c1.061,0.473,1.743,1.518,1.743,2.663l0.093,73.508l4.777,82.187%20c0,7.387,6.001,13.379,13.395,13.379c3.113,0,8.865,0,14.618,0c5.753,0,11.506,0,14.618,0c7.394,0,13.394-5.992,13.394-13.379%20l4.778-82.187l0.093-73.508c0-1.146,0.681-2.19,1.742-2.663c1.053-0.442,2.284-0.24,3.136,0.542l25.427,18.729%20c5.164,4.769,12.264,6.844,19.186,5.613c6.922-1.231,12.868-5.629,16.073-11.885l26.573-65.401%20c0.611-1.192,1.951-1.812,3.259-1.502c1.309,0.325,2.222,1.478,2.222,2.818l-0.085,84.766l6.906,118.725%20c0,10.676,8.664,19.332,19.341,19.332c4.507,0,12.814,0,21.122,0c8.308,0,16.616,0,21.121,0c10.677,0,19.342-8.656,19.342-19.332%20l6.906-118.725c12.682,0,7.742,0,12.682,0c10.034,0,18.164-8.137,18.164-18.171V180.464%20C512,160.387,490.166,138.553,470.097,138.553z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",vN="/TW-Values/assets/FlagOfTWIndependence-BSLd3Q55.svg",yN="/TW-Values/assets/ChinaTerritory-BGtJl0no.svg",bN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='1235'%20height='650'%20viewBox='0%200%207410%203900'%3e%3cpath%20d='M0,0h7410v3900H0'%20fill='%23b31942'/%3e%3cpath%20d='M0,450H7410m0,600H0m0,600H7410m0,600H0m0,600H7410m0,600H0'%20stroke='%23FFF'%20stroke-width='300'/%3e%3cpath%20d='M0,0h2964v2100H0'%20fill='%230a3161'/%3e%3cg%20fill='%23FFF'%3e%3cg%20id='s18'%3e%3cg%20id='s9'%3e%3cg%20id='s5'%3e%3cg%20id='s4'%3e%3cpath%20id='s'%20d='M247,90%20317.534230,307.082039%20132.873218,172.917961H361.126782L176.465770,307.082039z'/%3e%3cuse%20xlink:href='%23s'%20y='420'/%3e%3cuse%20xlink:href='%23s'%20y='840'/%3e%3cuse%20xlink:href='%23s'%20y='1260'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20y='1680'/%3e%3c/g%3e%3cuse%20xlink:href='%23s4'%20x='247'%20y='210'/%3e%3c/g%3e%3cuse%20xlink:href='%23s9'%20x='494'/%3e%3c/g%3e%3cuse%20xlink:href='%23s18'%20x='988'/%3e%3cuse%20xlink:href='%23s9'%20x='1976'/%3e%3cuse%20xlink:href='%23s5'%20x='2470'/%3e%3c/g%3e%3c/svg%3e",wN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='900'%20height='600'%3e%3cpath%20fill='%23EE1C25'%20d='M0%200h900v600H0z'/%3e%3cg%20transform='translate(150,150)%20scale(3)'%3e%3cpath%20id='s'%20d='M0,-30%2017.63355,24.27051%20-28.53171,-9.27051H28.53171L-17.63355,24.27051z'%20fill='%23FF0'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,60)%20rotate(23.036243)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,120)%20rotate(45.869898)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,210)%20rotate(69.945396)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,270)%20rotate(20.659808)'/%3e%3c/svg%3e",je=()=>({equality:{color:"crimson",image:lN},efficiency:{color:"mediumslateblue",image:sN},globe:{color:"royalblue",image:cN},nation:{color:"darkorange",image:uN},liberty:{color:"gold",image:dN},authority:{color:"red",image:fN},ecology:{color:"forestgreen",image:pN},production:{color:"saddlebrown",image:gN},progress:{color:"magenta",image:mN},tradition:{color:"maroon",image:hN},independence:{color:"green",image:vN},unification:{color:"black",image:yN},pro_american:{color:"navy",image:bN},pro_chinese:{color:"red",image:wN}}),se={p150:24,p100:16,p075:12,p050:8},XS=()=>[{id:"q0000",weight:{economic:se.p100}},{id:"q0001",weight:{economic:se.p100}},{id:"q0002",weight:{economic:se.p100}},{id:"q0003",weight:{economic:se.p100}},{id:"q0004",weight:{economic:se.p100}},{id:"q0100",weight:{economic:-se.p100}},{id:"q0101",weight:{economic:-se.p100}},{id:"q0102",weight:{economic:-se.p100}},{id:"q0103",weight:{economic:-se.p100}},{id:"q0104",weight:{economic:-se.p100}},{id:"q0105",weight:{economic:-se.p100}},{id:"q0200",weight:{diplomatic:se.p100}},{id:"q0201",weight:{diplomatic:se.p100}},{id:"q0202",weight:{diplomatic:se.p075,sovereignty:-se.p050}},{id:"q0203",weight:{diplomatic:se.p100,civil:se.p050}},{id:"q0300",weight:{diplomatic:-se.p100,economic:-se.p050}},{id:"q0301",weight:{diplomatic:-se.p100}},{id:"q0302",weight:{diplomatic:-se.p100}},{id:"q0303",weight:{diplomatic:-se.p100}},{id:"q0400",weight:{civil:se.p100,societal:se.p050}},{id:"q0401",weight:{civil:se.p100}},{id:"q0402",weight:{civil:se.p100}},{id:"q0403",weight:{civil:se.p100}},{id:"q0404",weight:{civil:se.p100}},{id:"q0405",weight:{civil:se.p100}},{id:"q0500",weight:{civil:-se.p075}},{id:"q0501",weight:{civil:-se.p100}},{id:"q0502",weight:{civil:-se.p100}},{id:"q0503",weight:{civil:-se.p100,diplomatic:-se.p050}},{id:"q0504",weight:{civil:-se.p100}},{id:"q0505",weight:{civil:-se.p100}},{id:"q0506",weight:{civil:-se.p075}},{id:"q0600",weight:{societal:se.p100}},{id:"q0601",weight:{societal:se.p100}},{id:"q0602",weight:{societal:se.p100}},{id:"q0603",weight:{societal:se.p100}},{id:"q0604",weight:{societal:se.p100}},{id:"q0605",weight:{societal:se.p100,sovereignty:se.p050}},{id:"q0700",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0701",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0702",weight:{societal:-se.p100}},{id:"q0703",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0704",weight:{societal:-se.p100,civil:-se.p050}},{id:"q0705",weight:{societal:-se.p100}},{id:"q0800",weight:{environmental:se.p100}},{id:"q0801",weight:{environmental:se.p100}},{id:"q0802",weight:{environmental:se.p100}},{id:"q0803",weight:{environmental:se.p100}},{id:"q0900",weight:{environmental:-se.p100}},{id:"q0901",weight:{environmental:-se.p100}},{id:"q0902",weight:{environmental:-se.p100}},{id:"q1000",weight:{sovereignty:se.p100}},{id:"q1001",weight:{sovereignty:se.p150,diplomatic:-se.p100}},{id:"q1002",weight:{sovereignty:se.p100,diplomatic:-se.p050}},{id:"q1003",weight:{sovereignty:se.p100}},{id:"q1100",weight:{sovereignty:-se.p075}},{id:"q1101",weight:{sovereignty:-se.p150,us_vs_china:-se.p100}},{id:"q1102",weight:{sovereignty:-se.p100,us_vs_china:-se.p075}},{id:"q1103",weight:{}},{id:"q1200",weight:{us_vs_china:se.p100}},{id:"q1201",weight:{us_vs_china:se.p100}},{id:"q1202",weight:{us_vs_china:se.p100}},{id:"q1300",weight:{us_vs_china:-se.p100,diplomatic:se.p050}},{id:"q1301",weight:{us_vs_china:-se.p100,diplomatic:-se.p050}}];var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});var YS=Sh.styleq=void 0,xN=new WeakMap,SN="$$css";function QS(e){var t,n,r;return e!=null&&(t=e.disableCache===!0,n=e.disableMix===!0,r=e.transform),function(){for(var o=[],a="",l=null,s=t?null:xN,c=new Array(arguments.length),d=0;d0;){var f=c.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p0&&(a.style=o),a}const ry={},{Title:iy,Text:oy}=za,EN=()=>{const{t:e}=Ss(),t=as();return H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:"rgba(255, 255, 255, 0.7)",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px auto",padding:"5px"},children:[H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",backgroundColor:"white",border:"dodgerblue solid 4px",borderRadius:"20px",padding:"16px"},children:[H.jsx(iy,{level:1,style:{color:"black",padding:"10px"},children:e("quiz.welcome.title")}),H.jsx(oy,{style:{color:"black",fontSize:"x-large",padding:"10px"},children:e("quiz.welcome.content")}),H.jsx(ai,{style:{backgroundColor:"crimson"}}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xt0237e x16zck5j xng8ra x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",style:{width:"100%",maxWidth:"480px"},onClick:()=>{t("/quiz")},children:e("quiz.welcome.start")}),H.jsx(dO,{message:e("quiz.welcome.privacy"),type:"info",showIcon:!0,style:{margin:"20px"}})]}),H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",backgroundColor:"white",border:"orange solid 4px",borderRadius:"20px",padding:"16px"},children:[H.jsx(iy,{level:2,children:e("quiz.introduction.title")}),H.jsx(oy,{style:{fontSize:"large"},children:e("quiz.introduction.description",{count:XS().length})}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.economic.title"),leftTitle:e("quiz.result.axes.economic.equality.name"),rightTitle:e("quiz.result.axes.economic.efficiency.name"),leftColor:je().equality.color,rightColor:je().efficiency.color,leftDescription:e("quiz.result.axes.economic.equality.description"),rightDescription:e("quiz.result.axes.economic.efficiency.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.diplomatic.title"),leftTitle:e("quiz.result.axes.diplomatic.globe.name"),rightTitle:e("quiz.result.axes.diplomatic.nation.name"),leftColor:je().globe.color,rightColor:je().nation.color,leftDescription:e("quiz.result.axes.diplomatic.globe.description"),rightDescription:e("quiz.result.axes.diplomatic.nation.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.civil.title"),leftTitle:e("quiz.result.axes.civil.liberty.name"),rightTitle:e("quiz.result.axes.civil.authority.name"),leftColor:je().liberty.color,rightColor:je().authority.color,leftDescription:e("quiz.result.axes.civil.liberty.description"),rightDescription:e("quiz.result.axes.civil.authority.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.environmental.title"),leftTitle:e("quiz.result.axes.environmental.ecology.name"),rightTitle:e("quiz.result.axes.environmental.production.name"),leftColor:je().ecology.color,rightColor:je().production.color,leftDescription:e("quiz.result.axes.environmental.ecology.description"),rightDescription:e("quiz.result.axes.environmental.production.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.societal.title"),leftTitle:e("quiz.result.axes.societal.progress.name"),rightTitle:e("quiz.result.axes.societal.tradition.name"),leftColor:je().progress.color,rightColor:je().tradition.color,leftDescription:e("quiz.result.axes.societal.progress.description"),rightDescription:e("quiz.result.axes.societal.tradition.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.sovereignty.title"),leftTitle:e("quiz.result.axes.sovereignty.independence.name"),rightTitle:e("quiz.result.axes.sovereignty.unification.name"),leftColor:je().independence.color,rightColor:je().unification.color,leftDescription:e("quiz.result.axes.sovereignty.independence.description"),rightDescription:e("quiz.result.axes.sovereignty.unification.description")}),H.jsx(ai,{style:{backgroundColor:"black"}}),H.jsx(Li,{title:e("quiz.result.axes.us_vs_china.title"),leftTitle:e("quiz.result.axes.us_vs_china.pro_american.name"),rightTitle:e("quiz.result.axes.us_vs_china.pro_chinese.name"),leftColor:je().pro_american.color,rightColor:je().pro_chinese.color,leftDescription:e("quiz.result.axes.us_vs_china.pro_american.description"),rightDescription:e("quiz.result.axes.us_vs_china.pro_chinese.description")})]})]})},$N=e=>{for(let t=0;t[{id:"roc_unification",predicate:e=>e.q1103>bt.n},{id:"roc_independence",predicate:e=>e.q1000>bt.n},{id:"tw_independence",predicate:e=>e.q1001>bt.n},{id:"prc_unification",predicate:e=>e.q1101>bt.n},{id:"death_penalty_abolitionists",predicate:e=>e.q0603>bt.n},{id:"homophobia",predicate:e=>e.q0602e.q0705>bt.n},{id:"feminism",predicate:e=>{let t=0;return t+=e.q0602>bt.n,t+=e.q0701bt.n&&e.q0705=2}},{id:"feminism_buffet",predicate:e=>e.q0605{const t=Object.entries(e);return t.filter(r=>bt.sd<=r[1]&&r[1]<=bt.sa).length>=.8*t.length}}],kN=e=>JS().filter(t=>t.predicate(e)).map(t=>t.id),eC="api_version",tC=1,ON=()=>[{id:"anarcho_communism",weight:{economic:100,diplomatic:50,civil:100,societal:90}},{id:"libertarian_communism",weight:{economic:100,diplomatic:70,civil:80,societal:80}},{id:"trotskyism",weight:{economic:100,diplomatic:100,civil:60,societal:80}},{id:"marxism",weight:{economic:100,diplomatic:70,civil:40,societal:80}},{id:"de_leonism",weight:{economic:100,diplomatic:30,civil:30,societal:80}},{id:"leninism",weight:{economic:100,diplomatic:40,civil:20,societal:70}},{id:"stalinism",weight:{economic:100,diplomatic:20,civil:0,societal:60}},{id:"religious_communism",weight:{economic:100,diplomatic:50,civil:30,societal:30}},{id:"state_socialism",weight:{economic:80,diplomatic:30,civil:30,societal:70}},{id:"theocratic_socialism",weight:{economic:80,diplomatic:50,civil:30,societal:20}},{id:"religious_socialism",weight:{economic:80,diplomatic:50,civil:70,societal:20}},{id:"democratic_socialism",weight:{economic:80,diplomatic:50,civil:50,societal:80}},{id:"revolutionary_socialism",weight:{economic:80,diplomatic:20,civil:50,societal:70}},{id:"liberal_socialism",weight:{economic:80,diplomatic:70,civil:60,societal:80}},{id:"libertarian_socialism",weight:{economic:80,diplomatic:80,civil:80,societal:80}},{id:"anarcho_syndicalism",weight:{economic:80,diplomatic:50,civil:100,societal:80}},{id:"left_wing_populism",weight:{economic:60,diplomatic:40,civil:30,societal:70}},{id:"theocratic_distributism",weight:{economic:60,diplomatic:40,civil:30,societal:20}},{id:"distributism",weight:{economic:60,diplomatic:50,civil:50,societal:20}},{id:"social_liberalism",weight:{economic:60,diplomatic:60,civil:60,societal:80}},{id:"christian_democracy",weight:{economic:60,diplomatic:60,civil:50,societal:30}},{id:"social_democracy",weight:{economic:60,diplomatic:70,civil:60,societal:80}},{id:"progressivism",weight:{economic:60,diplomatic:80,civil:60,societal:100}},{id:"anarcho_mutualism",weight:{economic:60,diplomatic:50,civil:100,societal:70}},{id:"national_totalitarianism",weight:{economic:50,diplomatic:20,civil:0,societal:50}},{id:"global_totalitarianism",weight:{economic:50,diplomatic:80,civil:0,societal:50}},{id:"technocracy",weight:{economic:60,diplomatic:60,civil:20,societal:70}},{id:"centrist",weight:{economic:50,diplomatic:50,civil:50,societal:50}},{id:"liberalism",weight:{economic:50,diplomatic:60,civil:60,societal:60}},{id:"religious_anarchism",weight:{economic:50,diplomatic:50,civil:100,societal:20}},{id:"right_wing_populism",weight:{economic:40,diplomatic:30,civil:30,societal:30}},{id:"liberal_conservatism",weight:{economic:40,diplomatic:40,civil:50,societal:30}},{id:"reactionary",weight:{economic:40,diplomatic:40,civil:40,societal:10}},{id:"social_libertarianism",weight:{economic:60,diplomatic:70,civil:80,societal:70}},{id:"libertarianism",weight:{economic:40,diplomatic:60,civil:80,societal:60}},{id:"anarcho_egoism",weight:{economic:40,diplomatic:50,civil:100,societal:50}},{id:"nazism",weight:{economic:40,diplomatic:0,civil:0,societal:10}},{id:"autocracy",weight:{economic:50,diplomatic:20,civil:20,societal:50}},{id:"fascism",weight:{economic:40,diplomatic:20,civil:20,societal:20}},{id:"capitalist_fascism",weight:{economic:20,diplomatic:20,civil:20,societal:20}},{id:"conservatism",weight:{economic:30,diplomatic:40,civil:40,societal:20}},{id:"neo_liberalism",weight:{economic:30,diplomatic:30,civil:50,societal:60}},{id:"classical_liberalism",weight:{economic:30,diplomatic:60,civil:60,societal:80}},{id:"authoritarian_capitalism",weight:{economic:20,diplomatic:30,civil:20,societal:40}},{id:"state_capitalism",weight:{economic:20,diplomatic:50,civil:30,societal:50}},{id:"neo_conservatism",weight:{economic:20,diplomatic:20,civil:40,societal:20}},{id:"fundamentalism",weight:{economic:20,diplomatic:30,civil:30,societal:5}},{id:"libertarian_capitalism",weight:{economic:20,diplomatic:50,civil:80,societal:60}},{id:"market_anarchism",weight:{economic:20,diplomatic:50,civil:100,societal:50}},{id:"objectivism",weight:{economic:10,diplomatic:50,civil:90,societal:40}},{id:"totalitarian_capitalism",weight:{economic:0,diplomatic:30,civil:0,societal:50}},{id:"ultra_capitalism",weight:{economic:0,diplomatic:40,civil:50,societal:50}},{id:"anarcho_capitalism",weight:{economic:0,diplomatic:50,civil:100,societal:50}}],RN=()=>[{id:"kmt",icon:"https://upload.wikimedia.org/wikipedia/commons/d/dc/Blue_Sky_White_Sun.png",weight:{economic:40,environmental:35,civil:40,societal:30,sovereignty:35,us_vs_china:35}},{id:"lp",icon:"https://upload.wikimedia.org/wikipedia/commons/9/9d/Labor_Party_%28Taiwan%29_emblem.svg",weight:{economic:85,environmental:50,civil:50,societal:55,sovereignty:15,us_vs_china:10}},{id:"dpp",icon:"https://upload.wikimedia.org/wikipedia/commons/1/16/Green_Island_with_White_Cross.svg",weight:{economic:60,environmental:60,civil:55,societal:60,sovereignty:75,us_vs_china:75}},{id:"tsu",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4c/Taiwan_orange.svg",weight:{economic:40,environmental:40,civil:50,societal:40,sovereignty:75,us_vs_china:70}},{id:"np",icon:"https://upload.wikimedia.org/wikipedia/commons/3/32/LogoCNP.svg",weight:{economic:35,environmental:35,civil:30,societal:25,sovereignty:20,us_vs_china:20}},{id:"npp",icon:"https://upload.wikimedia.org/wikipedia/commons/2/29/Black_Lik_Gold_Circle.svg",weight:{economic:75,environmental:75,civil:70,societal:75,sovereignty:75,us_vs_china:75}},{id:"tpp",icon:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Emblem_of_Taiwan_People%27s_Party_2019_Logo_Only.svg",weight:{economic:50,environmental:45,civil:45,societal:45,sovereignty:45,us_vs_china:40}},{id:"tsp",icon:"https://upload.wikimedia.org/wikipedia/commons/7/77/Daijish%C5%8D_in_brown.svg",weight:{economic:60,environmental:50,civil:75,societal:60,sovereignty:75,us_vs_china:70}},{id:"cupp",icon:"https://upload.wikimedia.org/wikipedia/zh/6/66/China_unify_party_logo.gif",weight:{economic:10,environmental:20,civil:10,societal:20,sovereignty:10,us_vs_china:10}},{id:"gpt",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a5/Green_Party_Taiwan_logo.png",weight:{economic:70,environmental:90,civil:75,societal:75,sovereignty:75,us_vs_china:75}}],PN=(e,t)=>{const n=r=>{const i=c=>c.reduce((d,f)=>d+f.prop*t[f.id],0),o=c=>c.reduce((d,f)=>d+Math.abs(f.prop),0),a=(c,d)=>100*(c+d)/(2*d),l=i(r),s=o(r);return Math.round(a(l,s))};return{economic:n(e.map(r=>({id:r.id,prop:r.weight.economic||0}))),environmental:n(e.map(r=>({id:r.id,prop:r.weight.environmental||0}))),civil:n(e.map(r=>({id:r.id,prop:r.weight.civil||0}))),societal:n(e.map(r=>({id:r.id,prop:r.weight.societal||0}))),diplomatic:n(e.map(r=>({id:r.id,prop:r.weight.diplomatic||0}))),sovereignty:n(e.map(r=>({id:r.id,prop:r.weight.sovereignty||0}))),us_vs_china:n(e.map(r=>({id:r.id,prop:r.weight.us_vs_china||0})))}},_N=e=>ON().map(n=>{let r=0;return r+=Math.pow(Math.abs(n.weight.economic-e.economic),2),r+=Math.pow(Math.abs(n.weight.diplomatic-e.diplomatic),2),r+=Math.pow(Math.abs(n.weight.civil-e.civil),2),r+=Math.pow(Math.abs(n.weight.societal-(.25*e.environmental+.75*e.societal)),2),{id:n.id,distance:r,diff:Math.sqrt(r/4)/100}}).sort((n,r)=>n.distancer.distance?1:0),TN=e=>RN().map(n=>{let r=0;return r+=Math.pow(Math.abs(n.weight.economic-e.economic),2),r+=Math.pow(Math.abs(n.weight.civil-e.civil),2),r+=Math.pow(Math.abs(n.weight.environmental-e.environmental),2),r+=Math.pow(Math.abs(n.weight.societal-e.societal),2),r+=Math.pow(Math.abs(n.weight.sovereignty-e.sovereignty),2),r+=Math.pow(Math.abs(n.weight.us_vs_china-e.us_vs_china),2),{...n,distance:r,diff:Math.sqrt(r/6)/100}}).sort((n,r)=>n.distancer.distance?1:0),IN=()=>{const{t:e}=Ss(),t=as(),n=u.useMemo(()=>$N(XS()),[]),[r,i]=u.useState(0),[o,a]=u.useState(n.reduce((d,f)=>({...d,[f.id]:0}),{})),l=d=>{a({...o,[n[r].id]:d})},s=()=>{r>0&&i(r-1)},c=()=>{i(r+1)};return u.useEffect(()=>{r===n.length&&t({pathname:"/result",search:nu({[eC]:tC,...PN(n,o),tags:kN(o).join(",")}).toString()})},[r]),H.jsx(Nt,{vertical:!0,justify:"center",align:"center",style:{backgroundColor:"rgba(255, 255, 255, 0.7)",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px auto",padding:"10px"},children:r{l(bt.ca),c()},children:e("quiz.answers.completely_agree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng x921d23 x1s7o1zc x1u857p9 xo30pwf x4u2hfz x1bg2uv5 x1ddbq83 xf7yueu",onClick:()=>{l(bt.a),c()},children:e("quiz.answers.agree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x18hdcfm xhi5ub0 xesu2hl xo30pwf x4u2hfz xfi8w6l x1ip647a x1o2m7i8",onClick:()=>{l(bt.sa),c()},children:e("quiz.answers.slightly_agree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1q364g7 xqk8jxb x1cbl2y9 xo30pwf x4u2hfz xzppbbw x1ymtr6h x117c0mp",onClick:()=>{l(bt.n),c()},children:e("quiz.answers.neutral")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x120uepz xgl1eqo x2g70cf",onClick:()=>{l(bt.sd),c()},children:e("quiz.answers.slightly_disagree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng xynlrxq x96fq8s xrkmrrc xo30pwf x4u2hfz x71xlcl xc2cfjo x19lfm6a",onClick:()=>{l(bt.d),c()},children:e("quiz.answers.disagree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 xh8yej3 x1awj2ng x1tzsxso x1up30ld xixu7ty xo30pwf x4u2hfz xusra0j xae71uu x1aurdsm",onClick:()=>{l(bt.cd),c()},children:e("quiz.answers.completely_disagree")}),H.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1ywq5td x8nnhh1 x42x0ya xo30pwf x4u2hfz x1nvupfo xrenkp0 x1jk8ig0",onClick:()=>{s()},disabled:r===0,children:e("quiz.answers.back")})]})]})})},{Text:zo}=za,ji=({title:e,leftTitle:t,rightTitle:n,leftImage:r,rightImage:i,leftColor:o,rightColor:a,percent:l,descriptionTitle:s})=>{const{i18n:c}=Ss(),d=xs(),f=()=>l>=60?o:l<=40?a:"black",p=()=>c.language=="en"?{sm:{fontSize:"x-small",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},lg:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},xl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"}}[d.size]:{sm:{fontSize:"medium",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},lg:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},xl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"}}[d.size],y=()=>c.language=="en"?{sm:{fontSize:"x-small"},md:{fontSize:"small"},lg:{fontSize:"small"},xl:{fontSize:"medium"},xxl:{fontSize:"medium"}}[d.size]:{sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"medium"},xl:{fontSize:"large"},xxl:{fontSize:"large"}}[d.size];return H.jsx(El,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",borderBottom:`${f()} solid 4px`},body:{padding:{sm:"10px",md:"16px",lg:"24px",xl:"24px",xll:"24px"}[d.size]}},style:{width:"100%",backgroundColor:"white",border:`${f()} solid 4px`,borderRadius:"20px"},children:H.jsxs(Nt,{vertical:!1,justify:"center",align:"center",style:{width:"100%",maxWidth:"720px",margin:"auto"},children:[H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[H.jsx(Dg,{width:60,src:r||"",preview:!1,style:{padding:"4px"}}),H.jsx(zo,{style:{color:o,textAlign:"center",...p()},children:t})]}),d.md?H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",margin:"0px 20px"},children:[H.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[H.jsx(zo,{style:{margin:"5px"},children:`${l} %`}),H.jsx(zo,{style:{...y(),color:f(),textAlign:"center"},children:s}),H.jsx(zo,{style:{margin:"5px"},children:`${100-l} %`})]}),H.jsx(Lf,{type:"line",percent:l,showInfo:!1,strokeLinecap:"square",strokeColor:o,trailColor:a,style:{paddingBottom:"20px"}})]}):H.jsxs(Nt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[H.jsx(Lf,{type:"dashboard",percent:l,showInfo:!0,status:"active",strokeColor:o,trailColor:"gray",size:50,style:{margin:"5px"}}),H.jsx(zo,{style:{...y(),color:f(),textAlign:"center"},children:s}),H.jsx(Lf,{type:"dashboard",percent:100-l,showInfo:!0,status:"active",strokeColor:a,trailColor:"gray",size:50,style:{margin:"5px"}})]}),H.jsxs(Nt,{vertical:!0,justify:"center",align:"center",children:[H.jsx(Dg,{width:60,src:i||"",preview:!1,style:{padding:"5px"}}),H.jsx(zo,{style:{color:a,textAlign:"center",...p()},children:n})]})]})})},{Text:Za,Title:zN}=za,Ja={base:{display:"x1rg5ohu",whiteSpace:"xuxw1ft",borderRadius:"x1m3ak92",borderStyle:"x1y0btm7",borderWidth:"xdh2fpr",padding:"xvid92k",margin:"xd3odtx",$$css:!0},enabled:{color:"x1awj2ng",backgroundColor:"x1vgg7vs",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},enabledWithLink:{color:"x1awj2ng x1uezp9v x1vx81tn",backgroundColor:"x1vgg7vs xo30pwf x4u2hfz",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabled:{color:"x1awj2ng",backgroundColor:"x1cbl2y9",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabledWithLink:{color:"x1awj2ng x1q364g7 xqk8jxb",backgroundColor:"x1cbl2y9 xo30pwf x4u2hfz",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0}},BN=()=>{const[e,t]=R3(),{t:n,i18n:r}=Ss(),i=xs(),[o,a]=u.useState(!1,[]),[l,s]=u.useState(!1,[]),[c,d]=u.useState(!1,[]),f=S=>r.language==S,p=e.get(eC)==tC,y={economic:e.get("economic"),diplomatic:e.get("diplomatic"),civil:e.get("civil"),environmental:e.get("environmental"),societal:e.get("societal"),sovereignty:e.get("sovereignty"),us_vs_china:e.get("us_vs_china")},b=new Set(e.get("tags").split(",")),v=(S,C,$)=>C?S:S.slice(0,Math.min(S.length,$)),x=(S,C)=>C?S.sort(($,k)=>{const O=b.has($.id),P=b.has(k.id);return O&&!P?-1:!O&&P?1:0}):S.filter($=>b.has($.id)),m=S=>S<=10?6:S<=25?5:S<=40?4:S>=90?0:S>=75?1:S>=60?2:3,g=(S,C,$,k)=>S+C*Math.min(Math.max(1,$)-1,k),h=()=>({sm:"10px",md:"16px",lg:"24px",xl:"24px",xll:"24px"})[i.size],w=S=>S<=10?"green":S<=20?"orange":"red",E=()=>H.jsxs(Nt,{vertical:!0,align:"center",style:{width:"100%",backgroundColor:"white",border:"black solid 4px",borderRadius:"20px"},children:[H.jsx(zN,{level:4,style:{margin:"40px",color:"red"},children:n("quiz.result.api_error.description")}),H.jsx($c,{href:"/",style:{height:"auto",margin:"40px",borderRadius:"20px",fontSize:"large",fontWeight:"bold",textAlign:"center"},children:n("quiz.result.api_error.index")})]});return H.jsx(Nt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:"rgba(255, 255, 255, 0.7)",border:"crimson solid 4px",borderRadius:"20px",...xh(),width:"100%",margin:"20px",padding:"5px"},children:p?H.jsxs(H.Fragment,{children:[H.jsx(El,{title:n("quiz.result.ideologies.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"dodgerblue solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"dodgerblue solid 4px",borderRadius:"20px"},extra:H.jsx(jf,{unCheckedChildren:"3",checkedChildren:"∞",size:"small",onChange:S=>{a(S)},style:{backgroundColor:o?"crimson":"dodgerblue",margin:"5px 20px"}}),children:H.jsx(B1,{children:v(_N(y),o,3).map((S,C)=>{const $=Math.round(100*S.diff),k=`quiz.result.ideologies.data.${S.id}.link`,O=r.exists(k)?n(k):null,P=()=>H.jsxs(H.Fragment,{children:[H.jsx(Za,{style:{margin:"8px",fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(140,-16,4,C)}%`,fontWeight:"bold",color:"black",textAlign:"center"},children:n(`quiz.result.ideologies.data.${S.id}.name`)}),H.jsx(Y1,{style:{margin:"3px",color:w($)}}),H.jsx(Za,{style:{color:w($),fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(100,-8,4,C)}%`,textAlign:"center"},children:`${$}%`})]}),z=T=>O&&O.length>0?H.jsx("a",{href:O,target:"_blank",rel:"noreferrer",children:H.jsx("div",{className:"xdfu9ks x1khhgft xjbqb8w xfw5lei x1u0xgjp",children:T})}):H.jsx("div",{className:"xdfu9ks x1khhgft",children:T});return H.jsx(I1,{xs:24,sm:24,md:C<3?24:12,lg:C<3?24:12,xl:C<3?24:8,xxl:C<3?24:8,children:H.jsx(Nt,{vertical:!1,justify:"center",align:"center",children:z(P())})},`ideology.${S.id}`)})})}),H.jsx(El,{title:n("quiz.result.political_parties.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"tomato solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"tomato solid 4px",borderRadius:"20px"},extra:H.jsx(jf,{unCheckedChildren:"3",checkedChildren:"∞",size:"small",onChange:S=>{s(S)},style:{backgroundColor:l?"crimson":"tomato",margin:"5px 20px"}}),children:H.jsx(B1,{children:v(TN(y),l,3).map((S,C)=>{const $=Math.round(100*S.diff),k=n(`quiz.result.political_parties.data.${S.id}.link`),O=()=>H.jsxs(H.Fragment,{children:[H.jsx(Dg,{height:g(24,-3,4,C),src:S.icon,preview:!1}),H.jsx(Za,{style:{margin:"8px",fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(140,-16,4,C)}%`,fontWeight:"bold",color:"black",textAlign:"center"},children:n(`quiz.result.political_parties.data.${S.id}.name`)}),H.jsx(Y1,{style:{margin:"3px",color:w($)}}),H.jsx(Za,{style:{color:w($),fontSize:f("en")?`${g(100,-8,4,C)}%`:`${g(100,-8,4,C)}%`,textAlign:"center"},children:`${$}%`})]}),P=z=>k&&k.length>0?H.jsx("a",{href:k,target:"_blank",rel:"noreferrer",children:H.jsx("div",{className:"xdfu9ks x1khhgft xjbqb8w xfw5lei x1u0xgjp",children:z})}):H.jsx("div",{className:"xdfu9ks x1khhgft",children:z});return H.jsx(I1,{xs:24,sm:24,md:C<3?24:12,lg:C<3?24:12,xl:C<3?24:8,xxl:C<3?24:8,children:H.jsx(Nt,{vertical:!1,justify:"center",align:"center",children:P(O())})},`party.${S.id}`)})})}),H.jsx(El,{title:n("quiz.result.tags.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"greenyellow solid 4px"},body:{padding:h()}},style:{width:"100%",backgroundColor:"white",border:"greenyellow solid 4px",borderRadius:"20px"},extra:H.jsx(jf,{unCheckedChildren:"M",checkedChildren:"∞",size:"small",onChange:S=>{d(S)},style:{backgroundColor:c?"crimson":"greenyellow",margin:"5px 20px"}}),children:x(JS(),c).map(S=>{const C=n(`quiz.result.tags.data.${S.id}.name`),$=n(`quiz.result.tags.data.${S.id}.description`),k=n(`quiz.result.tags.data.${S.id}.link`),O=k&&k.length>0,P=()=>H.jsx("div",{...CN(Ja.base,b.has(S.id)?O?Ja.enabledWithLink:Ja.enabled:O?Ja.disabledWithLink:Ja.disabled),children:C});return H.jsxs(Nt,{justify:"start",align:"center",style:{margin:"10px auto 10px auto",maxWidth:"800px"},children:[O?H.jsx("a",{href:k,target:"_blank",rel:"noreferrer",children:P()}):P(),H.jsx(Za,{style:{margin:"4px",color:b.has(S.id)?"black":"gray"},children:$})]},`tags.${S.id}`)})}),H.jsx(ji,{title:n("quiz.result.axes.economic.title"),leftTitle:n("quiz.result.axes.economic.equality.name"),rightTitle:n("quiz.result.axes.economic.efficiency.name"),leftImage:je().equality.image,rightImage:je().efficiency.image,leftColor:je().equality.color,rightColor:je().efficiency.color,percent:y.economic,descriptionTitle:n(`quiz.result.axes.economic.categories.${m(y.economic)}`)}),H.jsx(ji,{title:n("quiz.result.axes.diplomatic.title"),leftTitle:n("quiz.result.axes.diplomatic.globe.name"),rightTitle:n("quiz.result.axes.diplomatic.nation.name"),leftImage:je().globe.image,rightImage:je().nation.image,leftColor:je().globe.color,rightColor:je().nation.color,percent:y.diplomatic,descriptionTitle:n(`quiz.result.axes.diplomatic.categories.${m(y.diplomatic)}`)}),H.jsx(ji,{title:n("quiz.result.axes.civil.title"),leftTitle:n("quiz.result.axes.civil.liberty.name"),rightTitle:n("quiz.result.axes.civil.authority.name"),leftImage:je().liberty.image,rightImage:je().authority.image,leftColor:je().liberty.color,rightColor:je().authority.color,percent:y.civil,descriptionTitle:n(`quiz.result.axes.civil.categories.${m(y.civil)}`)}),H.jsx(ji,{title:n("quiz.result.axes.environmental.title"),leftTitle:n("quiz.result.axes.environmental.ecology.name"),rightTitle:n("quiz.result.axes.environmental.production.name"),leftImage:je().ecology.image,rightImage:je().production.image,leftColor:je().ecology.color,rightColor:je().production.color,percent:y.environmental,descriptionTitle:n(`quiz.result.axes.environmental.categories.${m(y.environmental)}`)}),H.jsx(ji,{title:n("quiz.result.axes.societal.title"),leftTitle:n("quiz.result.axes.societal.progress.name"),rightTitle:n("quiz.result.axes.societal.tradition.name"),leftImage:je().progress.image,rightImage:je().tradition.image,leftColor:je().progress.color,rightColor:je().tradition.color,percent:y.societal,descriptionTitle:n(`quiz.result.axes.societal.categories.${m(y.societal)}`)}),H.jsx(ji,{title:n("quiz.result.axes.sovereignty.title"),leftTitle:n("quiz.result.axes.sovereignty.independence.name"),rightTitle:n("quiz.result.axes.sovereignty.unification.name"),leftImage:je().independence.image,rightImage:je().unification.image,leftColor:je().independence.color,rightColor:je().unification.color,percent:y.sovereignty,descriptionTitle:n(`quiz.result.axes.sovereignty.categories.${m(y.sovereignty)}`)}),H.jsx(ji,{title:n("quiz.result.axes.us_vs_china.title"),leftTitle:n("quiz.result.axes.us_vs_china.pro_american.name"),rightTitle:n("quiz.result.axes.us_vs_china.pro_chinese.name"),leftImage:je().pro_american.image,rightImage:je().pro_chinese.image,leftColor:je().pro_american.color,rightColor:je().pro_chinese.color,percent:y.us_vs_china,descriptionTitle:n(`quiz.result.axes.us_vs_china.categories.${m(y.us_vs_china)}`)})]}):H.jsx(E,{})})};function MN(){return H.jsx(O3,{children:H.jsx(C3,{children:H.jsxs(ol,{path:"/",element:H.jsx(aN,{}),children:[H.jsx(ol,{path:"/",element:H.jsx(EN,{})}),H.jsx(ol,{path:"/quiz",element:H.jsx(IN,{})}),H.jsx(ol,{path:"/result",element:H.jsx(BN,{})})]})})})}const NN={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class wu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||NN,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,s]=a;for(let c=0;c{let[l,s]=a;for(let c=0;c{e=r,t=i});return n.resolve=e,n.reject=t,n}function ay(e){return e==null?"":""+e}function AN(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const LN=/###/g;function $l(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(LN,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function HN(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>DN[t]):e}class VN{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const WN=[" ",",","?","!",";"],qN=new VN(20);function UN(e,t,n){t=t||"",n=n||"";const r=WN.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=qN.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Wg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class sy extends Pd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const s=xu(this.data,l);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),s||!a||typeof r!="string"?s:Wg(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),ly(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let s=xu(this.data,l)||{};i?nC(s,r,o):s={...s,...r},ly(this.data,l,s),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var rC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const cy={};class Cu extends Pd{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),AN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Rr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!UN(t,r,i);if(a&&!l){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),s=l[l.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:a}const f=this.resolve(t,n);let p=f&&f.res;const y=f&&f.usedKey||a,b=f&&f.exactUsedKey||a,v=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(v)<0&&!(typeof m=="string"&&v==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,p,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=v==="[object Array]",E=w?[]:{},S=w?b:y;for(const C in p)if(Object.prototype.hasOwnProperty.call(p,C)){const $=`${S}${o}${C}`;E[C]=this.translate($,{...n,joinArrays:!1,ns:l}),E[C]===$&&(E[C]=p[C])}p=E}}else if(g&&typeof m=="string"&&v==="[object Array]")p=p.join(m),p&&(p=this.extendTranslation(p,t,n,r));else{let w=!1,E=!1;const S=n.count!==void 0&&typeof n.count!="string",C=Cu.hasDefaultValue(n),$=S?this.pluralResolver.getSuffix(c,n.count,n):"",k=n.ordinal&&S?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",O=S&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),P=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${$}`]||n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&C&&(w=!0,p=P),this.isValidLookup(p)||(E=!0,p=a);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=C&&P!==p&&this.options.updateMissing;if(E||w||M){if(this.logger.log(M?"updateKey":"missingKey",c,s,a,M?P:p),o){const R=this.resolve(a,{...n,keySeparator:!1});R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let R=0;R{const F=C&&N!==p?N:T;this.options.missingKeyHandler?this.options.missingKeyHandler(R,s,I,F,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(R,s,I,F,M,n),this.emit("missingKey",R,s,I,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?A.forEach(R=>{const I=this.pluralResolver.getSuffixes(R,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&I.indexOf(`${this.options.pluralSeparator}zero`)<0&&I.push(`${this.options.pluralSeparator}zero`),I.forEach(N=>{_([R],a+N,n[`defaultValue${N}`]||P)})}):_(A,a,P))}p=this.extendTranslation(p,t,n,f,r),E&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(E||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,w?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),c){const p=t.match(this.interpolator.nestingRegexp),y=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(s,n),d=c.key;i=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",y=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!cy[`${v[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(cy[`${v[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(m=>{if(this.isValidLookup(r))return;a=m;const g=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,d,m,x,n);else{let w;p&&(w=this.pluralResolver.getSuffix(m,n.count,n));const E=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(g.push(d+w),n.ordinal&&w.indexOf(S)===0&&g.push(d+w.replace(S,this.options.pluralSeparator)),y&&g.push(d+E)),b){const C=`${d}${this.options.contextSeparator}${n.context}`;g.push(C),p&&(g.push(C+w),n.ordinal&&w.indexOf(S)===0&&g.push(C+w.replace(S,this.options.pluralSeparator)),y&&g.push(C+E))}}let h;for(;h=g.pop();)this.isValidLookup(r)||(o=h,r=this.getResource(m,x,h,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function qf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class uy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Rr.create("languageUtils")}getScriptPartFromCode(t){if(t=Su(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Su(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=qf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=qf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=qf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&o.indexOf(i)===0)return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let GN=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],KN={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const XN=["v1","v2","v3"],YN=["v4"],dy={zero:0,one:1,two:2,few:3,many:4,other:5};function QN(){const e={};return GN.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:KN[t.fc]}})}),e}class ZN{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Rr.create("pluralResolver"),(!this.options.compatibilityJSON||YN.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=QN()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Su(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>dy[i]-dy[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!XN.includes(this.options.compatibilityJSON)}}function fy(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=FN(e,t,n);return!o&&i&&typeof n=="string"&&(o=Wg(e,n,r),o===void 0&&(o=Wg(t,n,r))),o}class JN{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:HN,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Bo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Bo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Bo(n.nestingPrefix):n.nestingPrefixEscaped||Bo("$t("),this.nestingSuffix=n.nestingSuffix?Bo(n.nestingSuffix):n.nestingSuffixEscaped||Bo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(b){return b.replace(/\$/g,"$$$$")}const d=b=>{if(b.indexOf(this.formatSeparator)<0){const g=fy(n,s,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,r,{...i,...n,interpolationkey:b}):g}const v=b.split(this.formatSeparator),x=v.shift().trim(),m=v.join(this.formatSeparator).trim();return this.format(fy(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>c(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?c(this.escape(b)):c(b)}].forEach(b=>{for(l=0;o=b.regex.exec(t);){const v=o[1].trim();if(a=d(v),a===void 0)if(typeof f=="function"){const m=f(t,o,i);a=typeof m=="string"?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=ay(a));const x=b.safeValue(a);if(t=t.replace(o[0],x),p?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function l(s,c){const d=this.nestingOptionsSeparator;if(s.indexOf(d)<0)return s;const f=s.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;s=f[0],p=this.interpolate(p,a);const y=p.match(/'/g),b=p.match(/"/g);(y&&y.length%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,v),`${s}${d}${p}`}return delete a.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=d.shift(),s=d,c=!0}if(o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=ay(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c&&(o=s.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function eA(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...s]=a.split(":"),c=s.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=c),c==="false"&&(n[l.trim()]=!1),c==="true"&&(n[l.trim()]=!0),isNaN(c)||(n[l.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function Mo(e){const t={};return function(r,i,o){const a=i+JSON.stringify(o);let l=t[a];return l||(l=e(Su(i),o),t[a]=l),l(r)}}class tA{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Rr.create("formatter"),this.options=t,this.formats={number:Mo((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Mo((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Mo((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Mo((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Mo((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mo(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,s)=>{const{formatName:c,formatOptions:d}=eA(s);if(this.formats[c]){let f=l;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[c](l,y,{...d,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}function nA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class rA extends Pd{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Rr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},s={};return t.forEach(c=>{let d=!0;n.forEach(f=>{const p=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),s[f]===void 0&&(s[f]=!0)))}),d||(l[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),r&&this.store.addResourceBundle(o,a,r),this.state[t]=n?-1:2;const l={};this.queue.forEach(s=>{jN(s.loaded,[o],a),nA(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(c=>{l[c]||(l[c]={});const d=s.loaded[c];d.length&&d.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&i{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(c,d)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const c=s(t,n);c&&typeof c.then=="function"?c.then(d=>l(null,d)).catch(l):l(null,c)}catch(c){l(c)}return}return s(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(t,n,r,i,s):d=c(t,n,r,i),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else c(t,n,r,i,l,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function py(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gy(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ac(){}function iA(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class es extends Pd{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=gy(t),this.services={},this.logger=Rr,this.modules={external:[]},iA(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=py();this.options={...i,...this.options,...gy(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?Rr.init(o(this.modules.logger),this.options):Rr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=tA);const f=new uy(this.options);this.store=new sy(this.options.resources,this.options);const p=this.services;p.logger=Rr,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new ZN(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new JN(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new rA(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(y){for(var b=arguments.length,v=new Array(b>1?b-1:0),x=1;x1?b-1:0),x=1;x{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ac),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const s=el(),c=()=>{const d=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ac;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>a(s)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=el();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ac),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rC.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=el();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},l=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const c=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{a(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(a,l){let s;if(typeof l!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),f=2;f`${s.keyPrefix}${p}${b}`):y=s.keyPrefix?`${s.keyPrefix}${p}${a}`:a,i.t(y,s)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const c=this.services.backendConnector.state[`${l}|${s}`];return c===-1||c===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=el();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=el();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new uy(py());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new es(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ac;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new es(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sy(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Cu(o.services,i),o.translator.on("*",function(l){for(var s=arguments.length,c=new Array(s>1?s-1:0),d=1;d{const e=localStorage.getItem("ui.language");return e===null||!(e in oC)?"zhtw":e};dn.use(Y7).init({resources:oC,lng:hA(),interpolation:{escapeValue:!1},react:{useSuspense:!0}});const vA=Uf.createRoot(document.getElementById("root"));vA.render(V.jsx(J.StrictMode,{children:V.jsx(NN,{})}));FN(); -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} +●女性超过30岁未结婚的比例太高是一种国安问题。`},q0800:{description:"气候变迁已经严重威胁到人类的生存。"},q0801:{description:"为了追求环境保护而造成生活成本上涨是可接受的。"},q0802:{description:"因人类行为而造成的物种灭绝是不可接受的。"},q0803:{description:"应全力发展再生能源,即使会缺电也没关系。"},q0900:{description:"为追求经济成长而造成污染是可接受的。"},q0901:{description:"使用成本便宜的化石燃料是必要的。"},q0902:{description:"对于鱼类捕捞不应该有任何配额限制。"},q1000:{description:"我国已经是主权独立的国家,名为中华民国,与对岸互不隶属。"},q1001:{description:"应立刻制定新宪法,宣布成立台湾共和国。"},q1002:{description:"为应对邻国军事威胁,应延长兵役役期、提高军费支出。"},q1003:{description:"Chinese Taipei(中华台北、中国台北)是一种矮化我国主权的称呼。"},q1100:{description:"台湾是中国自古以来神圣而不可分割的一部份。"},q1101:{description:"九二共识,一国两制。应立刻与对岸进行政治谈判,以达成国家统一。"},q1102:{description:"应尽快签署两岸和平协议。"},q1103:{description:"三民主义统一中国。"},q1200:{description:"加入美日阵营,抗中保台。"},q1201:{description:"应立刻举办公投加入美国,成为美国的第五十一州。"},q1202:{description:"当台海发生战争,美军必定会驰援台湾。"},q1300:{description:"两岸一家亲。"},q1301:{description:"应向国际宣称南海为中国领土,非经许可船舰不得随意进出。"}},result:{api_error:{description:"抱歉,您的测试结果无法兼容于目前新版号,请重新进行测试。",index:"回到主页"},axes:{economic:{title:"经济",equality:{name:"平等",description:"平等分数较高的人认为经济果实应该要公平的分派给众人。他们倾向于支持累进税率、社会事业,甚至是社会主义。"},efficiency:{name:"效率",description:"效率分数较高的人认为经济应专注于快速增长。他们倾向于支持低税率、私有化财产、放松金融管制,甚至是自由放任资本主义。"},categories:{0:"共产主义",1:"社会主义",2:"偏向平等",3:"中间派",4:"偏向效率",5:"资本主义",6:"自由放任主义"}},diplomatic:{title:"外交",globe:{name:"国际",description:"国际分数较高的人支持和平的外交政策,强调外交、合作、整合甚至是统一的世界政府。他们通常是世界主义者。"},nation:{name:"国家",description:"国家分数较高的人支持侵略的外交政策,重视军事、力量、主权甚至是领土侵略。他们通常是民族主义者。"},categories:{0:"世界主义者",1:"国际主义者",2:"和平爱好者",3:"平衡派",4:"爱国者",5:"民族主义者",6:"沙文主义者"}},civil:{title:"政治",liberty:{name:"自由",description:"自由分数较高的人重视个人自由。他们倾向于支持民主并反对国家干预个人自由。"},authority:{name:"威权",description:"威权分数较高的人重视国家权力。他们倾向于支持政府监视人民甚至是独裁。"},categories:{0:"无政府主义",1:"自由主义",2:"偏向自由",3:"温和派",4:"偏向国家",5:"威权主义",6:"极权主义"}},environmental:{title:"环境",ecology:{name:"生态",description:"生态分数较高的人认为气候变迁已经成为人类最大的威胁,像是全球暖化、土地沙漠化、海平面升高与森林大火。他们倾向于支持环境保护与开发再生能源。"},production:{name:"生产",description:"生产分数较高的人认为经济成长更为重要,即使会造成环境污染也没关系。他们倾向于使用便宜的化石燃料而且反对开发再生能源。"},categories:{0:"极端环境保护主义",1:"环境保护主义",2:"偏向生态",3:"中间派",4:"偏向生产",5:"反环境保护主义",6:"反环境保护主义"}},societal:{title:"社会",progress:{name:"进步",description:"进步分数较高的人相信社会变革与理性。他们通常世俗或无神论者,而且支持科学与现代科技。"},tradition:{name:"传统",description:"传统分数较高的人相信传统价值与严格遵守道德规范。他们可能是宗教信仰者或倾向于维持现状。"},categories:{0:"革命份子",1:"进步主义",2:"偏向进步",3:"中立派",4:"偏向保守",5:"保守主义",6:"反动份子"}},sovereignty:{title:"主权",independence:{name:"独立",description:"独立分数较高的人认为中华人民共和国并未拥有台湾主权。他们通常是台湾民族主义者且倾向于支持自由与民主。"},unification:{name:"统一",description:"统一分数较高的人认为应该只要有一个统一的政府来管理中国大陆与台湾。他们通常是中华民族主义者且倾向于支持实现中华民族的伟大复兴。"},categories:{0:"顽固的台独份子",1:"台独份子",2:"偏向独立",3:"中立派",4:"偏向统一",5:"中华民族拥护者",6:"坚实的中华民族拥护者"}},us_vs_china:{title:"美中",pro_american:{name:"亲美",description:"亲美分数较高的人认为台湾的半导体产业、技术与军事援助来自于美国的帮助。他们倾向于加入美国的联盟且支持民主。"},pro_chinese:{name:"亲中",description:"亲中分数较高的人认为台湾出口导向经济重度依赖中国市场,无法承受贸易制裁。他们倾向于与中国保持友好关系。"},categories:{0:"亲美主义",1:"亲美",2:"偏向亲美",3:"中立",4:"偏向亲中",5:"亲中",6:"中国民族主义"}}},ideologies:{name:"意识形态",data:{anarcho_communism:{name:"无政府共产主义",link:"https://zh.wikipedia.org/zh-cn/%E7%84%A1%E6%94%BF%E5%BA%9C%E5%85%B1%E7%94%A2%E4%B8%BB%E7%BE%A9"},libertarian_communism:{name:"自由意志共产主义",link:""},trotskyism:{name:"托洛斯基主义",link:"https://zh.wikipedia.org/zh-cn/%E6%89%98%E6%B4%9B%E8%8C%A8%E5%9F%BA%E4%B8%BB%E4%B9%89"},marxism:{name:"马克思主义",link:"https://zh.wikipedia.org/zh-cn/%E9%A9%AC%E5%85%8B%E6%80%9D%E4%B8%BB%E4%B9%89"},de_leonism:{name:"德莱昂主义",link:"https://zh.wikipedia.org/zh-cn/%E5%BE%B7%E8%8E%B1%E6%98%82%E4%B8%BB%E4%B9%89"},leninism:{name:"列宁主义",link:"https://zh.wikipedia.org/zh-cn/%E5%88%97%E5%AE%81%E4%B8%BB%E4%B9%89"},stalinism:{name:"斯大林主义",link:"https://zh.wikipedia.org/zh-cn/%E6%96%AF%E5%A4%A7%E6%9E%97%E4%B8%BB%E4%B9%89"},religious_communism:{name:"宗教共产主义",link:""},state_socialism:{name:"国有社会主义",link:"https://zh.wikipedia.org/zh-cn/%E5%9C%8B%E6%9C%89%E7%A4%BE%E6%9C%83%E4%B8%BB%E7%BE%A9"},theocratic_socialism:{name:"神权社会主义",link:""},religious_socialism:{name:"宗教社会主义",link:"https://zh.wikipedia.org/zh-cn/%E5%AE%97%E6%95%99%E7%A4%BE%E4%BC%9A%E4%B8%BB%E4%B9%89"},democratic_socialism:{name:"民主社会主义",link:"https://zh.wikipedia.org/zh-cn/%E6%B0%91%E4%B8%BB%E7%A4%BE%E4%BC%9A%E4%B8%BB%E4%B9%89"},revolutionary_socialism:{name:"革命社会主义",link:"https://zh.wikipedia.org/zh-cn/%E9%9D%A9%E5%91%BD%E7%A4%BE%E6%9C%83%E4%B8%BB%E7%BE%A9"},liberal_socialism:{name:"自由社会主义",link:"https://zh.wikipedia.org/zh-cn/%E8%87%AA%E7%94%B1%E7%A4%BE%E4%BC%9A%E4%B8%BB%E4%B9%89"},libertarian_socialism:{name:"自由意志社会主义",link:"https://zh.wikipedia.org/zh-cn/%E8%87%AA%E7%94%B1%E6%84%8F%E5%BF%97%E7%A4%BE%E6%9C%83%E4%B8%BB%E7%BE%A9"},anarcho_syndicalism:{name:"无政府工团主义",link:"https://zh.wikipedia.org/zh-cn/%E6%97%A0%E6%94%BF%E5%BA%9C%E5%B7%A5%E5%9B%A2%E4%B8%BB%E4%B9%89"},left_wing_populism:{name:"左翼民粹主义",link:"https://zh.wikipedia.org/zh-cn/%E5%B7%A6%E7%BF%BC%E6%B0%91%E7%B2%B9%E4%B8%BB%E7%BE%A9"},theocratic_distributism:{name:"神权分产主义",link:""},distributism:{name:"分产主义",link:"https://zh.wikipedia.org/zh-cn/%E5%88%86%E4%BA%A7%E4%B8%BB%E4%B9%89"},social_liberalism:{name:"社会自由主义",link:"https://zh.wikipedia.org/zh-cn/%E7%A4%BE%E4%BC%9A%E8%87%AA%E7%94%B1%E4%B8%BB%E4%B9%89"},christian_democracy:{name:"基督教民主主义",link:"https://zh.wikipedia.org/zh-cn/%E5%9F%BA%E7%9D%A3%E6%95%99%E6%B0%91%E4%B8%BB%E4%B8%BB%E7%BE%A9"},social_democracy:{name:"社会民主主义",link:"https://zh.wikipedia.org/zh-cn/%E7%A4%BE%E6%9C%83%E6%B0%91%E4%B8%BB%E4%B8%BB%E7%BE%A9"},progressivism:{name:"进步主义",link:"https://zh.wikipedia.org/zh-cn/%E9%80%B2%E6%AD%A5%E4%B8%BB%E7%BE%A9"},anarcho_mutualism:{name:"无政府互利主义",link:"https://zh.wikipedia.org/zh-cn/%E4%BA%92%E5%8A%A9%E8%AB%96_(%E7%B6%93%E6%BF%9F%E5%AD%B8%E7%90%86%E8%AB%96)"},national_totalitarianism:{name:"国家极权主义",link:"https://zh.wikipedia.org/zh-cn/%E6%A5%B5%E6%AC%8A%E4%B8%BB%E7%BE%A9"},global_totalitarianism:{name:"全球极权主义",link:"https://zh.wikipedia.org/zh-cn/%E6%A5%B5%E6%AC%8A%E4%B8%BB%E7%BE%A9"},technocracy:{name:"技术官僚主义",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%93%E5%AE%B6%E7%BB%9F%E6%B2%BB"},centrist:{name:"中间主义",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%AD%E9%97%B4%E4%B8%BB%E4%B9%89"},liberalism:{name:"自由主义",link:"https://zh.wikipedia.org/zh-cn/%E8%87%AA%E7%94%B1%E4%B8%BB%E4%B9%89"},religious_anarchism:{name:"宗教无政府主义",link:""},right_wing_populism:{name:"右翼民粹主义",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B3%E7%BF%BC%E6%B0%91%E7%B2%B9%E4%B8%BB%E7%BE%A9"},liberal_conservatism:{name:"自由保守主义",link:"https://zh.wikipedia.org/zh-cn/%E8%87%AA%E7%94%B1%E4%BF%9D%E5%AE%88%E4%B8%BB%E7%BE%A9"},reactionary:{name:"反动",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%8D%E5%8A%A8"},social_libertarianism:{name:"社会自由意志主义",link:""},libertarianism:{name:"自由意志主义",link:"https://zh.wikipedia.org/zh-cn/%E8%87%AA%E7%94%B1%E6%84%8F%E5%BF%97%E4%B8%BB%E7%BE%A9"},anarcho_egoism:{name:"利己无政府主义",link:"https://zh.wikipedia.org/zh-cn/%E5%88%A9%E5%B7%B1%E6%97%A0%E6%94%BF%E5%BA%9C%E4%B8%BB%E4%B9%89"},nazism:{name:"纳粹主义",link:"https://zh.wikipedia.org/zh-cn/%E7%BA%B3%E7%B2%B9%E4%B8%BB%E4%B9%89"},autocracy:{name:"独裁",link:"https://zh.wikipedia.org/zh-cn/%E7%8B%AC%E8%A3%81"},fascism:{name:"法西斯主义",link:"https://zh.wikipedia.org/zh-cn/%E6%B3%95%E8%A5%BF%E6%96%AF%E4%B8%BB%E4%B9%89"},capitalist_fascism:{name:"法西斯资本主义",link:""},conservatism:{name:"保守主义",link:"https://zh.wikipedia.org/zh-cn/%E4%BF%9D%E5%AE%88%E4%B8%BB%E4%B9%89"},neo_liberalism:{name:"新自由主义",link:"https://zh.wikipedia.org/zh-cn/%E6%96%B0%E8%87%AA%E7%94%B1%E4%B8%BB%E7%BE%A9"},classical_liberalism:{name:"古典自由主义",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%A4%E5%85%B8%E8%87%AA%E7%94%B1%E4%B8%BB%E4%B9%89"},authoritarian_capitalism:{name:"威权资本主义",link:"https://zh.wikipedia.org/zh-cn/%E5%A8%81%E6%9D%83%E8%B5%84%E6%9C%AC%E4%B8%BB%E4%B9%89"},state_capitalism:{name:"国家资本主义",link:"https://zh.wikipedia.org/zh-cn/%E5%9B%BD%E5%AE%B6%E8%B5%84%E6%9C%AC%E4%B8%BB%E4%B9%89"},neo_conservatism:{name:"新保守主义",link:"https://zh.wikipedia.org/zh-cn/%E6%96%B0%E4%BF%9D%E5%AE%88%E4%B8%BB%E7%BE%A9"},fundamentalism:{name:"原教旨主义",link:"https://zh.wikipedia.org/zh-cn/%E5%8E%9F%E6%95%99%E6%97%A8%E4%B8%BB%E7%BE%A9"},libertarian_capitalism:{name:"自由意志资本主义",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B3%E6%B4%BE%E8%87%AA%E7%94%B1%E6%84%8F%E5%BF%97%E4%B8%BB%E7%BE%A9"},market_anarchism:{name:"利伯维尔场无政府主义",link:""},objectivism:{name:"客观主义",link:"https://zh.wikipedia.org/zh-cn/%E5%AE%A2%E8%A7%80%E4%B8%BB%E7%BE%A9"},totalitarian_capitalism:{name:"极权资本主义",link:""},ultra_capitalism:{name:"超级资本主义",link:""},anarcho_capitalism:{name:"无政府资本主义",link:"https://zh.wikipedia.org/zh-cn/%E7%84%A1%E6%94%BF%E5%BA%9C%E8%B3%87%E6%9C%AC%E4%B8%BB%E7%BE%A9"}}},political_parties:{name:"政党",data:{kmt:{name:"中国国民党",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%AD%E5%9C%8B%E5%9C%8B%E6%B0%91%E9%BB%A8"},lp:{name:"劳动党",link:"https://zh.wikipedia.org/zh-cn/%E5%8B%9E%E5%8B%95%E9%BB%A8_(%E8%87%BA%E7%81%A3)"},dpp:{name:"民主进步党",link:"https://zh.wikipedia.org/zh-cn/%E6%B0%91%E4%B8%BB%E9%80%B2%E6%AD%A5%E9%BB%A8"},tsu:{name:"台湾团结联盟",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B0%E7%81%A3%E5%9C%98%E7%B5%90%E8%81%AF%E7%9B%9F"},np:{name:"新党",link:"https://zh.wikipedia.org/zh-cn/%E6%96%B0%E9%BB%A8"},npp:{name:"时代力量",link:"https://zh.wikipedia.org/zh-cn/%E6%99%82%E4%BB%A3%E5%8A%9B%E9%87%8F"},tpp:{name:"台湾民众党",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B0%E7%81%A3%E6%B0%91%E7%9C%BE%E9%BB%A8"},tsp:{name:"台湾基进",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B0%E7%81%A3%E5%9F%BA%E9%80%B2"},cupp:{name:"中华统一促进党",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%AD%E8%8F%AF%E7%B5%B1%E4%B8%80%E4%BF%83%E9%80%B2%E9%BB%A8"},gpt:{name:"台湾绿党",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B0%E7%81%A3%E7%B6%A0%E9%BB%A8"}}},tags:{name:"意识形态标签",data:{roc_unification:{name:"华统",description:"主张反攻大陆,解救大陆同胞于水深火热之中,由中华民国来统一全中国,实行三民主义五权宪法。",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%89%E6%B0%91%E4%B8%BB%E7%BE%A9%E7%B5%B1%E4%B8%80%E4%B8%AD%E5%9C%8B"},roc_independence:{name:"华独",description:"主张中华民国放弃大陆领土与主权并承认北京分裂势力为独立国家。",link:"https://zh.wikipedia.org/zh-cn/%E8%8F%AF%E7%8D%A8"},tw_independence:{name:"台独",description:"主张制定新宪法成立台湾共和国,与中华人民共和国成为两个完全独立的国家。",link:"https://zh.wikipedia.org/zh-cn/%E5%8F%B0%E7%8D%A8_(%E8%A1%93%E8%AA%9E)"},prc_unification:{name:"红统",description:"支持台湾并入中华人民共和国,实行一国两制。",link:"https://zh.wikipedia.org/zh-cn/%E4%B8%80%E5%9B%BD%E4%B8%A4%E5%88%B6"},death_penalty_abolitionists:{name:"废死",description:"废除死刑,以终身监禁或其他刑罚取代之。",link:"https://zh.wikipedia.org/zh-cn/%E6%AD%BB%E5%88%91%E5%AD%98%E5%BB%A2%E5%95%8F%E9%A1%8C"},homophobia:{name:"恐同",description:"同性恋恐惧亦称恐同或反同,是指对同性恋的排斥,包括涉及反感、鄙视、厌恶、仇恨、偏见和歧视,可能是基于恐惧,有时也涉及到受宗教信仰及社会文化的影响。",link:"https://zh.wikipedia.org/zh-cn/%E5%90%8C%E6%80%A7%E6%88%80%E6%81%90%E6%87%BC"},male_chauvinism:{name:"男性沙文主义",description:"又称男性沙文主义、男性至上主义、男性优越主义或者大男人主义,是一种认为男尊女卑、男性必定优于女性,因此男性更应统治女性的意识形态。",link:"https://zh.wikipedia.org/zh-cn/%E5%A4%A7%E7%94%B7%E5%AD%90%E4%B8%BB%E4%B9%89"},feminism:{name:"女性主义",description:"又译女权主义,既是一套庞大的平权理论,也是一系列社会运动的总称,其最终目的是建立一个对所有性别都平等的友善社会。",link:"https://zh.wikipedia.org/zh-cn/%E5%A5%B3%E6%80%A7%E4%B8%BB%E7%BE%A9"},feminism_buffet:{name:"女权自助餐",description:"意指那些以女权之名获得男女平等带来的利益的同时,又不愿意放弃父权红利的女性。",link:""},political_apathy:{name:"政治异化",description:"意指公民个人对现行政治制度的疏远感或排斥感。在代议制民主国家,这通常会导致选民冷漠,以及在选举中弃选和弃投。",link:"https://zh.wikipedia.org/zh-cn/%E6%94%BF%E6%B2%BB%E7%95%B0%E5%8C%96"}}}}},uA={quiz:cA},iC={en:{translation:aA},zhtw:{translation:sA},zhcn:{translation:uA}},dA=()=>{const e=localStorage.getItem("ui.language");return e===null||!(e in iC)?"zhtw":e};dn.use(X7).init({resources:iC,lng:dA(),interpolation:{escapeValue:!1},react:{useSuspense:!0}});const fA=Uf.createRoot(document.getElementById("root"));fA.render(H.jsx(J.StrictMode,{children:H.jsx(MN,{})})); diff --git a/assets/web-vitals-BA3w2fPb.js b/assets/web-vitals-BA3w2fPb.js deleted file mode 100644 index 77233a3..0000000 --- a/assets/web-vitals-BA3w2fPb.js +++ /dev/null @@ -1 +0,0 @@ -var m,l,C,T,f=function(t,e){return{name:t,value:e===void 0?-1:e,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},h=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var i=new PerformanceObserver(function(a){return a.getEntries().map(e)});return i.observe({type:t,buffered:!0}),i}}catch{}},y=function(t,e){var i=function a(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(n),e&&(removeEventListener("visibilitychange",a,!0),removeEventListener("pagehide",a,!0)))};addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0)},g=function(t){addEventListener("pageshow",function(e){e.persisted&&t(e)},!0)},v=function(t,e,i){var a;return function(n){e.value>=0&&(n||i)&&(e.delta=e.value-(a||0),(e.delta||a===void 0)&&(a=e.value,t(e)))}},p=-1,w=function(){return document.visibilityState==="hidden"?0:1/0},F=function(){y(function(t){var e=t.timeStamp;p=e},!0)},S=function(){return p<0&&(p=w(),F(),g(function(){setTimeout(function(){p=w(),F()},0)})),{get firstHiddenTime(){return p}}},A=function(t,e){var i,a=S(),n=f("FCP"),o=function(c){c.name==="first-contentful-paint"&&(u&&u.disconnect(),c.startTime-1&&t(s)},n=f("CLS",0),o=0,r=[],u=function(s){if(!s.hadRecentInput){var B=r[0],q=r[r.length-1];o&&s.startTime-q.startTime<1e3&&s.startTime-B.startTime<5e3?(o+=s.value,r.push(s)):(o=s.value,r=[s]),o>n.value&&(n.value=o,n.entries=r,i())}},c=h("layout-shift",u);c&&(i=v(a,n,e),y(function(){c.takeRecords().map(u),i(!0)}),g(function(){o=0,E=-1,n=f("CLS",0),i=v(a,n,e)}))},d={passive:!0,capture:!0},H=new Date,P=function(t,e){m||(m=e,l=t,C=new Date,k(removeEventListener),D())},D=function(){if(l>=0&&l1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(i,a){var n=function(){P(i,a),r()},o=function(){r()},r=function(){removeEventListener("pointerup",n,d),removeEventListener("pointercancel",o,d)};addEventListener("pointerup",n,d),addEventListener("pointercancel",o,d)}(e,t):P(e,t)}},k=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,I,d)})},M=function(t,e){var i,a=S(),n=f("FID"),o=function(u){u.startTimeperformance.now())return;i.entries=[a],t(i)}catch{}},document.readyState==="complete"?setTimeout(e,0):addEventListener("load",function(){return setTimeout(e,0)})};export{R as getCLS,A as getFCP,M as getFID,N as getLCP,O as getTTFB}; diff --git a/favicon.svg b/favicon.svg index b424fe4..b4af54e 100644 --- a/favicon.svg +++ b/favicon.svg @@ -1,3 +1,18 @@ - + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 3e7d622..dc4bb44 100644 --- a/index.html +++ b/index.html @@ -1,23 +1,21 @@ - + + + + + + + + + + 台灣價值 TW Values + + + + - - - - - - - - - 台灣價值 TW Values - - - - - - - -
- - + + +
+