0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.99.39


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/index-B5F0d500.js

const __vite__fileDeps=["assets/Header-WK0UbNkg.js","assets/Header-DLQGvZvA.css","assets/GuideLines-DErdrFgE.js","assets/index-CFNwlapL.js","assets/HomeOutlined-XzFj8f3d.js","assets/BankDetails-DsE298T_.js","assets/row-gdOHhc_t.js","assets/responsiveObserver-B_OpI-E3.js","assets/QpPattern-pPDyEoWX.js","assets/sem-BK69X1ab.js","assets/UploadQpPattern-DG-sbYFv.js","assets/datatable-C0rkCakn.js","assets/UploadOutlined-CUZht8o3.js","assets/index-D-OTWegR.js","assets/index-C9DwObLL.js","assets/DeleteOutlined-Dvma0WKZ.js","assets/Table-Cq_s-lOq.js","assets/index-B0EGZCC0.js","assets/AvailableQp-B91EmYl1.js","assets/ArrowLeftOutlined-AxTSsArd.js","assets/SaveOutlined-qtoErx-9.js","assets/EligibleQpSetter-BC2KoL20.js","assets/SelectQpSetter-CEcLNkG8.js","assets/index-Buk_JIJY.js","assets/AcceptQpRequest-CLfrqUDR.js","assets/UploadQuestionPaper-B4_Pg-N3.js","assets/PrepareQuestionPaper-BcdqfqUN.js","assets/PrepareQp-CPPk5rlV.js","assets/EditOutlined-KTEcojxf.js","assets/FilePdfOutlined-BZw2jFjU.js","assets/PrepareThQp-quaNeTNj.js","assets/quill.snow-DmJU863k.js","assets/quill-D-h-yQ65.css","assets/PrepareThQp-DcIxWSQY.css","assets/AssignModerator-BAvBfGwx.js","assets/DisplayTempCode-BuyLkDo6.js","assets/TemplateCode-Bm5_AGUj.js","assets/CreateTempCode-Deh4mEnd.js","assets/QpSummary-CiGctSWN.js","assets/SelectFinalQp-CUsc-Rlw.js","assets/SelectFinalQP-CZgRlwHl.js","assets/SelectFinalMCQQp-KR8RA7jA.js","assets/ModQpDetailsOnline-CirXU6gi.js","assets/ModQpDetails-C38lM0YN.js","assets/ModQpDetailsOffline-B9iwMa3F.js","assets/ViewMcqFinalPaper-DRDcMtPI.js","assets/GenerateBill-BNvKXf9Z.js","assets/ChangePassword-xll7hQbY.js","assets/ViewQPScr-BsoUkRER.js","assets/ViewQPScr-DYC2W3Kd.js","assets/StopOutlined-D5h4aK1O.js","assets/ViewFinalQP-BNcqFYrD.js","assets/AssignUserMenus-rNyEAm0I.js","assets/Usertype-CDwQWUys.js","assets/Usertype-CX0nshep.js","assets/CreateUser-D8rP-9St.js","assets/TeacherEntry-B5Q6zPpP.js","assets/TeacherEntry-BIF2nkTU.js","assets/ViewTeacherList-DTXtENUP.js","assets/PrepareQuestionPaper-BsEX211P.js","assets/PrepareQuestionPaper-DAflS0eW.js","assets/PrepareQuestionPaper-C2UwIRZt.css","assets/ViewPrepareQp-D62wKw0w.js","assets/SubjectCreation-CjEmH02B.js","assets/SubjectCreation-Cv70fNm8.js","assets/ViewSubject-CtmtYDrk.js","assets/DegreeGroup-CZW9f4oQ.js","assets/DegreeGroup-BWb7GcRD.js","assets/Viewdeggrp-BOBtBXx-.js","assets/Degree-B_LEdsVM.js","assets/Degree-2S61oi13.js","assets/ViewDegree-DsUtnkiH.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
function eS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Rk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tS={exports:{}},Ac={},nS={exports:{}},mt={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ss=Symbol.for("react.element"),wR=Symbol.for("react.portal"),ER=Symbol.for("react.fragment"),xR=Symbol.for("react.strict_mode"),RR=Symbol.for("react.profiler"),$R=Symbol.for("react.provider"),OR=Symbol.for("react.context"),PR=Symbol.for("react.forward_ref"),_R=Symbol.for("react.suspense"),IR=Symbol.for("react.memo"),TR=Symbol.for("react.lazy"),qg=Symbol.iterator;function MR(e){return e===null||typeof e!="object"?null:(e=qg&&e[qg]||e["@@iterator"],typeof e=="function"?e:null)}var rS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oS=Object.assign,aS={};function Vi(e,t,n){this.props=e,this.context=t,this.refs=aS,this.updater=n||rS}Vi.prototype.isReactComponent={};Vi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iS(){}iS.prototype=Vi.prototype;function tp(e,t,n){this.props=e,this.context=t,this.refs=aS,this.updater=n||rS}var np=tp.prototype=new iS;np.constructor=tp;oS(np,Vi.prototype);np.isPureReactComponent=!0;var Qg=Array.isArray,lS=Object.prototype.hasOwnProperty,rp={current:null},sS={key:!0,ref:!0,__self:!0,__source:!0};function uS(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)lS.call(t,r)&&!sS.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ss,type:e,key:a,ref:i,props:o,_owner:rp.current}}function NR(e,t){return{$$typeof:Ss,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function op(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ss}function LR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xg=/\/+/g;function Dd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?LR(""+e.key):t.toString(36)}function bu(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ss:case wR:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Dd(i,0):r,Qg(o)?(n="",e!=null&&(n=e.replace(Xg,"$&/")+"/"),bu(o,t,n,"",function(c){return c})):o!=null&&(op(o)&&(o=NR(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Xg,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Qg(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+Dd(a,l);i+=bu(a,t,n,s,o)}else if(s=MR(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+Dd(a,l++),i+=bu(a,t,n,s,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Vs(e,t,n){if(e==null)return e;var r=[],o=0;return bu(e,r,"","",function(a){return t.call(n,a,o++)}),r}function AR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Bn={current:null},Su={transition:null},jR={ReactCurrentDispatcher:Bn,ReactCurrentBatchConfig:Su,ReactCurrentOwner:rp};function cS(){throw Error("act(...) is not supported in production builds of React.")}mt.Children={map:Vs,forEach:function(e,t,n){Vs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vs(e,function(){t++}),t},toArray:function(e){return Vs(e,function(t){return t})||[]},only:function(e){if(!op(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};mt.Component=Vi;mt.Fragment=ER;mt.Profiler=RR;mt.PureComponent=tp;mt.StrictMode=xR;mt.Suspense=_R;mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jR;mt.act=cS;mt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=oS({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=rp.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)lS.call(t,s)&&!sS.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Ss,type:e.type,key:o,ref:a,props:r,_owner:i}};mt.createContext=function(e){return e={$$typeof:OR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$R,_context:e},e.Consumer=e};mt.createElement=uS;mt.createFactory=function(e){var t=uS.bind(null,e);return t.type=e,t};mt.createRef=function(){return{current:null}};mt.forwardRef=function(e){return{$$typeof:PR,render:e}};mt.isValidElement=op;mt.lazy=function(e){return{$$typeof:TR,_payload:{_status:-1,_result:e},_init:AR}};mt.memo=function(e,t){return{$$typeof:IR,type:e,compare:t===void 0?null:t}};mt.startTransition=function(e){var t=Su.transition;Su.transition={};try{e()}finally{Su.transition=t}};mt.unstable_act=cS;mt.useCallback=function(e,t){return Bn.current.useCallback(e,t)};mt.useContext=function(e){return Bn.current.useContext(e)};mt.useDebugValue=function(){};mt.useDeferredValue=function(e){return Bn.current.useDeferredValue(e)};mt.useEffect=function(e,t){return Bn.current.useEffect(e,t)};mt.useId=function(){return Bn.current.useId()};mt.useImperativeHandle=function(e,t,n){return Bn.current.useImperativeHandle(e,t,n)};mt.useInsertionEffect=function(e,t){return Bn.current.useInsertionEffect(e,t)};mt.useLayoutEffect=function(e,t){return Bn.current.useLayoutEffect(e,t)};mt.useMemo=function(e,t){return Bn.current.useMemo(e,t)};mt.useReducer=function(e,t,n){return Bn.current.useReducer(e,t,n)};mt.useRef=function(e){return Bn.current.useRef(e)};mt.useState=function(e){return Bn.current.useState(e)};mt.useSyncExternalStore=function(e,t,n){return Bn.current.useSyncExternalStore(e,t,n)};mt.useTransition=function(){return Bn.current.useTransition()};mt.version="18.3.1";nS.exports=mt;var u=nS.exports;const K=ep(u),$a=eS({__proto__:null,default:K},[u]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var DR=u,FR=Symbol.for("react.element"),zR=Symbol.for("react.fragment"),BR=Object.prototype.hasOwnProperty,kR=DR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,HR={key:!0,ref:!0,__self:!0,__source:!0};function dS(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)BR.call(t,r)&&!HR.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:FR,type:e,key:a,ref:i,props:o,_owner:kR.current}}Ac.Fragment=zR;Ac.jsx=dS;Ac.jsxs=dS;tS.exports=Ac;var B=tS.exports,Qf={},fS={exports:{}},ur={},mS={exports:{}},vS={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t($,L){var N=$.length;$.push(L);e:for(;0<N;){var T=N-1>>>1,k=$[T];if(0<o(k,L))$[T]=L,$[N]=k,N=T;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var L=$[0],N=$.pop();if(N!==L){$[0]=N;e:for(var T=0,k=$.length,H=k>>>1;T<H;){var U=2*(T+1)-1,G=$[U],ee=U+1,Q=$[ee];if(0>o(G,N))ee<k&&0>o(Q,G)?($[T]=Q,$[ee]=N,T=ee):($[T]=G,$[U]=N,T=U);else if(ee<k&&0>o(Q,N))$[T]=Q,$[ee]=N,T=ee;else break e}}return L}function o($,L){var N=$.sortIndex-L.sortIndex;return N!==0?N:$.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],d=1,f=null,m=3,g=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p($){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=$)r(c),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(c)}}function C($){if(b=!1,p($),!y)if(n(s)!==null)y=!0,j(w);else{var L=n(c);L!==null&&P(C,L.startTime-$)}}function w($,L){y=!1,b&&(b=!1,h(R),R=-1),g=!0;var N=m;try{for(p(L),f=n(s);f!==null&&(!(f.expirationTime>L)||$&&!A());){var T=f.callback;if(typeof T=="function"){f.callback=null,m=f.priorityLevel;var k=T(f.expirationTime<=L);L=e.unstable_now(),typeof k=="function"?f.callback=k:f===n(s)&&r(s),p(L)}else r(s);f=n(s)}if(f!==null)var H=!0;else{var U=n(c);U!==null&&P(C,U.startTime-L),H=!1}return H}finally{f=null,m=N,g=!1}}var x=!1,E=null,R=-1,O=5,_=-1;function A(){return!(e.unstable_now()-_<O)}function M(){if(E!==null){var $=e.unstable_now();_=$;var L=!0;try{L=E(!0,$)}finally{L?D():(x=!1,E=null)}}else x=!1}var D;if(typeof v=="function")D=function(){v(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,V=I.port2;I.port1.onmessage=M,D=function(){V.postMessage(null)}}else D=function(){S(M,0)};function j($){E=$,x||(x=!0,D())}function P($,L){R=S(function(){$(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,j(w))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var L=3;break;default:L=m}var N=m;m=L;try{return $()}finally{m=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,L){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var N=m;m=$;try{return L()}finally{m=N}},e.unstable_scheduleCallback=function($,L,N){var T=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?T+N:T):N=T,$){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=N+k,$={id:d++,callback:L,priorityLevel:$,startTime:N,expirationTime:k,sortIndex:-1},N>T?($.sortIndex=N,t(c,$),n(s)===null&&$===n(c)&&(b?(h(R),R=-1):b=!0,P(C,N-T))):($.sortIndex=k,t(s,$),y||g||(y=!0,j(w))),$},e.unstable_shouldYield=A,e.unstable_wrapCallback=function($){var L=m;return function(){var N=m;m=L;try{return $.apply(this,arguments)}finally{m=N}}}})(vS);mS.exports=vS;var VR=mS.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var WR=u,lr=VR;function ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var pS=new Set,Bl={};function ja(e,t){Oi(e,t),Oi(e+"Capture",t)}function Oi(e,t){for(Bl[e]=t,e=0;e<t.length;e++)pS.add(t[e])}var vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xf=Object.prototype.hasOwnProperty,UR=/^[: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]*$/,Yg={},Jg={};function GR(e){return Xf.call(Jg,e)?!0:Xf.call(Yg,e)?!1:UR.test(e)?Jg[e]=!0:(Yg[e]=!0,!1)}function KR(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 qR(e,t,n,r){if(t===null||typeof t>"u"||KR(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 kn(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var $n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$n[e]=new kn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$n[t]=new kn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$n[e]=new kn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$n[e]=new kn(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){$n[e]=new kn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$n[e]=new kn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$n[e]=new kn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$n[e]=new kn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$n[e]=new kn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ap=/[\-:]([a-z])/g;function ip(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(ap,ip);$n[t]=new kn(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(ap,ip);$n[t]=new kn(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(ap,ip);$n[t]=new kn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$n[e]=new kn(e,1,!1,e.toLowerCase(),null,!1,!1)});$n.xlinkHref=new kn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$n[e]=new kn(e,1,!1,e.toLowerCase(),null,!0,!0)});function lp(e,t,n,r){var o=$n.hasOwnProperty(t)?$n[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(qR(t,n,o,r)&&(n=null),r||o===null?GR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var So=WR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ws=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),sp=Symbol.for("react.strict_mode"),Yf=Symbol.for("react.profiler"),gS=Symbol.for("react.provider"),hS=Symbol.for("react.context"),up=Symbol.for("react.forward_ref"),Jf=Symbol.for("react.suspense"),Zf=Symbol.for("react.suspense_list"),cp=Symbol.for("react.memo"),To=Symbol.for("react.lazy"),yS=Symbol.for("react.offscreen"),Zg=Symbol.iterator;function nl(e){return e===null||typeof e!="object"?null:(e=Zg&&e[Zg]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Object.assign,Fd;function bl(e){if(Fd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fd=t&&t[1]||""}return`
`+Fd+e}var zd=!1;function Bd(e,t){if(!e||zd)return"";zd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),a=r.stack.split(`
`),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==a[l]){var s=`
`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{zd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bl(e):""}function QR(e){switch(e.tag){case 5:return bl(e.type);case 16:return bl("Lazy");case 13:return bl("Suspense");case 19:return bl("SuspenseList");case 0:case 2:case 15:return e=Bd(e.type,!1),e;case 11:return e=Bd(e.type.render,!1),e;case 1:return e=Bd(e.type,!0),e;default:return""}}function em(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 ai:return"Fragment";case oi:return"Portal";case Yf:return"Profiler";case sp:return"StrictMode";case Jf:return"Suspense";case Zf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hS:return(e.displayName||"Context")+".Consumer";case gS:return(e._context.displayName||"Context")+".Provider";case up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cp:return t=e.displayName||null,t!==null?t:em(e.type)||"Memo";case To:t=e._payload,e=e._init;try{return em(e(t))}catch{}}return null}function XR(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 em(t);case 8:return t===sp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function YR(e){var t=bS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Us(e){e._valueTracker||(e._valueTracker=YR(e))}function SS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Uu(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 tm(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function CS(e,t){t=t.checked,t!=null&&lp(e,"checked",t,!1)}function nm(e,t){CS(e,t);var n=Xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rm(e,t.type,n):t.hasOwnProperty("defaultValue")&&rm(e,t.type,Xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function th(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 rm(e,t,n){(t!=="number"||Uu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sl=Array.isArray;function bi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xo(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function om(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ue(91));return Ut({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ue(92));if(Sl(n)){if(1<n.length)throw Error(ue(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Xo(n)}}function wS(e,t){var n=Xo(t.value),r=Xo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function rh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ES(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function am(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ES(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gs,xS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gs=Gs||document.createElement("div"),Gs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rl={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},JR=["Webkit","ms","Moz","O"];Object.keys(Rl).forEach(function(e){JR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rl[t]=Rl[e]})});function RS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Rl.hasOwnProperty(e)&&Rl[e]?(""+t).trim():t+"px"}function $S(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=RS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ZR=Ut({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 im(e,t){if(t){if(ZR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ue(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ue(62))}}function lm(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 sm=null;function dp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var um=null,Si=null,Ci=null;function oh(e){if(e=Es(e)){if(typeof um!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=Bc(t),um(e.stateNode,e.type,t))}}function OS(e){Si?Ci?Ci.push(e):Ci=[e]:Si=e}function PS(){if(Si){var e=Si,t=Ci;if(Ci=Si=null,oh(e),t)for(e=0;e<t.length;e++)oh(t[e])}}function _S(e,t){return e(t)}function IS(){}var kd=!1;function TS(e,t,n){if(kd)return e(t,n);kd=!0;try{return _S(e,t,n)}finally{kd=!1,(Si!==null||Ci!==null)&&(IS(),PS())}}function Hl(e,t){var n=e.stateNode;if(n===null)return null;var r=Bc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ue(231,t,typeof n));return n}var cm=!1;if(vo)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){cm=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{cm=!1}function e$(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var $l=!1,Gu=null,Ku=!1,dm=null,t$={onError:function(e){$l=!0,Gu=e}};function n$(e,t,n,r,o,a,i,l,s){$l=!1,Gu=null,e$.apply(t$,arguments)}function r$(e,t,n,r,o,a,i,l,s){if(n$.apply(this,arguments),$l){if($l){var c=Gu;$l=!1,Gu=null}else throw Error(ue(198));Ku||(Ku=!0,dm=c)}}function Da(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function MS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ah(e){if(Da(e)!==e)throw Error(ue(188))}function o$(e){var t=e.alternate;if(!t){if(t=Da(e),t===null)throw Error(ue(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ah(o),e;if(a===r)return ah(o),t;a=a.sibling}throw Error(ue(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(ue(189))}}if(n.alternate!==r)throw Error(ue(190))}if(n.tag!==3)throw Error(ue(188));return n.stateNode.current===n?e:t}function NS(e){return e=o$(e),e!==null?LS(e):null}function LS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=LS(e);if(t!==null)return t;e=e.sibling}return null}var AS=lr.unstable_scheduleCallback,ih=lr.unstable_cancelCallback,a$=lr.unstable_shouldYield,i$=lr.unstable_requestPaint,Yt=lr.unstable_now,l$=lr.unstable_getCurrentPriorityLevel,fp=lr.unstable_ImmediatePriority,jS=lr.unstable_UserBlockingPriority,qu=lr.unstable_NormalPriority,s$=lr.unstable_LowPriority,DS=lr.unstable_IdlePriority,jc=null,Zr=null;function u$(e){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(jc,e,void 0,(e.current.flags&128)===128)}catch{}}var Fr=Math.clz32?Math.clz32:f$,c$=Math.log,d$=Math.LN2;function f$(e){return e>>>=0,e===0?32:31-(c$(e)/d$|0)|0}var Ks=64,qs=4194304;function Cl(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 Qu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Cl(l):(a&=i,a!==0&&(r=Cl(a)))}else i=n&~o,i!==0?r=Cl(i):a!==0&&(r=Cl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Fr(t),o=1<<n,r|=e[n],t&=~o;return r}function m$(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function v$(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Fr(a),l=1<<i,s=o[i];s===-1?(!(l&n)||l&r)&&(o[i]=m$(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function fm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function FS(){var e=Ks;return Ks<<=1,!(Ks&4194240)&&(Ks=64),e}function Hd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cs(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 p$(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<n;){var o=31-Fr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function mp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var $t=0;function zS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var BS,vp,kS,HS,VS,mm=!1,Qs=[],ko=null,Ho=null,Vo=null,Vl=new Map,Wl=new Map,No=[],g$="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function lh(e,t){switch(e){case"focusin":case"focusout":ko=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Vo=null;break;case"pointerover":case"pointerout":Vl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wl.delete(t.pointerId)}}function ol(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=Es(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function h$(e,t,n,r,o){switch(t){case"focusin":return ko=ol(ko,e,t,n,r,o),!0;case"dragenter":return Ho=ol(Ho,e,t,n,r,o),!0;case"mouseover":return Vo=ol(Vo,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Vl.set(a,ol(Vl.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Wl.set(a,ol(Wl.get(a)||null,e,t,n,r,o)),!0}return!1}function WS(e){var t=pa(e.target);if(t!==null){var n=Da(t);if(n!==null){if(t=n.tag,t===13){if(t=MS(n),t!==null){e.blockedOn=t,VS(e.priority,function(){kS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sm=r,n.target.dispatchEvent(r),sm=null}else return t=Es(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function sh(e,t,n){Cu(e)&&n.delete(t)}function y$(){mm=!1,ko!==null&&Cu(ko)&&(ko=null),Ho!==null&&Cu(Ho)&&(Ho=null),Vo!==null&&Cu(Vo)&&(Vo=null),Vl.forEach(sh),Wl.forEach(sh)}function al(e,t){e.blockedOn===t&&(e.blockedOn=null,mm||(mm=!0,lr.unstable_scheduleCallback(lr.unstable_NormalPriority,y$)))}function Ul(e){function t(o){return al(o,e)}if(0<Qs.length){al(Qs[0],e);for(var n=1;n<Qs.length;n++){var r=Qs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ko!==null&&al(ko,e),Ho!==null&&al(Ho,e),Vo!==null&&al(Vo,e),Vl.forEach(t),Wl.forEach(t),n=0;n<No.length;n++)r=No[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<No.length&&(n=No[0],n.blockedOn===null);)WS(n),n.blockedOn===null&&No.shift()}var wi=So.ReactCurrentBatchConfig,Xu=!0;function b$(e,t,n,r){var o=$t,a=wi.transition;wi.transition=null;try{$t=1,pp(e,t,n,r)}finally{$t=o,wi.transition=a}}function S$(e,t,n,r){var o=$t,a=wi.transition;wi.transition=null;try{$t=4,pp(e,t,n,r)}finally{$t=o,wi.transition=a}}function pp(e,t,n,r){if(Xu){var o=vm(e,t,n,r);if(o===null)Jd(e,t,r,Yu,n),lh(e,r);else if(h$(o,e,t,n,r))r.stopPropagation();else if(lh(e,r),t&4&&-1<g$.indexOf(e)){for(;o!==null;){var a=Es(o);if(a!==null&&BS(a),a=vm(e,t,n,r),a===null&&Jd(e,t,r,Yu,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else Jd(e,t,r,null,n)}}var Yu=null;function vm(e,t,n,r){if(Yu=null,e=dp(r),e=pa(e),e!==null)if(t=Da(e),t===null)e=null;else if(n=t.tag,n===13){if(e=MS(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yu=e,null}function US(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(l$()){case fp:return 1;case jS:return 4;case qu:case s$:return 16;case DS:return 536870912;default:return 16}default:return 16}}var Ao=null,gp=null,wu=null;function GS(){if(wu)return wu;var e,t=gp,n=t.length,r,o="value"in Ao?Ao.value:Ao.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return wu=o.slice(e,1<r?1-r:void 0)}function Eu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xs(){return!0}function uh(){return!1}function cr(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Xs:uh,this.isPropagationStopped=uh,this}return Ut(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),t}var Wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=cr(Wi),ws=Ut({},Wi,{view:0,detail:0}),C$=cr(ws),Vd,Wd,il,Dc=Ut({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==il&&(il&&e.type==="mousemove"?(Vd=e.screenX-il.screenX,Wd=e.screenY-il.screenY):Wd=Vd=0,il=e),Vd)},movementY:function(e){return"movementY"in e?e.movementY:Wd}}),ch=cr(Dc),w$=Ut({},Dc,{dataTransfer:0}),E$=cr(w$),x$=Ut({},ws,{relatedTarget:0}),Ud=cr(x$),R$=Ut({},Wi,{animationName:0,elapsedTime:0,pseudoElement:0}),$$=cr(R$),O$=Ut({},Wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P$=cr(O$),_$=Ut({},Wi,{data:0}),dh=cr(_$),I$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},M$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M$[e])?!!t[e]:!1}function yp(){return N$}var L$=Ut({},ws,{key:function(e){if(e.key){var t=I$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yp,charCode:function(e){return e.type==="keypress"?Eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A$=cr(L$),j$=Ut({},Dc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fh=cr(j$),D$=Ut({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yp}),F$=cr(D$),z$=Ut({},Wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),B$=cr(z$),k$=Ut({},Dc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),H$=cr(k$),V$=[9,13,27,32],bp=vo&&"CompositionEvent"in window,Ol=null;vo&&"documentMode"in document&&(Ol=document.documentMode);var W$=vo&&"TextEvent"in window&&!Ol,KS=vo&&(!bp||Ol&&8<Ol&&11>=Ol),mh=" ",vh=!1;function qS(e,t){switch(e){case"keyup":return V$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ii=!1;function U$(e,t){switch(e){case"compositionend":return QS(t);case"keypress":return t.which!==32?null:(vh=!0,mh);case"textInput":return e=t.data,e===mh&&vh?null:e;default:return null}}function G$(e,t){if(ii)return e==="compositionend"||!bp&&qS(e,t)?(e=GS(),wu=gp=Ao=null,ii=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return KS&&t.locale!=="ko"?null:t.data;default:return null}}var K$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ph(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K$[e.type]:t==="textarea"}function XS(e,t,n,r){OS(r),t=Ju(t,"onChange"),0<t.length&&(n=new hp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Pl=null,Gl=null;function q$(e){l1(e,0)}function Fc(e){var t=ui(e);if(SS(t))return e}function Q$(e,t){if(e==="change")return t}var YS=!1;if(vo){var Gd;if(vo){var Kd="oninput"in document;if(!Kd){var gh=document.createElement("div");gh.setAttribute("oninput","return;"),Kd=typeof gh.oninput=="function"}Gd=Kd}else Gd=!1;YS=Gd&&(!document.documentMode||9<document.documentMode)}function hh(){Pl&&(Pl.detachEvent("onpropertychange",JS),Gl=Pl=null)}function JS(e){if(e.propertyName==="value"&&Fc(Gl)){var t=[];XS(t,Gl,e,dp(e)),TS(q$,t)}}function X$(e,t,n){e==="focusin"?(hh(),Pl=t,Gl=n,Pl.attachEvent("onpropertychange",JS)):e==="focusout"&&hh()}function Y$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fc(Gl)}function J$(e,t){if(e==="click")return Fc(t)}function Z$(e,t){if(e==="input"||e==="change")return Fc(t)}function eO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wr=typeof Object.is=="function"?Object.is:eO;function Kl(e,t){if(Wr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Xf.call(t,o)||!Wr(e[o],t[o]))return!1}return!0}function yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bh(e,t){var n=yh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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 ZS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ZS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e1(){for(var e=window,t=Uu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Uu(e.document)}return t}function Sp(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 tO(e){var t=e1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ZS(n.ownerDocument.documentElement,n)){if(r!==null&&Sp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=bh(n,a);var i=bh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nO=vo&&"documentMode"in document&&11>=document.documentMode,li=null,pm=null,_l=null,gm=!1;function Sh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gm||li==null||li!==Uu(r)||(r=li,"selectionStart"in r&&Sp(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}),_l&&Kl(_l,r)||(_l=r,r=Ju(pm,"onSelect"),0<r.length&&(t=new hp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var si={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},qd={},t1={};vo&&(t1=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function zc(e){if(qd[e])return qd[e];if(!si[e])return e;var t=si[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in t1)return qd[e]=t[n];return e}var n1=zc("animationend"),r1=zc("animationiteration"),o1=zc("animationstart"),a1=zc("transitionend"),i1=new Map,Ch="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ta(e,t){i1.set(e,t),ja(t,[e])}for(var Qd=0;Qd<Ch.length;Qd++){var Xd=Ch[Qd],rO=Xd.toLowerCase(),oO=Xd[0].toUpperCase()+Xd.slice(1);ta(rO,"on"+oO)}ta(n1,"onAnimationEnd");ta(r1,"onAnimationIteration");ta(o1,"onAnimationStart");ta("dblclick","onDoubleClick");ta("focusin","onFocus");ta("focusout","onBlur");ta(a1,"onTransitionEnd");Oi("onMouseEnter",["mouseout","mouseover"]);Oi("onMouseLeave",["mouseout","mouseover"]);Oi("onPointerEnter",["pointerout","pointerover"]);Oi("onPointerLeave",["pointerout","pointerover"]);ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ja("onBeforeInput",["compositionend","keypress","textInput","paste"]);ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aO=new Set("cancel close invalid load scroll toggle".split(" ").concat(wl));function wh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,r$(r,t,void 0,e),e.currentTarget=null}function l1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;wh(o,l,c),a=s}else for(i=0;i<r.length;i++){if(l=r[i],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;wh(o,l,c),a=s}}}if(Ku)throw e=dm,Ku=!1,dm=null,e}function Ft(e,t){var n=t[Cm];n===void 0&&(n=t[Cm]=new Set);var r=e+"__bubble";n.has(r)||(s1(t,e,2,!1),n.add(r))}function Yd(e,t,n){var r=0;t&&(r|=4),s1(n,e,r,t)}var Js="_reactListening"+Math.random().toString(36).slice(2);function ql(e){if(!e[Js]){e[Js]=!0,pS.forEach(function(n){n!=="selectionchange"&&(aO.has(n)||Yd(n,!1,e),Yd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Js]||(t[Js]=!0,Yd("selectionchange",!1,t))}}function s1(e,t,n,r){switch(US(t)){case 1:var o=b$;break;case 4:o=S$;break;default:o=pp}n=o.bind(null,t,n,e),o=void 0,!cm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Jd(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;i=i.return}for(;l!==null;){if(i=pa(l),i===null)return;if(s=i.tag,s===5||s===6){r=a=i;continue e}l=l.parentNode}}r=r.return}TS(function(){var c=a,d=dp(n),f=[];e:{var m=i1.get(e);if(m!==void 0){var g=hp,y=e;switch(e){case"keypress":if(Eu(n)===0)break e;case"keydown":case"keyup":g=A$;break;case"focusin":y="focus",g=Ud;break;case"focusout":y="blur",g=Ud;break;case"beforeblur":case"afterblur":g=Ud;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=E$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=F$;break;case n1:case r1:case o1:g=$$;break;case a1:g=B$;break;case"scroll":g=C$;break;case"wheel":g=H$;break;case"copy":case"cut":case"paste":g=P$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=fh}var b=(t&4)!==0,S=!b&&e==="scroll",h=b?m!==null?m+"Capture":null:m;b=[];for(var v=c,p;v!==null;){p=v;var C=p.stateNode;if(p.tag===5&&C!==null&&(p=C,h!==null&&(C=Hl(v,h),C!=null&&b.push(Ql(v,C,p)))),S)break;v=v.return}0<b.length&&(m=new g(m,y,null,n,d),f.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==sm&&(y=n.relatedTarget||n.fromElement)&&(pa(y)||y[po]))break e;if((g||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=c,y=y?pa(y):null,y!==null&&(S=Da(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=c),g!==y)){if(b=ch,C="onMouseLeave",h="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=fh,C="onPointerLeave",h="onPointerEnter",v="pointer"),S=g==null?m:ui(g),p=y==null?m:ui(y),m=new b(C,v+"leave",g,n,d),m.target=S,m.relatedTarget=p,C=null,pa(d)===c&&(b=new b(h,v+"enter",y,n,d),b.target=p,b.relatedTarget=S,C=b),S=C,g&&y)t:{for(b=g,h=y,v=0,p=b;p;p=qa(p))v++;for(p=0,C=h;C;C=qa(C))p++;for(;0<v-p;)b=qa(b),v--;for(;0<p-v;)h=qa(h),p--;for(;v--;){if(b===h||h!==null&&b===h.alternate)break t;b=qa(b),h=qa(h)}b=null}else b=null;g!==null&&Eh(f,m,g,b,!1),y!==null&&S!==null&&Eh(f,S,y,b,!0)}}e:{if(m=c?ui(c):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var w=Q$;else if(ph(m))if(YS)w=Z$;else{w=Y$;var x=X$}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(w=J$);if(w&&(w=w(e,c))){XS(f,w,n,d);break e}x&&x(e,m,c),e==="focusout"&&(x=m._wrapperState)&&x.controlled&&m.type==="number"&&rm(m,"number",m.value)}switch(x=c?ui(c):window,e){case"focusin":(ph(x)||x.contentEditable==="true")&&(li=x,pm=c,_l=null);break;case"focusout":_l=pm=li=null;break;case"mousedown":gm=!0;break;case"contextmenu":case"mouseup":case"dragend":gm=!1,Sh(f,n,d);break;case"selectionchange":if(nO)break;case"keydown":case"keyup":Sh(f,n,d)}var E;if(bp)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ii?qS(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(KS&&n.locale!=="ko"&&(ii||R!=="onCompositionStart"?R==="onCompositionEnd"&&ii&&(E=GS()):(Ao=d,gp="value"in Ao?Ao.value:Ao.textContent,ii=!0)),x=Ju(c,R),0<x.length&&(R=new dh(R,e,null,n,d),f.push({event:R,listeners:x}),E?R.data=E:(E=QS(n),E!==null&&(R.data=E)))),(E=W$?U$(e,n):G$(e,n))&&(c=Ju(c,"onBeforeInput"),0<c.length&&(d=new dh("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=E))}l1(f,t)})}function Ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ju(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Hl(e,n),a!=null&&r.unshift(Ql(e,a,o)),a=Hl(e,t),a!=null&&r.push(Ql(e,a,o))),e=e.return}return r}function qa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Eh(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&c!==null&&(l=c,o?(s=Hl(n,a),s!=null&&i.unshift(Ql(n,s,l))):o||(s=Hl(n,a),s!=null&&i.push(Ql(n,s,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var iO=/\r\n?/g,lO=/\u0000|\uFFFD/g;function xh(e){return(typeof e=="string"?e:""+e).replace(iO,`
`).replace(lO,"")}function Zs(e,t,n){if(t=xh(t),xh(e)!==t&&n)throw Error(ue(425))}function Zu(){}var hm=null,ym=null;function bm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sm=typeof setTimeout=="function"?setTimeout:void 0,sO=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,uO=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(e){return Rh.resolve(null).then(e).catch(cO)}:Sm;function cO(e){setTimeout(function(){throw e})}function Zd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ul(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ul(t)}function Wo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $h(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ui=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Ui,Xl="__reactProps$"+Ui,po="__reactContainer$"+Ui,Cm="__reactEvents$"+Ui,dO="__reactListeners$"+Ui,fO="__reactHandles$"+Ui;function pa(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[Yr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$h(e);e!==null;){if(n=e[Yr])return n;e=$h(e)}return t}e=n,n=e.parentNode}return null}function Es(e){return e=e[Yr]||e[po],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ue(33))}function Bc(e){return e[Xl]||null}var wm=[],ci=-1;function na(e){return{current:e}}function Bt(e){0>ci||(e.current=wm[ci],wm[ci]=null,ci--)}function jt(e,t){ci++,wm[ci]=e.current,e.current=t}var Yo={},Ln=na(Yo),qn=na(!1),Oa=Yo;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Yo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qn(e){return e=e.childContextTypes,e!=null}function ec(){Bt(qn),Bt(Ln)}function Oh(e,t,n){if(Ln.current!==Yo)throw Error(ue(168));jt(Ln,t),jt(qn,n)}function u1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ue(108,XR(e)||"Unknown",o));return Ut({},n,r)}function tc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,Oa=Ln.current,jt(Ln,e),jt(qn,qn.current),!0}function Ph(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=u1(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,Bt(qn),Bt(Ln),jt(Ln,e)):Bt(qn),jt(qn,n)}var lo=null,kc=!1,ef=!1;function c1(e){lo===null?lo=[e]:lo.push(e)}function mO(e){kc=!0,c1(e)}function ra(){if(!ef&&lo!==null){ef=!0;var e=0,t=$t;try{var n=lo;for($t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lo=null,kc=!1}catch(o){throw lo!==null&&(lo=lo.slice(e+1)),AS(fp,ra),o}finally{$t=t,ef=!1}}return null}var di=[],fi=0,nc=null,rc=0,br=[],Sr=0,Pa=null,uo=1,co="";function ca(e,t){di[fi++]=rc,di[fi++]=nc,nc=e,rc=t}function d1(e,t,n){br[Sr++]=uo,br[Sr++]=co,br[Sr++]=Pa,Pa=e;var r=uo;e=co;var o=32-Fr(r)-1;r&=~(1<<o),n+=1;var a=32-Fr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,uo=1<<32-Fr(t)+o|n<<o|r,co=a+e}else uo=1<<a|n<<o|r,co=e}function Cp(e){e.return!==null&&(ca(e,1),d1(e,1,0))}function wp(e){for(;e===nc;)nc=di[--fi],di[fi]=null,rc=di[--fi],di[fi]=null;for(;e===Pa;)Pa=br[--Sr],br[Sr]=null,co=br[--Sr],br[Sr]=null,uo=br[--Sr],br[Sr]=null}var ar=null,rr=null,kt=!1,Dr=null;function f1(e,t){var n=Cr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _h(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ar=e,rr=Wo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ar=e,rr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pa!==null?{id:uo,overflow:co}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Cr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ar=e,rr=null,!0):!1;default:return!1}}function Em(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xm(e){if(kt){var t=rr;if(t){var n=t;if(!_h(e,t)){if(Em(e))throw Error(ue(418));t=Wo(n.nextSibling);var r=ar;t&&_h(e,t)?f1(r,n):(e.flags=e.flags&-4097|2,kt=!1,ar=e)}}else{if(Em(e))throw Error(ue(418));e.flags=e.flags&-4097|2,kt=!1,ar=e}}}function Ih(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ar=e}function eu(e){if(e!==ar)return!1;if(!kt)return Ih(e),kt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bm(e.type,e.memoizedProps)),t&&(t=rr)){if(Em(e))throw m1(),Error(ue(418));for(;t;)f1(e,t),t=Wo(t.nextSibling)}if(Ih(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ue(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rr=Wo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rr=null}}else rr=ar?Wo(e.stateNode.nextSibling):null;return!0}function m1(){for(var e=rr;e;)e=Wo(e.nextSibling)}function _i(){rr=ar=null,kt=!1}function Ep(e){Dr===null?Dr=[e]:Dr.push(e)}var vO=So.ReactCurrentBatchConfig;function ll(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ue(309));var r=n.stateNode}if(!r)throw Error(ue(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var l=o.refs;i===null?delete l[a]:l[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(ue(284));if(!n._owner)throw Error(ue(290,e))}return e}function tu(e,t){throw e=Object.prototype.toString.call(t),Error(ue(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Th(e){var t=e._init;return t(e._payload)}function v1(e){function t(h,v){if(e){var p=h.deletions;p===null?(h.deletions=[v],h.flags|=16):p.push(v)}}function n(h,v){if(!e)return null;for(;v!==null;)t(h,v),v=v.sibling;return null}function r(h,v){for(h=new Map;v!==null;)v.key!==null?h.set(v.key,v):h.set(v.index,v),v=v.sibling;return h}function o(h,v){return h=qo(h,v),h.index=0,h.sibling=null,h}function a(h,v,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<v?(h.flags|=2,v):p):(h.flags|=2,v)):(h.flags|=1048576,v)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,v,p,C){return v===null||v.tag!==6?(v=sf(p,h.mode,C),v.return=h,v):(v=o(v,p),v.return=h,v)}function s(h,v,p,C){var w=p.type;return w===ai?d(h,v,p.props.children,C,p.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Th(w)===v.type)?(C=o(v,p.props),C.ref=ll(h,v,p),C.return=h,C):(C=Iu(p.type,p.key,p.props,null,h.mode,C),C.ref=ll(h,v,p),C.return=h,C)}function c(h,v,p,C){return v===null||v.tag!==4||v.stateNode.containerInfo!==p.containerInfo||v.stateNode.implementation!==p.implementation?(v=uf(p,h.mode,C),v.return=h,v):(v=o(v,p.children||[]),v.return=h,v)}function d(h,v,p,C,w){return v===null||v.tag!==7?(v=wa(p,h.mode,C,w),v.return=h,v):(v=o(v,p),v.return=h,v)}function f(h,v,p){if(typeof v=="string"&&v!==""||typeof v=="number")return v=sf(""+v,h.mode,p),v.return=h,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ws:return p=Iu(v.type,v.key,v.props,null,h.mode,p),p.ref=ll(h,null,v),p.return=h,p;case oi:return v=uf(v,h.mode,p),v.return=h,v;case To:var C=v._init;return f(h,C(v._payload),p)}if(Sl(v)||nl(v))return v=wa(v,h.mode,p,null),v.return=h,v;tu(h,v)}return null}function m(h,v,p,C){var w=v!==null?v.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return w!==null?null:l(h,v,""+p,C);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ws:return p.key===w?s(h,v,p,C):null;case oi:return p.key===w?c(h,v,p,C):null;case To:return w=p._init,m(h,v,w(p._payload),C)}if(Sl(p)||nl(p))return w!==null?null:d(h,v,p,C,null);tu(h,p)}return null}function g(h,v,p,C,w){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(p)||null,l(v,h,""+C,w);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ws:return h=h.get(C.key===null?p:C.key)||null,s(v,h,C,w);case oi:return h=h.get(C.key===null?p:C.key)||null,c(v,h,C,w);case To:var x=C._init;return g(h,v,p,x(C._payload),w)}if(Sl(C)||nl(C))return h=h.get(p)||null,d(v,h,C,w,null);tu(v,C)}return null}function y(h,v,p,C){for(var w=null,x=null,E=v,R=v=0,O=null;E!==null&&R<p.length;R++){E.index>R?(O=E,E=null):O=E.sibling;var _=m(h,E,p[R],C);if(_===null){E===null&&(E=O);break}e&&E&&_.alternate===null&&t(h,E),v=a(_,v,R),x===null?w=_:x.sibling=_,x=_,E=O}if(R===p.length)return n(h,E),kt&&ca(h,R),w;if(E===null){for(;R<p.length;R++)E=f(h,p[R],C),E!==null&&(v=a(E,v,R),x===null?w=E:x.sibling=E,x=E);return kt&&ca(h,R),w}for(E=r(h,E);R<p.length;R++)O=g(E,h,R,p[R],C),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?R:O.key),v=a(O,v,R),x===null?w=O:x.sibling=O,x=O);return e&&E.forEach(function(A){return t(h,A)}),kt&&ca(h,R),w}function b(h,v,p,C){var w=nl(p);if(typeof w!="function")throw Error(ue(150));if(p=w.call(p),p==null)throw Error(ue(151));for(var x=w=null,E=v,R=v=0,O=null,_=p.next();E!==null&&!_.done;R++,_=p.next()){E.index>R?(O=E,E=null):O=E.sibling;var A=m(h,E,_.value,C);if(A===null){E===null&&(E=O);break}e&&E&&A.alternate===null&&t(h,E),v=a(A,v,R),x===null?w=A:x.sibling=A,x=A,E=O}if(_.done)return n(h,E),kt&&ca(h,R),w;if(E===null){for(;!_.done;R++,_=p.next())_=f(h,_.value,C),_!==null&&(v=a(_,v,R),x===null?w=_:x.sibling=_,x=_);return kt&&ca(h,R),w}for(E=r(h,E);!_.done;R++,_=p.next())_=g(E,h,R,_.value,C),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?R:_.key),v=a(_,v,R),x===null?w=_:x.sibling=_,x=_);return e&&E.forEach(function(M){return t(h,M)}),kt&&ca(h,R),w}function S(h,v,p,C){if(typeof p=="object"&&p!==null&&p.type===ai&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ws:e:{for(var w=p.key,x=v;x!==null;){if(x.key===w){if(w=p.type,w===ai){if(x.tag===7){n(h,x.sibling),v=o(x,p.props.children),v.return=h,h=v;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Th(w)===x.type){n(h,x.sibling),v=o(x,p.props),v.ref=ll(h,x,p),v.return=h,h=v;break e}n(h,x);break}else t(h,x);x=x.sibling}p.type===ai?(v=wa(p.props.children,h.mode,C,p.key),v.return=h,h=v):(C=Iu(p.type,p.key,p.props,null,h.mode,C),C.ref=ll(h,v,p),C.return=h,h=C)}return i(h);case oi:e:{for(x=p.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===p.containerInfo&&v.stateNode.implementation===p.implementation){n(h,v.sibling),v=o(v,p.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=uf(p,h.mode,C),v.return=h,h=v}return i(h);case To:return x=p._init,S(h,v,x(p._payload),C)}if(Sl(p))return y(h,v,p,C);if(nl(p))return b(h,v,p,C);tu(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,p),v.return=h,h=v):(n(h,v),v=sf(p,h.mode,C),v.return=h,h=v),i(h)):n(h,v)}return S}var Ii=v1(!0),p1=v1(!1),oc=na(null),ac=null,mi=null,xp=null;function Rp(){xp=mi=ac=null}function $p(e){var t=oc.current;Bt(oc),e._currentValue=t}function Rm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){ac=e,xp=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kn=!0),e.firstContext=null)}function Rr(e){var t=e._currentValue;if(xp!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(ac===null)throw Error(ue(308));mi=e,ac.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var ga=null;function Op(e){ga===null?ga=[e]:ga.push(e)}function g1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Op(t)):(n.next=o.next,o.next=n),t.interleaved=n,go(e,r)}function go(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mo=!1;function Pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function h1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ht&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,go(e,n)}return o=r.interleaved,o===null?(t.next=t,Op(r)):(t.next=o.next,o.next=t),r.interleaved=t,go(e,n)}function xu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mp(e,n)}}function Mh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ic(e,t,n,r){var o=e.updateQueue;Mo=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,i===null?a=c:i.next=c,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(a!==null){var f=o.baseState;i=0,d=c=s=null,l=a;do{var m=l.lane,g=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(m=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(g,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,m=typeof y=="function"?y.call(g,f,m):y,m==null)break e;f=Ut({},f,m);break e;case 2:Mo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=f):d=d.next=g,i|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);Ia|=i,e.lanes=i,e.memoizedState=f}}function Nh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(ue(191,o));o.call(r)}}}var xs={},eo=na(xs),Yl=na(xs),Jl=na(xs);function ha(e){if(e===xs)throw Error(ue(174));return e}function _p(e,t){switch(jt(Jl,t),jt(Yl,e),jt(eo,xs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:am(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=am(t,e)}Bt(eo),jt(eo,t)}function Ti(){Bt(eo),Bt(Yl),Bt(Jl)}function y1(e){ha(Jl.current);var t=ha(eo.current),n=am(t,e.type);t!==n&&(jt(Yl,e),jt(eo,n))}function Ip(e){Yl.current===e&&(Bt(eo),Bt(Yl))}var Vt=na(0);function lc(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 tf=[];function Tp(){for(var e=0;e<tf.length;e++)tf[e]._workInProgressVersionPrimary=null;tf.length=0}var Ru=So.ReactCurrentDispatcher,nf=So.ReactCurrentBatchConfig,_a=0,Wt=null,sn=null,vn=null,sc=!1,Il=!1,Zl=0,pO=0;function Pn(){throw Error(ue(321))}function Mp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function Np(e,t,n,r,o,a){if(_a=a,Wt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ru.current=e===null||e.memoizedState===null?bO:SO,e=n(r,o),Il){a=0;do{if(Il=!1,Zl=0,25<=a)throw Error(ue(301));a+=1,vn=sn=null,t.updateQueue=null,Ru.current=CO,e=n(r,o)}while(Il)}if(Ru.current=uc,t=sn!==null&&sn.next!==null,_a=0,vn=sn=Wt=null,sc=!1,t)throw Error(ue(300));return e}function Lp(){var e=Zl!==0;return Zl=0,e}function Xr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?Wt.memoizedState=vn=e:vn=vn.next=e,vn}function $r(){if(sn===null){var e=Wt.alternate;e=e!==null?e.memoizedState:null}else e=sn.next;var t=vn===null?Wt.memoizedState:vn.next;if(t!==null)vn=t,sn=e;else{if(e===null)throw Error(ue(310));sn=e,e={memoizedState:sn.memoizedState,baseState:sn.baseState,baseQueue:sn.baseQueue,queue:sn.queue,next:null},vn===null?Wt.memoizedState=vn=e:vn=vn.next=e}return vn}function es(e,t){return typeof t=="function"?t(e):t}function rf(e){var t=$r(),n=t.queue;if(n===null)throw Error(ue(311));n.lastRenderedReducer=e;var r=sn,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var d=c.lane;if((_a&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=f,i=r):s=s.next=f,Wt.lanes|=d,Ia|=d}c=c.next}while(c!==null&&c!==a);s===null?i=r:s.next=l,Wr(r,t.memoizedState)||(Kn=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,Wt.lanes|=a,Ia|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function of(e){var t=$r(),n=t.queue;if(n===null)throw Error(ue(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Wr(a,t.memoizedState)||(Kn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function b1(){}function S1(e,t){var n=Wt,r=$r(),o=t(),a=!Wr(r.memoizedState,o);if(a&&(r.memoizedState=o,Kn=!0),r=r.queue,Ap(E1.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||vn!==null&&vn.memoizedState.tag&1){if(n.flags|=2048,ts(9,w1.bind(null,n,r,o,t),void 0,null),hn===null)throw Error(ue(349));_a&30||C1(n,t,o)}return o}function C1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Wt.updateQueue,t===null?(t={lastEffect:null,stores:null},Wt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function w1(e,t,n,r){t.value=n,t.getSnapshot=r,x1(t)&&R1(e)}function E1(e,t,n){return n(function(){x1(t)&&R1(e)})}function x1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wr(e,n)}catch{return!0}}function R1(e){var t=go(e,1);t!==null&&zr(t,e,1,-1)}function Lh(e){var t=Xr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:e},t.queue=e,e=e.dispatch=yO.bind(null,Wt,e),[t.memoizedState,e]}function ts(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Wt.updateQueue,t===null?(t={lastEffect:null,stores:null},Wt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $1(){return $r().memoizedState}function $u(e,t,n,r){var o=Xr();Wt.flags|=e,o.memoizedState=ts(1|t,n,void 0,r===void 0?null:r)}function Hc(e,t,n,r){var o=$r();r=r===void 0?null:r;var a=void 0;if(sn!==null){var i=sn.memoizedState;if(a=i.destroy,r!==null&&Mp(r,i.deps)){o.memoizedState=ts(t,n,a,r);return}}Wt.flags|=e,o.memoizedState=ts(1|t,n,a,r)}function Ah(e,t){return $u(8390656,8,e,t)}function Ap(e,t){return Hc(2048,8,e,t)}function O1(e,t){return Hc(4,2,e,t)}function P1(e,t){return Hc(4,4,e,t)}function _1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function I1(e,t,n){return n=n!=null?n.concat([e]):null,Hc(4,4,_1.bind(null,t,e),n)}function jp(){}function T1(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function M1(e,t){var n=$r();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function N1(e,t,n){return _a&21?(Wr(n,t)||(n=FS(),Wt.lanes|=n,Ia|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kn=!0),e.memoizedState=n)}function gO(e,t){var n=$t;$t=n!==0&&4>n?n:4,e(!0);var r=nf.transition;nf.transition={};try{e(!1),t()}finally{$t=n,nf.transition=r}}function L1(){return $r().memoizedState}function hO(e,t,n){var r=Ko(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},A1(e))j1(t,n);else if(n=g1(e,t,n,r),n!==null){var o=Dn();zr(n,e,r,o),D1(n,t,r)}}function yO(e,t,n){var r=Ko(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(A1(e))j1(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Wr(l,i)){var s=t.interleaved;s===null?(o.next=o,Op(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=g1(e,t,o,r),n!==null&&(o=Dn(),zr(n,e,r,o),D1(n,t,r))}}function A1(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function j1(e,t){Il=sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function D1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mp(e,n)}}var uc={readContext:Rr,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useInsertionEffect:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useMutableSource:Pn,useSyncExternalStore:Pn,useId:Pn,unstable_isNewReconciler:!1},bO={readContext:Rr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:Rr,useEffect:Ah,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$u(4194308,4,_1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $u(4194308,4,e,t)},useInsertionEffect:function(e,t){return $u(4,2,e,t)},useMemo:function(e,t){var n=Xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xr();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=hO.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:Lh,useDebugValue:jp,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=Lh(!1),t=e[0];return e=gO.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,o=Xr();if(kt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),hn===null)throw Error(ue(349));_a&30||C1(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ah(E1.bind(null,r,a,e),[e]),r.flags|=2048,ts(9,w1.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Xr(),t=hn.identifierPrefix;if(kt){var n=co,r=uo;n=(r&~(1<<32-Fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=pO++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},SO={readContext:Rr,useCallback:T1,useContext:Rr,useEffect:Ap,useImperativeHandle:I1,useInsertionEffect:O1,useLayoutEffect:P1,useMemo:M1,useReducer:rf,useRef:$1,useState:function(){return rf(es)},useDebugValue:jp,useDeferredValue:function(e){var t=$r();return N1(t,sn.memoizedState,e)},useTransition:function(){var e=rf(es)[0],t=$r().memoizedState;return[e,t]},useMutableSource:b1,useSyncExternalStore:S1,useId:L1,unstable_isNewReconciler:!1},CO={readContext:Rr,useCallback:T1,useContext:Rr,useEffect:Ap,useImperativeHandle:I1,useInsertionEffect:O1,useLayoutEffect:P1,useMemo:M1,useReducer:of,useRef:$1,useState:function(){return of(es)},useDebugValue:jp,useDeferredValue:function(e){var t=$r();return sn===null?t.memoizedState=e:N1(t,sn.memoizedState,e)},useTransition:function(){var e=of(es)[0],t=$r().memoizedState;return[e,t]},useMutableSource:b1,useSyncExternalStore:S1,useId:L1,unstable_isNewReconciler:!1};function Nr(e,t){if(e&&e.defaultProps){t=Ut({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $m(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ut({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vc={isMounted:function(e){return(e=e._reactInternals)?Da(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=Ko(e),a=fo(r,o);a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(zr(t,e,o,r),xu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=Ko(e),a=fo(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(zr(t,e,o,r),xu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dn(),r=Ko(e),o=fo(n,r);o.tag=2,t!=null&&(o.callback=t),t=Uo(e,o,r),t!==null&&(zr(t,e,r,n),xu(t,e,r))}};function jh(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!Kl(n,r)||!Kl(o,a):!0}function F1(e,t,n){var r=!1,o=Yo,a=t.contextType;return typeof a=="object"&&a!==null?a=Rr(a):(o=Qn(t)?Oa:Ln.current,r=t.contextTypes,a=(r=r!=null)?Pi(e,o):Yo),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Dh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vc.enqueueReplaceState(t,t.state,null)}function Om(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Pp(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=Rr(a):(a=Qn(t)?Oa:Ln.current,o.context=Pi(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&($m(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Vc.enqueueReplaceState(o,o.state,null),ic(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Mi(e,t){try{var n="",r=t;do n+=QR(r),r=r.return;while(r);var o=n}catch(a){o=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:o,digest:null}}function af(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wO=typeof WeakMap=="function"?WeakMap:Map;function z1(e,t,n){n=fo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dc||(dc=!0,Fm=r),Pm(e,t)},n}function B1(e,t,n){n=fo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Pm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Pm(e,t),typeof r!="function"&&(Go===null?Go=new Set([this]):Go.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Fh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wO;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jO.bind(null,e,t,n),t.then(e,e))}function zh(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 Bh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=fo(-1,1),t.tag=2,Uo(n,t,1))),n.lanes|=1),e)}var EO=So.ReactCurrentOwner,Kn=!1;function jn(e,t,n,r){t.child=e===null?p1(t,null,n,r):Ii(t,e.child,n,r)}function kh(e,t,n,r,o){n=n.render;var a=t.ref;return Ei(t,o),r=Np(e,t,n,r,a,o),n=Lp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(kt&&n&&Cp(t),t.flags|=1,jn(e,t,r,o),t.child)}function Hh(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Wp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,k1(e,t,a,r,o)):(e=Iu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:Kl,n(i,r)&&e.ref===t.ref)return ho(e,t,o)}return t.flags|=1,e=qo(a,r),e.ref=t.ref,e.return=t,t.child=e}function k1(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(Kl(a,r)&&e.ref===t.ref)if(Kn=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Kn=!0);else return t.lanes=e.lanes,ho(e,t,o)}return _m(e,t,n,r,o)}function H1(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jt(pi,nr),nr|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jt(pi,nr),nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,jt(pi,nr),nr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,jt(pi,nr),nr|=r;return jn(e,t,o,n),t.child}function V1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _m(e,t,n,r,o){var a=Qn(n)?Oa:Ln.current;return a=Pi(t,a),Ei(t,o),n=Np(e,t,n,r,a,o),r=Lp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(kt&&r&&Cp(t),t.flags|=1,jn(e,t,n,o),t.child)}function Vh(e,t,n,r,o){if(Qn(n)){var a=!0;tc(t)}else a=!1;if(Ei(t,o),t.stateNode===null)Ou(e,t),F1(t,n,r),Om(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Rr(c):(c=Qn(n)?Oa:Ln.current,c=Pi(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||s!==c)&&Dh(t,i,r,c),Mo=!1;var m=t.memoizedState;i.state=m,ic(t,r,i,o),s=t.memoizedState,l!==r||m!==s||qn.current||Mo?(typeof d=="function"&&($m(t,n,d,r),s=t.memoizedState),(l=Mo||jh(t,n,l,r,m,s,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,h1(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Nr(t.type,l),i.props=c,f=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Rr(s):(s=Qn(n)?Oa:Ln.current,s=Pi(t,s));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||m!==s)&&Dh(t,i,r,s),Mo=!1,m=t.memoizedState,i.state=m,ic(t,r,i,o);var y=t.memoizedState;l!==f||m!==y||qn.current||Mo?(typeof g=="function"&&($m(t,n,g,r),y=t.memoizedState),(c=Mo||jh(t,n,c,r,m,y,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Im(e,t,n,r,a,o)}function Im(e,t,n,r,o,a){V1(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Ph(t,n,!1),ho(e,t,a);r=t.stateNode,EO.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ii(t,e.child,null,a),t.child=Ii(t,null,l,a)):jn(e,t,l,a),t.memoizedState=r.state,o&&Ph(t,n,!0),t.child}function W1(e){var t=e.stateNode;t.pendingContext?Oh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oh(e,t.context,!1),_p(e,t.containerInfo)}function Wh(e,t,n,r,o){return _i(),Ep(o),t.flags|=256,jn(e,t,n,r),t.child}var Tm={dehydrated:null,treeContext:null,retryLane:0};function Mm(e){return{baseLanes:e,cachePool:null,transitions:null}}function U1(e,t,n){var r=t.pendingProps,o=Vt.current,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),jt(Vt,o&1),e===null)return xm(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):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Gc(i,r,0,null),e=wa(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Mm(n),t.memoizedState=Tm,e):Dp(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return xO(e,t,i,r,l,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=qo(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=qo(l,a):(a=wa(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?Mm(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=Tm,r}return a=e.child,e=a.sibling,r=qo(a,{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 Dp(e,t){return t=Gc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nu(e,t,n,r){return r!==null&&Ep(r),Ii(t,e.child,null,n),e=Dp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xO(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=af(Error(ue(422))),nu(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Gc({mode:"visible",children:r.children},o,0,null),a=wa(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Ii(t,e.child,null,i),t.child.memoizedState=Mm(i),t.memoizedState=Tm,a);if(!(t.mode&1))return nu(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(ue(419)),r=af(a,r,void 0),nu(e,t,i,r)}if(l=(i&e.childLanes)!==0,Kn||l){if(r=hn,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,go(e,o),zr(r,e,o,-1))}return Vp(),r=af(Error(ue(421))),nu(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=DO.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,rr=Wo(o.nextSibling),ar=t,kt=!0,Dr=null,e!==null&&(br[Sr++]=uo,br[Sr++]=co,br[Sr++]=Pa,uo=e.id,co=e.overflow,Pa=t),t=Dp(t,r.children),t.flags|=4096,t)}function Uh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Rm(e.return,t,n)}function lf(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function G1(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(jn(e,t,r.children,n),r=Vt.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&&Uh(e,n,t);else if(e.tag===19)Uh(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(jt(Vt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&lc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lf(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&lc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lf(t,!0,n,null,a);break;case"together":lf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ou(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ho(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ue(153));if(t.child!==null){for(e=t.child,n=qo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function RO(e,t,n){switch(t.tag){case 3:W1(t),_i();break;case 5:y1(t);break;case 1:Qn(t.type)&&tc(t);break;case 4:_p(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;jt(oc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(jt(Vt,Vt.current&1),t.flags|=128,null):n&t.child.childLanes?U1(e,t,n):(jt(Vt,Vt.current&1),e=ho(e,t,n),e!==null?e.sibling:null);jt(Vt,Vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return G1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),jt(Vt,Vt.current),r)break;return null;case 22:case 23:return t.lanes=0,H1(e,t,n)}return ho(e,t,n)}var K1,Nm,q1,Q1;K1=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}};Nm=function(){};q1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ha(eo.current);var a=null;switch(n){case"input":o=tm(e,o),r=tm(e,r),a=[];break;case"select":o=Ut({},o,{value:void 0}),r=Ut({},r,{value:void 0}),a=[];break;case"textarea":o=om(e,o),r=om(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zu)}im(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Bl.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Bl.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Ft("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};Q1=function(e,t,n,r){n!==r&&(t.flags|=4)};function sl(e,t){if(!kt)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 _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $O(e,t,n){var r=t.pendingProps;switch(wp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return Qn(t.type)&&ec(),_n(t),null;case 3:return r=t.stateNode,Ti(),Bt(qn),Bt(Ln),Tp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dr!==null&&(km(Dr),Dr=null))),Nm(e,t),_n(t),null;case 5:Ip(t);var o=ha(Jl.current);if(n=t.type,e!==null&&t.stateNode!=null)q1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ue(166));return _n(t),null}if(e=ha(eo.current),eu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Yr]=t,r[Xl]=a,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(o=0;o<wl.length;o++)Ft(wl[o],r);break;case"source":Ft("error",r);break;case"img":case"image":case"link":Ft("error",r),Ft("load",r);break;case"details":Ft("toggle",r);break;case"input":eh(r,a),Ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ft("invalid",r);break;case"textarea":nh(r,a),Ft("invalid",r)}im(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Zs(r.textContent,l,e),o=["children",""+l]):Bl.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&Ft("scroll",r)}switch(n){case"input":Us(r),th(r,a,!0);break;case"textarea":Us(r),rh(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Zu)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ES(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Yr]=t,e[Xl]=r,K1(e,t,!1,!1),t.stateNode=e;e:{switch(i=lm(n,r),n){case"dialog":Ft("cancel",e),Ft("close",e),o=r;break;case"iframe":case"object":case"embed":Ft("load",e),o=r;break;case"video":case"audio":for(o=0;o<wl.length;o++)Ft(wl[o],e);o=r;break;case"source":Ft("error",e),o=r;break;case"img":case"image":case"link":Ft("error",e),Ft("load",e),o=r;break;case"details":Ft("toggle",e),o=r;break;case"input":eh(e,r),o=tm(e,r),Ft("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ut({},r,{value:void 0}),Ft("invalid",e);break;case"textarea":nh(e,r),o=om(e,r),Ft("invalid",e);break;default:o=r}im(n,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?$S(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&xS(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&kl(e,s):typeof s=="number"&&kl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Bl.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Ft("scroll",e):s!=null&&lp(e,a,s,i))}switch(n){case"input":Us(e),th(e,r,!1);break;case"textarea":Us(e),rh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Xo(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?bi(e,!!r.multiple,a,!1):r.defaultValue!=null&&bi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Zu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _n(t),null;case 6:if(e&&t.stateNode!=null)Q1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ue(166));if(n=ha(Jl.current),ha(eo.current),eu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,(a=r.nodeValue!==n)&&(e=ar,e!==null))switch(e.tag){case 3:Zs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zs(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yr]=t,t.stateNode=r}return _n(t),null;case 13:if(Bt(Vt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(kt&&rr!==null&&t.mode&1&&!(t.flags&128))m1(),_i(),t.flags|=98560,a=!1;else if(a=eu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(ue(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ue(317));a[Yr]=t}else _i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_n(t),a=!1}else Dr!==null&&(km(Dr),Dr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Vt.current&1?un===0&&(un=3):Vp())),t.updateQueue!==null&&(t.flags|=4),_n(t),null);case 4:return Ti(),Nm(e,t),e===null&&ql(t.stateNode.containerInfo),_n(t),null;case 10:return $p(t.type._context),_n(t),null;case 17:return Qn(t.type)&&ec(),_n(t),null;case 19:if(Bt(Vt),a=t.memoizedState,a===null)return _n(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)sl(a,!1);else{if(un!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=lc(e),i!==null){for(t.flags|=128,sl(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return jt(Vt,Vt.current&1|2),t.child}e=e.sibling}a.tail!==null&&Yt()>Ni&&(t.flags|=128,r=!0,sl(a,!1),t.lanes=4194304)}else{if(!r)if(e=lc(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!kt)return _n(t),null}else 2*Yt()-a.renderingStartTime>Ni&&n!==1073741824&&(t.flags|=128,r=!0,sl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Yt(),t.sibling=null,n=Vt.current,jt(Vt,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return Hp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function OO(e,t){switch(wp(t),t.tag){case 1:return Qn(t.type)&&ec(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ti(),Bt(qn),Bt(Ln),Tp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ip(t),null;case 13:if(Bt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ue(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bt(Vt),null;case 4:return Ti(),null;case 10:return $p(t.type._context),null;case 22:case 23:return Hp(),null;case 24:return null;default:return null}}var ru=!1,Tn=!1,PO=typeof WeakSet=="function"?WeakSet:Set,_e=null;function vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qt(e,t,r)}else n.current=null}function Lm(e,t,n){try{n()}catch(r){Qt(e,t,r)}}var Gh=!1;function _O(e,t){if(hm=Xu,e=e1(),Sp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,c=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===o&&(l=i),m===a&&++d===r&&(s=i),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ym={focusedElem:e,selectionRange:n},Xu=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,S=y.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?b:Nr(t.type,b),S);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(C){Qt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return y=Gh,Gh=!1,y}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Lm(t,n,a)}o=o.next}while(o!==r)}}function Wc(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 Am(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 X1(e){var t=e.alternate;t!==null&&(e.alternate=null,X1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yr],delete t[Xl],delete t[Cm],delete t[dO],delete t[fO])),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 Y1(e){return e.tag===5||e.tag===3||e.tag===4}function Kh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y1(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 jm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zu));else if(r!==4&&(e=e.child,e!==null))for(jm(e,t,n),e=e.sibling;e!==null;)jm(e,t,n),e=e.sibling}function Dm(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(Dm(e,t,n),e=e.sibling;e!==null;)Dm(e,t,n),e=e.sibling}var wn=null,Lr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)J1(e,t,n),n=n.sibling}function J1(e,t,n){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(jc,n)}catch{}switch(n.tag){case 5:Tn||vi(n,t);case 6:var r=wn,o=Lr;wn=null,Oo(e,t,n),wn=r,Lr=o,wn!==null&&(Lr?(e=wn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):wn.removeChild(n.stateNode));break;case 18:wn!==null&&(Lr?(e=wn,n=n.stateNode,e.nodeType===8?Zd(e.parentNode,n):e.nodeType===1&&Zd(e,n),Ul(e)):Zd(wn,n.stateNode));break;case 4:r=wn,o=Lr,wn=n.stateNode.containerInfo,Lr=!0,Oo(e,t,n),wn=r,Lr=o;break;case 0:case 11:case 14:case 15:if(!Tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Lm(n,t,i),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!Tn&&(vi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Qt(n,t,l)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,Oo(e,t,n),Tn=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function qh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new PO),t.forEach(function(r){var o=FO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:wn=l.stateNode,Lr=!1;break e;case 3:wn=l.stateNode.containerInfo,Lr=!0;break e;case 4:wn=l.stateNode.containerInfo,Lr=!0;break e}l=l.return}if(wn===null)throw Error(ue(160));J1(a,i,o),wn=null,Lr=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(c){Qt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Z1(t,e),t=t.sibling}function Z1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tr(t,e),Qr(e),r&4){try{Tl(3,e,e.return),Wc(3,e)}catch(b){Qt(e,e.return,b)}try{Tl(5,e,e.return)}catch(b){Qt(e,e.return,b)}}break;case 1:Tr(t,e),Qr(e),r&512&&n!==null&&vi(n,n.return);break;case 5:if(Tr(t,e),Qr(e),r&512&&n!==null&&vi(n,n.return),e.flags&32){var o=e.stateNode;try{kl(o,"")}catch(b){Qt(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&CS(o,a),lm(l,i);var c=lm(l,a);for(i=0;i<s.length;i+=2){var d=s[i],f=s[i+1];d==="style"?$S(o,f):d==="dangerouslySetInnerHTML"?xS(o,f):d==="children"?kl(o,f):lp(o,d,f,c)}switch(l){case"input":nm(o,a);break;case"textarea":wS(o,a);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?bi(o,!!a.multiple,g,!1):m!==!!a.multiple&&(a.defaultValue!=null?bi(o,!!a.multiple,a.defaultValue,!0):bi(o,!!a.multiple,a.multiple?[]:"",!1))}o[Xl]=a}catch(b){Qt(e,e.return,b)}}break;case 6:if(Tr(t,e),Qr(e),r&4){if(e.stateNode===null)throw Error(ue(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(b){Qt(e,e.return,b)}}break;case 3:if(Tr(t,e),Qr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(b){Qt(e,e.return,b)}break;case 4:Tr(t,e),Qr(e);break;case 13:Tr(t,e),Qr(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(Bp=Yt())),r&4&&qh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Tn=(c=Tn)||d,Tr(t,e),Tn=c):Tr(t,e),Qr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(_e=e,d=e.child;d!==null;){for(f=_e=d;_e!==null;){switch(m=_e,g=m.child,m.tag){case 0:case 11:case 14:case 15:Tl(4,m,m.return);break;case 1:vi(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){Qt(r,n,b)}}break;case 5:vi(m,m.return);break;case 22:if(m.memoizedState!==null){Xh(f);continue}}g!==null?(g.return=m,_e=g):Xh(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=RS("display",i))}catch(b){Qt(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(b){Qt(e,e.return,b)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Tr(t,e),Qr(e),r&4&&qh(e);break;case 21:break;default:Tr(t,e),Qr(e)}}function Qr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Y1(n)){var r=n;break e}n=n.return}throw Error(ue(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(kl(o,""),r.flags&=-33);var a=Kh(e);Dm(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Kh(e);jm(e,l,i);break;default:throw Error(ue(161))}}catch(s){Qt(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function IO(e,t,n){_e=e,eC(e)}function eC(e,t,n){for(var r=(e.mode&1)!==0;_e!==null;){var o=_e,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||ru;if(!i){var l=o.alternate,s=l!==null&&l.memoizedState!==null||Tn;l=ru;var c=Tn;if(ru=i,(Tn=s)&&!c)for(_e=o;_e!==null;)i=_e,s=i.child,i.tag===22&&i.memoizedState!==null?Yh(o):s!==null?(s.return=i,_e=s):Yh(o);for(;a!==null;)_e=a,eC(a),a=a.sibling;_e=o,ru=l,Tn=c}Qh(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,_e=a):Qh(e)}}function Qh(e){for(;_e!==null;){var t=_e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Tn||Wc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Tn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Nr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Nh(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nh(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Ul(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ue(163))}Tn||t.flags&512&&Am(t)}catch(m){Qt(t,t.return,m)}}if(t===e){_e=null;break}if(n=t.sibling,n!==null){n.return=t.return,_e=n;break}_e=t.return}}function Xh(e){for(;_e!==null;){var t=_e;if(t===e){_e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_e=n;break}_e=t.return}}function Yh(e){for(;_e!==null;){var t=_e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wc(4,t)}catch(s){Qt(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Qt(t,o,s)}}var a=t.return;try{Am(t)}catch(s){Qt(t,a,s)}break;case 5:var i=t.return;try{Am(t)}catch(s){Qt(t,i,s)}}}catch(s){Qt(t,t.return,s)}if(t===e){_e=null;break}var l=t.sibling;if(l!==null){l.return=t.return,_e=l;break}_e=t.return}}var TO=Math.ceil,cc=So.ReactCurrentDispatcher,Fp=So.ReactCurrentOwner,wr=So.ReactCurrentBatchConfig,ht=0,hn=null,rn=null,xn=0,nr=0,pi=na(0),un=0,ns=null,Ia=0,Uc=0,zp=0,Ml=null,Gn=null,Bp=0,Ni=1/0,io=null,dc=!1,Fm=null,Go=null,ou=!1,jo=null,fc=0,Nl=0,zm=null,Pu=-1,_u=0;function Dn(){return ht&6?Yt():Pu!==-1?Pu:Pu=Yt()}function Ko(e){return e.mode&1?ht&2&&xn!==0?xn&-xn:vO.transition!==null?(_u===0&&(_u=FS()),_u):(e=$t,e!==0||(e=window.event,e=e===void 0?16:US(e.type)),e):1}function zr(e,t,n,r){if(50<Nl)throw Nl=0,zm=null,Error(ue(185));Cs(e,n,r),(!(ht&2)||e!==hn)&&(e===hn&&(!(ht&2)&&(Uc|=n),un===4&&Lo(e,xn)),Xn(e,r),n===1&&ht===0&&!(t.mode&1)&&(Ni=Yt()+500,kc&&ra()))}function Xn(e,t){var n=e.callbackNode;v$(e,t);var r=Qu(e,e===hn?xn:0);if(r===0)n!==null&&ih(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ih(n),t===1)e.tag===0?mO(Jh.bind(null,e)):c1(Jh.bind(null,e)),uO(function(){!(ht&6)&&ra()}),n=null;else{switch(zS(r)){case 1:n=fp;break;case 4:n=jS;break;case 16:n=qu;break;case 536870912:n=DS;break;default:n=qu}n=sC(n,tC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tC(e,t){if(Pu=-1,_u=0,ht&6)throw Error(ue(327));var n=e.callbackNode;if(xi()&&e.callbackNode!==n)return null;var r=Qu(e,e===hn?xn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=mc(e,r);else{t=r;var o=ht;ht|=2;var a=rC();(hn!==e||xn!==t)&&(io=null,Ni=Yt()+500,Ca(e,t));do try{LO();break}catch(l){nC(e,l)}while(!0);Rp(),cc.current=a,ht=o,rn!==null?t=0:(hn=null,xn=0,t=un)}if(t!==0){if(t===2&&(o=fm(e),o!==0&&(r=o,t=Bm(e,o))),t===1)throw n=ns,Ca(e,0),Lo(e,r),Xn(e,Yt()),n;if(t===6)Lo(e,r);else{if(o=e.current.alternate,!(r&30)&&!MO(o)&&(t=mc(e,r),t===2&&(a=fm(e),a!==0&&(r=a,t=Bm(e,a))),t===1))throw n=ns,Ca(e,0),Lo(e,r),Xn(e,Yt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ue(345));case 2:da(e,Gn,io);break;case 3:if(Lo(e,r),(r&130023424)===r&&(t=Bp+500-Yt(),10<t)){if(Qu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Dn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Sm(da.bind(null,e,Gn,io),t);break}da(e,Gn,io);break;case 4:if(Lo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Fr(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Yt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TO(r/1960))-r,10<r){e.timeoutHandle=Sm(da.bind(null,e,Gn,io),r);break}da(e,Gn,io);break;case 5:da(e,Gn,io);break;default:throw Error(ue(329))}}}return Xn(e,Yt()),e.callbackNode===n?tC.bind(null,e):null}function Bm(e,t){var n=Ml;return e.current.memoizedState.isDehydrated&&(Ca(e,t).flags|=256),e=mc(e,t),e!==2&&(t=Gn,Gn=n,t!==null&&km(t)),e}function km(e){Gn===null?Gn=e:Gn.push.apply(Gn,e)}function MO(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Wr(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lo(e,t){for(t&=~zp,t&=~Uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Fr(t),r=1<<n;e[n]=-1,t&=~r}}function Jh(e){if(ht&6)throw Error(ue(327));xi();var t=Qu(e,0);if(!(t&1))return Xn(e,Yt()),null;var n=mc(e,t);if(e.tag!==0&&n===2){var r=fm(e);r!==0&&(t=r,n=Bm(e,r))}if(n===1)throw n=ns,Ca(e,0),Lo(e,t),Xn(e,Yt()),n;if(n===6)throw Error(ue(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,da(e,Gn,io),Xn(e,Yt()),null}function kp(e,t){var n=ht;ht|=1;try{return e(t)}finally{ht=n,ht===0&&(Ni=Yt()+500,kc&&ra())}}function Ta(e){jo!==null&&jo.tag===0&&!(ht&6)&&xi();var t=ht;ht|=1;var n=wr.transition,r=$t;try{if(wr.transition=null,$t=1,e)return e()}finally{$t=r,wr.transition=n,ht=t,!(ht&6)&&ra()}}function Hp(){nr=pi.current,Bt(pi)}function Ca(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sO(n)),rn!==null)for(n=rn.return;n!==null;){var r=n;switch(wp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ec();break;case 3:Ti(),Bt(qn),Bt(Ln),Tp();break;case 5:Ip(r);break;case 4:Ti();break;case 13:Bt(Vt);break;case 19:Bt(Vt);break;case 10:$p(r.type._context);break;case 22:case 23:Hp()}n=n.return}if(hn=e,rn=e=qo(e.current,null),xn=nr=t,un=0,ns=null,zp=Uc=Ia=0,Gn=Ml=null,ga!==null){for(t=0;t<ga.length;t++)if(n=ga[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}ga=null}return e}function nC(e,t){do{var n=rn;try{if(Rp(),Ru.current=uc,sc){for(var r=Wt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}sc=!1}if(_a=0,vn=sn=Wt=null,Il=!1,Zl=0,Fp.current=null,n===null||n.return===null){un=1,ns=t,rn=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=xn,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=zh(i);if(g!==null){g.flags&=-257,Bh(g,i,l,a,t),g.mode&1&&Fh(a,c,t),t=g,s=c;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if(!(t&1)){Fh(a,c,t),Vp();break e}s=Error(ue(426))}}else if(kt&&l.mode&1){var S=zh(i);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Bh(S,i,l,a,t),Ep(Mi(s,l));break e}}a=s=Mi(s,l),un!==4&&(un=2),Ml===null?Ml=[a]:Ml.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var h=z1(a,s,t);Mh(a,h);break e;case 1:l=s;var v=a.type,p=a.stateNode;if(!(a.flags&128)&&(typeof v.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Go===null||!Go.has(p)))){a.flags|=65536,t&=-t,a.lanes|=t;var C=B1(a,l,t);Mh(a,C);break e}}a=a.return}while(a!==null)}aC(n)}catch(w){t=w,rn===n&&n!==null&&(rn=n=n.return);continue}break}while(!0)}function rC(){var e=cc.current;return cc.current=uc,e===null?uc:e}function Vp(){(un===0||un===3||un===2)&&(un=4),hn===null||!(Ia&268435455)&&!(Uc&268435455)||Lo(hn,xn)}function mc(e,t){var n=ht;ht|=2;var r=rC();(hn!==e||xn!==t)&&(io=null,Ca(e,t));do try{NO();break}catch(o){nC(e,o)}while(!0);if(Rp(),ht=n,cc.current=r,rn!==null)throw Error(ue(261));return hn=null,xn=0,un}function NO(){for(;rn!==null;)oC(rn)}function LO(){for(;rn!==null&&!a$();)oC(rn)}function oC(e){var t=lC(e.alternate,e,nr);e.memoizedProps=e.pendingProps,t===null?aC(e):rn=t,Fp.current=null}function aC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=OO(n,t),n!==null){n.flags&=32767,rn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{un=6,rn=null;return}}else if(n=$O(n,t,nr),n!==null){rn=n;return}if(t=t.sibling,t!==null){rn=t;return}rn=t=e}while(t!==null);un===0&&(un=5)}function da(e,t,n){var r=$t,o=wr.transition;try{wr.transition=null,$t=1,AO(e,t,n,r)}finally{wr.transition=o,$t=r}return null}function AO(e,t,n,r){do xi();while(jo!==null);if(ht&6)throw Error(ue(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ue(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(p$(e,a),e===hn&&(rn=hn=null,xn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ou||(ou=!0,sC(qu,function(){return xi(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=wr.transition,wr.transition=null;var i=$t;$t=1;var l=ht;ht|=4,Fp.current=null,_O(e,n),Z1(n,e),tO(ym),Xu=!!hm,ym=hm=null,e.current=n,IO(n),i$(),ht=l,$t=i,wr.transition=a}else e.current=n;if(ou&&(ou=!1,jo=e,fc=o),a=e.pendingLanes,a===0&&(Go=null),u$(n.stateNode),Xn(e,Yt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(dc)throw dc=!1,e=Fm,Fm=null,e;return fc&1&&e.tag!==0&&xi(),a=e.pendingLanes,a&1?e===zm?Nl++:(Nl=0,zm=e):Nl=0,ra(),null}function xi(){if(jo!==null){var e=zS(fc),t=wr.transition,n=$t;try{if(wr.transition=null,$t=16>e?16:e,jo===null)var r=!1;else{if(e=jo,jo=null,fc=0,ht&6)throw Error(ue(331));var o=ht;for(ht|=4,_e=e.current;_e!==null;){var a=_e,i=a.child;if(_e.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(_e=c;_e!==null;){var d=_e;switch(d.tag){case 0:case 11:case 15:Tl(8,d,a)}var f=d.child;if(f!==null)f.return=d,_e=f;else for(;_e!==null;){d=_e;var m=d.sibling,g=d.return;if(X1(d),d===c){_e=null;break}if(m!==null){m.return=g,_e=m;break}_e=g}}}var y=a.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var S=b.sibling;b.sibling=null,b=S}while(b!==null)}}_e=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,_e=i;else e:for(;_e!==null;){if(a=_e,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Tl(9,a,a.return)}var h=a.sibling;if(h!==null){h.return=a.return,_e=h;break e}_e=a.return}}var v=e.current;for(_e=v;_e!==null;){i=_e;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,_e=p;else e:for(i=v;_e!==null;){if(l=_e,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Wc(9,l)}}catch(w){Qt(l,l.return,w)}if(l===i){_e=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,_e=C;break e}_e=l.return}}if(ht=o,ra(),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(jc,e)}catch{}r=!0}return r}finally{$t=n,wr.transition=t}}return!1}function Zh(e,t,n){t=Mi(n,t),t=z1(e,t,1),e=Uo(e,t,1),t=Dn(),e!==null&&(Cs(e,1,t),Xn(e,t))}function Qt(e,t,n){if(e.tag===3)Zh(e,e,n);else for(;t!==null;){if(t.tag===3){Zh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Go===null||!Go.has(r))){e=Mi(n,e),e=B1(t,e,1),t=Uo(t,e,1),e=Dn(),t!==null&&(Cs(t,1,e),Xn(t,e));break}}t=t.return}}function jO(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dn(),e.pingedLanes|=e.suspendedLanes&n,hn===e&&(xn&n)===n&&(un===4||un===3&&(xn&130023424)===xn&&500>Yt()-Bp?Ca(e,0):zp|=n),Xn(e,t)}function iC(e,t){t===0&&(e.mode&1?(t=qs,qs<<=1,!(qs&130023424)&&(qs=4194304)):t=1);var n=Dn();e=go(e,t),e!==null&&(Cs(e,t,n),Xn(e,n))}function DO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iC(e,n)}function FO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(t),iC(e,n)}var lC;lC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qn.current)Kn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kn=!1,RO(e,t,n);Kn=!!(e.flags&131072)}else Kn=!1,kt&&t.flags&1048576&&d1(t,rc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ou(e,t),e=t.pendingProps;var o=Pi(t,Ln.current);Ei(t,n),o=Np(null,t,r,e,o,n);var a=Lp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qn(r)?(a=!0,tc(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pp(t),o.updater=Vc,t.stateNode=o,o._reactInternals=t,Om(t,r,e,n),t=Im(null,t,r,!0,a,n)):(t.tag=0,kt&&a&&Cp(t),jn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ou(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=BO(r),e=Nr(r,e),o){case 0:t=_m(null,t,r,e,n);break e;case 1:t=Vh(null,t,r,e,n);break e;case 11:t=kh(null,t,r,e,n);break e;case 14:t=Hh(null,t,r,Nr(r.type,e),n);break e}throw Error(ue(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nr(r,o),_m(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nr(r,o),Vh(e,t,r,o,n);case 3:e:{if(W1(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,h1(e,t),ic(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Mi(Error(ue(423)),t),t=Wh(e,t,r,n,o);break e}else if(r!==o){o=Mi(Error(ue(424)),t),t=Wh(e,t,r,n,o);break e}else for(rr=Wo(t.stateNode.containerInfo.firstChild),ar=t,kt=!0,Dr=null,n=p1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),r===o){t=ho(e,t,n);break e}jn(e,t,r,n)}t=t.child}return t;case 5:return y1(t),e===null&&xm(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,bm(r,o)?i=null:a!==null&&bm(r,a)&&(t.flags|=32),V1(e,t),jn(e,t,i,n),t.child;case 6:return e===null&&xm(t),null;case 13:return U1(e,t,n);case 4:return _p(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ii(t,null,r,n):jn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nr(r,o),kh(e,t,r,o,n);case 7:return jn(e,t,t.pendingProps,n),t.child;case 8:return jn(e,t,t.pendingProps.children,n),t.child;case 12:return jn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,jt(oc,r._currentValue),r._currentValue=i,a!==null)if(Wr(a.value,i)){if(a.children===o.children&&!qn.current){t=ho(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=fo(-1,n&-n),s.tag=2;var c=a.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}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Rm(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(ue(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Rm(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}jn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),o=Rr(o),r=r(o),t.flags|=1,jn(e,t,r,n),t.child;case 14:return r=t.type,o=Nr(r,t.pendingProps),o=Nr(r.type,o),Hh(e,t,r,o,n);case 15:return k1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nr(r,o),Ou(e,t),t.tag=1,Qn(r)?(e=!0,tc(t)):e=!1,Ei(t,n),F1(t,r,o),Om(t,r,o,n),Im(null,t,r,!0,e,n);case 19:return G1(e,t,n);case 22:return H1(e,t,n)}throw Error(ue(156,t.tag))};function sC(e,t){return AS(e,t)}function zO(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 Cr(e,t,n,r){return new zO(e,t,n,r)}function Wp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function BO(e){if(typeof e=="function")return Wp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===up)return 11;if(e===cp)return 14}return 2}function qo(e,t){var n=e.alternate;return n===null?(n=Cr(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 Iu(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Wp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ai:return wa(n.children,o,a,t);case sp:i=8,o|=8;break;case Yf:return e=Cr(12,n,t,o|2),e.elementType=Yf,e.lanes=a,e;case Jf:return e=Cr(13,n,t,o),e.elementType=Jf,e.lanes=a,e;case Zf:return e=Cr(19,n,t,o),e.elementType=Zf,e.lanes=a,e;case yS:return Gc(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gS:i=10;break e;case hS:i=9;break e;case up:i=11;break e;case cp:i=14;break e;case To:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=Cr(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function wa(e,t,n,r){return e=Cr(7,e,r,t),e.lanes=n,e}function Gc(e,t,n,r){return e=Cr(22,e,r,t),e.elementType=yS,e.lanes=n,e.stateNode={isHidden:!1},e}function sf(e,t,n){return e=Cr(6,e,null,t),e.lanes=n,e}function uf(e,t,n){return t=Cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hd(0),this.expirationTimes=Hd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Up(e,t,n,r,o,a,i,l,s){return e=new kO(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Cr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pp(a),e}function HO(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uC(e){if(!e)return Yo;e=e._reactInternals;e:{if(Da(e)!==e||e.tag!==1)throw Error(ue(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ue(171))}if(e.tag===1){var n=e.type;if(Qn(n))return u1(e,n,t)}return t}function cC(e,t,n,r,o,a,i,l,s){return e=Up(n,r,!0,e,o,a,i,l,s),e.context=uC(null),n=e.current,r=Dn(),o=Ko(n),a=fo(r,o),a.callback=t??null,Uo(n,a,o),e.current.lanes=o,Cs(e,o,r),Xn(e,r),e}function Kc(e,t,n,r){var o=t.current,a=Dn(),i=Ko(o);return n=uC(n),t.context===null?t.context=n:t.pendingContext=n,t=fo(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Uo(o,t,i),e!==null&&(zr(e,o,i,a),xu(e,o,i)),i}function vc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function e0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gp(e,t){e0(e,t),(e=e.alternate)&&e0(e,t)}function VO(){return null}var dC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Kp(e){this._internalRoot=e}qc.prototype.render=Kp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ue(409));Kc(e,t,null,null)};qc.prototype.unmount=Kp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ta(function(){Kc(null,e,null,null)}),t[po]=null}};function qc(e){this._internalRoot=e}qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=HS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<No.length&&t!==0&&t<No[n].priority;n++);No.splice(n,0,e),n===0&&WS(e)}};function qp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t0(){}function WO(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var c=vc(i);a.call(c)}}var i=cC(t,r,e,0,null,!1,!1,"",t0);return e._reactRootContainer=i,e[po]=i.current,ql(e.nodeType===8?e.parentNode:e),Ta(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=vc(s);l.call(c)}}var s=Up(e,0,!1,null,null,!1,!1,"",t0);return e._reactRootContainer=s,e[po]=s.current,ql(e.nodeType===8?e.parentNode:e),Ta(function(){Kc(t,s,n,r)}),s}function Xc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var l=o;o=function(){var s=vc(i);l.call(s)}}Kc(t,i,e,o)}else i=WO(n,t,e,o,r);return vc(i)}BS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cl(t.pendingLanes);n!==0&&(mp(t,n|1),Xn(t,Yt()),!(ht&6)&&(Ni=Yt()+500,ra()))}break;case 13:Ta(function(){var r=go(e,1);if(r!==null){var o=Dn();zr(r,e,1,o)}}),Gp(e,1)}};vp=function(e){if(e.tag===13){var t=go(e,134217728);if(t!==null){var n=Dn();zr(t,e,134217728,n)}Gp(e,134217728)}};kS=function(e){if(e.tag===13){var t=Ko(e),n=go(e,t);if(n!==null){var r=Dn();zr(n,e,t,r)}Gp(e,t)}};HS=function(){return $t};VS=function(e,t){var n=$t;try{return $t=e,t()}finally{$t=n}};um=function(e,t,n){switch(t){case"input":if(nm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Bc(r);if(!o)throw Error(ue(90));SS(r),nm(r,o)}}}break;case"textarea":wS(e,n);break;case"select":t=n.value,t!=null&&bi(e,!!n.multiple,t,!1)}};_S=kp;IS=Ta;var UO={usingClientEntryPoint:!1,Events:[Es,ui,Bc,OS,PS,kp]},ul={findFiberByHostInstance:pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},GO={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:So.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=NS(e),e===null?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||VO,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{jc=au.inject(GO),Zr=au}catch{}}ur.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UO;ur.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qp(t))throw Error(ue(200));return HO(e,t,null,n)};ur.createRoot=function(e,t){if(!qp(e))throw Error(ue(299));var n=!1,r="",o=dC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Up(e,1,!1,null,null,n,!1,r,o),e[po]=t.current,ql(e.nodeType===8?e.parentNode:e),new Kp(t)};ur.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ue(188)):(e=Object.keys(e).join(","),Error(ue(268,e)));return e=NS(t),e=e===null?null:e.stateNode,e};ur.flushSync=function(e){return Ta(e)};ur.hydrate=function(e,t,n){if(!Qc(t))throw Error(ue(200));return Xc(null,e,t,!0,n)};ur.hydrateRoot=function(e,t,n){if(!qp(e))throw Error(ue(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=dC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=cC(t,null,e,1,n??null,o,!1,a,i),e[po]=t.current,ql(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new qc(t)};ur.render=function(e,t,n){if(!Qc(t))throw Error(ue(200));return Xc(null,e,t,!1,n)};ur.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(ue(40));return e._reactRootContainer?(Ta(function(){Xc(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0):!1};ur.unstable_batchedUpdates=kp;ur.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(ue(200));if(e==null||e._reactInternals===void 0)throw Error(ue(38));return Xc(e,t,n,!1,r)};ur.version="18.3.1-next-f1338f8080-20240426";function fC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fC)}catch(e){console.error(e)}}fC(),fS.exports=ur;var Jo=fS.exports;const Hm=ep(Jo),KO=eS({__proto__:null,default:Hm},[Jo]);var n0=Jo;Qf.createRoot=n0.createRoot,Qf.hydrateRoot=n0.hydrateRoot;/**
 * @remix-run/router v1.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rs.apply(this,arguments)}var Do;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Do||(Do={}));const r0="popstate";function qO(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:l="",hash:s=""}=Fa(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Vm("",{pathname:i,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(o,a){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let s=o.location.href,c=s.indexOf("#");l=c===-1?s:s.slice(0,c)}return l+"#"+(typeof a=="string"?a:pc(a))}function r(o,a){Qp(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return XO(t,n,r,e)}function Jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Qp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QO(){return Math.random().toString(36).substr(2,8)}function o0(e,t){return{usr:e.state,key:e.key,idx:t}}function Vm(e,t,n,r){return n===void 0&&(n=null),rs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fa(t):t,{state:n,key:t&&t.key||r||QO()})}function pc(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 Fa(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 XO(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Do.Pop,s=null,c=d();c==null&&(c=0,i.replaceState(rs({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Do.Pop;let S=d(),h=S==null?null:S-c;c=S,s&&s({action:l,location:b.location,delta:h})}function m(S,h){l=Do.Push;let v=Vm(b.location,S,h);n&&n(v,S),c=d()+1;let p=o0(v,c),C=b.createHref(v);try{i.pushState(p,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(C)}a&&s&&s({action:l,location:b.location,delta:1})}function g(S,h){l=Do.Replace;let v=Vm(b.location,S,h);n&&n(v,S),c=d();let p=o0(v,c),C=b.createHref(v);i.replaceState(p,"",C),a&&s&&s({action:l,location:b.location,delta:0})}function y(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof S=="string"?S:pc(S);return v=v.replace(/ $/,"%20"),Jt(h,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,h)}let b={get action(){return l},get location(){return e(o,i)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(r0,f),s=S,()=>{o.removeEventListener(r0,f),s=null}},createHref(S){return t(o,S)},createURL:y,encodeLocation(S){let h=y(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:g,go(S){return i.go(S)}};return b}var a0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(a0||(a0={}));function YO(e,t,n){return n===void 0&&(n="/"),JO(e,t,n,!1)}function JO(e,t,n,r){let o=typeof t=="string"?Fa(t):t,a=Xp(o.pathname||"/",n);if(a==null)return null;let i=mC(e);ZO(i);let l=null;for(let s=0;l==null&&s<i.length;++s){let c=c2(a);l=s2(i[s],c,r)}return l}function mC(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(Jt(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=Qo([r,s.relativePath]),d=n.concat(s);a.children&&a.children.length>0&&(Jt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),mC(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:i2(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of vC(a.path))o(a,i,s)}),t}function vC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=vC(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function ZO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:l2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e2=/^:[\w-]+$/,t2=3,n2=2,r2=1,o2=10,a2=-2,i0=e=>e==="*";function i2(e,t){let n=e.split("/"),r=n.length;return n.some(i0)&&(r+=a2),t&&(r+=n2),n.filter(o=>!i0(o)).reduce((o,a)=>o+(e2.test(a)?t2:a===""?r2:o2),r)}function l2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function s2(e,t,n){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l<r.length;++l){let s=r[l],c=l===r.length-1,d=a==="/"?t:t.slice(a.length)||"/",f=l0({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d),m=s.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=l0({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Qo([a,f.pathname]),pathnameBase:v2(Qo([a,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(a=Qo([a,f.pathnameBase]))}return i}function l0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=u2(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:m,isOptional:g}=d;if(m==="*"){let b=l[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=l[f];return g&&!y?c[m]=void 0:c[m]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function u2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Qp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function c2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Qp(!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 Xp(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 d2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Fa(e):e;return{pathname:n?n.startsWith("/")?n:f2(n,t):t,search:p2(r),hash:g2(o)}}function f2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function cf(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 <Link to="..."> and the router will parse it for you.'}function m2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yp(e,t){let n=m2(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Fa(e):(o=rs({},e),Jt(!o.pathname||!o.pathname.includes("?"),cf("?","pathname","search",o)),Jt(!o.pathname||!o.pathname.includes("#"),cf("#","pathname","hash",o)),Jt(!o.search||!o.search.includes("#"),cf("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}l=f>=0?t[f]:"/"}let s=d2(o,l),c=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||d)&&(s.pathname+="/"),s}const Qo=e=>e.join("/").replace(/\/\/+/g,"/"),v2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),p2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,g2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function h2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pC=["post","put","patch","delete"];new Set(pC);const y2=["get",...pC];new Set(y2);/**
 * React Router v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os.apply(this,arguments)}const Zp=u.createContext(null),b2=u.createContext(null),oa=u.createContext(null),Yc=u.createContext(null),Co=u.createContext({outlet:null,matches:[],isDataRoute:!1}),gC=u.createContext(null);function S2(e,t){let{relative:n}=t===void 0?{}:t;Gi()||Jt(!1);let{basename:r,navigator:o}=u.useContext(oa),{hash:a,pathname:i,search:l}=yC(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:Qo([r,i])),o.createHref({pathname:s,search:l,hash:a})}function Gi(){return u.useContext(Yc)!=null}function za(){return Gi()||Jt(!1),u.useContext(Yc).location}function hC(e){u.useContext(oa).static||u.useLayoutEffect(e)}function Rs(){let{isDataRoute:e}=u.useContext(Co);return e?N2():C2()}function C2(){Gi()||Jt(!1);let e=u.useContext(Zp),{basename:t,future:n,navigator:r}=u.useContext(oa),{matches:o}=u.useContext(Co),{pathname:a}=za(),i=JSON.stringify(Yp(o,n.v7_relativeSplatPath)),l=u.useRef(!1);return hC(()=>{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=Jp(c,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qo([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,a,e])}function $k(){let{matches:e}=u.useContext(Co),t=e[e.length-1];return t?t.params:{}}function yC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(oa),{matches:o}=u.useContext(Co),{pathname:a}=za(),i=JSON.stringify(Yp(o,r.v7_relativeSplatPath));return u.useMemo(()=>Jp(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function w2(e,t){return E2(e,t)}function E2(e,t,n,r){Gi()||Jt(!1);let{navigator:o}=u.useContext(oa),{matches:a}=u.useContext(Co),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=za(),d;if(t){var f;let S=typeof t=="string"?Fa(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||Jt(!1),d=S}else d=c;let m=d.pathname||"/",g=m;if(s!=="/"){let S=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=YO(e,{pathname:g}),b=P2(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Qo([s,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Qo([s,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r);return t&&b?u.createElement(Yc.Provider,{value:{location:os({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Do.Pop}},b):b}function x2(){let e=M2(),t=h2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};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:o},n):null,null)}const R2=u.createElement(x2,null);class $2 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(Co.Provider,{value:this.props.routeContext},u.createElement(gC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O2(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Zp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Co.Provider,{value:t},r)}function P2(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Jt(!1),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:m,errors:g}=n,y=f.route.loader&&m[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||y){s=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let g,y=!1,b=null,S=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||R2,s&&(c<0&&m===0?(y=!0,S=null):c===m&&(y=!0,S=f.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,m+1)),v=()=>{let p;return g?p=b:y?p=S:f.route.Component?p=u.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=d,u.createElement(O2,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?u.createElement($2,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var bC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bC||{}),gc=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}(gc||{});function _2(e){let t=u.useContext(Zp);return t||Jt(!1),t}function I2(e){let t=u.useContext(b2);return t||Jt(!1),t}function T2(e){let t=u.useContext(Co);return t||Jt(!1),t}function SC(e){let t=T2(),n=t.matches[t.matches.length-1];return n.route.id||Jt(!1),n.route.id}function M2(){var e;let t=u.useContext(gC),n=I2(gc.UseRouteError),r=SC(gc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function N2(){let{router:e}=_2(bC.UseNavigateStable),t=SC(gc.UseNavigateStable),n=u.useRef(!1);return hC(()=>{n.current=!0}),u.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,os({fromRouteId:t},a)))},[e,t])}function Wm(e){let{to:t,replace:n,state:r,relative:o}=e;Gi()||Jt(!1);let{future:a,static:i}=u.useContext(oa),{matches:l}=u.useContext(Co),{pathname:s}=za(),c=Rs(),d=Jp(t,Yp(l,a.v7_relativeSplatPath),s,o==="path"),f=JSON.stringify(d);return u.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function Ae(e){Jt(!1)}function L2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Do.Pop,navigator:a,static:i=!1,future:l}=e;Gi()&&Jt(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:a,static:i,future:os({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=Fa(r));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:y="default"}=r,b=u.useMemo(()=>{let S=Xp(d,s);return S==null?null:{location:{pathname:S,search:f,hash:m,state:g,key:y},navigationType:o}},[s,d,f,m,g,y,o]);return b==null?null:u.createElement(oa.Provider,{value:c},u.createElement(Yc.Provider,{children:n,value:b}))}function CC(e){let{children:t,location:n}=e;return w2(Um(t),n)}new Promise(()=>{});function Um(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let a=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Um(r.props.children,a));return}r.type!==Ae&&Jt(!1),!r.props.index||!r.props.children||Jt(!1);let i={id:r.props.id||a.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&&(i.children=Um(r.props.children,a)),n.push(i)}),n}/**
 * React Router DOM v6.24.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Gm(){return Gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gm.apply(this,arguments)}function A2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function j2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D2(e,t){return e.button===0&&(!t||t==="_self")&&!j2(e)}const F2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],z2="6";try{window.__reactRouterVersion=z2}catch{}const B2="startTransition",s0=$a[B2];function k2(e){let{basename:t,children:n,future:r,window:o}=e,a=u.useRef();a.current==null&&(a.current=qO({window:o,v5Compat:!0}));let i=a.current,[l,s]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=u.useCallback(f=>{c&&s0?s0(()=>s(f)):s(f)},[s,c]);return u.useLayoutEffect(()=>i.listen(d),[i,d]),u.createElement(L2,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const H2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hc=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:s,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,m=A2(t,F2),{basename:g}=u.useContext(oa),y,b=!1;if(typeof c=="string"&&V2.test(c)&&(y=c,H2))try{let p=new URL(window.location.href),C=c.startsWith("//")?new URL(p.protocol+c):new URL(c),w=Xp(C.pathname,g);C.origin===p.origin&&w!=null?c=w+C.search+C.hash:b=!0}catch{}let S=S2(c,{relative:o}),h=W2(c,{replace:i,state:l,target:s,preventScrollReset:d,relative:o,unstable_viewTransition:f});function v(p){r&&r(p),p.defaultPrevented||h(p)}return u.createElement("a",Gm({},m,{href:y||S,onClick:b||a?r:v,ref:n,target:s}))});var u0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(u0||(u0={}));var c0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(c0||(c0={}));function W2(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=Rs(),c=za(),d=yC(e,{relative:i});return u.useCallback(f=>{if(D2(f,n)){f.preventDefault();let m=r!==void 0?r:pc(c)===pc(d);s(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[c,s,d,r,o,n,e,a,i,l])}var U2={};/**
 * @license React
 * use-sync-external-store-with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $s=u;function G2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var K2=typeof Object.is=="function"?Object.is:G2,q2=$s.useSyncExternalStore,Q2=$s.useRef,X2=$s.useEffect,Y2=$s.useMemo,J2=$s.useDebugValue;U2.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=Q2(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=Y2(function(){function s(g){if(!c){if(c=!0,d=g,g=r(g),o!==void 0&&i.hasValue){var y=i.value;if(o(y,g))return f=y}return f=g}if(y=f,K2(d,g))return y;var b=r(g);return o!==void 0&&o(y,b)?y:(d=g,f=b)}var c=!1,d,f,m=n===void 0?null:n;return[function(){return s(t())},m===null?void 0:function(){return s(m())}]},[t,n,r,o]);var l=q2(e,a[0],a[1]);return X2(function(){i.hasValue=!0,i.value=l},[l]),J2(l),l};var wt="default"in $a?K:$a,d0=Symbol.for("react-redux-context"),f0=typeof globalThis<"u"?globalThis:{};function Z2(){if(!wt.createContext)return{};const e=f0[d0]??(f0[d0]=new Map);let t=e.get(wt.createContext);return t||(t=wt.createContext(null),e.set(wt.createContext,t)),t}var Ma=Z2(),eP=()=>{throw new Error("uSES not initialized!")};function wC(e=Ma){return function(){return wt.useContext(e)}}var tP=wC(),nP=Symbol.for("react.element"),rP=Symbol.for("react.portal"),oP=Symbol.for("react.fragment"),aP=Symbol.for("react.strict_mode"),iP=Symbol.for("react.profiler"),lP=Symbol.for("react.provider"),sP=Symbol.for("react.context"),uP=Symbol.for("react.server_context"),EC=Symbol.for("react.forward_ref"),cP=Symbol.for("react.suspense"),dP=Symbol.for("react.suspense_list"),eg=Symbol.for("react.memo"),fP=Symbol.for("react.lazy"),mP=EC,vP=eg;function pP(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case nP:{const n=e.type;switch(n){case oP:case iP:case aP:case cP:case dP:return n;default:{const r=n&&n.$$typeof;switch(r){case uP:case sP:case EC:case fP:case eg:case lP:return r;default:return t}}}}case rP:return t}}}function gP(e){return pP(e)===eg}function hP(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l=!1,s,c,d,f,m;function g(v,p){return s=v,c=p,d=e(s,c),f=t(r,c),m=n(d,f,c),l=!0,m}function y(){return d=e(s,c),t.dependsOnOwnProps&&(f=t(r,c)),m=n(d,f,c),m}function b(){return e.dependsOnOwnProps&&(d=e(s,c)),t.dependsOnOwnProps&&(f=t(r,c)),m=n(d,f,c),m}function S(){const v=e(s,c),p=!i(v,d);return d=v,p&&(m=n(d,f,c)),m}function h(v,p){const C=!a(p,c),w=!o(v,s,p,c);return s=v,c=p,C&&w?y():C?b():w?S():m}return function(p,C){return l?h(p,C):g(p,C)}}function yP(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){const a=t(e,o),i=n(e,o),l=r(e,o);return hP(a,i,l,e,o)}function bP(e,t){const n={};for(const r in e){const o=e[r];typeof o=="function"&&(n[r]=(...a)=>t(o(...a)))}return n}function Km(e){return function(n){const r=e(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function m0(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function xC(e,t){return function(r,{displayName:o}){const a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=m0(e);let c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=m0(c),c=a(l,s)),c},a}}function tg(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function SP(e){return e&&typeof e=="object"?Km(t=>bP(e,t)):e?typeof e=="function"?xC(e):tg(e,"mapDispatchToProps"):Km(t=>({dispatch:t}))}function CP(e){return e?typeof e=="function"?xC(e):tg(e,"mapStateToProps"):Km(()=>({}))}function wP(e,t,n){return{...n,...e,...t}}function EP(e){return function(n,{displayName:r,areMergedPropsEqual:o}){let a=!1,i;return function(s,c,d){const f=e(s,c,d);return a?o(f,i)||(i=f):(a=!0,i=f),i}}}function xP(e){return e?typeof e=="function"?EP(e):tg(e,"mergeProps"):()=>wP}function RP(e){e()}function $P(){let e=null,t=null;return{clear(){e=null,t=null},notify(){RP(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var v0={notify(){},get:()=>[]};function RC(e,t){let n,r=v0,o=0,a=!1;function i(b){d();const S=r.subscribe(b);let h=!1;return()=>{h||(h=!0,S(),f())}}function l(){r.notify()}function s(){y.onStateChange&&y.onStateChange()}function c(){return a}function d(){o++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=$P())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=v0)}function m(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const y={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:c,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return y}var OP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PP=typeof navigator<"u"&&navigator.product==="ReactNative",yc=OP||PP?wt.useLayoutEffect:wt.useEffect;function p0(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function df(e,t){if(p0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!p0(e[n[o]],t[n[o]]))return!1;return!0}var _P={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IP={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$C={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MP={[mP]:TP,[vP]:$C};function g0(e){return gP(e)?$C:MP[e.$$typeof]||_P}var NP=Object.defineProperty,LP=Object.getOwnPropertyNames,h0=Object.getOwnPropertySymbols,AP=Object.getOwnPropertyDescriptor,jP=Object.getPrototypeOf,y0=Object.prototype;function qm(e,t){if(typeof t!="string"){if(y0){const a=jP(t);a&&a!==y0&&qm(e,a)}let n=LP(t);h0&&(n=n.concat(h0(t)));const r=g0(e),o=g0(t);for(let a=0;a<n.length;++a){const i=n[a];if(!IP[i]&&!(o&&o[i])&&!(r&&r[i])){const l=AP(t,i);try{NP(e,i,l)}catch{}}}}return e}var OC=eP,DP=e=>{OC=e},FP=[null,null];function zP(e,t,n){yc(()=>e(...t),n)}function BP(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function kP(e,t,n,r,o,a,i,l,s,c,d){if(!e)return()=>{};let f=!1,m=null;const g=()=>{if(f||!l.current)return;const b=t.getState();let S,h;try{S=r(b,o.current)}catch(v){h=v,m=v}h||(m=null),S===a.current?i.current||c():(a.current=S,s.current=S,i.current=!0,d())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,m)throw m}}function HP(e,t){return e===t}function VP(e,t,n,{pure:r,areStatesEqual:o=HP,areOwnPropsEqual:a=df,areStatePropsEqual:i=df,areMergedPropsEqual:l=df,forwardRef:s=!1,context:c=Ma}={}){const d=c,f=CP(e),m=SP(t),g=xP(n),y=!!e;return S=>{const h=S.displayName||S.name||"Component",v=`Connect(${h})`,p={shouldHandleStateChanges:y,displayName:v,wrappedComponentName:h,WrappedComponent:S,initMapStateToProps:f,initMapDispatchToProps:m,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:a,areMergedPropsEqual:l};function C(E){const[R,O,_]=wt.useMemo(()=>{const{reactReduxForwardedRef:te,...ie}=E;return[E.context,te,ie]},[E]),A=wt.useMemo(()=>{let te=d;return R!=null&&R.Consumer,te},[R,d]),M=wt.useContext(A),D=!!E.store&&!!E.store.getState&&!!E.store.dispatch,I=!!M&&!!M.store,V=D?E.store:M.store,j=I?M.getServerState:V.getState,P=wt.useMemo(()=>yP(V.dispatch,p),[V]),[$,L]=wt.useMemo(()=>{if(!y)return FP;const te=RC(V,D?void 0:M.subscription),ie=te.notifyNestedSubs.bind(te);return[te,ie]},[V,D,M]),N=wt.useMemo(()=>D?M:{...M,subscription:$},[D,M,$]),T=wt.useRef(void 0),k=wt.useRef(_),H=wt.useRef(void 0),U=wt.useRef(!1),G=wt.useRef(!1),ee=wt.useRef(void 0);yc(()=>(G.current=!0,()=>{G.current=!1}),[]);const Q=wt.useMemo(()=>()=>H.current&&_===k.current?H.current:P(V.getState(),_),[V,_]),ae=wt.useMemo(()=>ie=>$?kP(y,V,$,P,k,T,U,G,H,L,ie):()=>{},[$]);zP(BP,[k,T,U,_,H,L]);let ce;try{ce=OC(ae,Q,j?()=>P(j(),_):Q)}catch(te){throw ee.current&&(te.message+=`
The error may be correlated with this previous error:
${ee.current.stack}

`),te}yc(()=>{ee.current=void 0,H.current=void 0,T.current=ce});const ne=wt.useMemo(()=>wt.createElement(S,{...ce,ref:O}),[O,S,ce]);return wt.useMemo(()=>y?wt.createElement(A.Provider,{value:N},ne):ne,[A,ne,N])}const x=wt.memo(C);if(x.WrappedComponent=S,x.displayName=C.displayName=v,s){const R=wt.forwardRef(function(_,A){return wt.createElement(x,{..._,reactReduxForwardedRef:A})});return R.displayName=v,R.WrappedComponent=S,qm(R,S)}return qm(x,S)}}var ng=VP;function WP({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const i=wt.useMemo(()=>{const c=RC(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}},[e,r,o,a]),l=wt.useMemo(()=>e.getState(),[e]);yc(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,l]);const s=t||Ma;return wt.createElement(s.Provider,{value:i},n)}var UP=WP;function PC(e=Ma){const t=e===Ma?tP:wC(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var GP=PC();function KP(e=Ma){const t=e===Ma?GP:PC(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var qP=KP();DP(u.useSyncExternalStore);function Cn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var QP=typeof Symbol=="function"&&Symbol.observable||"@@observable",b0=QP,ff=()=>Math.random().toString(36).substring(7).split("").join("."),XP={INIT:`@@redux/INIT${ff()}`,REPLACE:`@@redux/REPLACE${ff()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ff()}`},bc=XP;function YP(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _C(e,t,n){if(typeof e!="function")throw new Error(Cn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Cn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Cn(1));return n(_C)(e,t)}let r=e,o=t,a=new Map,i=a,l=0,s=!1;function c(){i===a&&(i=new Map,a.forEach((S,h)=>{i.set(h,S)}))}function d(){if(s)throw new Error(Cn(3));return o}function f(S){if(typeof S!="function")throw new Error(Cn(4));if(s)throw new Error(Cn(5));let h=!0;c();const v=l++;return i.set(v,S),function(){if(h){if(s)throw new Error(Cn(6));h=!1,c(),i.delete(v),a=null}}}function m(S){if(!YP(S))throw new Error(Cn(7));if(typeof S.type>"u")throw new Error(Cn(8));if(typeof S.type!="string")throw new Error(Cn(17));if(s)throw new Error(Cn(9));try{s=!0,o=r(o,S)}finally{s=!1}return(a=i).forEach(v=>{v()}),S}function g(S){if(typeof S!="function")throw new Error(Cn(10));r=S,m({type:bc.REPLACE})}function y(){const S=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Cn(11));function v(){const C=h;C.next&&C.next(d())}return v(),{unsubscribe:S(v)}},[b0](){return this}}}return m({type:bc.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:g,[b0]:y}}function JP(e,t,n){return _C(e,t,n)}function ZP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:bc.INIT})>"u")throw new Error(Cn(12));if(typeof n(void 0,{type:bc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cn(13))})}function e_(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const i=t[a];typeof e[i]=="function"&&(n[i]=e[i])}const r=Object.keys(n);let o;try{ZP(n)}catch(a){o=a}return function(i={},l){if(o)throw o;let s=!1;const c={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],g=i[f],y=m(g,l);if(typeof y>"u")throw l&&l.type,new Error(Cn(14));c[f]=y,s=s||y!==g}return s=s||r.length!==Object.keys(i).length,s?c:i}}function IC(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function t_(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(Cn(15))};const i={getState:o.getState,dispatch:(s,...c)=>a(s,...c)},l=e.map(s=>s(i));return a=IC(...l)(o.dispatch),{...o,dispatch:a}}}function n_(e){return({dispatch:n,getState:r})=>o=>a=>typeof a=="function"?a(n,r,e):o(a)}var r_=n_();const o_={appLoading:!1,btnLoading:!1,draftLoading:!1,addLoading:!1},a_=(e=o_,t)=>{switch(t.type){case"SET_LOADER":return{...e,appLoading:!0};case"UNSET_LOADER":return{...e,appLoading:!1};case"SET_BTN_LOADER":return{...e,btnLoading:!0};case"UNSET_BTN_LOADER":return{...e,btnLoading:!1};case"SET_DRAFT_LOADER":return{...e,draftLoading:!0};case"UNSET_DRAFT_LOADER":return{...e,draftLoading:!1};case"SET_ADD_LOADER":return{...e,addLoading:!0};case"UNSET_ADD_LOADER":return{...e,addLoading:!1};default:return e}},S0=localStorage.getItem("uniclare-token"),C0=localStorage.getItem("userInfo"),i_={userData:C0!=null?JSON.parse(C0):null,token:S0??null,loading:!1},l_=(e=i_,t)=>{const{type:n,payload:r}=t;switch(n){case"USER_INFO":return{...e,userData:r};case"CLEAR_USERINFO":return{...e,userData:null};case"USERS":return{...e,users:r};case"LOADING":return{...e,loading:!1};default:return e}},s_=(e=[],t)=>{const{type:n,payload:r}=t;switch(n){case"MENUS":return r;case"CLEAR_USERINFO":return e;default:return e}},u_=(e=[],t)=>{switch(t.type){case"SAVE_BANK_DETAILS":return t.payload;default:return e}},c_=(e=[],t)=>{switch(t.type){case"GET_QP_BANK_DETAILS":return t.payload;default:return e}},d_=(e=[],t)=>{switch(t.type){case"QP_GUIDELINES":return t.payload;default:return e}},f_=(e=[],t)=>{switch(t.type){case"GET_QP_DEGGRP":return t.payload;case"CLEAR_QP_DEGGRP":return t.payload;default:return e}},m_=(e=[],t)=>{switch(t.type){case"GET_QP_DEGREE":return t.payload;case"CLEAR_QP_DEGREE":return t.payload;default:return e}},v_=(e=[],t)=>{switch(t.type){case"GET_QP_BOARD":return t.payload;case"CLEAR_QP_BOARD":return t.payload;default:return e}},p_=(e=[],t)=>{switch(t.type){case"GET_QP_CODE":return t.payload;case"CLEAR_QP_CODE":return t.payload;default:return e}},g_=(e=[],t)=>{switch(t.type){case"GET_QP_PATTERN_UPD_DETAILS":return t.payload;case"CLEAR_QP_PATTERN_UPD_DETAILS":return t.payload;default:return e}},h_=(e=[],t)=>{switch(t.type){case"GET_QP_PATTERN_TEMP_CODE":return t.payload;case"CLEAR_QP_PATTERN_TEMP_CODE":return t.payload;default:return e}},y_=(e=[],t)=>{switch(t.type){case"EXAMNAME":return t.payload;default:return e}},b_=(e=[],t)=>{switch(t.type){case"GET_AVAILABLE_SUBJECTS":return t.payload;default:return e}},S_=(e=[],t)=>{switch(t.type){case"AVAILABLE_QP":return t.payload;case"CLEAR_AVAILABLE_QP":return t.payload;default:return e}},C_=(e=[],t)=>{switch(t.type){case"VIEW_DETAILED_AVAILABLE_QP":return t.payload;case"CLEAR_DETAILED_AVAILABLE_QP":return t.payload;default:return e}},w_=(e=[],t)=>{switch(t.type){case"ELIGIBLE_QP_SETTER":return t.payload;case"CLEAR_ELIGIBLE_QP_SETTER":return t.payload;default:return e}},E_=(e=[],t)=>{switch(t.type){case"SELECTED_QP_SETTER":return t.payload;case"CLEAR_SELECTED_QP_SETTER":return t.payload;default:return e}},x_=(e={},t)=>{switch(t.type){case"AVAILABLE_QP_DATA":return t.payload;case"CLEAR_AVAILABLE_QP_DATA":return t.payload;default:return e}},R_=(e=[],t)=>{switch(t.type){case"QP_DETAILS":return t.payload;case"CLEAR_QP_DETAILS":return t.payload;default:return e}},$_=(e=[],t)=>{switch(t.type){case"SET_QP_UPLOAD_DETAILS":return t.payload;case"CLEAR_SET_QP_UPLOAD_DETAILS":return t.payload;default:return e}},O_=(e=[],t)=>{switch(t.type){case"QP_UPD_NOTE":return t.payload;case"CLEAR_QP_UPD_NOTE":return t.payload;default:return e}},P_=(e=[],t)=>{switch(t.type){case"PREPARE_QP_DETAILS":return t.payload;case"CLEAR_PREPARE_QP_DETAILS":return t.payload;default:return e}},__=(e=[],t)=>{switch(t.type){case"QUESTION_NOS":return t.payload;case"CLEAR_QUESTION_NOS":return t.payload;default:return e}},I_=(e=[],t)=>{switch(t.type){case"QN_FILE_DET":return t.payload;case"CLEAR_QN_FILE_DET":return t.payload;default:return e}},T_=(e=[],t)=>{switch(t.type){case"MCQ_SELECTED_QP_DATA":return t.payload;default:return e}},M_=(e=[],t)=>{switch(t.type){case"MOD_DETAILS":return t.payload;default:return e}},N_=(e=[],t)=>{switch(t.type){case"TEACHER_DETAILS":return t.payload;default:return e}},L_=(e=[],t)=>{switch(t.type){case"TEMP_DETAILS":return t.payload;case"CLEAR_TEMP_DETAILS":return t.payload;default:return e}},A_=(e=[],t)=>{switch(t.type){case"TEMP_CODE_DETAILS":return t.payload;case"CLEAR_TEMP_CODE_DETAILS":return t.payload;default:return e}},j_=(e=[],t)=>{switch(t.type){case"SET_SELECT_FINAL_QP":return t.payload;default:return e}},D_=(e=[],t)=>{switch(t.type){case"SET_SELECT_MCQ_FINAL_QP":return t.payload;default:return e}},F_=(e=[],t)=>{switch(t.type){case"MOD_QP_ONLINE":return t.payload;default:return e}},z_=(e=[],t)=>{switch(t.type){case"MOD_QP_OFFLINE":return t.payload;default:return e}},B_=(e=[],t)=>{switch(t.type){case"MOD_QP_DATA":return t.payload;default:return e}},k_=(e=[],t)=>{switch(t.type){case"QP_SUMMARY":return t.payload;case"CLEAR_QP_SUMMARY":return t.payload;default:return e}},H_=(e=[],t)=>{switch(t.type){case"GENERATE_BILL":return t.payload;case"CLEAR_GENERATE_BILL":return t.payload;default:return e}},V_=(e=[],t)=>{switch(t.type){case"TEACH_VAL_DET":return t.payload;case"CLEAR_TEACH_VAL_DET":return t.payload;default:return e}},W_=(e={},t)=>{switch(t.type){case"CHECK_PASSWORD":return t.payload;default:return e}},U_=(e={},t)=>{switch(t.type){case"VALIDATE_OTP":return t.payload;default:return e}},G_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGGRP":return t.payload;case"CLEAR_VIEW_QP_DEGGRP":return t.payload;default:return e}},K_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_BOARD":return t.payload;case"CLEAR_VIEW_QP_BOARD":return t.payload;default:return e}},q_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGREE":return t.payload;case"CLEAR_VIEW_QP_DEGREE":return t.payload;default:return e}},Q_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_SUBJ":return t.payload;case"CLEAR_VIEW_QP_SUBJ":return t.payload;default:return e}},X_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DATA":return t.payload;case"CLEAR_VIEW_QP_DATA":return t.payload;default:return e}},Y_=(e=[],t)=>{switch(t.type){case"VIEW_FINAL_QP_DATA":return t.payload;case"CLEAR_FINAL_QP_DATA":return t.payload;default:return e}},J_=(e=[],t)=>{switch(t.type){case"USER_TYPE_DATA":return t.payload;default:return e}},Z_=(e=!1,t)=>{switch(t.type){case"OPEN_USERTYPE":return t.payload;default:return e}},eI=(e=!1,t)=>{switch(t.type){case"GET_CREATE_USER_DATA":return t.payload;default:return e}},tI=(e=!1,t)=>{switch(t.type){case"OPEN_CREATE_USER_MODAL":return t.payload;default:return e}},nI=(e=[],t)=>{switch(t.type){case"GET_ASSIGN_USER_MENUS":return t.payload;default:return e}},rI=(e=[],t)=>{switch(t.type){case"COLLEGE_DETAILS":return t.payload;default:return e}},oI=(e=[],t)=>{switch(t.type){case"TEACHER_DETAILS":return t.payload;default:return e}},aI=(e={},t)=>{switch(t.type){case"TEACH_DET":return t.payload;default:return e}},iI=(e=[],t)=>{switch(t.type){case"GET_TEMPLATE_DETAILS":return t.payload;default:return e}},lI=(e=[],t)=>{switch(t.type){case"VIEW_PREPARE_QP_OPTION2":return t.payload;default:return e}},sI=(e=[],t)=>{switch(t.type){case"DEGGRP":return t.payload;default:return e}},uI=(e=[],t)=>{switch(t.type){case"DEGREE":return t.payload;default:return e}},cI=(e=[],t)=>{switch(t.type){case"BOARD":return t.payload;default:return e}},dI=(e=[],t)=>{switch(t.type){case"VIEW_SUBJECT":return t.payload;case"CLEAR_DATA":return t.payload;default:return e}},fI=(e=[],t)=>{switch(t.type){case"UPDATE_SUBJECT":return t.payload;default:return e}},mI=(e=[],t)=>{switch(t.type){case"DEGGRP_DATA":return t.payload;default:return e}},vI=(e=[],t)=>{switch(t.type){case"EDIT_DEGGRP_DATA":return t.payload;default:return e}},pI=(e=[],t)=>{switch(t.type){case"GET_DEGREE":return t.payload;default:return e}},gI=(e=[],t)=>{switch(t.type){case"UPDATE_DEGREE":return t.payload;default:return e}},hI=(e=[],t)=>{switch(t.type){case"GET_DEGGRP_DEGREE":return t.payload;default:return e}},yI=e_({loginfo:l_,menuItems:s_,loader:a_,saveBankDet:u_,getBankDet:c_,deggrp:f_,board:v_,qpcode:p_,tempcodes:h_,patternDetails:g_,degree:m_,availableQp:S_,detailedAvailableQp:C_,eligibleQpSetter:w_,qpsetters:E_,avlQpCount:x_,qpAcceptDetails:R_,qpUpdData:$_,qpUpdNote:O_,prepareQpDetails:P_,getQuestions:__,getAssignMod:M_,teachers:N_,qnfiles:I_,tempDet:L_,tempcodedata:A_,examnames:y_,getSelectFinalQP:j_,getPreparedOmrQp:D_,getModQpOnline:F_,getModQpOffile:z_,getModUpdData:B_,selectedFinalMcq:T_,qpsummary:k_,billgenerate:H_,viewQPDeggrp:G_,viewBoardData:K_,viewDegreeData:q_,viewSubjData:Q_,viewQPData:X_,viewFinalQP:Y_,availableSubjects:b_,qpGuidelines:d_,getUsertypedata:J_,openUsertype:Z_,getAssignUserMenus:nI,getCreateUserData:eI,openCreateUserModal:tI,collegeDetails:rI,teacherDetails:oI,teachdet:aI,getTemplateDetails:iI,getViewPrepareQpDetails:lI,teachBillDet:V_,deggrpsubject:sI,degreesubject:uI,boardsubject:cI,viewsubject:dI,updatingdata:fI,getDeggrpdata:mI,deggrpEditData:vI,degreeDet:pI,updatedeg:gI,getdegForDegree:hI,checkOldPwd:W_,validateCPOTP:U_}),bI=(e,t)=>(t.type=="LOGOUT_USER"&&(e=void 0),yI(e,t)),SI=[r_],CI=window.REDUX_DEVTOOLS_EXTENSION_COMPOSE||IC,wI=JP(bI,CI(t_(...SI)));var TC={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 a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(TC);var EI=TC.exports;const q=ep(EI);function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(null,arguments)}var MC={exports:{}},Ot={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rg=Symbol.for("react.element"),og=Symbol.for("react.portal"),Jc=Symbol.for("react.fragment"),Zc=Symbol.for("react.strict_mode"),ed=Symbol.for("react.profiler"),td=Symbol.for("react.provider"),nd=Symbol.for("react.context"),xI=Symbol.for("react.server_context"),rd=Symbol.for("react.forward_ref"),od=Symbol.for("react.suspense"),ad=Symbol.for("react.suspense_list"),id=Symbol.for("react.memo"),ld=Symbol.for("react.lazy"),RI=Symbol.for("react.offscreen"),NC;NC=Symbol.for("react.module.reference");function Pr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rg:switch(e=e.type,e){case Jc:case ed:case Zc:case od:case ad:return e;default:switch(e=e&&e.$$typeof,e){case xI:case nd:case rd:case ld:case id:case td:return e;default:return t}}case og:return t}}}Ot.ContextConsumer=nd;Ot.ContextProvider=td;Ot.Element=rg;Ot.ForwardRef=rd;Ot.Fragment=Jc;Ot.Lazy=ld;Ot.Memo=id;Ot.Portal=og;Ot.Profiler=ed;Ot.StrictMode=Zc;Ot.Suspense=od;Ot.SuspenseList=ad;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return Pr(e)===nd};Ot.isContextProvider=function(e){return Pr(e)===td};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rg};Ot.isForwardRef=function(e){return Pr(e)===rd};Ot.isFragment=function(e){return Pr(e)===Jc};Ot.isLazy=function(e){return Pr(e)===ld};Ot.isMemo=function(e){return Pr(e)===id};Ot.isPortal=function(e){return Pr(e)===og};Ot.isProfiler=function(e){return Pr(e)===ed};Ot.isStrictMode=function(e){return Pr(e)===Zc};Ot.isSuspense=function(e){return Pr(e)===od};Ot.isSuspenseList=function(e){return Pr(e)===ad};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jc||e===ed||e===Zc||e===od||e===ad||e===RI||typeof e=="object"&&e!==null&&(e.$$typeof===ld||e.$$typeof===id||e.$$typeof===td||e.$$typeof===nd||e.$$typeof===rd||e.$$typeof===NC||e.getModuleId!==void 0)};Ot.typeOf=Pr;MC.exports=Ot;var Ll=MC.exports;function Zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return K.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zo(r)):Ll.isFragment(r)&&r.props?n=n.concat(Zo(r.props.children,t)):n.push(r))}),n}var Qm={},$I=function(t){};function OI(e,t){}function PI(e,t){}function _I(){Qm={}}function LC(e,t,n){!t&&!Qm[n]&&(e(!1,n),Qm[n]=!0)}function Nn(e,t){LC(OI,e,t)}function II(e,t){LC(PI,e,t)}Nn.preMessage=$I;Nn.resetWarned=_I;Nn.noteOnce=II;function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(e)}function TI(e,t){if(je(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AC(e){var t=TI(e,"string");return je(t)=="symbol"?t:t+""}function F(e,t,n){return(t=AC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(n),!0).forEach(function(r){F(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function as(e){return e instanceof HTMLElement||e instanceof SVGElement}function MI(e){return e&&je(e)==="object"&&as(e.nativeElement)?e.nativeElement:as(e)?e:null}function Al(e){var t=MI(e);if(t)return t;if(e instanceof K.Component){var n;return(n=Hm.findDOMNode)===null||n===void 0?void 0:n.call(Hm,e)}return null}function Os(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var ag=function(t,n){typeof t=="function"?t(n):je(t)==="object"&&t&&"current"in t&&(t.current=n)},Gr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(a){n.forEach(function(i){ag(i,a)})}},Ba=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Os(function(){return Gr.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(i,l){return i!==a[l]})})},aa=function(t){var n,r,o=Ll.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Ll.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ll.ForwardRef)};function Xm(e){return u.isValidElement(e)&&!Ll.isFragment(e)}var Ok=function(t){return Xm(t)&&aa(t)};Number(u.version.split(".")[0])>=19;var Ym=u.createContext(null);function NI(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),a=u.useContext(Ym),i=u.useCallback(function(l,s,c){r.current+=1;var d=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(l,s,c)},[n,a]);return u.createElement(Ym.Provider,{value:i},t)}var jC=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),Jm=typeof window<"u"&&typeof document<"u"&&window.document===document,Sc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),LI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Sc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),AI=2;function jI(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){LI(a)}function l(){var s=Date.now();if(n){if(s-o<AI)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var DI=20,FI=["top","right","bottom","left","width","height","size","weight"],zI=typeof MutationObserver<"u",BI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=jI(this.refresh.bind(this),DI)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Jm||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zI?(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(){!Jm||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=FI.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),DC=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Li=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Sc},FC=sd(0,0,0,0);function Cc(e){return parseFloat(e)||0}function E0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Cc(a)},0)}function kI(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=Cc(i)}return n}function HI(e){var t=e.getBBox();return sd(0,0,t.width,t.height)}function VI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return FC;var r=Li(e).getComputedStyle(e),o=kI(r),a=o.left+o.right,i=o.top+o.bottom,l=Cc(r.width),s=Cc(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=E0(r,"left","right")+a),Math.round(s+i)!==n&&(s-=E0(r,"top","bottom")+i)),!UI(e)){var c=Math.round(l+a)-t,d=Math.round(s+i)-n;Math.abs(c)!==1&&(l-=c),Math.abs(d)!==1&&(s-=d)}return sd(o.left,o.top,l,s)}var WI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Li(e).SVGGraphicsElement}:function(e){return e instanceof Li(e).SVGElement&&typeof e.getBBox=="function"}}();function UI(e){return e===Li(e).document.documentElement}function GI(e){return Jm?WI(e)?HI(e):VI(e):FC}function KI(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return DC(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function sd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var qI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=sd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=GI(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),QI=function(){function e(t,n){var r=KI(n);DC(this,{target:t,contentRect:r})}return e}(),XI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new jC,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=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 Li(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new qI(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 Li(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 QI(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}(),zC=typeof WeakMap<"u"?new WeakMap:new jC,BC=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=BI.getInstance(),r=new XI(t,n,this);zC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){BC.prototype[e]=function(){var t;return(t=zC.get(this))[e].apply(t,arguments)}});var YI=function(){return typeof Sc.ResizeObserver<"u"?Sc.ResizeObserver:BC}(),Fo=new Map;function JI(e){e.forEach(function(t){var n,r=t.target;(n=Fo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var kC=new YI(JI);function ZI(e,t){Fo.has(e)||(Fo.set(e,new Set),kC.observe(e)),Fo.get(e).add(t)}function eT(e,t){Fo.has(e)&&(Fo.get(e).delete(t),Fo.get(e).size||(kC.unobserve(e),Fo.delete(e)))}function yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AC(r.key),r)}}function bn(e,t,n){return t&&x0(e.prototype,t),n&&x0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function is(e,t){return is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},is(e,t)}function ia(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&is(e,t)}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ls(e)}function ig(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ig=function(){return!!e})()}function lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tT(e,t){if(t&&(je(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(e)}function la(e){var t=ig();return function(){var n,r=ls(e);if(t){var o=ls(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tT(this,n)}}var nT=function(e){ia(n,e);var t=la(n);function n(){return yn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function rT(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(Ym),l=typeof n=="function",s=l?n(o):n,c=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&u.isValidElement(s)&&aa(s),f=d?s.ref:null,m=Ba(f,o),g=function(){var h;return Al(o.current)||(o.current&&je(o.current)==="object"?Al((h=o.current)===null||h===void 0?void 0:h.nativeElement):null)||Al(a.current)};u.useImperativeHandle(t,function(){return g()});var y=u.useRef(e);y.current=e;var b=u.useCallback(function(S){var h=y.current,v=h.onResize,p=h.data,C=S.getBoundingClientRect(),w=C.width,x=C.height,E=S.offsetWidth,R=S.offsetHeight,O=Math.floor(w),_=Math.floor(x);if(c.current.width!==O||c.current.height!==_||c.current.offsetWidth!==E||c.current.offsetHeight!==R){var A={width:O,height:_,offsetWidth:E,offsetHeight:R};c.current=A;var M=E===Math.round(w)?w:E,D=R===Math.round(x)?x:R,I=z(z({},A),{},{offsetWidth:M,offsetHeight:D});i==null||i(I,S,p),v&&Promise.resolve().then(function(){v(I,S)})}},[]);return u.useEffect(function(){var S=g();return S&&!r&&ZI(S,b),function(){return eT(S,b)}},[o.current,r]),u.createElement(nT,{ref:a},d?u.cloneElement(s,{ref:m}):s)}var oT=u.forwardRef(rT),aT="rc-observer-key";function iT(e,t){var n=e.children,r=typeof n=="function"?[n]:Zo(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(aT,"-").concat(a);return u.createElement(oT,be({},e,{key:i,ref:a===0?t:void 0}),o)})}var Br=u.forwardRef(iT);Br.Collection=NI;function dr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Zm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lT(e){if(Array.isArray(e))return Zm(e)}function HC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lg(e,t){if(e){if(typeof e=="string")return Zm(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zm(e,t):void 0}}function sT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e){return lT(e)||HC(e)||lg(e)||sT()}var VC=function(t){return+setTimeout(t,16)},WC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(VC=function(t){return window.requestAnimationFrame(t)},WC=function(t){return window.cancelAnimationFrame(t)});var R0=0,sg=new Map;function UC(e){sg.delete(e)}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;R0+=1;var r=R0;function o(a){if(a===0)UC(r),t();else{var i=VC(function(){o(a-1)});sg.set(r,i)}}return o(n),r};Rt.cancel=function(e){var t=sg.get(e);return UC(e),WC(t)};function GC(e){if(Array.isArray(e))return e}function uT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(d){c=!0,o=d}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}function KC(){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 W(e,t){return GC(e)||uT(e,t)||lg(e,t)||KC()}function ss(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Fn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ev(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 $0="data-rc-order",O0="data-rc-priority",cT="rc-util-key",tv=new Map;function qC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):cT}function ud(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ug(e){return Array.from((tv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function QC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=dT(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute($0,i),l&&a&&s.setAttribute(O0,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=ud(t),d=c.firstChild;if(r){if(l){var f=(t.styles||ug(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute($0)))return!1;var g=Number(m.getAttribute(O0)||0);return a>=g});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function XC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ud(t);return(t.styles||ug(n)).find(function(r){return r.getAttribute(qC(t))===e})}function us(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=XC(e,t);if(n){var r=ud(t);r.removeChild(n)}}function fT(e,t){var n=tv.get(e);if(!n||!ev(document,n)){var r=QC("",t),o=r.parentNode;tv.set(e,o),e.removeChild(r)}}function mo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ud(n),o=ug(r),a=z(z({},n),{},{styles:o});fT(r,a);var i=XC(t,a);if(i){var l,s;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=QC(e,a);return d.setAttribute(qC(a),t),d}function mT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function it(e,t){if(e==null)return{};var n,r,o=mT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(Nn(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var c=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],i[d],c))return!1;return!0}if(a&&i&&je(a)==="object"&&je(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(m){return o(a[m],i[m],c)})}return!1}return o(e,t)}var vT="%";function nv(e){return e.join(vT)}var pT=function(){function e(t){yn(this,e),F(this,"instanceId",void 0),F(this,"cache",new Map),this.instanceId=t}return bn(e,[{key:"get",value:function(n){return this.opGet(nv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(nv(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e}(),Ai="data-token-hash",kr="data-css-hash",zo="__cssinjs_instance__";function gT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(kr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[zo]=o[zo]||e,o[zo]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(kr,"]"))).forEach(function(o){var a=o.getAttribute(kr);if(r[a]){if(o[zo]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new pT(e)}var hT=u.createContext({hashPriority:"low",cache:gT(),defaultCache:!0});const cd=hT;var YC=bn(function e(){yn(this,e)}),JC="CALC_UNIT",yT=new RegExp(JC,"g");function mf(e){return typeof e=="number"?"".concat(e).concat(JC):e}var bT=function(e){ia(n,e);var t=la(n);function n(r,o){var a;yn(this,n),a=t.call(this),F(lt(a),"result",""),F(lt(a),"unitlessCssVar",void 0),F(lt(a),"lowPriority",void 0);var i=je(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=mf(r):i==="string"&&(a.result=r),a}return bn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(mf(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(mf(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},l=i.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(s=!1),this.result=this.result.replace(yT,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(YC),ST=function(e){ia(n,e);var t=la(n);function n(r){var o;return yn(this,n),o=t.call(this),F(lt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return bn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(YC),CT=function(t,n){var r=t==="css"?bT:ST;return function(o){return new r(o,n)}};function wT(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var cg=function(){function e(){yn(this,e),F(this,"cache",void 0),F(this,"keys",void 0),F(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var s;i=(s=i)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,d){var f=W(c,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=W(a,1),l=i[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,d){if(d===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!wT(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();F(cg,"MAX_CACHE_SIZE",20);F(cg,"MAX_CACHE_OFFSET",5);var P0=0,ZC=function(){function e(t){yn(this,e),F(this,"derivatives",void 0),F(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=P0,t.length===0&&(t.length>0,void 0),P0+=1}return bn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),vf=new cg;function rv(e){var t=Array.isArray(e)?e:[e];return vf.has(t)||vf.set(t,new ZC(t)),vf.get(t)}var ET=new WeakMap,pf={};function xT(e,t){for(var n=ET,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(pf)||n.set(pf,e()),n.get(pf)}var _0=new WeakMap;function jl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=_0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof ZC?n+=o.id:o&&je(o)==="object"?n+=jl(o,t):n+=o}),t&&(n=ss(n)),_0.set(e,n)),n}function I0(e,t){return ss("".concat(t,"_").concat(jl(e,!0)))}var ov=Fn();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function wc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=z(z({},r),{},F(F({},Ai,t),kr,n)),i=Object.keys(a).map(function(l){var s=a[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Tu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},RT=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=W(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},ew=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,c=W(i,2),d=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[d])){var m,g=Tu(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,RT(o,n,{scope:r==null?void 0:r.scope})]},T0=Fn()?u.useLayoutEffect:u.useEffect,zt=function(t,n){var r=u.useRef(!0);T0(function(){return t(r.current)},n),T0(function(){return r.current=!1,function(){r.current=!0}},[])},av=function(t,n){zt(function(r){if(!r)return t()},n)},$T=z({},$a),M0=$T.useInsertionEffect,OT=function(t,n,r){u.useMemo(t,r),zt(function(){return n(!0)},r)},PT=M0?function(e,t,n){return M0(function(){return e(),t()},n)}:OT;const _T=PT;var IT=z({},$a),TT=IT.useInsertionEffect,MT=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},NT=function(){return function(t){t()}},LT=typeof TT<"u"?MT:NT;const AT=LT;function dg(e,t,n,r,o){var a=u.useContext(cd),i=a.cache,l=[e].concat(ye(t)),s=nv(l),c=AT([s]),d=function(y){i.opUpdate(s,function(b){var S=b||[void 0,void 0],h=W(S,2),v=h[0],p=v===void 0?0:v,C=h[1],w=C,x=w||n(),E=[p,x];return y?y(E):E})};u.useMemo(function(){d()},[s]);var f=i.opGet(s),m=f[1];return _T(function(){o==null||o(m)},function(g){return d(function(y){var b=W(y,2),S=b[0],h=b[1];return g&&S===0&&(o==null||o(m)),[S+1,h]}),function(){i.opUpdate(s,function(y){var b=y||[],S=W(b,2),h=S[0],v=h===void 0?0:h,p=S[1],C=v-1;return C===0?(c(function(){(g||!i.opGet(s))&&(r==null||r(p,!1))}),null):[v-1,p]})}},[s]),m}var jT={},DT="css",ma=new Map;function FT(e){ma.set(e,(ma.get(e)||0)+1)}function zT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ai,'="').concat(e,'"]'));n.forEach(function(r){if(r[zo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var BT=0;function kT(e,t){ma.set(e,(ma.get(e)||0)-1);var n=Array.from(ma.keys()),r=n.filter(function(o){var a=ma.get(o)||0;return a<=0});n.length-r.length>BT&&r.forEach(function(o){zT(o,t),ma.delete(o)})}var HT=function(t,n,r,o){var a=r.getDerivativeToken(t),i=z(z({},a),n);return o&&(i=o(i)),i},tw="token";function VT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(cd),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?jT:s,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=xT(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),y=jl(g),b=jl(c),S=m?jl(m):"",h=dg(tw,[l,e.id,y,b,S],function(){var v,p=f?f(g,c,e):HT(g,c,e,d),C=z({},p),w="";if(m){var x=ew(p,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=W(x,2);p=E[0],w=E[1]}var R=I0(p,l);p._tokenKey=R,C._tokenKey=I0(C,l);var O=(v=m==null?void 0:m.key)!==null&&v!==void 0?v:R;p._themeKey=O,FT(O);var _="".concat(DT,"-").concat(ss(R));return p._hashId=_,[p,_,C,w,(m==null?void 0:m.key)||""]},function(v){kT(v[0]._themeKey,o)},function(v){var p=W(v,4),C=p[0],w=p[3];if(m&&w){var x=mo(w,ss("css-variables-".concat(C._themeKey)),{mark:kr,prepend:"queue",attachTo:a,priority:-999});x[zo]=o,x.setAttribute(Ai,C._themeKey)}});return h}var WT=function(t,n,r){var o=W(t,5),a=o[2],i=o[3],l=o[4],s=r||{},c=s.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=wc(i,l,d,m,c);return[f,d,g]},UT={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},nw="comm",rw="rule",ow="decl",GT="@import",KT="@keyframes",qT="@layer",aw=Math.abs,fg=String.fromCharCode;function iw(e){return e.trim()}function Mu(e,t,n){return e.replace(t,n)}function QT(e,t,n){return e.indexOf(t,n)}function ds(e,t){return e.charCodeAt(t)|0}function fs(e,t,n){return e.slice(t,n)}function so(e){return e.length}function XT(e){return e.length}function iu(e,t){return t.push(e),e}var dd=1,ji=1,lw=0,Or=0,tn=0,Ki="";function mg(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:dd,column:ji,length:i,return:"",siblings:l}}function YT(){return tn}function JT(){return tn=Or>0?ds(Ki,--Or):0,ji--,tn===10&&(ji=1,dd--),tn}function Hr(){return tn=Or<lw?ds(Ki,Or++):0,ji++,tn===10&&(ji=1,dd++),tn}function Ea(){return ds(Ki,Or)}function Nu(){return Or}function fd(e,t){return fs(Ki,e,t)}function iv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ZT(e){return dd=ji=1,lw=so(Ki=e),Or=0,[]}function eM(e){return Ki="",e}function gf(e){return iw(fd(Or-1,lv(e===91?e+2:e===40?e+1:e)))}function tM(e){for(;(tn=Ea())&&tn<33;)Hr();return iv(e)>2||iv(tn)>3?"":" "}function nM(e,t){for(;--t&&Hr()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return fd(e,Nu()+(t<6&&Ea()==32&&Hr()==32))}function lv(e){for(;Hr();)switch(tn){case e:return Or;case 34:case 39:e!==34&&e!==39&&lv(tn);break;case 40:e===41&&lv(e);break;case 92:Hr();break}return Or}function rM(e,t){for(;Hr()&&e+tn!==57;)if(e+tn===84&&Ea()===47)break;return"/*"+fd(t,Or-1)+"*"+fg(e===47?e:Hr())}function oM(e){for(;!iv(Ea());)Hr();return fd(e,Or)}function aM(e){return eM(Lu("",null,null,null,[""],e=ZT(e),0,[0],e))}function Lu(e,t,n,r,o,a,i,l,s){for(var c=0,d=0,f=i,m=0,g=0,y=0,b=1,S=1,h=1,v=0,p="",C=o,w=a,x=r,E=p;S;)switch(y=v,v=Hr()){case 40:if(y!=108&&ds(E,f-1)==58){QT(E+=Mu(gf(v),"&","&\f"),"&\f",aw(c?l[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:E+=gf(v);break;case 9:case 10:case 13:case 32:E+=tM(y);break;case 92:E+=nM(Nu()-1,7);continue;case 47:switch(Ea()){case 42:case 47:iu(iM(rM(Hr(),Nu()),t,n,s),s);break;default:E+="/"}break;case 123*b:l[c++]=so(E)*h;case 125*b:case 59:case 0:switch(v){case 0:case 125:S=0;case 59+d:h==-1&&(E=Mu(E,/\f/g,"")),g>0&&so(E)-f&&iu(g>32?L0(E+";",r,n,f-1,s):L0(Mu(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(iu(x=N0(E,t,n,c,d,o,l,p,C=[],w=[],f,a),a),v===123)if(d===0)Lu(E,t,x,x,C,a,f,l,w);else switch(m===99&&ds(E,3)===110?100:m){case 100:case 108:case 109:case 115:Lu(e,x,x,r&&iu(N0(e,x,x,0,0,o,l,p,o,C=[],f,w),w),o,w,f,l,r?C:w);break;default:Lu(E,x,x,x,[""],w,0,l,w)}}c=d=g=0,b=h=1,p=E="",f=i;break;case 58:f=1+so(E),g=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&JT()==125)continue}switch(E+=fg(v),v*b){case 38:h=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(so(E)-1)*h,h=1;break;case 64:Ea()===45&&(E+=gf(Hr())),m=Ea(),d=f=so(p=E+=oM(Nu())),v++;break;case 45:y===45&&so(E)==2&&(b=0)}}return a}function N0(e,t,n,r,o,a,i,l,s,c,d,f){for(var m=o-1,g=o===0?a:[""],y=XT(g),b=0,S=0,h=0;b<r;++b)for(var v=0,p=fs(e,m+1,m=aw(S=i[b])),C=e;v<y;++v)(C=iw(S>0?g[v]+" "+p:Mu(p,/&\f/g,g[v])))&&(s[h++]=C);return mg(e,t,n,o===0?rw:l,s,c,d,f)}function iM(e,t,n,r){return mg(e,t,n,nw,fg(YT()),fs(e,2,-2),0,r)}function L0(e,t,n,r,o){return mg(e,t,n,ow,fs(e,0,r),fs(e,r+1,-1),r,o)}function sv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function lM(e,t,n,r){switch(e.type){case qT:if(e.children.length)break;case GT:case ow:return e.return=e.return||e.value;case nw:return"";case KT:return e.return=e.value+"{"+sv(e.children,r)+"}";case rw:if(!so(e.value=e.props.join(",")))return""}return so(n=sv(e.children,r))?e.return=e.value+"{"+n+"}":""}var A0="data-ant-cssinjs-cache-path",sw="_FILE_STYLE__",xa,uw=!0;function sM(){if(!xa&&(xa={},Fn())){var e=document.createElement("div");e.className=A0,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=W(a,2),l=i[0],s=i[1];xa[l]=s});var n=document.querySelector("style[".concat(A0,"]"));if(n){var r;uw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function uM(e){return sM(),!!xa[e]}function cM(e){var t=xa[e],n=null;if(t&&Fn())if(uw)n=sw;else{var r=document.querySelector("style[".concat(kr,'="').concat(xa[e],'"]'));r?n=r.innerHTML:delete xa[e]}return[n,t]}var dM="_skip_check_",cw="_multi_value_";function Au(e){var t=sv(aM(e),lM);return t.replace(/\{%%%\:[^;];}/g,";")}function fM(e){return je(e)==="object"&&e&&(dM in e||cw in e)}function mM(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var l,s=i.trim().split(/\s+/),c=s[0]||"",d=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(ye(s.slice(1))).join(" ")});return a.join(",")}var vM=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=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 m="",g={};function y(h){var v=h.getName(l);if(!g[v]){var p=e(h.style,n,{root:!1,parentSelectors:i}),C=W(p,1),w=C[0];g[v]="@keyframes ".concat(h.getName(l)).concat(w)}}function b(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(p){Array.isArray(p)?b(p,v):p&&v.push(p)}),v}var S=b(Array.isArray(t)?t:[t]);return S.forEach(function(h){var v=typeof h=="string"&&!o?{}:h;if(typeof v=="string")m+="".concat(v,`
`);else if(v._keyframe)y(v);else{var p=f.reduce(function(C,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,C))||C},v);Object.keys(p).forEach(function(C){var w=p[C];if(je(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!fM(w)){var x=!1,E=C.trim(),R=!1;(o||a)&&l?E.startsWith("@")?x=!0:E=mM(C,l,c):o&&!l&&(E==="&"||E==="")&&(E="",R=!0);var O=e(w,n,{root:R,injectHash:x,parentSelectors:[].concat(ye(i),[E])}),_=W(O,2),A=_[0],M=_[1];g=z(z({},g),M),m+="".concat(E).concat(A)}else{let V=function(j,P){var $=j.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),L=P;!UT[j]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),j==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),L=P.getName(l)),m+="".concat($,":").concat(L,";")};var D,I=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;je(w)==="object"&&w!==null&&w!==void 0&&w[cw]&&Array.isArray(I)?I.forEach(function(j){V(C,j)}):V(C,I)}})}}),o?s&&(m="@layer ".concat(s.name," {").concat(m,"}"),s.dependencies&&(g["@layer ".concat(s.name)]=s.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(s.name,";")}).join(`
`))):m="{".concat(m,"}"),[m,g]};function dw(e,t){return ss("".concat(e.join("%")).concat(t))}function pM(){return null}var fw="style";function uv(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,d=u.useContext(cd),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,y=d.container,b=d.ssrInline,S=d.transformers,h=d.linters,v=d.cache,p=d.layer,C=n._tokenKey,w=[C];p&&w.push("layer"),w.push.apply(w,ye(r));var x=ov,E=dg(fw,w,function(){var M=w.join("|");if(uM(M)){var D=cM(M),I=W(D,2),V=I[0],j=I[1];if(V)return[V,C,j,{},l,c]}var P=t(),$=vM(P,{hashId:o,hashPriority:g,layer:p?a:void 0,path:r.join("-"),transformers:S,linters:h}),L=W($,2),N=L[0],T=L[1],k=Au(N),H=dw(w,k);return[k,C,H,T,l,c]},function(M,D){var I=W(M,3),V=I[2];(D||f)&&ov&&us(V,{mark:kr})},function(M){var D=W(M,4),I=D[0];D[1];var V=D[2],j=D[3];if(x&&I!==sw){var P={mark:kr,prepend:p?!1:"queue",attachTo:y,priority:c},$=typeof i=="function"?i():i;$&&(P.csp={nonce:$});var L=[],N=[];Object.keys(j).forEach(function(k){k.startsWith("@layer")?L.push(k):N.push(k)}),L.forEach(function(k){mo(Au(j[k]),"_layer-".concat(k),z(z({},P),{},{prepend:!0}))});var T=mo(I,V,P);T[zo]=v.instanceId,T.setAttribute(Ai,C),N.forEach(function(k){mo(Au(j[k]),"_effect-".concat(k),P)})}}),R=W(E,3),O=R[0],_=R[1],A=R[2];return function(M){var D;return!b||x||!m?D=u.createElement(pM,null):D=u.createElement("style",be({},F(F({},Ai,_),kr,A),{dangerouslySetInnerHTML:{__html:O}})),u.createElement(u.Fragment,null,D,M)}}var gM=function(t,n,r){var o=W(t,6),a=o[0],i=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},m=f.plain;if(c)return null;var g=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=wc(a,i,l,y,m),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var S=Au(s[b]),h=wc(S,i,"_effect-".concat(b),y,m);b.startsWith("@layer")?g=h+g:g+=h}}),[d,l,g]},mw="cssVar",hM=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,d=u.useContext(cd),f=d.cache.instanceId,m=d.container,g=l._tokenKey,y=[].concat(ye(t.path),[r,c,g]),b=dg(mw,y,function(){var S=n(),h=ew(S,r,{prefix:o,unitless:a,ignore:i,scope:c}),v=W(h,2),p=v[0],C=v[1],w=dw(y,C);return[p,C,w,r]},function(S){var h=W(S,3),v=h[2];ov&&us(v,{mark:kr})},function(S){var h=W(S,3),v=h[1],p=h[2];if(v){var C=mo(v,p,{mark:kr,prepend:"queue",attachTo:m,priority:-999});C[zo]=f,C.setAttribute(Ai,r)}});return b},yM=function(t,n,r){var o=W(t,4),a=o[1],i=o[2],l=o[3],s=r||{},c=s.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=wc(a,l,i,f,c);return[d,i,m]};F(F(F({},fw,gM),tw,WT),mw,yM);var yt=function(){function e(t,n){yn(this,e),F(this,"name",void 0),F(this,"style",void 0),F(this,"_keyframe",!0),this.name=t,this.style=n}return bn(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 Qa(e){return e.notSplit=!0,e}Qa(["borderTop","borderBottom"]),Qa(["borderTop"]),Qa(["borderBottom"]),Qa(["borderLeft","borderRight"]),Qa(["borderLeft"]),Qa(["borderRight"]);var vg=u.createContext({});function vw(e){return GC(e)||HC(e)||lg(e)||KC()}function Jr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function pw(e,t,n,r){if(!t.length)return n;var o=vw(t),a=o[0],i=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=ye(e):l=z({},e),r&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=pw(l[a],i,n,r),l}function Ar(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Jr(e,t.slice(0,-1))?e:pw(e,t,n,r)}function bM(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function j0(e){return Array.isArray(e)?[]:{}}var SM=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=j0(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=Jr(o,i),d=Array.isArray(c);if(d||bM(c)){if(!s.has(c)){s.add(c);var f=Jr(r,i);d?r=Ar(r,i,[]):(!f||je(f)!=="object")&&(r=Ar(r,i,j0(c))),SM(c).forEach(function(m){a([].concat(ye(i),[m]),s)})}}else r=Ar(r,i,c)}a([])}),r}function CM(){}const wM=u.createContext({}),EM=()=>{const e=()=>{};return e.deprecated=CM,e},xM=u.createContext(void 0);var RM={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"},$M={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 gw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},D0={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"]},$M),timePickerLocale:Object.assign({},gw)},Zn="${label} is not a valid ${type}",Na={locale:"en",Pagination:RM,DatePicker:D0,TimePicker:gw,Calendar:D0,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Zn,method:Zn,array:Zn,object:Zn,number:Zn,date:Zn,boolean:Zn,integer:Zn,float:Zn,regexp:Zn,email:Zn,url:Zn,hex:Zn},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"}};let ju=Object.assign({},Na.Modal),Du=[];const F0=()=>Du.reduce((e,t)=>Object.assign(Object.assign({},e),t),Na.Modal);function OM(e){if(e){const t=Object.assign({},e);return Du.push(t),ju=F0(),()=>{Du=Du.filter(n=>n!==t),ju=F0()}}ju=Object.assign({},Na.Modal)}function hw(){return ju}const pg=u.createContext(void 0),md=(e,t)=>{const n=u.useContext(pg),r=u.useMemo(()=>{var a;const i=t||Na[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=u.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Na.locale:a},[n]);return[r,o]},PM="internalMark",_M=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>OM(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(pg.Provider,{value:o},n)};function Rn(e,t){IM(e)&&(e="100%");var n=TM(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 lu(e){return Math.min(1,Math.max(0,e))}function IM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function TM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function yw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function su(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ya(e){return e.length===1?"0"+e:String(e)}function MM(e,t,n){return{r:Rn(e,255)*255,g:Rn(t,255)*255,b:Rn(n,255)*255}}function z0(e,t,n){e=Rn(e,255),t=Rn(t,255),n=Rn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:i,l}}function hf(e,t,n){return n<0&&(n+=1),n>1&&(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 NM(e,t,n){var r,o,a;if(e=Rn(e,360),t=Rn(t,100),n=Rn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=hf(l,i,e+1/3),o=hf(l,i,e),a=hf(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function cv(e,t,n){e=Rn(e,255),t=Rn(t,255),n=Rn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function LM(e,t,n){e=Rn(e,360)*6,t=Rn(t,100),n=Rn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,i,a,a,l,n][s],d=[l,n,n,i,a,a][s],f=[a,a,l,n,n,i][s];return{r:c*255,g:d*255,b:f*255}}function dv(e,t,n,r){var o=[ya(Math.round(e).toString(16)),ya(Math.round(t).toString(16)),ya(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function AM(e,t,n,r,o){var a=[ya(Math.round(e).toString(16)),ya(Math.round(t).toString(16)),ya(Math.round(n).toString(16)),ya(jM(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function jM(e){return Math.round(parseFloat(e)*255).toString(16)}function B0(e){return tr(e)/255}function tr(e){return parseInt(e,16)}function DM(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var fv={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 ri(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=BM(e)),typeof e=="object"&&(oo(e.r)&&oo(e.g)&&oo(e.b)?(t=MM(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oo(e.h)&&oo(e.s)&&oo(e.v)?(r=su(e.s),o=su(e.v),t=LM(e.h,r,o),i=!0,l="hsv"):oo(e.h)&&oo(e.s)&&oo(e.l)&&(r=su(e.s),a=su(e.l),t=NM(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=yw(n),{ok:i,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 FM="[-\\+]?\\d+%?",zM="[-\\+]?\\d*\\.\\d+%?",Bo="(?:".concat(zM,")|(?:").concat(FM,")"),yf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),bf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),Mr={CSS_UNIT:new RegExp(Bo),rgb:new RegExp("rgb"+yf),rgba:new RegExp("rgba"+bf),hsl:new RegExp("hsl"+yf),hsla:new RegExp("hsla"+bf),hsv:new RegExp("hsv"+yf),hsva:new RegExp("hsva"+bf),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 BM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(fv[e])e=fv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mr.hex8.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),a:B0(n[4]),format:t?"name":"hex8"}:(n=Mr.hex6.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),format:t?"name":"hex"}:(n=Mr.hex4.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),a:B0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Mr.hex3.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function oo(e){return!!Mr.CSS_UNIT.exec(String(e))}var En=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=DM(t)),this.originalInput=t;var o=ri(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=yw(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=cv(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=cv(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=z0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=z0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),dv(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),AM(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(Rn(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(Rn(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="#"+dv(this.r,this.g,this.b,!1),n=0,r=Object.entries(fv);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?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=lu(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=lu(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=lu(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=lu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),uu=2,k0=.16,kM=.05,HM=.05,VM=.15,bw=5,Sw=4,WM=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function H0(e){var t=e.r,n=e.g,r=e.b,o=cv(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function cu(e){var t=e.r,n=e.g,r=e.b;return"#".concat(dv(t,n,r,!1))}function UM(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function V0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-uu*t:Math.round(e.h)+uu*t:r=n?Math.round(e.h)+uu*t:Math.round(e.h)-uu*t,r<0?r+=360:r>=360&&(r-=360),r}function W0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-k0*t:t===Sw?r=e.s+k0:r=e.s+kM*t,r>1&&(r=1),n&&t===bw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function U0(e,t,n){var r;return n?r=e.v+HM*t:r=e.v-VM*t,r>1&&(r=1),Number(r.toFixed(2))}function ms(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ri(e),o=bw;o>0;o-=1){var a=H0(r),i=cu(ri({h:V0(a,o,!0),s:W0(a,o,!0),v:U0(a,o,!0)}));n.push(i)}n.push(cu(r));for(var l=1;l<=Sw;l+=1){var s=H0(r),c=cu(ri({h:V0(s,l),s:W0(s,l),v:U0(s,l)}));n.push(c)}return t.theme==="dark"?WM.map(function(d){var f=d.index,m=d.opacity,g=cu(UM(ri(t.backgroundColor||"#141414"),ri(n[f]),m*100));return g}):n}var Pk={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"},mv=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];mv.primary=mv[5];const Cw={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"},vs=Object.assign(Object.assign({},Cw),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function GM(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=n(s),m=n(o),g=n(a),y=n(i),b=n(l),S=r(c,d),h=e.colorLink||e.colorInfo,v=n(h);return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new En("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const KM=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function qM(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},KM(r))}const QM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Fu(e){return(e+8)/e}function XM(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Fu(n)}))}const YM=e=>{const t=XM(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,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*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function JM(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 ao=(e,t)=>new En(e).setAlpha(t).toRgbString(),cl=(e,t)=>new En(e).darken(t).toHexString(),ZM=e=>{const t=ms(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]}},eN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ao(r,.88),colorTextSecondary:ao(r,.65),colorTextTertiary:ao(r,.45),colorTextQuaternary:ao(r,.25),colorFill:ao(r,.15),colorFillSecondary:ao(r,.06),colorFillTertiary:ao(r,.04),colorFillQuaternary:ao(r,.02),colorBgLayout:cl(n,4),colorBgContainer:cl(n,0),colorBgElevated:cl(n,0),colorBgSpotlight:ao(r,.85),colorBgBlur:"transparent",colorBorder:cl(n,15),colorBorderSecondary:cl(n,6)}};function tN(e){const t=Object.keys(Cw).map(n=>{const r=ms(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),GM(e,{generateColorPalettes:ZM,generateNeutralColorPalettes:eN})),YM(e.fontSize)),JM(e)),QM(e)),qM(e))}const ww=rv(tN),vv={token:vs,override:{override:vs},hashed:!0},Ew=K.createContext(vv),gg="anticon",nN=["outlined","borderless","filled"],rN=(e,t)=>t||(e?`ant-${e}`:"ant"),ft=u.createContext({getPrefixCls:rN,iconPrefixCls:gg}),oN=`-ant-${Date.now()}-${Math.random()}`;function aN(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new En(i),c=ms(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){o(t.primaryColor,"primary");const i=new En(t.primaryColor),l=ms(i.toRgbString());l.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new En(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&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
  }
  `.trim()}function iN(e,t){const n=aN(e,t);Fn()&&mo(n,`${oN}-dynamic-theme`)}const La=u.createContext(!1),xw=e=>{let{children:t,disabled:n}=e;const r=u.useContext(La);return u.createElement(La.Provider,{value:n??r},t)},Di=u.createContext(void 0),lN=e=>{let{children:t,size:n}=e;const r=u.useContext(Di);return u.createElement(Di.Provider,{value:n||r},t)};function sN(){const e=u.useContext(La),t=u.useContext(Di);return{componentDisabled:e,componentSize:t}}const uN="5.19.0";function Sf(e){return e>=0&&e<=255}function du(e,t){const{r:n,g:r,b:o,a}=new En(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new En(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-i*(1-c))/c),f=Math.round((r-l*(1-c))/c),m=Math.round((o-s*(1-c))/c);if(Sf(d)&&Sf(f)&&Sf(m))return new En({r:d,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new En({r:n,g:r,b:o,a:1}).toRgbString()}var cN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Rw(e){const{override:t}=e,n=cN(e,["override"]),r=Object.assign({},t);Object.keys(vs).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,l=768,s=992,c=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:du(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:du(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:du(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:du(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new En("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new En("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new En("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var G0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $w={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Ow={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},dN={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=G0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Rw(i),a&&Object.entries(a).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=G0(c,["theme"]);let m=f;d&&(m=Pw(Object.assign(Object.assign({},i),f),{override:f},d)),i[s]=m}),i};function sr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=K.useContext(Ew),a=`${uN}-${t||""}`,i=n||ww,[l,s,c]=VT(i,[vs,e],{salt:a,override:r,getComputedToken:Pw,formatToken:Rw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$w,ignore:Ow,preserve:dN}});return[i,c,t?s:"",l,o]}function nn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Fi(e){var t=u.useRef(!1),n=u.useState(e),r=W(n,2),o=r[0],a=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||a(l)}return[o,i]}function Cf(e){return e!==void 0}function ir(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=Fi(function(){return Cf(o)?o:Cf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=W(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,m=i?i(f):f,g=nn(a),y=Fi([f]),b=W(y,2),S=b[0],h=b[1];av(function(){var p=S[0];c!==p&&g(c,p)},[S]),av(function(){Cf(o)||d(o)},[o]);var v=nn(function(p,C){d(p,C),h([f],C)});return[m,v]}const fN=1e3*60*10;let mN=function(){function e(){yn(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return bn(e,[{key:"set",value:function(n,r){this.clear();const o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){const r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){return n.map(o=>o&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);const r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){if(this.accessBeat>1e4){const n=Date.now();this.lastAccessBeat.forEach((r,o)=>{n-r>fN&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}])}();const K0=new mN;function vN(e,t){return K.useMemo(()=>{const n=K0.get(t);if(n)return n;const r=e();return K0.set(t,r),r},t)}const zi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},no=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}},hg=()=>({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"}}),qi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pN=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),gN=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),i),{[o]:i})}},hN=e=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),vd=e=>({"&:focus-visible":Object.assign({},hN(e))});function yN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`max(${n.map(o=>J(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>J(o)).join(",")})`}}}const _w=typeof CSSINJS_STATISTIC<"u";let pv=!0;function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!_w)return Object.assign.apply(Object,[{}].concat(t));pv=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),pv=!0,r}const q0={};function bN(){}const SN=e=>{let t,n=e,r=bN;return _w&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return pv&&t.add(a),o[a]}}),r=(o,a)=>{var i;q0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=q0[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},Iw=(e,t)=>{const[n,r]=sr();return uv({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},hg()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Tw=(e,t,n)=>{var r;return typeof n=="function"?n(Gt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},Mw=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[s,c]=l;var d;(o!=null&&o[s]||o!=null&&o[c])&&((d=o[c])!==null&&d!==void 0||(o[c]=o==null?void 0:o[s]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},Q0=(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 yg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[c,d,f,m,g]=sr(),{getPrefixCls:y,iconPrefixCls:b,csp:S}=u.useContext(ft),h=y(),v=g?"css":"js",p=vN(()=>{const R=new Set;return g&&Object.keys(r.unitless||{}).forEach(O=>{R.add(Tu(O,g.prefix)),R.add(Tu(O,Q0(a,g.prefix)))}),CT(v,R)},[v,a,g==null?void 0:g.prefix]),{max:C,min:w}=yN(v),x={theme:c,token:m,hashId:f,nonce:()=>S==null?void 0:S.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return uv(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":pN(m)}]),Iw(b,S),[uv(Object.assign(Object.assign({},x),{path:[i,l,b]}),()=>{if(r.injectStyle===!1)return[];const{token:R,flush:O}=SN(m),_=Tw(a,d,n),A=`.${l}`,M=Mw(a,d,_,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(_).forEach(V=>{_[V]=`var(${Tu(V,Q0(a,g.prefix))})`});const D=Gt(R,{componentCls:A,prefixCls:l,iconCls:`.${b}`,antCls:`.${h}`,calc:p,max:C,min:w},g?_:M),I=t(D,{hashId:f,prefixCls:l,rootPrefixCls:h,iconPrefixCls:b});return O(a,M),[r.resetStyle===!1?null:gN(D,l,s,r.resetFont),I]}),f]}}const Nw=(e,t,n,r)=>{const o=yg(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:s=l}=i;return o(l,s),null}},CN=(e,t,n)=>{const{unitless:r,injectStyle:o=!0,prefixToken:a}=n,i=s=>{let{rootCls:c,cssVar:d}=s;const[,f]=sr();return hM({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:r,ignore:Ow,token:f,scope:c},()=>{const m=Tw(e,f,t),g=Mw(e,f,m,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(m).forEach(y=>{g[a(y)]=g[y],delete g[y]}),g}),null};return s=>{const[,,,,c]=sr();return[d=>o&&c?K.createElement(K.Fragment,null,K.createElement(i,{rootCls:s,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},_r=(e,t,n,r)=>{const o=Array.isArray(e)?e[0]:e;function a(f){return`${o}${f.slice(0,1).toUpperCase()}${f.slice(1)}`}const i=(r==null?void 0:r.unitless)||{},l=Object.assign(Object.assign({},$w),{[a("zIndexPopup")]:!0});Object.keys(i).forEach(f=>{l[a(f)]=i[f]});const s=Object.assign(Object.assign({},r),{unitless:l,prefixToken:a}),c=yg(e,t,n,s),d=CN(o,n,s);return function(f){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;const[,g]=c(f,m),[y,b]=d(m);return[y,g,b]}},wN=Object.assign({},$a),{useId:X0}=wN,EN=()=>"",xN=typeof X0>"u"?EN:X0;function RN(e,t,n){var r;EM();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},vv),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:vv.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=xN();return Os(()=>{var l,s;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((s=o.cssVar)===null||s===void 0?void 0:s.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:c,cssVar:f})},[o,a],(l,s)=>l.some((c,d)=>{const f=s[d];return!cs(c,f,!0)}))}var $N=["children"],Lw=u.createContext({});function ON(e){var t=e.children,n=it(e,$N);return u.createElement(Lw.Provider,{value:n},t)}var PN=function(e){ia(n,e);var t=la(n);function n(){return yn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function _N(e){var t=u.useReducer(function(l){return l+1},0),n=W(t,2),r=n[1],o=u.useRef(e),a=nn(function(){return o.current}),i=nn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var Io="none",fu="appear",mu="enter",vu="leave",Y0="none",jr="prepare",hi="start",yi="active",bg="end",Aw="prepared";function J0(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 IN(e,t){var n={animationend:J0("Animation","AnimationEnd"),transitionend:J0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TN=IN(Fn(),typeof window<"u"?window:{}),jw={};if(Fn()){var MN=document.createElement("div");jw=MN.style}var pu={};function Dw(e){if(pu[e])return pu[e];var t=TN[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in jw)return pu[e]=t[a],pu[e]}return""}var Fw=Dw("animationend"),zw=Dw("transitionend"),Bw=!!(Fw&&zw),Z0=Fw||"animationend",ey=zw||"transitionend";function ty(e,t){if(!e)return null;if(je(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const NN=function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(ey,e),o.removeEventListener(Z0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ey,e),o.addEventListener(Z0,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var kw=Fn()?u.useLayoutEffect:u.useEffect;const LN=function(){var e=u.useRef(null);function t(){Rt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Rt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return u.useEffect(function(){return function(){t()}},[]),[n,t]};var AN=[jr,hi,yi,bg],jN=[jr,Aw],Hw=!1,DN=!0;function Vw(e){return e===yi||e===bg}const FN=function(e,t,n){var r=Fi(Y0),o=W(r,2),a=o[0],i=o[1],l=LN(),s=W(l,2),c=s[0],d=s[1];function f(){i(jr,!0)}var m=t?jN:AN;return kw(function(){if(a!==Y0&&a!==bg){var g=m.indexOf(a),y=m[g+1],b=n(a);b===Hw?i(y,!0):y&&c(function(S){function h(){S.isCanceled()||i(y,!0)}b===!0?h():Promise.resolve(b).then(h)})}},[e,a]),u.useEffect(function(){return function(){d()}},[]),[f,a]};function zN(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,c=s===void 0?!0:s,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,S=r.onEnterStart,h=r.onLeaveStart,v=r.onAppearActive,p=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,R=r.onVisibleChanged,O=Fi(),_=W(O,2),A=_[0],M=_[1],D=_N(Io),I=W(D,2),V=I[0],j=I[1],P=Fi(null),$=W(P,2),L=$[0],N=$[1],T=V(),k=u.useRef(!1),H=u.useRef(null);function U(){return n()}var G=u.useRef(!1);function ee(){j(Io),N(null,!0)}var Q=nn(function(me){var se=V();if(se!==Io){var Ee=U();if(!(me&&!me.deadline&&me.target!==Ee)){var Ne=G.current,Se;se===fu&&Ne?Se=w==null?void 0:w(Ee,me):se===mu&&Ne?Se=x==null?void 0:x(Ee,me):se===vu&&Ne&&(Se=E==null?void 0:E(Ee,me)),Ne&&Se!==!1&&ee()}}}),ae=NN(Q),ce=W(ae,1),ne=ce[0],X=function(se){switch(se){case fu:return F(F(F({},jr,m),hi,b),yi,v);case mu:return F(F(F({},jr,g),hi,S),yi,p);case vu:return F(F(F({},jr,y),hi,h),yi,C);default:return{}}},te=u.useMemo(function(){return X(T)},[T]),ie=FN(T,!e,function(me){if(me===jr){var se=te[jr];return se?se(U()):Hw}if(fe in te){var Ee;N(((Ee=te[fe])===null||Ee===void 0?void 0:Ee.call(te,U(),null))||null)}return fe===yi&&T!==Io&&(ne(U()),d>0&&(clearTimeout(H.current),H.current=setTimeout(function(){Q({deadline:!0})},d))),fe===Aw&&ee(),DN}),Y=W(ie,2),oe=Y[0],fe=Y[1],Pe=Vw(fe);G.current=Pe,kw(function(){M(t);var me=k.current;k.current=!0;var se;!me&&t&&l&&(se=fu),me&&t&&a&&(se=mu),(me&&!t&&c||!me&&f&&!t&&c)&&(se=vu);var Ee=X(se);se&&(e||Ee[jr])?(j(se),oe()):j(Io)},[t]),u.useEffect(function(){(T===fu&&!l||T===mu&&!a||T===vu&&!c)&&j(Io)},[l,a,c]),u.useEffect(function(){return function(){k.current=!1,clearTimeout(H.current)}},[]);var ve=u.useRef(!1);u.useEffect(function(){A&&(ve.current=!0),A!==void 0&&T===Io&&((ve.current||A)&&(R==null||R(A)),ve.current=!0)},[A,T]);var le=L;return te[jr]&&fe===hi&&(le=z({transition:"none"},le)),[T,fe,le,A??t]}function BN(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=u.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,s=o.removeOnLeave,c=s===void 0?!0:s,d=o.forceRender,f=o.children,m=o.motionName,g=o.leavedClassName,y=o.eventProps,b=u.useContext(Lw),S=b.motion,h=n(o,S),v=u.useRef(),p=u.useRef();function C(){try{return v.current instanceof HTMLElement?v.current:Al(p.current)}catch{return null}}var w=zN(h,l,C,o),x=W(w,4),E=x[0],R=x[1],O=x[2],_=x[3],A=u.useRef(_);_&&(A.current=!0);var M=u.useCallback(function(L){v.current=L,ag(a,L)},[a]),D,I=z(z({},y),{},{visible:l});if(!f)D=null;else if(E===Io)_?D=f(z({},I),M):!c&&A.current&&g?D=f(z(z({},I),{},{className:g}),M):d||!c&&!g?D=f(z(z({},I),{},{style:{display:"none"}}),M):D=null;else{var V;R===jr?V="prepare":Vw(R)?V="active":R===hi&&(V="start");var j=ty(m,"".concat(E,"-").concat(V));D=f(z(z({},I),{},{className:q(ty(m,E),F(F({},j,j&&V),m,typeof m=="string")),style:O}),M)}if(u.isValidElement(D)&&aa(D)){var P=D,$=P.ref;$||(D=u.cloneElement(D,{ref:M}))}return u.createElement(PN,{ref:p},D)});return r.displayName="CSSMotion",r}const wo=BN(Bw);var gv="add",hv="keep",yv="remove",wf="removed";function kN(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function bv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(kN)}function HN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=bv(e),i=bv(t);a.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var m=i[f];if(m.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return z(z({},g),{},{status:gv})})),r=f),n.push(z(z({},m),{},{status:hv})),r+=1,d=!0;break}}d||n.push(z(z({},c),{},{status:yv}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return z(z({},c),{},{status:gv})})));var l={};n.forEach(function(c){var d=c.key;l[d]=(l[d]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(d){var f=d.key,m=d.status;return f!==c||m!==yv}),n.forEach(function(d){d.key===c&&(d.status=hv)})}),n}var VN=["component","children","onVisibleChanged","onAllRemoved"],WN=["status"],UN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wo,n=function(r){ia(a,r);var o=la(a);function a(){var i;yn(this,a);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return i=o.call.apply(o,[this].concat(s)),F(lt(i),"state",{keyEntities:[]}),F(lt(i),"removeKey",function(d){var f=i.state.keyEntities,m=f.map(function(g){return g.key!==d?g:z(z({},g),{},{status:wf})});return i.setState({keyEntities:m}),m.filter(function(g){var y=g.status;return y!==wf}).length}),i}return bn(a,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,d=c.component,f=c.children,m=c.onVisibleChanged,g=c.onAllRemoved,y=it(c,VN),b=d||u.Fragment,S={};return UN.forEach(function(h){S[h]=y[h],delete y[h]}),delete y.keys,u.createElement(b,y,s.map(function(h,v){var p=h.status,C=it(h,WN),w=p===gv||p===hv;return u.createElement(t,be({},S,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(E){if(m==null||m(E,{key:C.key}),!E){var R=l.removeKey(C.key);R===0&&g&&g()}}}),function(x,E){return f(z(z({},x),{},{index:v}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,d=s.keyEntities,f=bv(c),m=HN(d,f);return{keyEntities:m.filter(function(g){var y=d.find(function(b){var S=b.key;return g.key===S});return!(y&&y.status===wf&&g.status===yv)})}}}]),a}(u.Component);return F(n,"defaultProps",{component:"div"}),n}const _k=GN(Bw);function KN(e){const{children:t}=e,[,n]=sr(),{motion:r}=n,o=u.useRef(!1);return o.current=o.current||r===!1,o.current?u.createElement(ON,{motion:r},t):t}const qN=()=>null;var QN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XN=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Ww="ant";let Ec,Uw,Gw,Kw;function zu(){return Ec||Ww}function YN(){return Uw||gg}function JN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const ZN=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ec=t),n!==void 0&&(Uw=n),"holderRender"in e&&(Kw=o),r&&(JN(r)?iN(zu(),r):Gw=r)},eL=()=>({getPrefixCls:(e,t)=>t||(e?`${zu()}-${e}`:zu()),getIconPrefixCls:YN,getRootPrefixCls:()=>Ec||zu(),getTheme:()=>Gw,holderRender:Kw}),tL=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:s,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:b,parentContext:S,iconPrefixCls:h,theme:v,componentDisabled:p,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:_,typography:A,checkbox:M,descriptions:D,divider:I,drawer:V,skeleton:j,steps:P,image:$,layout:L,list:N,mentions:T,modal:k,progress:H,result:U,slider:G,breadcrumb:ee,menu:Q,pagination:ae,input:ce,textArea:ne,empty:X,badge:te,radio:ie,rate:Y,switch:oe,transfer:fe,avatar:Pe,message:ve,tag:le,table:me,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:De,notification:pe,tree:ot,colorPicker:Be,datePicker:xe,rangePicker:Ce,flex:Ve,wave:ke,dropdown:tt,warning:vt,tour:dt,floatButtonGroup:Qe,variant:st,inputNumber:ut,treeSelect:Lt}=e,bt=u.useCallback((de,we)=>{const{prefixCls:he}=e;if(we)return we;const Ie=he||S.getPrefixCls("");return de?`${Ie}-${de}`:Ie},[S.getPrefixCls,e.prefixCls]),Et=h||S.iconPrefixCls||gg,Dt=n||S.csp;Iw(Et,Dt);const St=RN(v,S.theme,{prefixCls:bt("")}),Ze={csp:Dt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||b,direction:c,space:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:y,getPrefixCls:bt,iconPrefixCls:Et,theme:St,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:_,typography:A,checkbox:M,descriptions:D,divider:I,drawer:V,skeleton:j,steps:P,image:$,input:ce,textArea:ne,layout:L,list:N,mentions:T,modal:k,progress:H,result:U,slider:G,breadcrumb:ee,menu:Q,pagination:ae,empty:X,badge:te,radio:ie,rate:Y,switch:oe,transfer:fe,avatar:Pe,message:ve,tag:le,table:me,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:De,notification:pe,tree:ot,colorPicker:Be,datePicker:xe,rangePicker:Ce,flex:Ve,wave:ke,dropdown:tt,warning:vt,tour:dt,floatButtonGroup:Qe,variant:st,inputNumber:ut,treeSelect:Lt},ze=Object.assign({},S);Object.keys(Ze).forEach(de=>{Ze[de]!==void 0&&(ze[de]=Ze[de])}),XN.forEach(de=>{const we=e[de];we&&(ze[de]=we)}),typeof r<"u"&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const He=Os(()=>ze,ze,(de,we)=>{const he=Object.keys(de),Ie=Object.keys(we);return he.length!==Ie.length||he.some(We=>de[We]!==we[We])}),Le=u.useMemo(()=>({prefixCls:Et,csp:Dt}),[Et,Dt]);let ge=u.createElement(u.Fragment,null,u.createElement(qN,{dropdownMatchSelectWidth:m}),t);const Ye=u.useMemo(()=>{var de,we,he,Ie;return gi(((de=Na.Form)===null||de===void 0?void 0:de.defaultValidateMessages)||{},((he=(we=He.locale)===null||we===void 0?void 0:we.Form)===null||he===void 0?void 0:he.defaultValidateMessages)||{},((Ie=He.form)===null||Ie===void 0?void 0:Ie.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[He,i==null?void 0:i.validateMessages]);Object.keys(Ye).length>0&&(ge=u.createElement(xM.Provider,{value:Ye},ge)),l&&(ge=u.createElement(_M,{locale:l,_ANT_MARK__:PM},ge)),(Et||Dt)&&(ge=u.createElement(vg.Provider,{value:Le},ge)),s&&(ge=u.createElement(lN,{size:s},ge)),ge=u.createElement(KN,null,ge);const nt=u.useMemo(()=>{const de=St||{},{algorithm:we,token:he,components:Ie,cssVar:We}=de,et=QN(de,["algorithm","token","components","cssVar"]),Pt=we&&(!Array.isArray(we)||we.length>0)?rv(we):ww,gt={};Object.entries(Ie||{}).forEach(Re=>{let[Ue,xt]=Re;const Ct=Object.assign({},xt);"algorithm"in Ct&&(Ct.algorithm===!0?Ct.theme=Pt:(Array.isArray(Ct.algorithm)||typeof Ct.algorithm=="function")&&(Ct.theme=rv(Ct.algorithm)),delete Ct.algorithm),gt[Ue]=Ct});const Ge=Object.assign(Object.assign({},vs),he);return Object.assign(Object.assign({},et),{theme:Pt,token:Ge,components:gt,override:Object.assign({override:Ge},gt),cssVar:We})},[St]);return v&&(ge=u.createElement(Ew.Provider,{value:nt},ge)),He.warning&&(ge=u.createElement(wM.Provider,{value:He.warning},ge)),p!==void 0&&(ge=u.createElement(xw,{disabled:p},ge)),u.createElement(ft.Provider,{value:He},ge)},Qi=e=>{const t=u.useContext(ft),n=u.useContext(pg);return u.createElement(tL,Object.assign({parentContext:t,legacyLocale:n},e))};Qi.ConfigContext=ft;Qi.SizeContext=Di;Qi.config=ZN;Qi.useConfig=sN;Object.defineProperty(Qi,"SizeContext",{get:()=>Di});const Ps=Qi;var nL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function qw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rL(e){return qw(e)instanceof ShadowRoot}function xc(e){return rL(e)?qw(e):null}function oL(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function aL(e,t){Nn(e,"[@ant-design/icons] ".concat(t))}function ny(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function ry(){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[oL(n)]=r}return t},{})}function Sv(e,t,n){return n?K.createElement(e.tag,z(z({key:t},ry(e.attrs)),n),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):K.createElement(e.tag,z({key:t},ry(e.attrs)),(e.children||[]).map(function(r,o){return Sv(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Qw(e){return ms(e)[0]}function Xw(e){return e?Array.isArray(e)?e:[e]:[]}var iL=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,lL=function(t){var n=u.useContext(vg),r=n.csp,o=n.prefixCls,a=iL;o&&(a=a.replace(/anticon/g,o)),u.useEffect(function(){var i=t.current,l=xc(i);mo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},sL=["icon","className","onClick","style","primaryColor","secondaryColor"],Dl={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function uL(e){var t=e.primaryColor,n=e.secondaryColor;Dl.primaryColor=t,Dl.secondaryColor=n||Qw(t),Dl.calculated=!!n}function cL(){return z({},Dl)}var Xi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=it(t,sL),c=u.useRef(),d=Dl;if(i&&(d={primaryColor:i,secondaryColor:l||Qw(i)}),lL(c),aL(ny(n),"icon should be icon definiton, but got ".concat(n)),!ny(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Sv(f.icon,"svg-".concat(f.name),z(z({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Xi.displayName="IconReact";Xi.getTwoToneColors=cL;Xi.setTwoToneColors=uL;function Yw(e){var t=Xw(e),n=W(t,2),r=n[0],o=n[1];return Xi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function dL(){var e=Xi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var fL=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Yw(mv.primary);var dn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=it(e,fL),d=u.useContext(vg),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,y=q(g,m,F(F({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,h=Xw(s),v=W(h,2),p=v[0],C=v[1];return u.createElement("span",be({role:"img","aria-label":r.name},c,{ref:t,tabIndex:b,onClick:l,className:y}),u.createElement(Xi,{icon:r,primaryColor:p,secondaryColor:C,style:S}))});dn.displayName="AntdIcon";dn.getTwoToneColor=dL;dn.setTwoToneColor=Yw;var mL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:nL}))},vL=u.forwardRef(mL),pL={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"},gL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:pL}))},Sg=u.forwardRef(gL),hL={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"},yL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:hL}))},_s=u.forwardRef(yL),bL={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"},SL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:bL}))},CL=u.forwardRef(SL),wL={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"},EL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:wL}))},xL=u.forwardRef(EL),RL=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,$L=`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`,OL="".concat(RL," ").concat($L).split(/[\s\n]+/),PL="aria-",_L="data-";function oy(e,t){return e.indexOf(t)===0}function ea(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=z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||oy(o,PL))||n.data&&oy(o,_L)||n.attr&&OL.includes(o))&&(r[o]=e[o])}),r}function IL(e){return e&&K.isValidElement(e)&&e.type===K.Fragment}const TL=(e,t,n)=>K.isValidElement(e)?K.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ps(e,t){return TL(e,e,t)}const ka=e=>{const[,,,,t]=sr();return t?`${e}-css-var`:""};var re={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>=re.F1&&n<=re.F12)return!1;switch(n){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=re.ZERO&&t<=re.NINE||t>=re.NUM_ZERO&&t<=re.NUM_MULTIPLY||t>=re.A&&t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ML={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"},NL=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:ML}))},Jw=u.forwardRef(NL);const Zw=K.createContext(void 0),fa=100,LL=10,eE=fa*LL,tE={Modal:fa,Drawer:fa,Popover:fa,Popconfirm:fa,Tooltip:fa,Tour:fa},AL={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function jL(e){return e in tE}function nE(e,t){const[,n]=sr(),r=K.useContext(Zw),o=jL(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+tE[e],a=Math.min(a,n.zIndexPopupBase+eE)):a+=AL[e],[r===void 0?t:a,a]}function DL(){const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(ye(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function zn(){zn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(j,P,$){j[P]=$.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(j,P,$){return Object.defineProperty(j,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),j[P]}try{c({},"")}catch{c=function($,L,N){return $[L]=N}}function d(j,P,$,L){var N=P&&P.prototype instanceof h?P:h,T=Object.create(N.prototype),k=new I(L||[]);return o(T,"_invoke",{value:_(j,$,k)}),T}function f(j,P,$){try{return{type:"normal",arg:j.call(P,$)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",b="completed",S={};function h(){}function v(){}function p(){}var C={};c(C,i,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(V([])));x&&x!==n&&r.call(x,i)&&(C=x);var E=p.prototype=h.prototype=Object.create(C);function R(j){["next","throw","return"].forEach(function(P){c(j,P,function($){return this._invoke(P,$)})})}function O(j,P){function $(N,T,k,H){var U=f(j[N],j,T);if(U.type!=="throw"){var G=U.arg,ee=G.value;return ee&&je(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(Q){$("next",Q,k,H)},function(Q){$("throw",Q,k,H)}):P.resolve(ee).then(function(Q){G.value=Q,k(G)},function(Q){return $("throw",Q,k,H)})}H(U.arg)}var L;o(this,"_invoke",{value:function(T,k){function H(){return new P(function(U,G){$(T,k,U,G)})}return L=L?L.then(H,H):H()}})}function _(j,P,$){var L=m;return function(N,T){if(L===y)throw Error("Generator is already running");if(L===b){if(N==="throw")throw T;return{value:e,done:!0}}for($.method=N,$.arg=T;;){var k=$.delegate;if(k){var H=A(k,$);if(H){if(H===S)continue;return H}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(L===m)throw L=b,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);L=y;var U=f(j,P,$);if(U.type==="normal"){if(L=$.done?b:g,U.arg===S)continue;return{value:U.arg,done:$.done}}U.type==="throw"&&(L=b,$.method="throw",$.arg=U.arg)}}}function A(j,P){var $=P.method,L=j.iterator[$];if(L===e)return P.delegate=null,$==="throw"&&j.iterator.return&&(P.method="return",P.arg=e,A(j,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),S;var N=f(L,j.iterator,P.arg);if(N.type==="throw")return P.method="throw",P.arg=N.arg,P.delegate=null,S;var T=N.arg;return T?T.done?(P[j.resultName]=T.value,P.next=j.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,S):T:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,S)}function M(j){var P={tryLoc:j[0]};1 in j&&(P.catchLoc=j[1]),2 in j&&(P.finallyLoc=j[2],P.afterLoc=j[3]),this.tryEntries.push(P)}function D(j){var P=j.completion||{};P.type="normal",delete P.arg,j.completion=P}function I(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(M,this),this.reset(!0)}function V(j){if(j||j===""){var P=j[i];if(P)return P.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var $=-1,L=function N(){for(;++$<j.length;)if(r.call(j,$))return N.value=j[$],N.done=!1,N;return N.value=e,N.done=!0,N};return L.next=L}}throw new TypeError(je(j)+" is not iterable")}return v.prototype=p,o(E,"constructor",{value:p,configurable:!0}),o(p,"constructor",{value:v,configurable:!0}),v.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(j){var P=typeof j=="function"&&j.constructor;return!!P&&(P===v||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,p):(j.__proto__=p,c(j,s,"GeneratorFunction")),j.prototype=Object.create(E),j},t.awrap=function(j){return{__await:j}},R(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(j,P,$,L,N){N===void 0&&(N=Promise);var T=new O(d(j,P,$,L),N);return t.isGeneratorFunction(P)?T:T.next().then(function(k){return k.done?k.value:T.next()})},R(E),c(E,s,"Generator"),c(E,i,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(j){var P=Object(j),$=[];for(var L in P)$.push(L);return $.reverse(),function N(){for(;$.length;){var T=$.pop();if(T in P)return N.value=T,N.done=!1,N}return N.done=!0,N}},t.values=V,I.prototype={constructor:I,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!P)for(var $ in this)$.charAt(0)==="t"&&r.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=e)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var $=this;function L(G,ee){return k.type="throw",k.arg=P,$.next=G,ee&&($.method="next",$.arg=e),!!ee}for(var N=this.tryEntries.length-1;N>=0;--N){var T=this.tryEntries[N],k=T.completion;if(T.tryLoc==="root")return L("end");if(T.tryLoc<=this.prev){var H=r.call(T,"catchLoc"),U=r.call(T,"finallyLoc");if(H&&U){if(this.prev<T.catchLoc)return L(T.catchLoc,!0);if(this.prev<T.finallyLoc)return L(T.finallyLoc)}else if(H){if(this.prev<T.catchLoc)return L(T.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return L(T.finallyLoc)}}}},abrupt:function(P,$){for(var L=this.tryEntries.length-1;L>=0;--L){var N=this.tryEntries[L];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var T=N;break}}T&&(P==="break"||P==="continue")&&T.tryLoc<=$&&$<=T.finallyLoc&&(T=null);var k=T?T.completion:{};return k.type=P,k.arg=$,T?(this.method="next",this.next=T.finallyLoc,S):this.complete(k)},complete:function(P,$){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&$&&(this.next=$),S},finish:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.finallyLoc===P)return this.complete(L.completion,L.afterLoc),D(L),S}},catch:function(P){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.tryLoc===P){var N=L.completion;if(N.type==="throw"){var T=N.arg;D(L)}return T}}throw Error("illegal catch attempt")},delegateYield:function(P,$,L){return this.delegate={iterator:V(P),resultName:$,nextLoc:L},this.method==="next"&&(this.arg=e),S}},t}function ay(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(s){ay(a,r,o,i,l,"next",s)}function l(s){ay(a,r,o,i,l,"throw",s)}i(void 0)})}}var Is=z({},KO),FL=Is.version,zL=Is.render,BL=Is.unmountComponentAtNode,pd;try{var kL=Number((FL||"").split(".")[0]);kL>=18&&(pd=Is.createRoot)}catch{}function iy(e){var t=Is.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var Rc="__rc_react_root__";function HL(e,t){iy(!0);var n=t[Rc]||pd(t);iy(!1),n.render(e),t[Rc]=n}function VL(e,t){zL(e,t)}function rE(e,t){if(pd){HL(e,t);return}VL(e,t)}function WL(e){return Cv.apply(this,arguments)}function Cv(){return Cv=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Rc])===null||o===void 0||o.unmount(),delete t[Rc]}));case 1:case"end":return r.stop()}},e)})),Cv.apply(this,arguments)}function UL(e){BL(e)}function oE(e){return wv.apply(this,arguments)}function wv(){return wv=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(pd===void 0){r.next=2;break}return r.abrupt("return",WL(t));case 2:UL(t);case 3:case"end":return r.stop()}},e)})),wv.apply(this,arguments)}const Ef=()=>({height:0,opacity:0}),ly=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},GL=e=>({height:e?e.offsetHeight:0}),xf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ik=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ef,onEnterStart:Ef,onAppearActive:ly,onEnterActive:ly,onLeaveStart:GL,onLeaveActive:Ef,onAppearEnd:xf,onEnterEnd:xf,onLeaveEnd:xf,motionDeadline:500}},Bi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Cg=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},KL=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},qL=yg("Wave",e=>[KL(e)]),aE=`${Ww}-wave-target`;function QL(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 Rf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&QL(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function XL(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Rf(t)?t:Rf(n)?n:Rf(r)?r:null}function $f(e){return Number.isNaN(e)?0:e}const YL=e=>{const{className:t,target:n,component:r}=e,o=u.useRef(null),[a,i]=u.useState(null),[l,s]=u.useState([]),[c,d]=u.useState(0),[f,m]=u.useState(0),[g,y]=u.useState(0),[b,S]=u.useState(0),[h,v]=u.useState(!1),p={left:c,top:f,width:g,height:b,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(p["--wave-color"]=a);function C(){const x=getComputedStyle(n);i(XL(n));const E=x.position==="static",{borderLeftWidth:R,borderTopWidth:O}=x;d(E?n.offsetLeft:$f(-parseFloat(R))),m(E?n.offsetTop:$f(-parseFloat(O))),y(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:A,borderBottomLeftRadius:M,borderBottomRightRadius:D}=x;s([_,A,D,M].map(I=>$f(parseFloat(I))))}if(u.useEffect(()=>{if(n){const x=Rt(()=>{C(),v(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(C),E.observe(n)),()=>{Rt.cancel(x),E==null||E.disconnect()}}},[]),!h)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(aE));return u.createElement(wo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,E)=>{var R;if(E.deadline||E.propertyName==="opacity"){const O=(R=o.current)===null||R===void 0?void 0:R.parentElement;oE(O).then(()=>{O==null||O.remove()})}return!1}},(x,E)=>{let{className:R}=x;return u.createElement("div",{ref:Gr(o,E),className:q(t,R,{"wave-quick":w}),style:p})})},JL=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),rE(u.createElement(YL,Object.assign({},t,{target:e})),o)},ZL=(e,t,n)=>{const{wave:r}=u.useContext(ft),[,o,a]=sr(),i=nn(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${aE}`)||d,{showEffect:m}=r||{};(m||JL)(f,{className:t,token:o,component:n,event:c,hashId:a})}),l=u.useRef();return c=>{Rt.cancel(l.current),l.current=Rt(()=>{i(c)})}},eA=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(ft),a=u.useRef(null),i=o("wave"),[,l]=qL(i),s=ZL(a,q(i,l),r);if(K.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!Cg(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!K.isValidElement(t))return t??null;const c=aa(t)?Gr(t.ref,a):a;return ps(t,{ref:c})},Eo=e=>{const t=K.useContext(Di);return K.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},tA=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},nA=e=>{const{componentCls:t,antCls:n}=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"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},rA=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}}}},oA=_r("Space",e=>{const t=Gt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[nA(t),rA(t),tA(t)]},()=>({}),{resetStyle:!1});var iE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gd=u.createContext(null),hd=(e,t)=>{const n=u.useContext(gd),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return q(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${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}},aA=e=>{let{children:t}=e;return u.createElement(gd.Provider,{value:null},t)},iA=e=>{var{children:t}=e,n=iE(e,["children"]);return u.createElement(gd.Provider,{value:n},t)},Tk=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ft),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:c}=e,d=iE(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(p=>r??p),m=t("space-compact",i),[g,y]=oA(m),b=q(m,y,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,s),S=u.useContext(gd),h=Zo(c),v=u.useMemo(()=>h.map((p,C)=>{const w=(p==null?void 0:p.key)||`${m}-item-${C}`;return u.createElement(iA,{key:w,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:C===h.length-1&&(!S||(S==null?void 0:S.isLastItem))},p)}),[r,h,S]);return h.length===0?null:g(u.createElement("div",Object.assign({className:b},d),v))};var lA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lE=u.createContext(void 0),sA=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ft),{prefixCls:r,size:o,className:a}=e,i=lA(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=sr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=q(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},a,s);return u.createElement(lE.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},sy=/^[\u4e00-\u9fa5]{2}$/,Ev=sy.test.bind(sy);function sE(e){return e==="danger"?{danger:!0}:{type:e}}function uy(e){return typeof e=="string"}function Of(e){return e==="text"||e==="link"}function uA(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&uy(e.type)&&Ev(e.props.children)?ps(e,{children:e.props.children.split("").join(n)}):uy(e)?Ev(e)?K.createElement("span",null,e.split("").join(n)):K.createElement("span",null,e):IL(e)?K.createElement("span",null,e):e}function cA(e,t){let n=!1;const r=[];return K.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=i}),K.Children.map(r,o=>uA(o,t))}const uE=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=q(`${a}-icon`,n);return K.createElement("span",{ref:t,className:i,style:r},o)}),cy=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=q(`${n}-loading-icon`,r);return K.createElement(uE,{prefixCls:n,className:i,style:o,ref:t},K.createElement(Jw,{className:a}))}),Pf=()=>({width:0,opacity:0,transform:"scale(0)"}),_f=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),dA=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?K.createElement(cy,{prefixCls:t,className:o,style:a}):K.createElement(wo,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Pf,onAppearActive:_f,onEnterStart:Pf,onEnterActive:_f,onLeaveStart:_f,onLeaveActive:Pf},(l,s)=>{let{className:c,style:d}=l;return K.createElement(cy,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:s,iconClassName:c})})},dy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),fA=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},dy(`${t}-primary`,o),dy(`${t}-danger`,a)]}},cE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Gt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},dE=e=>{var t,n,r,o,a,i;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=(o=e.contentLineHeight)!==null&&o!==void 0?o:Fu(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:Fu(s),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Fu(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:m,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*m)/2-e.lineWidth,0)}},mA=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},vd(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},yo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),vA=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pA=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),gA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gs=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},yo(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),wg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},gA(e))}),fE=e=>Object.assign({},wg(e)),$c=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),mE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fE(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),yo(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),gs(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},yo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),wg(e))}),hA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fE(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),yo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),gs(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},yo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),gs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wg(e))}),yA=e=>Object.assign(Object.assign({},mE(e)),{borderStyle:"dashed"}),bA=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$c(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$c(e))}),SA=e=>Object.assign(Object.assign(Object.assign({},yo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$c(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$c(e)),yo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),CA=e=>{const{componentCls:t}=e;return{[`${t}-default`]:mE(e),[`${t}-primary`]:hA(e),[`${t}-dashed`]:yA(e),[`${t}-link`]:bA(e),[`${t}-text`]:SA(e),[`${t}-ghost`]:gs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Eg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${J(c)} ${J(l)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${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}`]:vA(e)},{[`${n}${n}-round${t}`]:pA(e)}]},wA=e=>{const t=Gt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Eg(t,e.componentCls)},EA=e=>{const t=Gt(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 Eg(t,`${e.componentCls}-sm`)},xA=e=>{const t=Gt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Eg(t,`${e.componentCls}-lg`)},RA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},$A=_r("Button",e=>{const t=cE(e);return[mA(t),wA(t),EA(t),xA(t),RA(t),CA(t),fA(t)]},dE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function OA(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).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] ${i}`]:{zIndex:0}})}}function PA(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function xg(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({},OA(e,r,t)),PA(n,r,t))}}function _A(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 IA(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 TA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_A(e,t)),IA(e.componentCls,t))}}const MA=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% + ${J(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% + ${J(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},NA=Nw(["Button","compact"],e=>{const t=cE(e);return[xg(t),TA(t),MA(t)]},dE);var LA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function AA(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const jA=K.forwardRef((e,t)=>{var n,r,o;const{loading:a=!1,prefixCls:i,type:l,danger:s=!1,shape:c="default",size:d,styles:f,disabled:m,className:g,rootClassName:y,children:b,icon:S,iconPosition:h="start",ghost:v=!1,block:p=!1,htmlType:C="button",classNames:w,style:x={},autoInsertSpace:E}=e,R=LA(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=l||"default",{getPrefixCls:_,direction:A,button:M}=u.useContext(ft),D=(n=E??(M==null?void 0:M.autoInsertSpace))!==null&&n!==void 0?n:!0,I=_("btn",i),[V,j,P]=$A(I),$=u.useContext(La),L=m??$,N=u.useContext(lE),T=u.useMemo(()=>AA(a),[a]),[k,H]=u.useState(T.loading),[U,G]=u.useState(!1),Q=Gr(t,u.createRef()),ae=u.Children.count(b)===1&&!S&&!Of(O);u.useEffect(()=>{let Se=null;T.delay>0?Se=setTimeout(()=>{Se=null,H(!0)},T.delay):H(T.loading);function De(){Se&&(clearTimeout(Se),Se=null)}return De},[T]),u.useEffect(()=>{if(!Q||!Q.current||!D)return;const Se=Q.current.textContent;ae&&Ev(Se)?U||G(!0):U&&G(!1)},[Q]);const ce=Se=>{const{onClick:De}=e;if(k||L){Se.preventDefault();return}De==null||De(Se)},{compactSize:ne,compactItemClassnames:X}=hd(I,A),te={large:"lg",small:"sm",middle:void 0},ie=Eo(Se=>{var De,pe;return(pe=(De=d??ne)!==null&&De!==void 0?De:N)!==null&&pe!==void 0?pe:Se}),Y=ie&&te[ie]||"",oe=k?"loading":S,fe=dr(R,["navigate"]),Pe=q(I,j,P,{[`${I}-${c}`]:c!=="default"&&c,[`${I}-${O}`]:O,[`${I}-${Y}`]:Y,[`${I}-icon-only`]:!b&&b!==0&&!!oe,[`${I}-background-ghost`]:v&&!Of(O),[`${I}-loading`]:k,[`${I}-two-chinese-chars`]:U&&D&&!k,[`${I}-block`]:p,[`${I}-dangerous`]:s,[`${I}-rtl`]:A==="rtl",[`${I}-icon-end`]:h==="end"},X,g,y,M==null?void 0:M.className),ve=Object.assign(Object.assign({},M==null?void 0:M.style),x),le=q(w==null?void 0:w.icon,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.icon),me=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.icon)||{}),se=S&&!k?K.createElement(uE,{prefixCls:I,className:le,style:me},S):K.createElement(dA,{existIcon:!!S,prefixCls:I,loading:k}),Ee=b||b===0?cA(b,ae&&D):null;if(fe.href!==void 0)return V(K.createElement("a",Object.assign({},fe,{className:q(Pe,{[`${I}-disabled`]:L}),href:L?void 0:fe.href,style:ve,onClick:ce,ref:Q,tabIndex:L?-1:0}),se,Ee));let Ne=K.createElement("button",Object.assign({},R,{type:C,className:Pe,style:ve,onClick:ce,disabled:L,ref:Q}),se,Ee,!!X&&K.createElement(NA,{key:"compact",prefixCls:I}));return Of(O)||(Ne=K.createElement(eA,{component:"Button",disabled:k},Ne)),V(Ne)}),Mn=jA;Mn.Group=sA;Mn.__ANT_BUTTON=!0;function If(e){return!!(e!=null&&e.then)}const vE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:d}=e,f=u.useRef(!1),m=u.useRef(null),[g,y]=Fi(!1),b=function(){a==null||a.apply(void 0,arguments)};u.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var p;(p=m.current)===null||p===void 0||p.focus()})),()=>{v&&clearTimeout(v)}},[]);const S=v=>{If(v)&&(y(!0),v.then(function(){y(!1,!0),b.apply(void 0,arguments),f.current=!1},p=>{if(y(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(p)}))},h=v=>{if(f.current)return;if(f.current=!0,!d){b();return}let p;if(l){if(p=d(v),c&&!If(p)){f.current=!1,b(v);return}}else if(d.length)p=d(a),f.current=!1;else if(p=d(),!If(p)){b();return}S(p)};return u.createElement(Mn,Object.assign({},sE(t),{onClick:h,loading:g,prefixCls:r},o,{ref:m}),n)},Ts=K.createContext({}),{Provider:pE}=Ts,fy=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=u.useContext(Ts);return o?K.createElement(vE,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},my=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=u.useContext(Ts);return K.createElement(vE,{isSilent:n,type:i||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)};var gE=u.createContext(null),vy=[];function DA(e,t){var n=u.useState(function(){if(!Fn())return null;var y=document.createElement("div");return y}),r=W(n,1),o=r[0],a=u.useRef(!1),i=u.useContext(gE),l=u.useState(vy),s=W(l,2),c=s[0],d=s[1],f=i||(a.current?void 0:function(y){d(function(b){var S=[y].concat(ye(b));return S})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var y;(y=o.parentElement)===null||y===void 0||y.removeChild(o),a.current=!1}return zt(function(){return e?i?i(m):m():g(),g},[e]),zt(function(){c.length&&(c.forEach(function(y){return y()}),d(vy))},[c]),[o,f]}var Tf;function hE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";mo(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),t)}catch(y){console.error(y),o=s,a=c}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),us(t),{width:m,height:g}}function Mk(e){return typeof document>"u"?0:(Tf===void 0&&(Tf=hE()),Tf.width)}function FA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:hE(e)}function zA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var BA="rc-util-locker-".concat(Date.now()),py=0;function kA(e){var t=!!e,n=u.useState(function(){return py+=1,"".concat(BA,"_").concat(py)}),r=W(n,1),o=r[0];zt(function(){if(t){var a=FA(document.body).width,i=zA();mo(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else us(o);return function(){us(o)}},[t,o])}var HA=!1;function VA(e){return HA}var gy=function(t){return t===!1?!1:!Fn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Rg=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,s=u.useState(n),c=W(s,2),d=c[0],f=c[1],m=d||n;u.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=u.useState(function(){return gy(o)}),y=W(g,2),b=y[0],S=y[1];u.useEffect(function(){var A=gy(o);S(A??null)});var h=DA(m&&!b),v=W(h,2),p=v[0],C=v[1],w=b??p;kA(r&&n&&Fn()&&(w===p||w===document.body));var x=null;if(l&&aa(l)&&t){var E=l;x=E.ref}var R=Ba(x,t);if(!m||!Fn()||b===void 0)return null;var O=w===!1||VA(),_=l;return t&&(_=u.cloneElement(l,{ref:R})),u.createElement(gE.Provider,{value:C},O?_:Jo.createPortal(_,w))}),yE=u.createContext({});function WA(){var e=z({},$a);return e.useId}var hy=0,yy=WA();const bE=yy?function(t){var n=yy();return t||n}:function(t){var n=u.useState("ssr-id"),r=W(n,2),o=r[0],a=r[1];return u.useEffect(function(){var i=hy;hy+=1,a("rc_unique_".concat(i))},[]),t||o};function by(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Sy(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function UA(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Sy(o),n.top+=Sy(o,!0),n}const GA=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Cy={width:0,height:0,overflow:"hidden",outline:"none"},KA={outline:"none"},SE=K.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,y=e.modalRender,b=e.onMouseDown,S=e.onMouseUp,h=e.holderRef,v=e.visible,p=e.forceRender,C=e.width,w=e.height,x=e.classNames,E=e.styles,R=K.useContext(yE),O=R.panel,_=Ba(h,O),A=u.useRef(),M=u.useRef(),D=u.useRef();K.useImperativeHandle(t,function(){return{focus:function(){var H;(H=D.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var U=document,G=U.activeElement;H&&G===M.current?A.current.focus({preventScroll:!0}):!H&&G===A.current&&M.current.focus({preventScroll:!0})}}});var I={};C!==void 0&&(I.width=C),w!==void 0&&(I.height=w);var V=l?K.createElement("div",{className:q("".concat(n,"-footer"),x==null?void 0:x.footer),style:z({},E==null?void 0:E.footer)},l):null,j=a?K.createElement("div",{className:q("".concat(n,"-header"),x==null?void 0:x.header),style:z({},E==null?void 0:E.header)},K.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,P=u.useMemo(function(){return je(s)==="object"&&s!==null?s:s?{closeIcon:c??K.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),$=ea(P,!0),L=je(s)==="object"&&s.disabled,N=s?K.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},$,{className:"".concat(n,"-close"),disabled:L}),P.closeIcon):null,T=K.createElement("div",{className:q("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},N,j,K.createElement("div",be({className:q("".concat(n,"-body"),x==null?void 0:x.body),style:z(z({},m),E==null?void 0:E.body)},g),f),V);return K.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:_,style:z(z({},o),I),className:q(n,r),onMouseDown:b,onMouseUp:S},K.createElement("div",{tabIndex:0,ref:A,style:Cy,"aria-hidden":"true"}),K.createElement("div",{ref:D,tabIndex:-1,style:KA},K.createElement(GA,{shouldUpdate:v||p},y?y(T):T)),K.createElement("div",{tabIndex:0,ref:M,style:Cy,"aria-hidden":"true"}))}),CE=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=u.useRef(),y=u.useState(),b=W(y,2),S=b[0],h=b[1],v={};S&&(v.transformOrigin=S);function p(){var C=UA(g.current);h(m&&(m.x||m.y)?"".concat(m.x-C.left,"px ").concat(m.y-C.top,"px"):"")}return u.createElement(wo,{visible:i,onVisibleChanged:f,onAppearPrepare:p,onEnterPrepare:p,forceRender:l,motionName:c,removeOnLeave:s,ref:g},function(C,w){var x=C.className,E=C.style;return u.createElement(SE,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:z(z(z({},E),o),v),className:q(a,x)}))})});CE.displayName="Content";var qA=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,l=t.className;return u.createElement(wo,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(s,c){var d=s.className,f=s.style;return u.createElement("div",be({ref:c,style:z(z({},f),r),className:q("".concat(n,"-mask"),d,l)},a))})},QA=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,i=a===void 0?!1:a,l=t.keyboard,s=l===void 0?!0:l,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,f=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,y=t.onClose,b=t.afterOpenChange,S=t.afterClose,h=t.transitionName,v=t.animation,p=t.closable,C=p===void 0?!0:p,w=t.mask,x=w===void 0?!0:w,E=t.maskTransitionName,R=t.maskAnimation,O=t.maskClosable,_=O===void 0?!0:O,A=t.maskStyle,M=t.maskProps,D=t.rootClassName,I=t.classNames,V=t.styles,j=u.useRef(),P=u.useRef(),$=u.useRef(),L=u.useState(i),N=W(L,2),T=N[0],k=N[1],H=bE();function U(){ev(P.current,document.activeElement)||(j.current=document.activeElement)}function G(){if(!ev(P.current,document.activeElement)){var oe;(oe=$.current)===null||oe===void 0||oe.focus()}}function ee(oe){if(oe)G();else{if(k(!1),x&&j.current&&d){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}T&&(S==null||S())}b==null||b(oe)}function Q(oe){y==null||y(oe)}var ae=u.useRef(!1),ce=u.useRef(),ne=function(){clearTimeout(ce.current),ae.current=!0},X=function(){ce.current=setTimeout(function(){ae.current=!1})},te=null;_&&(te=function(fe){ae.current?ae.current=!1:P.current===fe.target&&Q(fe)});function ie(oe){if(s&&oe.keyCode===re.ESC){oe.stopPropagation(),Q(oe);return}i&&oe.keyCode===re.TAB&&$.current.changeActive(!oe.shiftKey)}u.useEffect(function(){i&&(k(!0),U())},[i]),u.useEffect(function(){return function(){clearTimeout(ce.current)}},[]);var Y=z(z(z({zIndex:o},f),V==null?void 0:V.wrapper),{},{display:T?null:"none"});return u.createElement("div",be({className:q("".concat(r,"-root"),D)},ea(t,{data:!0})),u.createElement(qA,{prefixCls:r,visible:x&&i,motionName:by(r,E,R),style:z(z({zIndex:o},A),V==null?void 0:V.mask),maskProps:M,className:I==null?void 0:I.mask}),u.createElement("div",be({tabIndex:-1,onKeyDown:ie,className:q("".concat(r,"-wrap"),m,I==null?void 0:I.wrapper),ref:P,onClick:te,style:Y},g),u.createElement(CE,be({},t,{onMouseDown:ne,onMouseUp:X,ref:$,closable:C,ariaId:H,prefixCls:r,visible:i&&T,onClose:Q,onVisibleChanged:ee,motionName:by(r,h,v)}))))},wE=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,l=t.afterClose,s=t.panelRef,c=u.useState(n),d=W(c,2),f=d[0],m=d[1],g=u.useMemo(function(){return{panel:s}},[s]);return u.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:u.createElement(yE.Provider,{value:g},u.createElement(Rg,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(QA,be({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1)}}))))};wE.displayName="Dialog";var ba="RC_FORM_INTERNAL_HOOKS",Mt=function(){Nn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ki=u.createContext({getFieldValue:Mt,getFieldsValue:Mt,getFieldError:Mt,getFieldWarning:Mt,getFieldsError:Mt,isFieldsTouched:Mt,isFieldTouched:Mt,isFieldValidating:Mt,isFieldsValidating:Mt,resetFields:Mt,setFields:Mt,setFieldValue:Mt,setFieldsValue:Mt,validateFields:Mt,submit:Mt,getInternalHooks:function(){return Mt(),{dispatch:Mt,initEntityValue:Mt,registerField:Mt,useSubscribe:Mt,setInitialValues:Mt,destroyForm:Mt,setCallbacks:Mt,registerWatch:Mt,getFields:Mt,setValidateMessages:Mt,setPreserve:Mt,getInitialValue:Mt}}}),Oc=u.createContext(null);function xv(e){return e==null?[]:Array.isArray(e)?e:[e]}function XA(e){return e&&!!e._init}function Rv(){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 $v=Rv();function YA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function JA(e,t,n){if(ig())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&is(o,n.prototype),o}function Ov(e){var t=typeof Map=="function"?new Map:void 0;return Ov=function(r){if(r===null||!YA(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return JA(r,arguments,ls(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),is(o,r)},Ov(e)}var ZA=/%[sdj%]/g,ej=function(){};function Pv(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 or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(ZA,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function tj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||tj(t)&&typeof e=="string"&&!e)}function nj(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,ye(l||[])),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function wy(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function rj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ye(e[n]||[]))}),t}var Ey=function(e){ia(n,e);var t=la(n);function n(r,o){var a;return yn(this,n),a=t.call(this,"Async Validation Error"),F(lt(a),"errors",void 0),F(lt(a),"fields",void 0),a.errors=r,a.fields=o,a}return bn(n)}(Ov(Error));function oj(e,t,n,r,o){if(t.first){var a=new Promise(function(m,g){var y=function(h){return r(h),h.length?g(new Ey(h,Pv(h))):m(o)},b=rj(e);wy(b,n,y)});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],f=new Promise(function(m,g){var y=function(S){if(d.push.apply(d,S),c++,c===s)return r(d),d.length?g(new Ey(d,Pv(d))):m(o)};l.length||(r(d),m(o)),l.forEach(function(b){var S=e[b];i.indexOf(b)!==-1?wy(S,n,y):nj(S,n,y)})});return f.catch(function(m){return m}),f}function aj(e){return!!(e&&e.message!==void 0)}function ij(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function xy(e,t){return function(n){var r;return e.fullFields?r=ij(t,e.fullFields):r=t[n.field||e.fullField],aj(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Ry(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];je(r)==="object"&&je(e[n])==="object"?e[n]=z(z({},e[n]),r):e[n]=r}}return e}var Xa="enum",lj=function(t,n,r,o,a){t[Xa]=Array.isArray(t[Xa])?t[Xa]:[],t[Xa].indexOf(n)===-1&&o.push(or(a.messages[Xa],t.fullField,t[Xa].join(", ")))},sj=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},uj=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(m?f="number":g?f="string":y&&(f="array"),!f)return!1;y&&(d=n.length),g&&(d=n.replace(c,"_").length),i?d!==t.len&&o.push(or(a.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(or(a.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(or(a.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(or(a.messages[f].range,t.fullField,t.min,t.max))},EE=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||cn(n,i||t.type))&&o.push(or(a.messages.required,t.fullField))},gu;const cj=function(){if(gu)return gu;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),d=function(x){return x&&x.exact?l:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(i).concat(t(x),")"),"g")};d.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,y=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(y,"|").concat(b).concat(S).concat(h,")").concat(v).concat(p);return gu=new RegExp("(?:^".concat(C,"$)"),"i"),gu};var $y={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},El={integer:function(t){return El.number(t)&&parseInt(t,10)===t},float:function(t){return El.number(t)&&!El.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return je(t)==="object"&&!El.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($y.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cj())},hex:function(t){return typeof t=="string"&&!!t.match($y.hex)}},dj=function(t,n,r,o,a){if(t.required&&n===void 0){EE(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?El[l](n)||o.push(or(a.messages.types[l],t.fullField,t.type)):l&&je(n)!==t.type&&o.push(or(a.messages.types[l],t.fullField,t.type))},fj=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(or(a.messages.whitespace,t.fullField))};const pt={required:EE,whitespace:fj,type:dj,range:uj,enum:lj,pattern:sj};var mj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a)}r(i)},vj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();pt.required(t,n,o,i,a,"array"),n!=null&&(pt.type(t,n,o,i,a),pt.range(t,n,o,i,a))}r(i)},pj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&pt.type(t,n,o,i,a)}r(i)},gj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n,"date")&&!t.required)return r();if(pt.required(t,n,o,i,a),!cn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),pt.type(t,s,o,i,a),s&&pt.range(t,s.getTime(),o,i,a)}}r(i)},hj="enum",yj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&pt[hj](t,n,o,i,a)}r(i)},bj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&(pt.type(t,n,o,i,a),pt.range(t,n,o,i,a))}r(i)},Sj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&(pt.type(t,n,o,i,a),pt.range(t,n,o,i,a))}r(i)},Cj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&pt.type(t,n,o,i,a)}r(i)},wj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&(pt.type(t,n,o,i,a),pt.range(t,n,o,i,a))}r(i)},Ej=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),n!==void 0&&pt.type(t,n,o,i,a)}r(i)},xj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n,"string")&&!t.required)return r();pt.required(t,n,o,i,a),cn(n,"string")||pt.pattern(t,n,o,i,a)}r(i)},Rj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n)&&!t.required)return r();pt.required(t,n,o,i,a),cn(n)||pt.type(t,n,o,i,a)}r(i)},$j=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":je(n);pt.required(t,n,o,i,a,l),r(i)},Oj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(cn(n,"string")&&!t.required)return r();pt.required(t,n,o,i,a,"string"),cn(n,"string")||(pt.type(t,n,o,i,a),pt.range(t,n,o,i,a),pt.pattern(t,n,o,i,a),t.whitespace===!0&&pt.whitespace(t,n,o,i,a))}r(i)},Mf=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(cn(n,i)&&!t.required)return r();pt.required(t,n,o,l,a,i),cn(n,i)||pt.type(t,n,o,l,a)}r(l)};const Fl={string:Oj,method:Cj,number:wj,boolean:pj,regexp:Rj,integer:Sj,float:bj,array:vj,object:Ej,enum:yj,pattern:xj,date:gj,url:Mf,hex:Mf,email:Mf,required:$j,any:mj};var Ms=function(){function e(t){yn(this,e),F(this,"rules",null),F(this,"_messages",$v),this.define(t)}return bn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(je(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Ry(Rv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=o,s=a;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,i),Promise.resolve(i);function c(y){var b=[],S={};function h(p){if(Array.isArray(p)){var C;b=(C=b).concat.apply(C,ye(p))}else b.push(p)}for(var v=0;v<y.length;v++)h(y[v]);b.length?(S=Pv(b),s(b,S)):s(null,i)}if(l.messages){var d=this.messages();d===$v&&(d=Rv()),Ry(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},m=l.keys||Object.keys(this.rules);m.forEach(function(y){var b=r.rules[y],S=i[y];b.forEach(function(h){var v=h;typeof v.transform=="function"&&(i===n&&(i=z({},i)),S=i[y]=v.transform(S),S!=null&&(v.type=v.type||(Array.isArray(S)?"array":je(S)))),typeof v=="function"?v={validator:v}:v=z({},v),v.validator=r.getValidationMethod(v),v.validator&&(v.field=y,v.fullField=v.fullField||y,v.type=r.getType(v),f[y]=f[y]||[],f[y].push({rule:v,value:S,source:i,field:y}))})});var g={};return oj(f,l,function(y,b){var S=y.rule,h=(S.type==="object"||S.type==="array")&&(je(S.fields)==="object"||je(S.defaultField)==="object");h=h&&(S.required||!S.required&&y.value),S.field=y.field;function v(E,R){return z(z({},R),{},{fullField:"".concat(S.fullField,".").concat(E),fullFields:S.fullFields?[].concat(ye(S.fullFields),[E]):[E]})}function p(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(E)?E:[E];!l.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&S.message!==void 0&&(R=[].concat(S.message));var O=R.map(xy(S,i));if(l.first&&O.length)return g[S.field]=1,b(O);if(!h)b(O);else{if(S.required&&!y.value)return S.message!==void 0?O=[].concat(S.message).map(xy(S,i)):l.error&&(O=[l.error(S,or(l.messages.required,S.field))]),b(O);var _={};S.defaultField&&Object.keys(y.value).map(function(D){_[D]=S.defaultField}),_=z(z({},_),y.rule.fields);var A={};Object.keys(_).forEach(function(D){var I=_[D],V=Array.isArray(I)?I:[I];A[D]=V.map(v.bind(null,D))});var M=new e(A);M.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),M.validate(y.value,y.rule.options||l,function(D){var I=[];O&&O.length&&I.push.apply(I,ye(O)),D&&D.length&&I.push.apply(I,ye(D)),b(I.length?I:null)})}}var C;if(S.asyncValidator)C=S.asyncValidator(S,y.value,p,y.source,l);else if(S.validator){try{C=S.validator(S,y.value,p,y.source,l)}catch(E){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,E),l.suppressValidatorError||setTimeout(function(){throw E},0),p(E.message)}C===!0?p():C===!1?p(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):C instanceof Array?p(C):C instanceof Error&&p(C.message)}C&&C.then&&C.then(function(){return p()},function(E){return p(E)})},function(y){c(y)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Fl.hasOwnProperty(n.type))throw new Error(or("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Fl.required:Fl[this.getType(n)]||void 0}}]),e}();F(Ms,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fl[t]=n});F(Ms,"warning",ej);F(Ms,"messages",$v);F(Ms,"validators",Fl);var er="'${name}' is not a valid ${type}",xE={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Oy=Ms;function Pj(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Py="CODE_LOGIC_ERROR";function _v(e,t,n,r,o){return Iv.apply(this,arguments)}function Iv(){return Iv=Ha(zn().mark(function e(t,n,r,o,a){var i,l,s,c,d,f,m,g,y;return zn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return i=z({},r),delete i.ruleIndex,Oy.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(Py)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new Oy(F({},t,[i])),d=gi(xE,o.validateMessages),c.messages(d),f=[],S.prev=10,S.next=13,Promise.resolve(c.validate(F({},t,n),z({},o)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(f=S.t0.errors.map(function(h,v){var p=h.message,C=p===Py?d.default:p;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(v)}):C}));case 18:if(!(!f.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(h,v){return _v("".concat(t,".").concat(v),h,s,o,a)}));case 21:return m=S.sent,S.abrupt("return",m.reduce(function(h,v){return[].concat(ye(h),ye(v))},[]));case 23:return g=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=f.map(function(h){return typeof h=="string"?Pj(h,g):h}),S.abrupt("return",y);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),Iv.apply(this,arguments)}function _j(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var m=d.validator,g=z(z({},d),{},{ruleIndex:f});return m&&(g.validator=function(y,b,S){var h=!1,v=function(){for(var w=arguments.length,x=new Array(w),E=0;E<w;E++)x[E]=arguments[E];Promise.resolve().then(function(){Nn(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||S.apply(void 0,x)})},p=m(y,b,v);h=p&&typeof p.then=="function"&&typeof p.catch=="function",Nn(h,"`callback` is deprecated. Please return a promise instead."),h&&p.then(function(){S()}).catch(function(C){S(C||" ")})}),g}).sort(function(d,f){var m=d.warningOnly,g=d.ruleIndex,y=f.warningOnly,b=f.ruleIndex;return!!m==!!y?g-b:m?1:-1}),s;if(o===!0)s=new Promise(function(){var d=Ha(zn().mark(function f(m,g){var y,b,S;return zn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:y=0;case 1:if(!(y<l.length)){v.next=12;break}return b=l[y],v.next=5,_v(i,t,b,r,a);case 5:if(S=v.sent,!S.length){v.next=9;break}return g([{errors:S,rule:b}]),v.abrupt("return");case 9:y+=1,v.next=1;break;case 12:m([]);case 13:case"end":return v.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var c=l.map(function(d){return _v(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?Tj(c):Ij(c)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function Ij(e){return Tv.apply(this,arguments)}function Tv(){return Tv=Ha(zn().mark(function e(t){return zn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,ye(o));return i}));case 1:case"end":return r.stop()}},e)})),Tv.apply(this,arguments)}function Tj(e){return Mv.apply(this,arguments)}function Mv(){return Mv=Ha(zn().mark(function e(t){var n;return zn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(l){l.errors.length&&a([l]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Mv.apply(this,arguments)}function Xt(e){return xv(e)}function _y(e,t){var n={};return t.forEach(function(r){var o=Jr(e,r);n=Ar(n,r,o)}),n}function Ri(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return RE(t,r,n)})}function RE(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,o){return e[o]===r})}function Mj(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ye(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Nj(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Iy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ye(e.slice(0,n)),[o],ye(e.slice(n,t)),ye(e.slice(t+1,r))):a<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,n+1)),[o],ye(e.slice(n+1,r))):e}var Lj=["name"],hr=[];function Ty(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var $g=function(e){ia(n,e);var t=la(n);function n(r){var o;if(yn(this,n),o=t.call(this,r),F(lt(o),"state",{resetCount:0}),F(lt(o),"cancelRegisterFunc",null),F(lt(o),"mounted",!1),F(lt(o),"touched",!1),F(lt(o),"dirty",!1),F(lt(o),"validatePromise",void 0),F(lt(o),"prevValidating",void 0),F(lt(o),"errors",hr),F(lt(o),"warnings",hr),F(lt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,Xt(f)),o.cancelRegisterFunc=null}),F(lt(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(ye(m),ye(c)):[]}),F(lt(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),F(lt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),F(lt(o),"metaCache",null),F(lt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=z(z({},o.getMeta()),{},{destroy:s});cs(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),F(lt(o),"onStoreChange",function(s,c,d){var f=o.props,m=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,b=f.onReset,S=d.store,h=o.getNamePath(),v=o.getValue(s),p=o.getValue(S),C=c&&Ri(c,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!cs(v,p)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=hr,o.warnings=hr,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=hr,o.warnings=hr,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||hr),"warnings"in w&&(o.warnings=w.warnings||hr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Ri(c,h,!0)){o.reRender();return}if(m&&!h.length&&Ty(m,s,S,v,p,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=y.map(Xt);if(x.some(function(E){return Ri(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!y.length||h.length||m)&&Ty(m,s,S,v,p,d)){o.reRender();return}break}m===!0&&o.reRender()}),F(lt(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},m=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,b=Promise.resolve().then(Ha(zn().mark(function S(){var h,v,p,C,w,x,E;return zn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(h=o.props,v=h.validateFirst,p=v===void 0?!1:v,C=h.messageVariables,w=h.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(_){return _}).filter(function(_){var A=_.validateTrigger;if(!A)return!0;var M=xv(A);return M.includes(m)})),!(w&&m)){O.next=10;break}return O.next=8,new Promise(function(_){setTimeout(_,w)});case 8:if(o.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return E=_j(c,d,x,s,p,C),E.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hr;if(o.validatePromise===b){var A;o.validatePromise=null;var M=[],D=[];(A=_.forEach)===null||A===void 0||A.call(_,function(I){var V=I.rule.warningOnly,j=I.errors,P=j===void 0?hr:j;V?D.push.apply(D,ye(P)):M.push.apply(M,ye(P))}),o.errors=M,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},S)})));return y||(o.validatePromise=b,o.dirty=!0,o.errors=hr,o.warnings=hr,o.triggerMetaEvent(),o.reRender()),b}),F(lt(o),"isFieldValidating",function(){return!!o.validatePromise}),F(lt(o),"isFieldTouched",function(){return o.touched}),F(lt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(ba),d=c.getInitialValue;return d(o.getNamePath())!==void 0}),F(lt(o),"getErrors",function(){return o.errors}),F(lt(o),"getWarnings",function(){return o.warnings}),F(lt(o),"isListField",function(){return o.props.isListField}),F(lt(o),"isList",function(){return o.props.isList}),F(lt(o),"isPreserve",function(){return o.props.preserve}),F(lt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),F(lt(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return z(z({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=Zo(s);return d.length!==1||!u.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),F(lt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Jr(s||c(!0),d)}),F(lt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,m=c.validateTrigger,g=c.getValueFromEvent,y=c.normalize,b=c.valuePropName,S=c.getValueProps,h=c.fieldContext,v=m!==void 0?m:h.validateTrigger,p=o.getNamePath(),C=h.getInternalHooks,w=h.getFieldsValue,x=C(ba),E=x.dispatch,R=o.getValue(),O=S||function(I){return F({},b,I)},_=s[f],A=d!==void 0?O(R):{},M=z(z({},s),A);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,V=arguments.length,j=new Array(V),P=0;P<V;P++)j[P]=arguments[P];g?I=g.apply(void 0,j):I=Nj.apply(void 0,[b].concat(j)),y&&(I=y(I,R,w(!0))),E({type:"updateValue",namePath:p,value:I}),_&&_.apply(void 0,j)};var D=xv(v||[]);return D.forEach(function(I){var V=M[I];M[I]=function(){V&&V.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&E({type:"validateField",namePath:p,triggerName:I})}}),M}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(ba),l=i.initEntityValue;l(lt(o))}return o}return bn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var l=i.getInternalHooks,s=l(ba),c=s.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),l=i.child,s=i.isFunction,c;return s?c=l:u.isValidElement(l)?c=u.cloneElement(l,this.getControlled(l.props)):(Nn(!l,"`children` of Field is not validate ReactElement."),c=l),u.createElement(u.Fragment,{key:o},c)}}]),n}(u.Component);F($g,"contextType",ki);F($g,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $E(e){var t=e.name,n=it(e,Lj),r=u.useContext(ki),o=u.useContext(Oc),a=t!==void 0?Xt(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),u.createElement($g,be({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function Aj(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,l=u.useContext(ki),s=u.useContext(Oc),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var b=Xt(l.prefixName)||[];return[].concat(ye(b),ye(Xt(t)))},[l.prefixName,t]),m=u.useMemo(function(){return z(z({},l),{},{prefixName:f})},[l,f]),g=u.useMemo(function(){return{getKey:function(S){var h=f.length,v=S[h];return[d.keys[v],S.slice(h+1)]}}},[f]);if(typeof r!="function")return Nn(!1,"Form.List only accepts function as children."),null;var y=function(S,h,v){var p=v.source;return p==="internal"?!1:S!==h};return u.createElement(Oc.Provider,{value:g},u.createElement(ki.Provider,{value:m},u.createElement($E,{name:[],shouldUpdate:y,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(b,S){var h=b.value,v=h===void 0?[]:h,p=b.onChange,C=l.getFieldValue,w=function(){var O=C(f||[]);return O||[]},x={add:function(O,_){var A=w();_>=0&&_<=A.length?(d.keys=[].concat(ye(d.keys.slice(0,_)),[d.id],ye(d.keys.slice(_))),p([].concat(ye(A.slice(0,_)),[O],ye(A.slice(_))))):(d.keys=[].concat(ye(d.keys),[d.id]),p([].concat(ye(A),[O]))),d.id+=1},remove:function(O){var _=w(),A=new Set(Array.isArray(O)?O:[O]);A.size<=0||(d.keys=d.keys.filter(function(M,D){return!A.has(D)}),p(_.filter(function(M,D){return!A.has(D)})))},move:function(O,_){if(O!==_){var A=w();O<0||O>=A.length||_<0||_>=A.length||(d.keys=Iy(d.keys,O,_),p(Iy(A,O,_)))}}},E=v||[];return Array.isArray(E)||(E=[]),r(E.map(function(R,O){var _=d.keys[O];return _===void 0&&(d.keys[O]=d.id,_=d.keys[O],d.id+=1),{name:O,key:_,isListField:!0}}),x,S)})))}function jj(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var OE="__@field_split__";function Nf(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(OE)}var Ya=function(){function e(){yn(this,e),F(this,"kvs",new Map)}return bn(e,[{key:"set",value:function(n,r){this.kvs.set(Nf(n),r)}},{key:"get",value:function(n){return this.kvs.get(Nf(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Nf(n))}},{key:"map",value:function(n){return ye(this.kvs.entries()).map(function(r){var o=W(r,2),a=o[0],i=o[1],l=a.split(OE);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=W(c,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),Dj=["name"],Fj=bn(function e(t){var n=this;yn(this,e),F(this,"formHooked",!1),F(this,"forceRootUpdate",void 0),F(this,"subscribable",!0),F(this,"store",{}),F(this,"fieldEntities",[]),F(this,"initialValues",{}),F(this,"callbacks",{}),F(this,"validateMessages",null),F(this,"preserve",null),F(this,"lastValidatePromise",null),F(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}}),F(this,"getInternalHooks",function(r){return r===ba?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Nn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),F(this,"useSubscribe",function(r){n.subscribable=r}),F(this,"prevWithoutPreserves",null),F(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=gi(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var s=l.key;i=Ar(i,s,Jr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),F(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ya;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),F(this,"getInitialValue",function(r){var o=Jr(n.initialValues,r);return r.length?gi(o):o}),F(this,"setCallbacks",function(r){n.callbacks=r}),F(this,"setValidateMessages",function(r){n.validateMessages=r}),F(this,"setPreserve",function(r){n.preserve=r}),F(this,"watchList",[]),F(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),F(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),F(this,"timeoutId",null),F(this,"warningUnhooked",function(){}),F(this,"updateStore",function(r){n.store=r}),F(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),F(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ya;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),F(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Xt(a);return o.get(i)||{INVALIDATE_NAME_PATH:Xt(a)}})}),F(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&je(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return s.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var y,b;if((y=(b=d).isList)!==null&&y!==void 0&&y.call(b))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)c.push(g);else{var S="getMeta"in d?d.getMeta():null;i(S)&&c.push(g)}}),_y(n.store,c.map(Xt))}),F(this,"getFieldValue",function(r){n.warningUnhooked();var o=Xt(r);return Jr(n.store,o)}),F(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Xt(r[i]),errors:[],warnings:[]}})}),F(this,"getFieldError",function(r){n.warningUnhooked();var o=Xt(r),a=n.getFieldsError([o])[0];return a.errors}),F(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Xt(r),a=n.getFieldsError([o])[0];return a.warnings}),F(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(i)?(s=i.map(Xt),c=!1):(s=null,c=i):(s=i.map(Xt),c=l);var d=n.getFieldEntities(!0),f=function(S){return S.isFieldTouched()};if(!s)return c?d.every(function(b){return f(b)||b.isList()}):d.some(f);var m=new Ya;s.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var S=b.getNamePath();s.forEach(function(h){h.every(function(v,p){return S[p]===v})&&m.update(h,function(v){return[].concat(ye(v),[b])})})});var g=function(S){return S.some(f)},y=m.map(function(b){var S=b.value;return S});return c?y.every(g):y.some(g)}),F(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),F(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Xt);return o.some(function(i){var l=i.getNamePath();return Ri(a,l)&&i.isFieldValidating()})}),F(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),F(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ya,a=n.getFieldEntities(!0);a.forEach(function(s){var c=s.props.initialValue,d=s.getNamePath();if(c!==void 0){var f=o.get(d)||new Set;f.add({entity:s,value:c}),o.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Nn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var y=o.get(m);if(y&&y.size>1)Nn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(m),S=d.isListField();!S&&(!r.skipExist||b===void 0)&&n.updateStore(Ar(n.store,m,ye(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var d;(d=l).push.apply(d,ye(ye(c).map(function(f){return f.entity})))}})):l=a,i(l)}),F(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(gi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(Xt);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Ar(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),F(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=it(i,Dj),c=Xt(l);a.push(c),"value"in s&&n.updateStore(Ar(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),F(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),s=z(z({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),F(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Jr(n.store,a);i===void 0&&n.updateStore(Ar(n.store,a,o))}}),F(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),F(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,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)&&(!i||s.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!RE(f.getNamePath(),o)})){var d=n.store;n.updateStore(Ar(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),F(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),F(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=z(z({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,i)})}else n.forceRootUpdate()}),F(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ye(a))}),a}),F(this,"updateValue",function(r,o){var a=Xt(r),i=n.store;n.updateStore(Ar(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),s=n.callbacks.onValuesChange;if(s){var c=_y(n.store,[a]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ye(l)))}),F(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=gi(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),F(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),F(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new Ya;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(d){var f=Xt(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(s),m})})});var l=function s(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),s(m))}})};return l(r),a}),F(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new Ya;o.forEach(function(c){var d=c.name,f=c.errors;l.set(d,f)}),i.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=i.filter(function(c){var d=c.name;return Ri(r,d)});s.length&&a(s,i)}}),F(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,s=l?a.map(Xt):[],c=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,y=m.dirty;n.getFieldEntities(!0).forEach(function(v){if(l||s.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(y&&!v.isFieldDirty())){var p=v.getNamePath();if(f.add(p.join(d)),!l||Ri(s,p,g)){var C=v.validateRules(z({validateMessages:z(z({},xE),n.validateMessages)},i));c.push(C.then(function(){return{name:p,errors:[],warnings:[]}}).catch(function(w){var x,E=[],R=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(O){var _=O.rule.warningOnly,A=O.errors;_?R.push.apply(R,ye(A)):E.push.apply(E,ye(A))}),E.length?Promise.reject({name:p,errors:E,warnings:R}):{name:p,errors:E,warnings:R}}))}}});var b=jj(c);n.lastValidatePromise=b,b.catch(function(v){return v}).then(function(v){var p=v.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,p,{type:"validateFinish"}),n.triggerOnFieldsChange(p,v)});var S=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(v){var p=v.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:p,outOfDate:n.lastValidatePromise!==b})});S.catch(function(v){return v});var h=s.filter(function(v){return f.has(v.join(d))});return n.triggerOnFieldsChange(h),S}),F(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function PE(e){var t=u.useRef(),n=u.useState({}),r=W(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new Fj(a);t.current=i.getForm()}return[t.current]}var Nv=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),_E=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=u.useContext(Nv),l=u.useRef({});return u.createElement(Nv.Provider,{value:z(z({},i),{},{validateMessages:z(z({},i.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:l.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:l.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(l.current=z(z({},l.current),{},F({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=z({},l.current);delete d[c],l.current=d,i.unregisterForm(c)}})},a)},zj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Bj=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,s=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,y=t.onValuesChange,b=t.onFieldsChange,S=t.onFinish,h=t.onFinishFailed,v=t.clearOnDestroy,p=it(t,zj),C=u.useRef(null),w=u.useContext(Nv),x=PE(i),E=W(x,1),R=E[0],O=R.getInternalHooks(ba),_=O.useSubscribe,A=O.setInitialValues,M=O.setCallbacks,D=O.setValidateMessages,I=O.setPreserve,V=O.destroyForm;u.useImperativeHandle(n,function(){return z(z({},R),{},{nativeElement:C.current})}),u.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),D(z(z({},w.validateMessages),f)),M({onValuesChange:y,onFieldsChange:function(U){if(w.triggerFormChange(r,U),b){for(var G=arguments.length,ee=new Array(G>1?G-1:0),Q=1;Q<G;Q++)ee[Q-1]=arguments[Q];b.apply(void 0,[U].concat(ee))}},onFinish:function(U){w.triggerFormFinish(r,U),S&&S(U)},onFinishFailed:h}),I(l);var j=u.useRef(null);A(o,!j.current),j.current||(j.current=!0),u.useEffect(function(){return function(){return V(v)}},[]);var P,$=typeof s=="function";if($){var L=R.getFieldsValue(!0);P=s(L,R)}else P=s;_(!$);var N=u.useRef();u.useEffect(function(){Mj(N.current||[],a||[])||R.setFields(a||[]),N.current=a},[a,R]);var T=u.useMemo(function(){return z(z({},R),{},{validateTrigger:g})},[R,g]),k=u.createElement(Oc.Provider,{value:null},u.createElement(ki.Provider,{value:T},P));return d===!1?k:u.createElement(d,be({},p,{ref:C,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),R.submit()},onReset:function(U){var G;U.preventDefault(),R.resetFields(),(G=p.onReset)===null||G===void 0||G.call(p,U)}}),k)};function My(e){try{return JSON.stringify(e)}catch{return Math.random()}}function kj(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,i=XA(a)?{form:a}:a,l=i.form,s=u.useState(),c=W(s,2),d=c[0],f=c[1],m=u.useMemo(function(){return My(d)},[d]),g=u.useRef(m);g.current=m;var y=u.useContext(ki),b=l||y,S=b&&b._init,h=Xt(r),v=u.useRef(h);return v.current=h,u.useEffect(function(){if(S){var p=b.getFieldsValue,C=b.getInternalHooks,w=C(ba),x=w.registerWatch,E=function(A,M){var D=i.preserve?M:A;return typeof r=="function"?r(D):Jr(D,v.current)},R=x(function(_,A){var M=E(_,A),D=My(M);g.current!==D&&(g.current=D,f(M))}),O=E(p(),p(!0));return d!==O&&f(O),R}},[S]),d}var Hj=u.forwardRef(Bj),Ns=Hj;Ns.FormProvider=_E;Ns.Field=$E;Ns.List=Aj;Ns.useForm=PE;Ns.useWatch=kj;const Nk=u.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Lk=u.createContext(null),Ak=e=>{const t=dr(e,["prefixCls"]);return u.createElement(_E,Object.assign({},t))},jk=u.createContext({prefixCls:""}),bo=u.createContext({}),Vj=e=>{let{children:t,status:n,override:r}=e;const o=u.useContext(bo),a=u.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return u.createElement(bo.Provider,{value:a},t)},Wj=u.createContext(void 0),Lv=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=K.createElement(Vj,{override:!0,status:!0},o)),t&&(o=K.createElement(aA,null,o)),o};function Ny(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Ly(e){const{closable:t,closeIcon:n}=e||{};return K.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function Ay(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const Uj={};function Gj(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Uj;const r=Ly(e),o=Ly(t),a=K.useMemo(()=>Object.assign({closeIcon:K.createElement(_s,null)},n),[n]),i=K.useMemo(()=>r===!1?!1:r?Ay(a,o,r):o===!1?!1:o?Ay(a,o):a.closable?a:!1,[r,o,a]);return K.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:l}=a,{closeIcon:s}=i;let c=s;if(c!=null){l&&(c=l(s));const d=ea(i,!0);Object.keys(d).length&&(c=K.isValidElement(c)?K.cloneElement(c,d):K.createElement("span",Object.assign({},d),c))}return[!0,c]},[i,a])}const Kj=()=>Fn()&&window.document.documentElement,yd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=q({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=q({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),s=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:q(t,i,l,n),style:Object.assign(Object.assign({},s),r)})},qj=new yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),bd=e=>({height:e,lineHeight:J(e)}),$i=e=>Object.assign({width:e},bd(e)),Qj=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:qj,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},bd(e)),Xj=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$i(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$i(o)),[`${t}${t}-sm`]:Object.assign({},$i(a))}},Yj=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Lf(t,l)),[`${r}-lg`]:Object.assign({},Lf(o,l)),[`${r}-sm`]:Object.assign({},Lf(a,l))}},jy=e=>Object.assign({width:e},bd(e)),Jj=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},jy(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},jy(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Af=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},jf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},bd(e)),Zj=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},jf(r,l))},Af(e,r,n)),{[`${n}-lg`]:Object.assign({},jf(o,l))}),Af(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},jf(a,l))}),Af(e,a,`${n}-sm`))},eD=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:y,titleHeight:b,blockRadius:S,paragraphLiHeight:h,controlHeightXS:v,paragraphMarginTop:p}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},$i(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$i(c)),[`${n}-sm`]:Object.assign({},$i(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:b,background:f,borderRadius:S,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:f,borderRadius:S,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:p}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Zj(e)),Xj(e)),Yj(e)),Jj(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${a},
        ${i},
        ${l}
      `]:Object.assign({},Qj(e))}}},tD=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Yi=_r("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Gt(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[eD(r)]},tD,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),nD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=u.useContext(ft),s=l("skeleton",t),[c,d,f]=Yi(s),m=dr(e,["prefixCls","className"]),g=q(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(yd,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},m))))},rD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=u.useContext(ft),s=l("skeleton",t),[c,d,f]=Yi(s),m=dr(e,["prefixCls"]),g=q(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(yd,Object.assign({prefixCls:`${s}-button`,size:i},m))))},oD="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",aD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=u.useContext(ft),l=i("skeleton",t),[s,c,d]=Yi(l),f=q(l,`${l}-element`,{[`${l}-active`]:a},n,r,c,d);return s(u.createElement("div",{className:f},u.createElement("div",{className:q(`${l}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:oD,className:`${l}-image-path`})))))},iD=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=u.useContext(ft),s=l("skeleton",t),[c,d,f]=Yi(s),m=dr(e,["prefixCls"]),g=q(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:a},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(yd,Object.assign({prefixCls:`${s}-input`,size:i},m))))};var lD={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"},sD=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:lD}))},uD=u.forwardRef(sD);const cD=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=u.useContext(ft),s=l("skeleton",t),[c,d,f]=Yi(s),m=q(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),g=i??u.createElement(uD,null);return c(u.createElement("div",{className:m},u.createElement("div",{className:q(`${s}-image`,n),style:o},g)))},dD=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},fD=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=ye(Array(o)).map((i,l)=>u.createElement("li",{key:l,style:{width:dD(l,e)}}));return u.createElement("ul",{className:q(t,n),style:r},a)},mD=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return u.createElement("h3",{className:q(t,n),style:Object.assign({width:r},o)})};function Df(e){return e&&typeof e=="object"?e:{}}function vD(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function pD(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function gD(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Va=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,skeleton:y}=u.useContext(ft),b=m("skeleton",t),[S,h,v]=Yi(b);if(n||!("loading"in e)){const p=!!l,C=!!s,w=!!c;let x;if(p){const O=Object.assign(Object.assign({prefixCls:`${b}-avatar`},vD(C,w)),Df(l));x=u.createElement("div",{className:`${b}-header`},u.createElement(yd,Object.assign({},O)))}let E;if(C||w){let O;if(C){const A=Object.assign(Object.assign({prefixCls:`${b}-title`},pD(p,w)),Df(s));O=u.createElement(mD,Object.assign({},A))}let _;if(w){const A=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},gD(p,C)),Df(c));_=u.createElement(fD,Object.assign({},A))}E=u.createElement("div",{className:`${b}-content`},O,_)}const R=q(b,{[`${b}-with-avatar`]:p,[`${b}-active`]:d,[`${b}-rtl`]:g==="rtl",[`${b}-round`]:f},y==null?void 0:y.className,r,o,h,v);return S(u.createElement("div",{className:R,style:Object.assign(Object.assign({},y==null?void 0:y.style),a)},x,E))}return i??null};Va.Button=rD;Va.Avatar=nD;Va.Input=iD;Va.Image=aD;Va.Node=cD;function Dy(){}const hD=u.createContext({add:Dy,remove:Dy});function yD(e){const t=u.useContext(hD),n=u.useRef();return nn(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const Fy=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(Ts);return K.createElement(Mn,Object.assign({onClick:n},e),t)},zy=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(Ts);return K.createElement(Mn,Object.assign({},sE(n),{loading:e,onClick:o},t),r)};function IE(e,t){return K.createElement("span",{className:`${e}-close-x`},t||K.createElement(_s,{className:`${e}-close-icon`}))}const TE=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[d]=md("Modal",hw()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},y=K.useMemo(()=>g,ye(Object.values(g)));let b;return typeof c=="function"||typeof c>"u"?(b=K.createElement(K.Fragment,null,K.createElement(Fy,null),K.createElement(zy,null)),typeof c=="function"&&(b=c(b,{OkBtn:zy,CancelBtn:Fy})),b=K.createElement(pE,{value:y},b)):b=c,K.createElement(xw,{disabled:!1},b)},bD=e=>({animationDuration:e,animationFillMode:"both"}),SD=e=>({animationDuration:e,animationFillMode:"both"}),Sd=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},bD(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},SD(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},CD=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),wD=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ED=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Sd(r,CD,wD,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},xD=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),RD=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$D=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OD=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),PD=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_D=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ID=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),TD=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),MD={"move-up":{inKeyframes:ID,outKeyframes:TD},"move-down":{inKeyframes:xD,outKeyframes:RD},"move-left":{inKeyframes:$D,outKeyframes:OD},"move-right":{inKeyframes:PD,outKeyframes:_D}},By=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=MD[t];return[Sd(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ME=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),NE=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),LE=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),AE=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ND=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),LD=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),AD=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jD=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),DD={"slide-up":{inKeyframes:ME,outKeyframes:NE},"slide-down":{inKeyframes:LE,outKeyframes:AE},"slide-left":{inKeyframes:ND,outKeyframes:LD},"slide-right":{inKeyframes:AD,outKeyframes:jD}},Pc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=DD[t];return[Sd(r,o,a,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}}]},FD=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zD=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ky=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hy=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),BD=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kD=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),HD=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),VD=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),WD=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),UD=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),GD=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),KD=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),qD={zoom:{inKeyframes:FD,outKeyframes:zD},"zoom-big":{inKeyframes:ky,outKeyframes:Hy},"zoom-big-fast":{inKeyframes:ky,outKeyframes:Hy},"zoom-left":{inKeyframes:HD,outKeyframes:VD},"zoom-right":{inKeyframes:WD,outKeyframes:UD},"zoom-up":{inKeyframes:BD,outKeyframes:kD},"zoom-down":{inKeyframes:GD,outKeyframes:KD}},QD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=qD[t];return[Sd(r,o,a,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 Vy(e){return{position:e,inset:0}}const XD=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({},Vy("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Vy("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:ED(e)}]},YD=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:`${J(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},no(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${J(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:`${J(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},vd(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${J(e.borderRadiusLG)} ${J(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}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${J(e.margin)} auto`}},[`${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"}}}]},JD=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},jE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Gt(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,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},DE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${J(e.padding)} ${J(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${J(e.paddingXS)} ${J(e.padding)}`:0,footerBorderTop:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${J(e.padding*2)} ${J(e.padding*2)} ${J(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),FE=_r("Modal",e=>{const t=jE(e);return[YD(t),JD(t),XD(t),QD(t,"zoom")]},DE,{unitless:{titleLineHeight:!0}});var ZD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Av;const e4=e=>{Av={x:e.pageX,y:e.pageY},setTimeout(()=>{Av=null},100)};Kj()&&document.documentElement.addEventListener("click",e4,!0);const zE=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=u.useContext(ft),i=k=>{const{onCancel:H}=e;H==null||H(k)},l=k=>{const{onOk:H}=e;H==null||H(k)},{prefixCls:s,className:c,rootClassName:d,open:f,wrapClassName:m,centered:g,getContainer:y,focusTriggerAfterClose:b=!0,style:S,visible:h,width:v=520,footer:p,classNames:C,styles:w,children:x,loading:E}=e,R=ZD(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",s),_=r(),A=ka(O),[M,D,I]=FE(O,A),V=q(m,{[`${O}-centered`]:!!g,[`${O}-wrap-rtl`]:o==="rtl"}),j=p!==null&&!E?u.createElement(TE,Object.assign({},e,{onOk:l,onCancel:i})):null,[P,$]=Gj(Ny(e),Ny(a),{closable:!0,closeIcon:u.createElement(_s,{className:`${O}-close-icon`}),closeIconRender:k=>IE(O,k)}),L=yD(`.${O}-content`),[N,T]=nE("Modal",R.zIndex);return M(u.createElement(Lv,{form:!0,space:!0},u.createElement(Zw.Provider,{value:T},u.createElement(wE,Object.assign({width:v},R,{zIndex:N,getContainer:y===void 0?n:y,prefixCls:O,rootClassName:q(D,d,I,A),footer:j,visible:f??h,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:Av,onClose:i,closable:P,closeIcon:$,focusTriggerAfterClose:b,transitionName:Bi(_,"zoom",e.transitionName),maskTransitionName:Bi(_,"fade",e.maskTransitionName),className:q(D,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),S),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:q(V,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:L}),E?u.createElement(Va,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):x))))},t4=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},qi()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${J(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
        ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},n4=Nw(["Modal","confirm"],e=>{const t=jE(e);return[t4(t)]},DE,{order:-1e3});var r4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function BE(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:s,locale:c}=e,d=r4(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=u.createElement(xL,null);break;case"success":f=u.createElement(vL,null);break;case"error":f=u.createElement(Sg,null);break;default:f=u.createElement(CL,null)}const m=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=md("Modal"),b=c||y,S=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),h=o||(b==null?void 0:b.cancelText),v=Object.assign({autoFocusButton:g,cancelTextLocale:h,okTextLocale:S,mergedOkCancel:m},d),p=u.useMemo(()=>v,ye(Object.values(v))),C=u.createElement(u.Fragment,null,u.createElement(fy,null),u.createElement(my,null)),w=e.title!==void 0&&e.title!==null,x=`${a}-body`;return u.createElement("div",{className:`${a}-body-wrapper`},u.createElement("div",{className:q(x,{[`${x}-has-title`]:w})},f,u.createElement("div",{className:`${a}-paragraph`},w&&u.createElement("span",{className:`${a}-title`},e.title),u.createElement("div",{className:`${a}-content`},e.content))),s===void 0||typeof s=="function"?u.createElement(pE,{value:p},u.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(C,{OkBtn:my,CancelBtn:fy}):C)):s,u.createElement(n4,{prefixCls:t}))}const o4=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:s,direction:c,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:g,closable:y=!1,closeIcon:b,modalRender:S,focusTriggerAfterClose:h,onConfirm:v,styles:p}=e,C=`${d}-confirm`,w=e.width||416,x=e.style||{},E=e.mask===void 0?!0:e.mask,R=e.maskClosable===void 0?!1:e.maskClosable,O=q(C,`${C}-${e.type}`,{[`${C}-rtl`]:c==="rtl"},e.className),[,_]=sr(),A=u.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+eE,[n,_]);return u.createElement(zE,{prefixCls:d,className:O,wrapClassName:q({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:o,title:"",footer:null,transitionName:Bi(m||"","zoom",e.transitionName),maskTransitionName:Bi(m||"","fade",e.maskTransitionName),mask:E,maskClosable:R,style:x,styles:Object.assign({body:g,mask:s},p),width:w,zIndex:A,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:y,closeIcon:b,modalRender:S,focusTriggerAfterClose:h},u.createElement(BE,Object.assign({},e,{confirmPrefixCls:C})))},kE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement(Ps,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(o4,Object.assign({},e)))},Sa=[];let HE="";function VE(){return HE}const a4=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=hw(),l=u.useContext(ft),s=VE()||l.getPrefixCls(),c=r||`${s}-modal`;let d=o;return d===!1&&(d=void 0),K.createElement(kE,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function Ls(e){const t=eL(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function a(){for(var c,d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];if(f.some(b=>b==null?void 0:b.triggerCancel)){var y;(c=e.onCancel)===null||c===void 0||(y=c).call.apply(y,[e,()=>{}].concat(ye(f.slice(1))))}for(let b=0;b<Sa.length;b++)if(Sa[b]===l){Sa.splice(b,1);break}oE(n)}function i(c){clearTimeout(o),o=setTimeout(()=>{const d=t.getPrefixCls(void 0,VE()),f=t.getIconPrefixCls(),m=t.getTheme(),g=K.createElement(a4,Object.assign({},c));rE(K.createElement(Ps,{prefixCls:d,iconPrefixCls:f,theme:m},t.holderRender?t.holderRender(g):g),n)})}function l(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function s(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),i(r)}return i(r),Sa.push(l),{destroy:l,update:s}}function WE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function UE(e){return Object.assign(Object.assign({},e),{type:"info"})}function GE(e){return Object.assign(Object.assign({},e),{type:"success"})}function KE(e){return Object.assign(Object.assign({},e),{type:"error"})}function qE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function i4(e){let{rootPrefixCls:t}=e;HE=t}var l4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s4=(e,t)=>{var n,{afterClose:r,config:o}=e,a=l4(e,["afterClose","config"]);const[i,l]=u.useState(!0),[s,c]=u.useState(o),{direction:d,getPrefixCls:f}=u.useContext(ft),m=f("modal"),g=f(),y=()=>{var v;r(),(v=s.afterClose)===null||v===void 0||v.call(s)},b=function(){var v;l(!1);for(var p=arguments.length,C=new Array(p),w=0;w<p;w++)C[w]=arguments[w];if(C.some(R=>R==null?void 0:R.triggerCancel)){var E;(v=s.onCancel)===null||v===void 0||(E=v).call.apply(E,[s,()=>{}].concat(ye(C.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:b,update:v=>{c(p=>Object.assign(Object.assign({},p),v))}}));const S=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[h]=md("Modal",Na.Modal);return u.createElement(kE,Object.assign({prefixCls:m,rootPrefixCls:g},s,{close:b,open:i,afterClose:y,okText:s.okText||(S?h==null?void 0:h.okText:h==null?void 0:h.justOkText),direction:s.direction||d,cancelText:s.cancelText||(h==null?void 0:h.cancelText)},a))},u4=u.forwardRef(s4);let Wy=0;const c4=u.memo(u.forwardRef((e,t)=>{const[n,r]=DL();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function d4(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(ye(t).forEach(i=>{i()}),n([]))},[t]);const r=u.useCallback(a=>function(l){var s;Wy+=1;const c=u.createRef();let d;const f=new Promise(S=>{d=S});let m=!1,g;const y=u.createElement(u4,{key:`modal-${Wy}`,config:a(l),ref:c,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:S=>{d(S)}});return g=(s=e.current)===null||s===void 0?void 0:s.patchElement(y),g&&Sa.push(g),{destroy:()=>{function S(){var h;(h=c.current)===null||h===void 0||h.destroy()}c.current?S():n(h=>[].concat(ye(h),[S]))},update:S=>{function h(){var v;(v=c.current)===null||v===void 0||v.update(S)}c.current?h():n(v=>[].concat(ye(v),[h]))},then:S=>(m=!0,f.then(S))}},[]);return[u.useMemo(()=>({info:r(UE),success:r(GE),error:r(KE),warning:r(WE),confirm:r(qE)}),[]),u.createElement(c4,{key:"modal-holder",ref:e})]}function QE(e){return t=>u.createElement(Ps,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const f4=(e,t,n,r)=>QE(a=>{const{prefixCls:i,style:l}=a,s=u.useRef(null),[c,d]=u.useState(0),[f,m]=u.useState(0),[g,y]=ir(!1,{value:a.open}),{getPrefixCls:b}=u.useContext(ft),S=b(t||"select",i);u.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const p=new ResizeObserver(w=>{const x=w[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),C=setInterval(()=>{var w;const x=n?`.${n(S)}`:`.${S}-dropdown`,E=(w=s.current)===null||w===void 0?void 0:w.querySelector(x);E&&(clearInterval(C),p.observe(E))},10);return()=>{clearInterval(C),p.disconnect()}}},[]);let h=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>s.current});r&&(h=r(h));const v={paddingBottom:c,position:"relative",minWidth:f};return u.createElement("div",{ref:s,style:v},u.createElement(e,Object.assign({},h)))}),Og=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 Cd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(o):r;return u.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:u.createElement("span",{className:q(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},a))},m4=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=K.useMemo(function(){if(je(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=K.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:K.createElement(Cd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},XE=u.createContext(null);function v4(){return u.useContext(XE)}function p4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=W(t,2),r=n[0],o=n[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect(function(){return i},[]);var l=function(c,d){i(),a.current=window.setTimeout(function(){o(c),d&&d()},e)};return[r,l,i]}function YE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function g4(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(s)&&c!==s})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function h4(e){return![re.ESC,re.SHIFT,re.BACKSPACE,re.TAB,re.WIN_KEY,re.ALT,re.META,re.WIN_KEY_RIGHT,re.CTRL,re.SEMICOLON,re.EQUALS,re.CAPS_LOCK,re.CONTEXT_MENU,re.F1,re.F2,re.F3,re.F4,re.F5,re.F6,re.F7,re.F8,re.F9,re.F10,re.F11,re.F12].includes(e)}var y4=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ja=void 0;function b4(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,y=e.order,b=e.component,S=b===void 0?"div":b,h=it(e,y4),v=i&&!g;function p(R){s(c,R)}u.useEffect(function(){return function(){p(null)}},[]);var C=a&&o!==Ja?a(o):m,w;r||(w={opacity:v?0:1,height:v?0:Ja,overflowY:v?"hidden":Ja,order:i?y:Ja,pointerEvents:v?"none":Ja,position:v?"absolute":Ja});var x={};v&&(x["aria-hidden"]=!0);var E=u.createElement(S,be({className:q(!r&&n,d),style:z(z({},w),f)},x,h,{ref:t}),C);return i&&(E=u.createElement(Br,{onResize:function(O){var _=O.offsetWidth;p(_)},disabled:l},E)),E}var zl=u.forwardRef(b4);zl.displayName="Item";function S4(e){if(typeof MessageChannel>"u")Rt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function C4(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],S4(function(){Jo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function dl(e,t){var n=u.useState(t),r=W(n,2),o=r[0],a=r[1],i=nn(function(l){e(function(){a(l)})});return[o,i]}var _c=K.createContext(null),w4=["component"],E4=["className"],x4=["className"],R4=function(t,n){var r=u.useContext(_c);if(!r){var o=t.component,a=o===void 0?"div":o,i=it(t,w4);return u.createElement(a,be({},i,{ref:n}))}var l=r.className,s=it(r,E4),c=t.className,d=it(t,x4);return u.createElement(_c.Provider,{value:null},u.createElement(zl,be({ref:n,className:q(l,c)},s,d)))},JE=u.forwardRef(R4);JE.displayName="RawItem";var $4=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ZE="responsive",ex="invalidate";function O4(e){return"+ ".concat(e.length," ...")}function P4(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,m=e.style,g=e.className,y=e.maxCount,b=e.renderRest,S=e.renderRawRest,h=e.suffix,v=e.component,p=v===void 0?"div":v,C=e.itemComponent,w=e.onVisibleChange,x=it(e,$4),E=f==="full",R=C4(),O=dl(R,null),_=W(O,2),A=_[0],M=_[1],D=A||0,I=dl(R,new Map),V=W(I,2),j=V[0],P=V[1],$=dl(R,0),L=W($,2),N=L[0],T=L[1],k=dl(R,0),H=W(k,2),U=H[0],G=H[1],ee=dl(R,0),Q=W(ee,2),ae=Q[0],ce=Q[1],ne=u.useState(null),X=W(ne,2),te=X[0],ie=X[1],Y=u.useState(null),oe=W(Y,2),fe=oe[0],Pe=oe[1],ve=u.useMemo(function(){return fe===null&&E?Number.MAX_SAFE_INTEGER:fe||0},[fe,A]),le=u.useState(!1),me=W(le,2),se=me[0],Ee=me[1],Ne="".concat(r,"-item"),Se=Math.max(N,U),De=y===ZE,pe=a.length&&De,ot=y===ex,Be=pe||typeof y=="number"&&a.length>y,xe=u.useMemo(function(){var Le=a;return pe?A===null&&E?Le=a:Le=a.slice(0,Math.min(a.length,D/d)):typeof y=="number"&&(Le=a.slice(0,y)),Le},[a,d,A,y,pe]),Ce=u.useMemo(function(){return pe?a.slice(ve+1):a.slice(xe.length)},[a,xe,pe,ve]),Ve=u.useCallback(function(Le,ge){var Ye;return typeof s=="function"?s(Le):(Ye=s&&(Le==null?void 0:Le[s]))!==null&&Ye!==void 0?Ye:ge},[s]),ke=u.useCallback(i||function(Le){return Le},[i]);function tt(Le,ge,Ye){fe===Le&&(ge===void 0||ge===te)||(Pe(Le),Ye||(Ee(Le<a.length-1),w==null||w(Le)),ge!==void 0&&ie(ge))}function vt(Le,ge){M(ge.clientWidth)}function dt(Le,ge){P(function(Ye){var nt=new Map(Ye);return ge===null?nt.delete(Le):nt.set(Le,ge),nt})}function Qe(Le,ge){G(ge),T(U)}function st(Le,ge){ce(ge)}function ut(Le){return j.get(Ve(xe[Le],Le))}zt(function(){if(D&&typeof Se=="number"&&xe){var Le=ae,ge=xe.length,Ye=ge-1;if(!ge){tt(0,null);return}for(var nt=0;nt<ge;nt+=1){var de=ut(nt);if(E&&(de=de||0),de===void 0){tt(nt-1,void 0,!0);break}if(Le+=de,Ye===0&&Le<=D||nt===Ye-1&&Le+ut(Ye)<=D){tt(Ye,null);break}else if(Le+Se>D){tt(nt-1,Le-de-ae+U);break}}h&&ut(0)+ae>D&&ie(null)}},[D,j,U,ae,Ve,xe]);var Lt=se&&!!Ce.length,bt={};te!==null&&pe&&(bt={position:"absolute",left:te,top:0});var Et={prefixCls:Ne,responsive:pe,component:C,invalidate:ot},Dt=l?function(Le,ge){var Ye=Ve(Le,ge);return u.createElement(_c.Provider,{key:Ye,value:z(z({},Et),{},{order:ge,item:Le,itemKey:Ye,registerSize:dt,display:ge<=ve})},l(Le,ge))}:function(Le,ge){var Ye=Ve(Le,ge);return u.createElement(zl,be({},Et,{order:ge,key:Ye,item:Le,renderItem:ke,itemKey:Ye,registerSize:dt,display:ge<=ve}))},St,Ze={order:Lt?ve:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:Qe,display:Lt};if(S)S&&(St=u.createElement(_c.Provider,{value:z(z({},Et),Ze)},S(Ce)));else{var ze=b||O4;St=u.createElement(zl,be({},Et,Ze),typeof ze=="function"?ze(Ce):ze)}var He=u.createElement(p,be({className:q(!ot&&r,g),style:m,ref:t},x),xe.map(Dt),Be?St:null,h&&u.createElement(zl,be({},Et,{responsive:De,responsiveDisabled:!pe,order:ve,className:"".concat(Ne,"-suffix"),registerSize:st,display:!0,style:bt}),h));return De&&(He=u.createElement(Br,{onResize:vt,disabled:!pe},He)),He}var to=u.forwardRef(P4);to.displayName="Overflow";to.Item=JE;to.RESPONSIVE=ZE;to.INVALIDATE=ex;var _4=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,s=t.tabIndex,c=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,g=t.value,y=t.maxLength,b=t.onKeyDown,S=t.onMouseDown,h=t.onChange,v=t.onPaste,p=t.onCompositionStart,C=t.onCompositionEnd,w=t.open,x=t.attrs,E=i||u.createElement("input",null),R=E,O=R.ref,_=R.props,A=_.onKeyDown,M=_.onChange,D=_.onMouseDown,I=_.onCompositionStart,V=_.onCompositionEnd,j=_.style;return"maxLength"in E.props,E=u.cloneElement(E,z(z(z({type:"search"},_),{},{id:a,ref:Gr(n,O),disabled:l,tabIndex:s,autoComplete:d||"off",autoFocus:c,className:q("".concat(o,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":w?m:void 0},x),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:z(z({},j),{},{opacity:f?null:0}),onKeyDown:function($){b($),A&&A($)},onMouseDown:function($){S($),D&&D($)},onChange:function($){h($),M&&M($)},onCompositionStart:function($){p($),I&&I($)},onCompositionEnd:function($){C($),V&&V($)},onPaste:v})),E},tx=u.forwardRef(_4);function nx(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var I4=typeof window<"u"&&window.document&&window.document.documentElement,T4=I4;function M4(e){return e!=null}function N4(e){return!e&&e!==0}function Uy(e){return["string","number"].includes(je(e))}function rx(e){var t=void 0;return e&&(Uy(e.title)?t=e.title.toString():Uy(e.label)&&(t=e.label.toString())),t}function L4(e,t){T4?u.useLayoutEffect(e,t):u.useEffect(e,t)}function A4(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Gy=function(t){t.preventDefault(),t.stopPropagation()},j4=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,g=t.autoFocus,y=t.autoComplete,b=t.activeDescendantId,S=t.tabIndex,h=t.removeIcon,v=t.maxTagCount,p=t.maxTagTextLength,C=t.maxTagPlaceholder,w=C===void 0?function(ie){return"+ ".concat(ie.length," ...")}:C,x=t.tagRender,E=t.onToggleOpen,R=t.onRemove,O=t.onInputChange,_=t.onInputPaste,A=t.onInputKeyDown,M=t.onInputMouseDown,D=t.onInputCompositionStart,I=t.onInputCompositionEnd,V=u.useRef(null),j=u.useState(0),P=W(j,2),$=P[0],L=P[1],N=u.useState(!1),T=W(N,2),k=T[0],H=T[1],U="".concat(r,"-selection"),G=a||f==="multiple"&&l===!1||f==="tags"?i:"",ee=f==="tags"||f==="multiple"&&l===!1||m&&(a||k);L4(function(){L(V.current.scrollWidth)},[G]);var Q=function(Y,oe,fe,Pe,ve){return u.createElement("span",{title:rx(Y),className:q("".concat(U,"-item"),F({},"".concat(U,"-item-disabled"),fe))},u.createElement("span",{className:"".concat(U,"-item-content")},oe),Pe&&u.createElement(Cd,{className:"".concat(U,"-item-remove"),onMouseDown:Gy,onClick:ve,customizeIcon:h},"×"))},ae=function(Y,oe,fe,Pe,ve,le){var me=function(Ee){Gy(Ee),E(!a)};return u.createElement("span",{onMouseDown:me},x({label:oe,value:Y,disabled:fe,closable:Pe,onClose:ve,isMaxTag:!!le}))},ce=function(Y){var oe=Y.disabled,fe=Y.label,Pe=Y.value,ve=!d&&!oe,le=fe;if(typeof p=="number"&&(typeof fe=="string"||typeof fe=="number")){var me=String(le);me.length>p&&(le="".concat(me.slice(0,p),"..."))}var se=function(Ne){Ne&&Ne.stopPropagation(),R(Y)};return typeof x=="function"?ae(Pe,le,oe,ve,se):Q(Y,le,oe,ve,se)},ne=function(Y){var oe=typeof w=="function"?w(Y):w;return typeof x=="function"?ae(void 0,oe,!1,!1,void 0,!0):Q({title:oe},oe,!1)},X=u.createElement("div",{className:"".concat(U,"-search"),style:{width:$},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},u.createElement(tx,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:y,editable:ee,activeDescendantId:b,value:G,onKeyDown:A,onMouseDown:M,onChange:O,onPaste:_,onCompositionStart:D,onCompositionEnd:I,tabIndex:S,attrs:ea(t,!0)}),u.createElement("span",{ref:V,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},G," ")),te=u.createElement(to,{prefixCls:"".concat(U,"-overflow"),data:o,renderItem:ce,renderRest:ne,suffix:X,itemKey:A4,maxCount:v});return u.createElement(u.Fragment,null,te,!o.length&&!G&&u.createElement("span",{className:"".concat(U,"-placeholder")},c))},D4=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,y=t.tabIndex,b=t.showSearch,S=t.searchValue,h=t.activeValue,v=t.maxLength,p=t.onInputKeyDown,C=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,R=t.onInputCompositionEnd,O=t.title,_=u.useState(!1),A=W(_,2),M=A[0],D=A[1],I=d==="combobox",V=I||b,j=m[0],P=S||"";I&&h&&!M&&(P=h),u.useEffect(function(){I&&D(!1)},[I,h]);var $=d!=="combobox"&&!f&&!b?!1:!!P,L=O===void 0?rx(j):O,N=u.useMemo(function(){return j?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:$?{visibility:"hidden"}:void 0},g)},[j,$,g,r]);return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(tx,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:V,activeDescendantId:c,value:P,onKeyDown:p,onMouseDown:C,onChange:function(k){D(!0),w(k)},onPaste:x,onCompositionStart:E,onCompositionEnd:R,tabIndex:y,attrs:ea(t,!0),maxLength:I?v:void 0})),!I&&j?u.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:$?{visibility:"hidden"}:void 0},j.label):null,N)},F4=function(t,n){var r=u.useRef(null),o=u.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,m=t.onSearch,g=t.onSearchSubmit,y=t.onToggleOpen,b=t.onInputKeyDown,S=t.domRef;u.useImperativeHandle(n,function(){return{focus:function($){r.current.focus($)},blur:function(){r.current.blur()}}});var h=YE(0),v=W(h,2),p=v[0],C=v[1],w=function($){var L=$.which;(L===re.UP||L===re.DOWN)&&$.preventDefault(),b&&b($),L===re.ENTER&&l==="tags"&&!o.current&&!i&&(g==null||g($.target.value)),h4(L)&&y(!0)},x=function(){C(!0)},E=u.useRef(null),R=function($){m($,!0,o.current)!==!1&&y(!0)},O=function(){o.current=!0},_=function($){o.current=!1,l!=="combobox"&&R($.target.value)},A=function($){var L=$.target.value;if(c&&E.current&&/[\r\n]/.test(E.current)){var N=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(N,E.current)}E.current=null,R(L)},M=function($){var L=$.clipboardData,N=L==null?void 0:L.getData("text");E.current=N||""},D=function($){var L=$.target;if(L!==r.current){var N=document.body.style.msTouchAction!==void 0;N?setTimeout(function(){r.current.focus()}):r.current.focus()}},I=function($){var L=p();$.target!==r.current&&!L&&!(l==="combobox"&&d)&&$.preventDefault(),(l!=="combobox"&&(!s||!L)||!i)&&(i&&f!==!1&&m("",!0,!1),y())},V={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:A,onInputPaste:M,onInputCompositionStart:O,onInputCompositionEnd:_},j=l==="multiple"||l==="tags"?u.createElement(j4,be({},t,V)):u.createElement(D4,be({},t,V));return u.createElement("div",{ref:S,className:"".concat(a,"-selector"),onClick:D,onMouseDown:I},j)},z4=u.forwardRef(F4);function B4(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,s=o.x,c=s===void 0?0:s,d=o.y,f=d===void 0?0:d,m=u.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],S=y[0],h=y[1],v=b[0],p=b[1];S===v||!["t","b"].includes(S)?g.top=f:S==="t"?g.top=0:g.bottom=0,h===p||!["l","r"].includes(h)?g.left=c:h==="l"?g.left=0:g.right=0}return u.createElement("div",{ref:m,className:q("".concat(t,"-arrow"),i),style:g},l)}function k4(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?u.createElement(wo,be({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return u.createElement("div",{style:{zIndex:r},className:q("".concat(t,"-mask"),l)})}):null}var H4=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),V4=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,y=e.arrowPos,b=e.align,S=e.motion,h=e.maskMotion,v=e.forceRender,p=e.getPopupContainer,C=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,_=e.ready,A=e.offsetX,M=e.offsetY,D=e.offsetR,I=e.offsetB,V=e.onAlign,j=e.onPrepare,P=e.stretch,$=e.targetWidth,L=e.targetHeight,N=typeof n=="function"?n():n,T=s||c,k=(p==null?void 0:p.length)>0,H=u.useState(!p||!k),U=W(H,2),G=U[0],ee=U[1];if(zt(function(){!G&&k&&i&&ee(!0)},[G,k,i]),!G)return null;var Q="auto",ae={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(_||!s){var ce,ne=b.points,X=b.dynamicInset||((ce=b._experimental)===null||ce===void 0?void 0:ce.dynamicInset),te=X&&ne[0][1]==="r",ie=X&&ne[0][0]==="b";te?(ae.right=D,ae.left=Q):(ae.left=A,ae.right=Q),ie?(ae.bottom=I,ae.top=Q):(ae.top=M,ae.bottom=Q)}var Y={};return P&&(P.includes("height")&&L?Y.height=L:P.includes("minHeight")&&L&&(Y.minHeight=L),P.includes("width")&&$?Y.width=$:P.includes("minWidth")&&$&&(Y.minWidth=$)),s||(Y.pointerEvents="none"),u.createElement(w,{open:v||T,getContainer:p&&function(){return p(i)},autoDestroy:C},u.createElement(k4,{prefixCls:o,open:s,zIndex:x,mask:m,motion:h}),u.createElement(Br,{onResize:V,disabled:!s},function(oe){return u.createElement(wo,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:j,onEnterPrepare:j,visible:s,onVisibleChanged:function(Pe){var ve;S==null||(ve=S.onVisibleChanged)===null||ve===void 0||ve.call(S,Pe),l(Pe)}}),function(fe,Pe){var ve=fe.className,le=fe.style,me=q(o,ve,r);return u.createElement("div",{ref:Gr(oe,t,Pe),className:me,style:z(z(z(z({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ae),Y),le),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:E,onMouseLeave:R,onPointerEnter:O,onClick:f},g&&u.createElement(B4,{prefixCls:o,arrow:g,arrowPos:y,align:b}),u.createElement(H4,{cache:!s&&!d},N))})}))}),W4=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=aa(n),a=u.useCallback(function(l){ag(t,r?r(l):l)},[r]),i=Ba(a,n.ref);return o?u.cloneElement(n,{ref:i}):n}),Ky=u.createContext(null);function qy(e){return e?Array.isArray(e)?e:[e]:[]}function U4(e,t,n,r){return u.useMemo(function(){var o=qy(n??t),a=qy(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function G4(){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 K4(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var l,s=a[i];if(G4((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function Qy(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function As(e){return e.ownerDocument.defaultView}function jv(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=As(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,l=o.overflow;[a,i,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function fl(e){return hs(parseFloat(e),0)}function Xy(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=As(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,S=fl(l),h=fl(s),v=fl(c),p=fl(d),C=hs(Math.round(f.width/y*1e3)/1e3),w=hs(Math.round(f.height/m*1e3)/1e3),x=(y-b-v-p)*C,E=(m-g-S-h)*w,R=S*w,O=h*w,_=v*C,A=p*C,M=0,D=0;if(a==="clip"){var I=fl(i);M=I*C,D=I*w}var V=f.x+_-M,j=f.y+R-D,P=V+f.width+2*M-_-A-x,$=j+f.height+2*D-R-O-E;n.left=Math.max(n.left,V),n.top=Math.max(n.top,j),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,$)}}),n}function Yy(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 Jy(e,t){var n=t||[],r=W(n,2),o=r[0],a=r[1];return[Yy(e.width,o),Yy(e.height,a)]}function Zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Za(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Po(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function q4(e,t,n,r,o,a,i){var l=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=W(l,2),c=s[0],d=s[1],f=u.useRef(0),m=u.useMemo(function(){return t?jv(t):[]},[t]),g=u.useRef({}),y=function(){g.current={}};e||y();var b=nn(function(){if(t&&n&&e){let mn=function(Ir,sa){var Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,Ka=N.x+Ir,el=N.y+sa,tl=Ka+ce,Bs=el+ae,Md=Math.max(Ka,Ga.left),Nd=Math.max(el,Ga.top),Ld=Math.min(tl,Ga.right),Ad=Math.min(Bs,Ga.bottom);return Math.max(0,(Ld-Md)*(Ad-Nd))},$o=function(){gt=N.y+ze,Ge=gt+ae,Re=N.x+Ze,Ue=Re+ce};var v,p,C=t,w=C.ownerDocument,x=As(C),E=x.getComputedStyle(C),R=E.width,O=E.height,_=E.position,A=C.style.left,M=C.style.top,D=C.style.right,I=C.style.bottom,V=C.style.overflow,j=z(z({},o[r]),a),P=w.createElement("div");(v=C.parentElement)===null||v===void 0||v.appendChild(P),P.style.left="".concat(C.offsetLeft,"px"),P.style.top="".concat(C.offsetTop,"px"),P.style.position=_,P.style.height="".concat(C.offsetHeight,"px"),P.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var $;if(Array.isArray(n))$={x:n[0],y:n[1],width:0,height:0};else{var L=n.getBoundingClientRect();$={x:L.x,y:L.y,width:L.width,height:L.height}}var N=C.getBoundingClientRect(),T=w.documentElement,k=T.clientWidth,H=T.clientHeight,U=T.scrollWidth,G=T.scrollHeight,ee=T.scrollTop,Q=T.scrollLeft,ae=N.height,ce=N.width,ne=$.height,X=$.width,te={left:0,top:0,right:k,bottom:H},ie={left:-Q,top:-ee,right:U-Q,bottom:G-ee},Y=j.htmlRegion,oe="visible",fe="visibleFirst";Y!=="scroll"&&Y!==fe&&(Y=oe);var Pe=Y===fe,ve=Xy(ie,m),le=Xy(te,m),me=Y===oe?le:ve,se=Pe?le:me;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Ee=C.getBoundingClientRect();C.style.left=A,C.style.top=M,C.style.right=D,C.style.bottom=I,C.style.overflow=V,(p=C.parentElement)===null||p===void 0||p.removeChild(P);var Ne=hs(Math.round(ce/parseFloat(R)*1e3)/1e3),Se=hs(Math.round(ae/parseFloat(O)*1e3)/1e3);if(Ne===0||Se===0||as(n)&&!Cg(n))return;var De=j.offset,pe=j.targetOffset,ot=Jy(N,De),Be=W(ot,2),xe=Be[0],Ce=Be[1],Ve=Jy($,pe),ke=W(Ve,2),tt=ke[0],vt=ke[1];$.x-=tt,$.y-=vt;var dt=j.points||[],Qe=W(dt,2),st=Qe[0],ut=Qe[1],Lt=Zy(ut),bt=Zy(st),Et=Za($,Lt),Dt=Za(N,bt),St=z({},j),Ze=Et.x-Dt.x+xe,ze=Et.y-Dt.y+Ce,He=mn(Ze,ze),Le=mn(Ze,ze,le),ge=Za($,["t","l"]),Ye=Za(N,["t","l"]),nt=Za($,["b","r"]),de=Za(N,["b","r"]),we=j.overflow||{},he=we.adjustX,Ie=we.adjustY,We=we.shiftX,et=we.shiftY,Pt=function(sa){return typeof sa=="boolean"?sa:sa>=0},gt,Ge,Re,Ue;$o();var xt=Pt(Ie),Ct=bt[0]===Lt[0];if(xt&&bt[0]==="t"&&(Ge>se.bottom||g.current.bt)){var _t=ze;Ct?_t-=ae-ne:_t=ge.y-de.y-Ce;var Ht=mn(Ze,_t),$e=mn(Ze,_t,le);Ht>He||Ht===He&&(!Pe||$e>=Le)?(g.current.bt=!0,ze=_t,Ce=-Ce,St.points=[Po(bt,0),Po(Lt,0)]):g.current.bt=!1}if(xt&&bt[0]==="b"&&(gt<se.top||g.current.tb)){var Oe=ze;Ct?Oe+=ae-ne:Oe=nt.y-Ye.y-Ce;var Me=mn(Ze,Oe),It=mn(Ze,Oe,le);Me>He||Me===He&&(!Pe||It>=Le)?(g.current.tb=!0,ze=Oe,Ce=-Ce,St.points=[Po(bt,0),Po(Lt,0)]):g.current.tb=!1}var an=Pt(he),fr=bt[1]===Lt[1];if(an&&bt[1]==="l"&&(Ue>se.right||g.current.rl)){var Zt=Ze;fr?Zt-=ce-X:Zt=ge.x-de.x-xe;var Hn=mn(Zt,ze),mr=mn(Zt,ze,le);Hn>He||Hn===He&&(!Pe||mr>=Le)?(g.current.rl=!0,Ze=Zt,xe=-xe,St.points=[Po(bt,1),Po(Lt,1)]):g.current.rl=!1}if(an&&bt[1]==="r"&&(Re<se.left||g.current.lr)){var Vn=Ze;fr?Vn+=ce-X:Vn=nt.x-Ye.x-xe;var Jn=mn(Vn,ze),xo=mn(Vn,ze,le);Jn>He||Jn===He&&(!Pe||xo>=Le)?(g.current.lr=!0,Ze=Vn,xe=-xe,St.points=[Po(bt,1),Po(Lt,1)]):g.current.lr=!1}$o();var An=We===!0?0:We;typeof An=="number"&&(Re<le.left&&(Ze-=Re-le.left-xe,$.x+X<le.left+An&&(Ze+=$.x-le.left+X-An)),Ue>le.right&&(Ze-=Ue-le.right-xe,$.x>le.right-An&&(Ze+=$.x-le.right+An)));var Sn=et===!0?0:et;typeof Sn=="number"&&(gt<le.top&&(ze-=gt-le.top-Ce,$.y+ne<le.top+Sn&&(ze+=$.y-le.top+ne-Sn)),Ge>le.bottom&&(ze-=Ge-le.bottom-Ce,$.y>le.bottom-Sn&&(ze+=$.y-le.bottom+Sn)));var ro=N.x+Ze,Ro=ro+ce,vr=N.y+ze,pr=vr+ae,qr=$.x,gr=qr+X,Xe=$.y,Ke=Xe+ne,en=Math.max(ro,qr),at=Math.min(Ro,gr),Fe=(en+at)/2,Je=Fe-ro,Tt=Math.max(vr,Xe),At=Math.min(pr,Ke),fn=(Tt+At)/2,Wn=fn-vr;i==null||i(t,St);var On=Ee.right-N.x-(Ze+N.width),Un=Ee.bottom-N.y-(ze+N.height);Ne===1&&(Ze=Math.round(Ze),On=Math.round(On)),Se===1&&(ze=Math.round(ze),Un=Math.round(Un));var Ua={ready:!0,offsetX:Ze/Ne,offsetY:ze/Se,offsetR:On/Ne,offsetB:Un/Se,arrowX:Je/Ne,arrowY:Wn/Se,scaleX:Ne,scaleY:Se,align:St};d(Ua)}}),S=function(){f.current+=1;var p=f.current;Promise.resolve().then(function(){f.current===p&&b()})},h=function(){d(function(p){return z(z({},p),{},{ready:!1})})};return zt(h,[r]),zt(function(){e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,S]}function Q4(e,t,n,r,o){zt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=jv(a),s=jv(i),c=As(i),d=new Set([c].concat(ye(l),ye(s)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function X4(e,t,n,r,o,a,i,l){var s=u.useRef(e);s.current=e,u.useEffect(function(){if(t&&r&&(!o||a)){var c=function(g){var y=g.target;s.current&&!i(y)&&l(!1)},d=As(r);d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var f=xc(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,a])}var Y4=["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 J4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rg,t=u.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,S=n.mouseLeaveDelay,h=S===void 0?.1:S,v=n.focusDelay,p=n.blurDelay,C=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,R=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,A=n.popup,M=n.popupClassName,D=n.popupStyle,I=n.popupPlacement,V=n.builtinPlacements,j=V===void 0?{}:V,P=n.popupAlign,$=n.zIndex,L=n.stretch,N=n.getPopupClassNameFromAlign,T=n.fresh,k=n.alignPoint,H=n.onPopupClick,U=n.onPopupAlign,G=n.arrow,ee=n.popupMotion,Q=n.maskMotion,ae=n.popupTransitionName,ce=n.popupAnimation,ne=n.maskTransitionName,X=n.maskAnimation,te=n.className,ie=n.getTriggerDOMNode,Y=it(n,Y4),oe=O||_||!1,fe=u.useState(!1),Pe=W(fe,2),ve=Pe[0],le=Pe[1];zt(function(){le(Og())},[]);var me=u.useRef({}),se=u.useContext(Ky),Ee=u.useMemo(function(){return{registerSubPopup:function(qe,Kt){me.current[qe]=Kt,se==null||se.registerSubPopup(qe,Kt)}}},[se]),Ne=bE(),Se=u.useState(null),De=W(Se,2),pe=De[0],ot=De[1],Be=u.useRef(null),xe=nn(function(Te){Be.current=Te,as(Te)&&pe!==Te&&ot(Te),se==null||se.registerSubPopup(Ne,Te)}),Ce=u.useState(null),Ve=W(Ce,2),ke=Ve[0],tt=Ve[1],vt=u.useRef(null),dt=nn(function(Te){as(Te)&&ke!==Te&&(tt(Te),vt.current=Te)}),Qe=u.Children.only(i),st=(Qe==null?void 0:Qe.props)||{},ut={},Lt=nn(function(Te){var qe,Kt,ln=ke;return(ln==null?void 0:ln.contains(Te))||((qe=xc(ln))===null||qe===void 0?void 0:qe.host)===Te||Te===ln||(pe==null?void 0:pe.contains(Te))||((Kt=xc(pe))===null||Kt===void 0?void 0:Kt.host)===Te||Te===pe||Object.values(me.current).some(function(qt){return(qt==null?void 0:qt.contains(Te))||Te===qt})}),bt=Qy(a,ee,ce,ae),Et=Qy(a,Q,X,ne),Dt=u.useState(m||!1),St=W(Dt,2),Ze=St[0],ze=St[1],He=f??Ze,Le=nn(function(Te){f===void 0&&ze(Te)});zt(function(){ze(f||!1)},[f]);var ge=u.useRef(He);ge.current=He;var Ye=u.useRef([]);Ye.current=[];var nt=nn(function(Te){var qe;Le(Te),((qe=Ye.current[Ye.current.length-1])!==null&&qe!==void 0?qe:He)!==Te&&(Ye.current.push(Te),g==null||g(Te))}),de=u.useRef(),we=function(){clearTimeout(de.current)},he=function(qe){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;we(),Kt===0?nt(qe):de.current=setTimeout(function(){nt(qe)},Kt*1e3)};u.useEffect(function(){return we},[]);var Ie=u.useState(!1),We=W(Ie,2),et=We[0],Pt=We[1];zt(function(Te){(!Te||He)&&Pt(!0)},[He]);var gt=u.useState(null),Ge=W(gt,2),Re=Ge[0],Ue=Ge[1],xt=u.useState([0,0]),Ct=W(xt,2),_t=Ct[0],Ht=Ct[1],$e=function(qe){Ht([qe.clientX,qe.clientY])},Oe=q4(He,pe,k?_t:ke,I,j,P,U),Me=W(Oe,11),It=Me[0],an=Me[1],fr=Me[2],Zt=Me[3],Hn=Me[4],mr=Me[5],Vn=Me[6],Jn=Me[7],xo=Me[8],An=Me[9],Sn=Me[10],ro=U4(ve,s,c,d),Ro=W(ro,2),vr=Ro[0],pr=Ro[1],qr=vr.has("click"),gr=pr.has("click")||pr.has("contextMenu"),Xe=nn(function(){et||Sn()}),Ke=function(){ge.current&&k&&gr&&he(!1)};Q4(He,ke,pe,Xe,Ke),zt(function(){Xe()},[_t,I]),zt(function(){He&&!(j!=null&&j[I])&&Xe()},[JSON.stringify(P)]);var en=u.useMemo(function(){var Te=K4(j,a,An,k);return q(Te,N==null?void 0:N(An))},[An,N,j,a,k]);u.useImperativeHandle(r,function(){return{nativeElement:vt.current,popupElement:Be.current,forceAlign:Xe}});var at=u.useState(0),Fe=W(at,2),Je=Fe[0],Tt=Fe[1],At=u.useState(0),fn=W(At,2),Wn=fn[0],On=fn[1],Un=function(){if(L&&ke){var qe=ke.getBoundingClientRect();Tt(qe.width),On(qe.height)}},Ua=function(){Un(),Xe()},mn=function(qe){Pt(!1),Sn(),y==null||y(qe)},$o=function(){return new Promise(function(qe){Un(),Ue(function(){return qe})})};zt(function(){Re&&(Sn(),Re(),Ue(null))},[Re]);function Ir(Te,qe,Kt,ln){ut[Te]=function(qt){var ks;ln==null||ln(qt),he(qe,Kt);for(var jd=arguments.length,Kg=new Array(jd>1?jd-1:0),Hs=1;Hs<jd;Hs++)Kg[Hs-1]=arguments[Hs];(ks=st[Te])===null||ks===void 0||ks.call.apply(ks,[st,qt].concat(Kg))}}(qr||gr)&&(ut.onClick=function(Te){var qe;ge.current&&gr?he(!1):!ge.current&&qr&&($e(Te),he(!0));for(var Kt=arguments.length,ln=new Array(Kt>1?Kt-1:0),qt=1;qt<Kt;qt++)ln[qt-1]=arguments[qt];(qe=st.onClick)===null||qe===void 0||qe.call.apply(qe,[st,Te].concat(ln))}),X4(He,gr,ke,pe,C,x,Lt,he);var sa=vr.has("hover"),Ga=pr.has("hover"),Ka,el;sa&&(Ir("onMouseEnter",!0,b,function(Te){$e(Te)}),Ir("onPointerEnter",!0,b,function(Te){$e(Te)}),Ka=function(qe){(He||et)&&pe!==null&&pe!==void 0&&pe.contains(qe.target)&&he(!0,b)},k&&(ut.onMouseMove=function(Te){var qe;(qe=st.onMouseMove)===null||qe===void 0||qe.call(st,Te)})),Ga&&(Ir("onMouseLeave",!1,h),Ir("onPointerLeave",!1,h),el=function(){he(!1,h)}),vr.has("focus")&&Ir("onFocus",!0,v),pr.has("focus")&&Ir("onBlur",!1,p),vr.has("contextMenu")&&(ut.onContextMenu=function(Te){var qe;ge.current&&pr.has("contextMenu")?he(!1):($e(Te),he(!0)),Te.preventDefault();for(var Kt=arguments.length,ln=new Array(Kt>1?Kt-1:0),qt=1;qt<Kt;qt++)ln[qt-1]=arguments[qt];(qe=st.onContextMenu)===null||qe===void 0||qe.call.apply(qe,[st,Te].concat(ln))}),te&&(ut.className=q(st.className,te));var tl=z(z({},st),ut),Bs={},Md=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Md.forEach(function(Te){Y[Te]&&(Bs[Te]=function(){for(var qe,Kt=arguments.length,ln=new Array(Kt),qt=0;qt<Kt;qt++)ln[qt]=arguments[qt];(qe=tl[Te])===null||qe===void 0||qe.call.apply(qe,[tl].concat(ln)),Y[Te].apply(Y,ln)})});var Nd=u.cloneElement(Qe,z(z({},tl),Bs)),Ld={x:mr,y:Vn},Ad=G?z({},G!==!0?G:{}):null;return u.createElement(u.Fragment,null,u.createElement(Br,{disabled:!He,ref:dt,onResize:Ua},u.createElement(W4,{getTriggerDOMNode:ie},Nd)),u.createElement(Ky.Provider,{value:Ee},u.createElement(V4,{portal:e,ref:xe,prefixCls:a,popup:A,className:q(M,en),style:D,target:ke,onMouseEnter:Ka,onMouseLeave:el,onPointerEnter:Ka,zIndex:$,open:He,keepDom:et,fresh:T,onClick:H,mask:C,motion:bt,maskMotion:Et,onVisibleChanged:mn,onPrepare:$o,forceRender:R,autoDestroy:oe,getPopupContainer:E,align:An,arrow:Ad,arrowPos:Ld,ready:It,offsetX:an,offsetY:fr,offsetR:Zt,offsetB:Hn,onAlign:Xe,stretch:L,targetWidth:Je/Jn,targetHeight:Wn/xo})))});return t}const Pg=J4(Rg);var Z4=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],eF=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},tF=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,g=t.placement,y=t.builtinPlacements,b=t.dropdownMatchSelectWidth,S=t.dropdownRender,h=t.dropdownAlign,v=t.getPopupContainer,p=t.empty,C=t.getTriggerDOMNode,w=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=it(t,Z4),R="".concat(r,"-dropdown"),O=i;S&&(O=S(i));var _=u.useMemo(function(){return y||eF(b)},[y,b]),A=l?"".concat(R,"-").concat(l):s,M=typeof b=="number",D=u.useMemo(function(){return M?null:b===!1?"minWidth":"width"},[b,M]),I=c;M&&(I=z(z({},I),{},{width:b}));var V=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=V.current)===null||P===void 0?void 0:P.popupElement}}}),u.createElement(Pg,be({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:R,popupTransitionName:A,popup:u.createElement("div",{onMouseEnter:x},O),ref:V,stretch:D,popupAlign:h,popupVisible:o,getPopupContainer:v,popupClassName:q(d,F({},"".concat(R,"-empty"),p)),popupStyle:I,getTriggerDOMNode:C,onPopupVisibleChange:w}),a)},nF=u.forwardRef(tF);function eb(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Dv(e){return typeof e<"u"&&!Number.isNaN(e)}function ox(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:i||l}}function rF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=ox(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(s in g)){var y=g[l];o.push({key:eb(g,o.length),groupOption:m,data:g,label:g[i],value:y})}else{var b=g[c];b===void 0&&r&&(b=g.label),o.push({key:eb(g,o.length),group:!0,data:g,label:b}),d(g[s],!0)}})}return d(e,!1),o}function Fv(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Nn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var oF=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,c){var d=vw(c),f=d[0],m=d.slice(1);if(!f)return[s];var g=s.split(f);return o=o||g.length>1,g.reduce(function(y,b){return[].concat(ye(y),ye(l(b,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},_g=u.createContext(null);function aF(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,i=o.value;return["number","string"].includes(je(a))?a:i}).join(", ")),n.length>r?", ...":null)}var iF=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],lF=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],zv=function(t){return t==="tags"||t==="multiple"},sF=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,b=e.onClear,S=e.mode,h=e.disabled,v=e.loading,p=e.getInputElement,C=e.getRawInputElement,w=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,R=e.activeValue,O=e.onActiveValueChange,_=e.activeDescendantId,A=e.searchValue,M=e.autoClearSearchValue,D=e.onSearch,I=e.onSearchSplit,V=e.tokenSeparators,j=e.allowClear,P=e.suffixIcon,$=e.clearIcon,L=e.OptionList,N=e.animation,T=e.transitionName,k=e.dropdownStyle,H=e.dropdownClassName,U=e.dropdownMatchSelectWidth,G=e.dropdownRender,ee=e.dropdownAlign,Q=e.placement,ae=e.builtinPlacements,ce=e.getPopupContainer,ne=e.showAction,X=ne===void 0?[]:ne,te=e.onFocus,ie=e.onBlur,Y=e.onKeyUp,oe=e.onKeyDown,fe=e.onMouseDown,Pe=it(e,iF),ve=zv(S),le=(i!==void 0?i:ve)||S==="combobox",me=z({},Pe);lF.forEach(function(Xe){delete me[Xe]}),c==null||c.forEach(function(Xe){delete me[Xe]});var se=u.useState(!1),Ee=W(se,2),Ne=Ee[0],Se=Ee[1];u.useEffect(function(){Se(Og())},[]);var De=u.useRef(null),pe=u.useRef(null),ot=u.useRef(null),Be=u.useRef(null),xe=u.useRef(null),Ce=u.useRef(!1),Ve=p4(),ke=W(Ve,3),tt=ke[0],vt=ke[1],dt=ke[2];u.useImperativeHandle(t,function(){var Xe,Ke;return{focus:(Xe=Be.current)===null||Xe===void 0?void 0:Xe.focus,blur:(Ke=Be.current)===null||Ke===void 0?void 0:Ke.blur,scrollTo:function(at){var Fe;return(Fe=xe.current)===null||Fe===void 0?void 0:Fe.scrollTo(at)},nativeElement:De.current||pe.current}});var Qe=u.useMemo(function(){var Xe;if(S!=="combobox")return A;var Ke=(Xe=d[0])===null||Xe===void 0?void 0:Xe.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[A,S,d]),st=S==="combobox"&&typeof p=="function"&&p()||null,ut=typeof C=="function"&&C(),Lt=Ba(pe,ut==null||(n=ut.props)===null||n===void 0?void 0:n.ref),bt=u.useState(!1),Et=W(bt,2),Dt=Et[0],St=Et[1];zt(function(){St(!0)},[]);var Ze=ir(!1,{defaultValue:x,value:w}),ze=W(Ze,2),He=ze[0],Le=ze[1],ge=Dt?He:!1,Ye=!y&&m;(h||Ye&&ge&&S==="combobox")&&(ge=!1);var nt=Ye?!1:ge,de=u.useCallback(function(Xe){var Ke=Xe!==void 0?Xe:!ge;h||(Le(Ke),ge!==Ke&&(E==null||E(Ke)))},[h,ge,Le,E]),we=u.useMemo(function(){return(V||[]).some(function(Xe){return[`
`,`\r
`].includes(Xe)})},[V]),he=u.useContext(_g)||{},Ie=he.maxCount,We=he.rawValues,et=function(Ke,en,at){if(!(ve&&Dv(Ie)&&(We==null?void 0:We.size)>=Ie)){var Fe=!0,Je=Ke;O==null||O(null);var Tt=oF(Ke,V,Dv(Ie)?Ie-We.size:void 0),At=at?null:Tt;return S!=="combobox"&&At&&(Je="",I==null||I(At),de(!1),Fe=!1),D&&Qe!==Je&&D(Je,{source:en?"typing":"effect"}),Fe}},Pt=function(Ke){!Ke||!Ke.trim()||D(Ke,{source:"submit"})};u.useEffect(function(){!ge&&!ve&&S!=="combobox"&&et("",!1,!1)},[ge]),u.useEffect(function(){He&&h&&Le(!1),h&&!Ce.current&&vt(!1)},[h]);var gt=YE(),Ge=W(gt,2),Re=Ge[0],Ue=Ge[1],xt=function(Ke){var en=Re(),at=Ke.which;if(at===re.ENTER&&(S!=="combobox"&&Ke.preventDefault(),ge||de(!0)),Ue(!!Qe),at===re.BACKSPACE&&!en&&ve&&!Qe&&d.length){for(var Fe=ye(d),Je=null,Tt=Fe.length-1;Tt>=0;Tt-=1){var At=Fe[Tt];if(!At.disabled){Fe.splice(Tt,1),Je=At;break}}Je&&f(Fe,{type:"remove",values:[Je]})}for(var fn=arguments.length,Wn=new Array(fn>1?fn-1:0),On=1;On<fn;On++)Wn[On-1]=arguments[On];if(ge){var Un;(Un=xe.current)===null||Un===void 0||Un.onKeyDown.apply(Un,[Ke].concat(Wn))}oe==null||oe.apply(void 0,[Ke].concat(Wn))},Ct=function(Ke){for(var en=arguments.length,at=new Array(en>1?en-1:0),Fe=1;Fe<en;Fe++)at[Fe-1]=arguments[Fe];if(ge){var Je;(Je=xe.current)===null||Je===void 0||Je.onKeyUp.apply(Je,[Ke].concat(at))}Y==null||Y.apply(void 0,[Ke].concat(at))},_t=function(Ke){var en=d.filter(function(at){return at!==Ke});f(en,{type:"remove",values:[Ke]})},Ht=u.useRef(!1),$e=function(){vt(!0),h||(te&&!Ht.current&&te.apply(void 0,arguments),X.includes("focus")&&de(!0)),Ht.current=!0},Oe=function(){Ce.current=!0,vt(!1,function(){Ht.current=!1,Ce.current=!1,de(!1)}),!h&&(Qe&&(S==="tags"?D(Qe,{source:"submit"}):S==="multiple"&&D("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},Me=[];u.useEffect(function(){return function(){Me.forEach(function(Xe){return clearTimeout(Xe)}),Me.splice(0,Me.length)}},[]);var It=function(Ke){var en,at=Ke.target,Fe=(en=ot.current)===null||en===void 0?void 0:en.getPopupElement();if(Fe&&Fe.contains(at)){var Je=setTimeout(function(){var Wn=Me.indexOf(Je);if(Wn!==-1&&Me.splice(Wn,1),dt(),!Ne&&!Fe.contains(document.activeElement)){var On;(On=Be.current)===null||On===void 0||On.focus()}});Me.push(Je)}for(var Tt=arguments.length,At=new Array(Tt>1?Tt-1:0),fn=1;fn<Tt;fn++)At[fn-1]=arguments[fn];fe==null||fe.apply(void 0,[Ke].concat(At))},an=u.useState({}),fr=W(an,2),Zt=fr[1];function Hn(){Zt({})}var mr;ut&&(mr=function(Ke){de(Ke)}),g4(function(){var Xe;return[De.current,(Xe=ot.current)===null||Xe===void 0?void 0:Xe.getPopupElement()]},nt,de,!!ut);var Vn=u.useMemo(function(){return z(z({},e),{},{notFoundContent:y,open:ge,triggerOpen:nt,id:r,showSearch:le,multiple:ve,toggleOpen:de})},[e,y,nt,ge,r,le,ve,de]),Jn=!!P||v,xo;Jn&&(xo=u.createElement(Cd,{className:q("".concat(o,"-arrow"),F({},"".concat(o,"-arrow-loading"),v)),customizeIcon:P,customizeIconProps:{loading:v,searchValue:Qe,open:ge,focused:tt,showSearch:le}}));var An=function(){var Ke;b==null||b(),(Ke=Be.current)===null||Ke===void 0||Ke.focus(),f([],{type:"clear",values:d}),et("",!1,!1)},Sn=m4(o,An,d,j,$,h,Qe,S),ro=Sn.allowClear,Ro=Sn.clearIcon,vr=u.createElement(L,{ref:xe}),pr=q(o,a,F(F(F(F(F(F(F(F(F(F({},"".concat(o,"-focused"),tt),"".concat(o,"-multiple"),ve),"".concat(o,"-single"),!ve),"".concat(o,"-allow-clear"),j),"".concat(o,"-show-arrow"),Jn),"".concat(o,"-disabled"),h),"".concat(o,"-loading"),v),"".concat(o,"-open"),ge),"".concat(o,"-customize-input"),st),"".concat(o,"-show-search"),le)),qr=u.createElement(nF,{ref:ot,disabled:h,prefixCls:o,visible:nt,popupElement:vr,animation:N,transitionName:T,dropdownStyle:k,dropdownClassName:H,direction:s,dropdownMatchSelectWidth:U,dropdownRender:G,dropdownAlign:ee,placement:Q,builtinPlacements:ae,getPopupContainer:ce,empty:m,getTriggerDOMNode:function(Ke){return pe.current||Ke},onPopupVisibleChange:mr,onPopupMouseEnter:Hn},ut?u.cloneElement(ut,{ref:Lt}):u.createElement(z4,be({},e,{domRef:pe,prefixCls:o,inputElement:st,ref:Be,id:r,showSearch:le,autoClearSearchValue:M,mode:S,activeDescendantId:_,tagRender:l,values:d,open:ge,onToggleOpen:de,activeValue:R,searchValue:Qe,onSearch:et,onSearchSubmit:Pt,onRemove:_t,tokenWithEnter:we}))),gr;return ut?gr=qr:gr=u.createElement("div",be({className:pr},me,{ref:De,onMouseDown:It,onKeyDown:xt,onKeyUp:Ct,onFocus:$e,onBlur:Oe}),u.createElement(aF,{visible:tt&&!ge,values:d}),qr,xo,ro&&Ro),u.createElement(XE.Provider,{value:Vn},gr)}),Ig=function(){return null};Ig.isSelectOptGroup=!0;var Tg=function(){return null};Tg.isSelectOption=!0;var ax=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=z(z({},m),{},F(F(F(F(F({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(Br,{onResize:function(y){var b=y.offsetHeight;b&&l&&l()}},u.createElement("div",be({style:m,className:q(F({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});ax.displayName="Filler";function uF(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function cF(e,t,n,r,o,a,i,l){var s=l.getKey;return e.slice(t,n+1).map(function(c,d){var f=t+d,m=i(c,f,{style:{width:r},offsetX:o}),g=s(c);return u.createElement(uF,{key:g,setRef:function(b){return a(c,b)}},m)})}function dF(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var l={__EMPTY_ITEM__:!0};function s(y){return y!==void 0?n(y):l}for(var c=null,d=Math.abs(r-o)!==1,f=0;f<i.length;f+=1){var m=s(a[f]),g=s(i[f]);if(m!==g){c=f,d=d||m!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:d}}function fF(e,t,n){var r=u.useState(e),o=W(r,2),a=o[0],i=o[1],l=u.useState(null),s=W(l,2),c=s[0],d=s[1];return u.useEffect(function(){var f=dF(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[c]}var tb=(typeof navigator>"u"?"undefined":je(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ix=function(e,t,n,r){var o=u.useRef(!1),a=u.useRef(null);function i(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=u.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=s?c<0&&l.current.left||c>0&&l.current.right:c<0&&l.current.top||c>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&i(),!o.current&&f}};function mF(e,t,n,r,o,a,i){var l=u.useRef(0),s=u.useRef(null),c=u.useRef(null),d=u.useRef(!1),f=ix(t,n,r,o);function m(v,p){Rt.cancel(s.current),l.current+=p,c.current=p,!f(!1,p)&&(tb||v.preventDefault(),s.current=Rt(function(){var C=d.current?10:1;i(l.current*C),l.current=0}))}function g(v,p){i(p,!0),tb||v.preventDefault()}var y=u.useRef(null),b=u.useRef(null);function S(v){if(e){Rt.cancel(b.current),b.current=Rt(function(){y.current=null},2);var p=v.deltaX,C=v.deltaY,w=v.shiftKey,x=p,E=C;(y.current==="sx"||!y.current&&w&&C&&!p)&&(x=C,E=0,y.current="sx");var R=Math.abs(x),O=Math.abs(E);y.current===null&&(y.current=a&&R>O?"x":"y"),y.current==="y"?m(v,E):g(v,x)}}function h(v){e&&(d.current=v.detail===c.current)}return[S,h]}function vF(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=W(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var y=e.length,b=l.length;b<y;b+=1){var S,h=e[b],v=t(h);i.set(v,b);var p=(S=n.get(v))!==null&&S!==void 0?S:r;if(l[b]=(l[b-1]||0)+p,v===d&&(m=b),v===f&&(g=b),m!==void 0&&g!==void 0)break}return{top:l[m-1]||0,bottom:l[g]}};return s}var pF=function(){function e(){yn(this,e),F(this,"maps",void 0),F(this,"id",0),this.maps=Object.create(null)}return bn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function gF(e,t,n){var r=u.useState(0),o=W(r,2),a=o[0],i=o[1],l=u.useRef(new Map),s=u.useRef(new pF),c=u.useRef();function d(){Rt.cancel(c.current)}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var y=function(){l.current.forEach(function(S,h){if(S&&S.offsetParent){var v=Al(S),p=v.offsetHeight;s.current.get(h)!==p&&s.current.set(h,v.offsetHeight)}}),i(function(S){return S+1})};g?y():c.current=Rt(y)}function m(g,y){var b=e(g);l.current.get(b),y?(l.current.set(b,y),f()):l.current.delete(b)}return u.useEffect(function(){return d},[]),[m,f,s.current,a]}var nb=14/15;function hF(e,t,n){var r=u.useRef(!1),o=u.useRef(0),a=u.useRef(0),i=u.useRef(null),l=u.useRef(null),s,c=function(g){if(r.current){var y=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),S=o.current-y,h=a.current-b,v=Math.abs(S)>Math.abs(h);v?o.current=y:a.current=b,n(v,v?S:h)&&g.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){v?S*=nb:h*=nb;var p=Math.floor(v?S:h);(!n(v,p,!0)||Math.abs(p)<=.1)&&clearInterval(l.current)},16)}},d=function(){r.current=!1,s()},f=function(g){s(),g.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(g.touches[0].pageX),a.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",c,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",d))},zt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}var yF=10;function bF(e,t,n,r,o,a,i,l){var s=u.useRef(),c=u.useState(null),d=W(c,2),f=d[0],m=d[1];return zt(function(){if(f&&f.times<yF){if(!e.current){m(function(L){return z({},L)});return}a();var g=f.targetAlign,y=f.originAlign,b=f.index,S=f.offset,h=e.current.clientHeight,v=!1,p=g,C=null;if(h){for(var w=g||y,x=0,E=0,R=0,O=Math.min(t.length-1,b),_=0;_<=O;_+=1){var A=o(t[_]);E=x;var M=n.get(A);R=E+(M===void 0?r:M),x=R}for(var D=w==="top"?S:h-S,I=O;I>=0;I-=1){var V=o(t[I]),j=n.get(V);if(j===void 0){v=!0;break}if(D-=j,D<=0)break}switch(w){case"top":C=E-S;break;case"bottom":C=R-h+S;break;default:{var P=e.current.scrollTop,$=P+h;E<P?p="top":R>$&&(p="bottom")}}C!==null&&i(C),C!==f.lastTop&&(v=!0)}v&&m(z(z({},f),{},{times:f.times+1,targetAlign:p,lastTop:C}))}},[f,e.current]),function(g){if(g==null){l();return}if(Rt.cancel(s.current),typeof g=="number")i(g);else if(g&&je(g)==="object"){var y,b=g.align;"index"in g?y=g.index:y=t.findIndex(function(v){return o(v)===g.key});var S=g.offset,h=S===void 0?0:S;m({times:0,index:y,offset:h,originAlign:b})}}}function rb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var ob=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,i=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,g=e.thumbStyle,y=u.useState(!1),b=W(y,2),S=b[0],h=b[1],v=u.useState(null),p=W(v,2),C=p[0],w=p[1],x=u.useState(null),E=W(x,2),R=E[0],O=E[1],_=!r,A=u.useRef(),M=u.useRef(),D=u.useState(!1),I=W(D,2),V=I[0],j=I[1],P=u.useRef(),$=function(){clearTimeout(P.current),j(!0),P.current=setTimeout(function(){j(!1)},3e3)},L=a-f||0,N=f-d||0,T=u.useMemo(function(){if(o===0||L===0)return 0;var ne=o/L;return ne*N},[o,L,N]),k=function(X){X.stopPropagation(),X.preventDefault()},H=u.useRef({top:T,dragging:S,pageY:C,startTop:R});H.current={top:T,dragging:S,pageY:C,startTop:R};var U=function(X){h(!0),w(rb(X,c)),O(H.current.top),i(),X.stopPropagation(),X.preventDefault()};u.useEffect(function(){var ne=function(Y){Y.preventDefault()},X=A.current,te=M.current;return X.addEventListener("touchstart",ne,{passive:!1}),te.addEventListener("touchstart",U,{passive:!1}),function(){X.removeEventListener("touchstart",ne),te.removeEventListener("touchstart",U)}},[]);var G=u.useRef();G.current=L;var ee=u.useRef();ee.current=N,u.useEffect(function(){if(S){var ne,X=function(Y){var oe=H.current,fe=oe.dragging,Pe=oe.pageY,ve=oe.startTop;Rt.cancel(ne);var le=A.current.getBoundingClientRect(),me=f/(c?le.width:le.height);if(fe){var se=(rb(Y,c)-Pe)*me,Ee=ve;!_&&c?Ee-=se:Ee+=se;var Ne=G.current,Se=ee.current,De=Se?Ee/Se:0,pe=Math.ceil(De*Ne);pe=Math.max(pe,0),pe=Math.min(pe,Ne),ne=Rt(function(){s(pe,c)})}},te=function(){h(!1),l()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",te,{passive:!0}),window.addEventListener("touchend",te,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),Rt.cancel(ne)}}},[S]),u.useEffect(function(){return $(),function(){clearTimeout(P.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:$}});var Q="".concat(n,"-scrollbar"),ae={position:"absolute",visibility:V?null:"hidden"},ce={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(ae.height=8,ae.left=0,ae.right=0,ae.bottom=0,ce.height="100%",ce.width=d,_?ce.left=T:ce.right=T):(ae.width=8,ae.top=0,ae.bottom=0,_?ae.right=0:ae.left=0,ce.width="100%",ce.height=d,ce.top=T),u.createElement("div",{ref:A,className:q(Q,F(F(F({},"".concat(Q,"-horizontal"),c),"".concat(Q,"-vertical"),!c),"".concat(Q,"-visible"),V)),style:z(z({},ae),m),onMouseDown:k,onMouseMove:$},u.createElement("div",{ref:M,className:q("".concat(Q,"-thumb"),F({},"".concat(Q,"-thumb-moving"),S)),style:z(z({},ce),g),onMouseDown:U}))}),SF=20;function ab(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,SF),Math.floor(n)}var CF=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],wF=[],EF={overflowY:"auto",overflowAnchor:"none"};function xF(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,l=e.fullHeight,s=l===void 0?!0:l,c=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,y=e.direction,b=e.scrollWidth,S=e.component,h=S===void 0?"div":S,v=e.onScroll,p=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,R=it(e,CF),O=u.useCallback(function($e){return typeof m=="function"?m($e):$e==null?void 0:$e[m]},[m]),_=gF(O),A=W(_,4),M=A[0],D=A[1],I=A[2],V=A[3],j=!!(g!==!1&&a&&i),P=u.useMemo(function(){return Object.values(I.maps).reduce(function($e,Oe){return $e+Oe},0)},[I.id,I.maps]),$=j&&d&&(Math.max(i*d.length,P)>a||!!b),L=y==="rtl",N=q(r,F({},"".concat(r,"-rtl"),L),o),T=d||wF,k=u.useRef(),H=u.useRef(),U=u.useRef(),G=u.useState(0),ee=W(G,2),Q=ee[0],ae=ee[1],ce=u.useState(0),ne=W(ce,2),X=ne[0],te=ne[1],ie=u.useState(!1),Y=W(ie,2),oe=Y[0],fe=Y[1],Pe=function(){fe(!0)},ve=function(){fe(!1)},le={getKey:O};function me($e){ae(function(Oe){var Me;typeof $e=="function"?Me=$e(Oe):Me=$e;var It=Dt(Me);return k.current.scrollTop=It,It})}var se=u.useRef({start:0,end:T.length}),Ee=u.useRef(),Ne=fF(T,O),Se=W(Ne,1),De=Se[0];Ee.current=De;var pe=u.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!$){var $e;return{scrollHeight:(($e=H.current)===null||$e===void 0?void 0:$e.offsetHeight)||0,start:0,end:T.length-1,offset:void 0}}for(var Oe=0,Me,It,an,fr=T.length,Zt=0;Zt<fr;Zt+=1){var Hn=T[Zt],mr=O(Hn),Vn=I.get(mr),Jn=Oe+(Vn===void 0?i:Vn);Jn>=Q&&Me===void 0&&(Me=Zt,It=Oe),Jn>Q+a&&an===void 0&&(an=Zt),Oe=Jn}return Me===void 0&&(Me=0,It=0,an=Math.ceil(a/i)),an===void 0&&(an=T.length-1),an=Math.min(an+1,T.length-1),{scrollHeight:Oe,start:Me,end:an,offset:It}},[$,j,Q,T,V,a]),ot=pe.scrollHeight,Be=pe.start,xe=pe.end,Ce=pe.offset;se.current.start=Be,se.current.end=xe;var Ve=u.useState({width:0,height:a}),ke=W(Ve,2),tt=ke[0],vt=ke[1],dt=function(Oe){vt({width:Oe.offsetWidth,height:Oe.offsetHeight})},Qe=u.useRef(),st=u.useRef(),ut=u.useMemo(function(){return ab(tt.width,b)},[tt.width,b]),Lt=u.useMemo(function(){return ab(tt.height,ot)},[tt.height,ot]),bt=ot-a,Et=u.useRef(bt);Et.current=bt;function Dt($e){var Oe=$e;return Number.isNaN(Et.current)||(Oe=Math.min(Oe,Et.current)),Oe=Math.max(Oe,0),Oe}var St=Q<=0,Ze=Q>=bt,ze=X<=0,He=X>=b,Le=ix(St,Ze,ze,He),ge=function(){return{x:L?-X:X,y:Q}},Ye=u.useRef(ge()),nt=nn(function($e){if(p){var Oe=z(z({},ge()),$e);(Ye.current.x!==Oe.x||Ye.current.y!==Oe.y)&&(p(Oe),Ye.current=Oe)}});function de($e,Oe){var Me=$e;Oe?(Jo.flushSync(function(){te(Me)}),nt()):me(Me)}function we($e){var Oe=$e.currentTarget.scrollTop;Oe!==Q&&me(Oe),v==null||v($e),nt()}var he=function(Oe){var Me=Oe,It=b?b-tt.width:0;return Me=Math.max(Me,0),Me=Math.min(Me,It),Me},Ie=nn(function($e,Oe){Oe?(Jo.flushSync(function(){te(function(Me){var It=Me+(L?-$e:$e);return he(It)})}),nt()):me(function(Me){var It=Me+$e;return It})}),We=mF(j,St,Ze,ze,He,!!b,Ie),et=W(We,2),Pt=et[0],gt=et[1];hF(j,k,function($e,Oe,Me){return Le($e,Oe,Me)?!1:(Pt({preventDefault:function(){},deltaX:$e?Oe:0,deltaY:$e?0:Oe}),!0)}),zt(function(){function $e(Me){j&&Me.preventDefault()}var Oe=k.current;return Oe.addEventListener("wheel",Pt,{passive:!1}),Oe.addEventListener("DOMMouseScroll",gt,{passive:!0}),Oe.addEventListener("MozMousePixelScroll",$e,{passive:!1}),function(){Oe.removeEventListener("wheel",Pt),Oe.removeEventListener("DOMMouseScroll",gt),Oe.removeEventListener("MozMousePixelScroll",$e)}},[j]),zt(function(){if(b){var $e=he(X);te($e),nt({x:$e})}},[tt.width,b]);var Ge=function(){var Oe,Me;(Oe=Qe.current)===null||Oe===void 0||Oe.delayHidden(),(Me=st.current)===null||Me===void 0||Me.delayHidden()},Re=bF(k,T,I,i,O,function(){return D(!0)},me,Ge);u.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:ge,scrollTo:function(Oe){function Me(It){return It&&je(It)==="object"&&("left"in It||"top"in It)}Me(Oe)?(Oe.left!==void 0&&te(he(Oe.left)),Re(Oe.top)):Re(Oe)}}}),zt(function(){if(C){var $e=T.slice(Be,xe+1);C($e,T)}},[Be,xe,T]);var Ue=vF(T,O,I,i),xt=x==null?void 0:x({start:Be,end:xe,virtual:$,offsetX:X,offsetY:Ce,rtl:L,getSize:Ue}),Ct=cF(T,Be,xe,b,X,M,f,le),_t=null;a&&(_t=z(F({},s?"height":"maxHeight",a),EF),j&&(_t.overflowY="hidden",b&&(_t.overflowX="hidden"),oe&&(_t.pointerEvents="none")));var Ht={};return L&&(Ht.dir="rtl"),u.createElement("div",be({ref:U,style:z(z({},c),{},{position:"relative"}),className:N},Ht,R),u.createElement(Br,{onResize:dt},u.createElement(h,{className:"".concat(r,"-holder"),style:_t,ref:k,onScroll:we,onMouseEnter:Ge},u.createElement(ax,{prefixCls:r,height:ot,offsetX:X,offsetY:Ce,scrollWidth:b,onInnerResize:D,ref:H,innerProps:w,rtl:L,extra:xt},Ct))),$&&ot>a&&u.createElement(ob,{ref:Qe,prefixCls:r,scrollOffset:Q,scrollRange:ot,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:ve,spinSize:Lt,containerSize:tt.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),$&&b>tt.width&&u.createElement(ob,{ref:st,prefixCls:r,scrollOffset:X,scrollRange:b,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:ve,spinSize:ut,containerSize:tt.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var lx=u.forwardRef(xF);lx.displayName="List";function RF(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $F=["disabled","title","children","style","className"];function ib(e){return typeof e=="string"||typeof e=="number"}var OF=function(t,n){var r=v4(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=u.useContext(_g),y=g.maxCount,b=g.flattenOptions,S=g.onActiveValue,h=g.defaultActiveFirstOption,v=g.onSelect,p=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,x=g.virtual,E=g.direction,R=g.listHeight,O=g.listItemHeight,_=g.optionRender,A="".concat(o,"-item"),M=Os(function(){return b},[i,b],function(ne,X){return X[0]&&ne[1]!==X[1]}),D=u.useRef(null),I=u.useMemo(function(){return l&&Dv(y)&&(C==null?void 0:C.size)>=y},[l,y,C==null?void 0:C.size]),V=function(X){X.preventDefault()},j=function(X){var te;(te=D.current)===null||te===void 0||te.scrollTo(typeof X=="number"?{index:X}:X)},P=function(X){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=M.length,Y=0;Y<ie;Y+=1){var oe=(X+Y*te+ie)%ie,fe=M[oe]||{},Pe=fe.group,ve=fe.data;if(!Pe&&!(ve!=null&&ve.disabled)&&!I)return oe}return-1},$=u.useState(function(){return P(0)}),L=W($,2),N=L[0],T=L[1],k=function(X){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;T(X);var ie={source:te?"keyboard":"mouse"},Y=M[X];if(!Y){S(null,-1,ie);return}S(Y.value,X,ie)};u.useEffect(function(){k(h!==!1?P(0):-1)},[M.length,c]);var H=u.useCallback(function(ne){return C.has(ne)&&s!=="combobox"},[s,ye(C).toString(),C.size]);u.useEffect(function(){var ne=setTimeout(function(){if(!l&&i&&C.size===1){var te=Array.from(C)[0],ie=M.findIndex(function(Y){var oe=Y.data;return oe.value===te});ie!==-1&&(k(ie),j(ie))}});if(i){var X;(X=D.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[i,c]);var U=function(X){X!==void 0&&v(X,{selected:!C.has(X)}),l||d(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(X){var te=X.which,ie=X.ctrlKey;switch(te){case re.N:case re.P:case re.UP:case re.DOWN:{var Y=0;if(te===re.UP?Y=-1:te===re.DOWN?Y=1:RF()&&ie&&(te===re.N?Y=1:te===re.P&&(Y=-1)),Y!==0){var oe=P(N+Y,Y);j(oe),k(oe,!0)}break}case re.ENTER:{var fe,Pe=M[N];Pe&&!(Pe!=null&&(fe=Pe.data)!==null&&fe!==void 0&&fe.disabled)&&!I?U(Pe.value):U(void 0),i&&X.preventDefault();break}case re.ESC:d(!1),i&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){j(X)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(A,"-empty"),onMouseDown:V},f);var G=Object.keys(w).map(function(ne){return w[ne]}),ee=function(X){return X.label};function Q(ne,X){var te=ne.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(X)}}var ae=function(X){var te=M[X];if(!te)return null;var ie=te.data||{},Y=ie.value,oe=te.group,fe=ea(ie,!0),Pe=ee(te);return te?u.createElement("div",be({"aria-label":typeof Pe=="string"&&!oe?Pe:null},fe,{key:X},Q(te,X),{"aria-selected":H(Y)}),Y):null},ce={role:"listbox",id:"".concat(a,"_list")};return u.createElement(u.Fragment,null,x&&u.createElement("div",be({},ce,{style:{height:0,width:0,overflow:"hidden"}}),ae(N-1),ae(N),ae(N+1)),u.createElement(lx,{itemKey:"key",ref:D,data:M,height:R,itemHeight:O,fullHeight:!1,onMouseDown:V,onScroll:m,virtual:x,direction:E,innerProps:x?null:ce},function(ne,X){var te=ne.group,ie=ne.groupOption,Y=ne.data,oe=ne.label,fe=ne.value,Pe=Y.key;if(te){var ve,le=(ve=Y.title)!==null&&ve!==void 0?ve:ib(oe)?oe.toString():void 0;return u.createElement("div",{className:q(A,"".concat(A,"-group"),Y.className),title:le},oe!==void 0?oe:Pe)}var me=Y.disabled,se=Y.title;Y.children;var Ee=Y.style,Ne=Y.className,Se=it(Y,$F),De=dr(Se,G),pe=H(fe),ot=me||!pe&&I,Be="".concat(A,"-option"),xe=q(A,Be,Ne,F(F(F(F({},"".concat(Be,"-grouped"),ie),"".concat(Be,"-active"),N===X&&!ot),"".concat(Be,"-disabled"),ot),"".concat(Be,"-selected"),pe)),Ce=ee(ne),Ve=!p||typeof p=="function"||pe,ke=typeof Ce=="number"?Ce:Ce||fe,tt=ib(ke)?ke.toString():void 0;return se!==void 0&&(tt=se),u.createElement("div",be({},ea(De),x?{}:Q(ne,X),{"aria-selected":pe,className:xe,title:tt,onMouseMove:function(){N===X||ot||k(X)},onClick:function(){ot||U(fe)},style:Ee}),u.createElement("div",{className:"".concat(Be,"-content")},typeof _=="function"?_(ne,{index:X}):ke),u.isValidElement(p)||pe,Ve&&u.createElement(Cd,{className:"".concat(A,"-option-state"),customizeIcon:p,customizeIconProps:{value:fe,disabled:ot,isSelected:pe}},pe?"✓":null))}))},PF=u.forwardRef(OF);const _F=function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var a=n.current,i=a.values,l=a.options,s=e.map(function(f){if(f.label===void 0){var m;return z(z({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,d=new Map;return s.forEach(function(f){c.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=d,s},[e,t]),o=u.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Ff(e,t){return nx(e).join("").toUpperCase().includes(t)}const IF=function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,s=[],c=typeof r=="function",d=n.toUpperCase(),f=c?r:function(g,y){return o?Ff(y[o],d):y[a]?Ff(y[i!=="children"?i:"label"],d):Ff(y[l],d)},m=c?function(g){return Fv(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var y=f(n,m(g));if(y)s.push(g);else{var b=g[a].filter(function(S){return f(n,m(S))});b.length&&s.push(z(z({},g),{},F({},a,b)))}return}f(n,m(g))&&s.push(g)}),s},[e,r,o,n,t])};var lb=0,TF=Fn();function MF(){var e;return TF?(e=lb,lb+=1):e="TEST_OR_SSR",e}function NF(e){var t=u.useState(),n=W(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(MF()))},[]),e||r}var LF=["children","value"],AF=["children"];function jF(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=it(r,LF);return z({key:n,value:a!==void 0?a:n,children:o},i)}function sx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Zo(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,c=it(l,AF);return t||!a?jF(n):z(z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:sx(s)})}).filter(function(n){return n})}var DF=function(t,n,r,o,a){return u.useMemo(function(){var i=t,l=!t;l&&(i=sx(n));var s=new Map,c=new Map,d=function(g,y,b){b&&typeof b=="string"&&g.set(y[b],y)},f=function m(g){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<g.length;b+=1){var S=g[b];!S[r.options]||y?(s.set(S[r.value],S),d(c,S,r.label),d(c,S,o),d(c,S,a)):m(S[r.options],!0)}};return f(i),{options:i,valueOptions:s,labelOptions:c}},[t,n,r,o,a])};function sb(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var FF=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],zF=["inputValue"];function BF(e){return!e||je(e)!=="object"}var kF=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,g=e.onSelect,y=e.onDeselect,b=e.dropdownMatchSelectWidth,S=b===void 0?!0:b,h=e.filterOption,v=e.filterSort,p=e.optionFilterProp,C=e.optionLabelProp,w=e.options,x=e.optionRender,E=e.children,R=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,_=e.virtual,A=e.direction,M=e.listHeight,D=M===void 0?200:M,I=e.listItemHeight,V=I===void 0?20:I,j=e.labelRender,P=e.value,$=e.defaultValue,L=e.labelInValue,N=e.onChange,T=e.maxCount,k=it(e,FF),H=NF(n),U=zv(r),G=!!(!w&&E),ee=u.useMemo(function(){return h===void 0&&r==="combobox"?!1:h},[h,r]),Q=u.useMemo(function(){return ox(l,G)},[JSON.stringify(l),G]),ae=ir("",{value:c!==void 0?c:s,postState:function(we){return we||""}}),ce=W(ae,2),ne=ce[0],X=ce[1],te=DF(w,E,Q,p,C),ie=te.valueOptions,Y=te.labelOptions,oe=te.options,fe=u.useCallback(function(de){var we=nx(de);return we.map(function(he){var Ie,We,et,Pt,gt;if(BF(he))Ie=he;else{var Ge;et=he.key,We=he.label,Ie=(Ge=he.value)!==null&&Ge!==void 0?Ge:et}var Re=ie.get(Ie);if(Re){var Ue;We===void 0&&(We=Re==null?void 0:Re[C||Q.label]),et===void 0&&(et=(Ue=Re==null?void 0:Re.key)!==null&&Ue!==void 0?Ue:Ie),Pt=Re==null?void 0:Re.disabled,gt=Re==null?void 0:Re.title}return{label:We,value:Ie,key:et,disabled:Pt,title:gt}})},[Q,C,ie]),Pe=ir($,{value:P}),ve=W(Pe,2),le=ve[0],me=ve[1],se=u.useMemo(function(){var de,we=U&&le===null?[]:le,he=fe(we);return r==="combobox"&&N4((de=he[0])===null||de===void 0?void 0:de.value)?[]:he},[le,fe,r,U]),Ee=_F(se,ie),Ne=W(Ee,2),Se=Ne[0],De=Ne[1],pe=u.useMemo(function(){if(!r&&Se.length===1){var de=Se[0];if(de.value===null&&(de.label===null||de.label===void 0))return[]}return Se.map(function(we){var he;return z(z({},we),{},{label:(he=typeof j=="function"?j(we):we.label)!==null&&he!==void 0?he:we.value})})},[r,Se,j]),ot=u.useMemo(function(){return new Set(Se.map(function(de){return de.value}))},[Se]);u.useEffect(function(){if(r==="combobox"){var de,we=(de=Se[0])===null||de===void 0?void 0:de.value;X(M4(we)?String(we):"")}},[Se]);var Be=sb(function(de,we){var he=we??de;return F(F({},Q.value,de),Q.label,he)}),xe=u.useMemo(function(){if(r!=="tags")return oe;var de=ye(oe),we=function(Ie){return ie.has(Ie)};return ye(Se).sort(function(he,Ie){return he.value<Ie.value?-1:1}).forEach(function(he){var Ie=he.value;we(Ie)||de.push(Be(Ie,he.label))}),de},[Be,oe,ie,Se,r]),Ce=IF(xe,Q,ne,ee,p),Ve=u.useMemo(function(){return r!=="tags"||!ne||Ce.some(function(de){return de[p||"value"]===ne})||Ce.some(function(de){return de[Q.value]===ne})?Ce:[Be(ne)].concat(ye(Ce))},[Be,p,r,Ce,ne,Q]),ke=u.useMemo(function(){return v?ye(Ve).sort(function(de,we){return v(de,we,{searchValue:ne})}):Ve},[Ve,v,ne]),tt=u.useMemo(function(){return rF(ke,{fieldNames:Q,childrenAsData:G})},[ke,Q,G]),vt=function(we){var he=fe(we);if(me(he),N&&(he.length!==Se.length||he.some(function(et,Pt){var gt;return((gt=Se[Pt])===null||gt===void 0?void 0:gt.value)!==(et==null?void 0:et.value)}))){var Ie=L?he:he.map(function(et){return et.value}),We=he.map(function(et){return Fv(De(et.value))});N(U?Ie:Ie[0],U?We:We[0])}},dt=u.useState(null),Qe=W(dt,2),st=Qe[0],ut=Qe[1],Lt=u.useState(0),bt=W(Lt,2),Et=bt[0],Dt=bt[1],St=R!==void 0?R:r!=="combobox",Ze=u.useCallback(function(de,we){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ie=he.source,We=Ie===void 0?"keyboard":Ie;Dt(we),i&&r==="combobox"&&de!==null&&We==="keyboard"&&ut(String(de))},[i,r]),ze=function(we,he,Ie){var We=function(){var Ht,$e=De(we);return[L?{label:$e==null?void 0:$e[Q.label],value:we,key:(Ht=$e==null?void 0:$e.key)!==null&&Ht!==void 0?Ht:we}:we,Fv($e)]};if(he&&g){var et=We(),Pt=W(et,2),gt=Pt[0],Ge=Pt[1];g(gt,Ge)}else if(!he&&y&&Ie!=="clear"){var Re=We(),Ue=W(Re,2),xt=Ue[0],Ct=Ue[1];y(xt,Ct)}},He=sb(function(de,we){var he,Ie=U?we.selected:!0;Ie?he=U?[].concat(ye(Se),[de]):[de]:he=Se.filter(function(We){return We.value!==de}),vt(he),ze(de,Ie),r==="combobox"?ut(""):(!zv||m)&&(X(""),ut(""))}),Le=function(we,he){vt(we);var Ie=he.type,We=he.values;(Ie==="remove"||Ie==="clear")&&We.forEach(function(et){ze(et.value,!1,Ie)})},ge=function(we,he){if(X(we),ut(null),he.source==="submit"){var Ie=(we||"").trim();if(Ie){var We=Array.from(new Set([].concat(ye(ot),[Ie])));vt(We),ze(Ie,!0),X("")}return}he.source!=="blur"&&(r==="combobox"&&vt(we),d==null||d(we))},Ye=function(we){var he=we;r!=="tags"&&(he=we.map(function(We){var et=Y.get(We);return et==null?void 0:et.value}).filter(function(We){return We!==void 0}));var Ie=Array.from(new Set([].concat(ye(ot),ye(he))));vt(Ie),Ie.forEach(function(We){ze(We,!0)})},nt=u.useMemo(function(){var de=_!==!1&&S!==!1;return z(z({},te),{},{flattenOptions:tt,onActiveValue:Ze,defaultActiveFirstOption:St,onSelect:He,menuItemSelectedIcon:O,rawValues:ot,fieldNames:Q,virtual:de,direction:A,listHeight:D,listItemHeight:V,childrenAsData:G,maxCount:T,optionRender:x})},[T,te,tt,Ze,St,He,O,ot,Q,_,S,A,D,V,G,x]);return u.createElement(_g.Provider,{value:nt},u.createElement(sF,be({},k,{id:H,prefixCls:a,ref:t,omitDomProps:zF,mode:r,displayValues:pe,onDisplayValuesChange:Le,direction:A,searchValue:ne,onSearch:ge,autoClearSearchValue:m,onSearchSplit:Ye,dropdownMatchSelectWidth:S,OptionList:PF,emptyOptions:!tt.length,activeValue:st,activeDescendantId:"".concat(H,"_list_").concat(Et)})))}),Mg=kF;Mg.Option=Tg;Mg.OptGroup=Ig;function Ic(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 wd=(e,t)=>t||e,HF=()=>{const[,e]=sr(),n=new En(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,"empty image"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},VF=()=>{const[,e]=sr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=u.useMemo(()=>({borderColor:new En(t).onBackground(o).toHexShortString(),shadowColor:new En(n).onBackground(o).toHexShortString(),contentColor:new En(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,"Simple Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:a},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},WF=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},UF=_r("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Gt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[WF(o)]});var GF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ux=u.createElement(HF,null),cx=u.createElement(VF,null),va=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ux,description:a,children:i,imageStyle:l,style:s}=e,c=GF(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=u.useContext(ft),g=d("empty",r),[y,b,S]=UF(g),[h]=md("Empty"),v=typeof a<"u"?a:h==null?void 0:h.description,p=typeof v=="string"?v:"empty";let C=null;return typeof o=="string"?C=u.createElement("img",{alt:p,src:o}):C=o,y(u.createElement("div",Object.assign({className:q(b,S,g,m==null?void 0:m.className,{[`${g}-normal`]:o===cx,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),s)},c),u.createElement("div",{className:`${g}-image`,style:l},C),v&&u.createElement("div",{className:`${g}-description`},v),i&&u.createElement("div",{className:`${g}-footer`},i)))};va.PRESENTED_IMAGE_DEFAULT=ux;va.PRESENTED_IMAGE_SIMPLE=cx;const KF=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(ft),r=n("empty");switch(t){case"Table":case"List":return K.createElement(va,{image:va.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return K.createElement(va,{image:va.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return K.createElement(va,null)}},Ng=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:a,[e]:i}=u.useContext(ft),l=u.useContext(Wj),s=i==null?void 0:i.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=l??s)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=nN.includes(c);return[c,d]},qF=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function QF(e,t){return e||qF(t)}const ub=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},XF=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},no(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${l}bottomLeft,
          ${a}${l}bottomLeft
        `]:{animationName:ME},[`
          ${o}${l}topLeft,
          ${a}${l}topLeft,
          ${o}${l}topRight,
          ${a}${l}topRight
        `]:{animationName:LE},[`${i}${l}bottomLeft`]:{animationName:NE},[`
          ${i}${l}topLeft,
          ${i}${l}topRight
        `]:{animationName:AE},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ub(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},zi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ub(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Pc(e,"slide-up"),Pc(e,"slide-down"),By(e,"move-up"),By(e,"move-down")]},YF=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:J(t),itemLineHeight:J(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},JF=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},ZF=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},hg()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},ez=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=JF(e),l=t?`${n}-${t}`:"",s=YF(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ZF(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${J(r)} 0`,lineHeight:J(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:J(s.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:J(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function zf(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ez(e,t),o]}const tz=e=>{const{componentCls:t}=e,n=Gt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Gt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[zf(e),zf(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},zf(r,"lg")]};function Bf(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},no(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{padding:0,lineHeight:J(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${J(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:J(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${J(r)}`,"&:after":{display:"none"}}}}}}}function nz(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Bf(e),Bf(Gt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${J(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Bf(Gt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const rz=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:y,colorFillSecondary:b,colorBgContainerDisabled:S,colorTextDisabled:h}=e,v=l*2,p=r*2,C=Math.min(o-v,o-p),w=Math.min(a-v,a-p),x=Math.min(i-v,i-p);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:y,clearBg:y,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:x,multipleSelectorBgDisabled:S,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},dx=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${J(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${J(o)} ${t.activeShadowColor}`,outline:0}}}},cb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dx(e,t))}),oz=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},dx(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),cb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),cb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),fx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},db=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fx(e,t))}),az=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},fx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),db(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),db(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),iz=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),lz=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},oz(e)),az(e)),iz(e))}),sz=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},uz=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},cz=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},no(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},sz(e)),uz(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},zi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},zi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},hg()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},dz=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},cz(e),nz(e),tz(e),XF(e),{[`${t}-rtl`]:{direction:"rtl"}},xg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},fz=_r("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Gt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dz(r),lz(r)]},rz,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var mz={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"},vz=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:mz}))},pz=u.forwardRef(vz),gz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},hz=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:gz}))},yz=u.forwardRef(hz),bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Sz=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:bz}))},mx=u.forwardRef(Sz);function Cz(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:d,showArrow:f,componentName:m}=e;const g=n??u.createElement(Sg,null),y=v=>t===null&&!l&&!f?null:u.createElement(u.Fragment,null,c!==!1&&v,l&&d);let b=null;if(t!==void 0)b=y(t);else if(a)b=y(u.createElement(Jw,{spin:!0}));else{const v=`${s}-suffix`;b=p=>{let{open:C,showSearch:w}=p;return y(C&&w?u.createElement(mx,{className:v}):u.createElement(yz,{className:v}))}}let S=null;r!==void 0?S=r:i?S=u.createElement(pz,null):S=null;let h=null;return o!==void 0?h=o:h=u.createElement(_s,null),{clearIcon:g,suffixIcon:b,itemIcon:S,removeIcon:h}}function wz(e,t){return t!==void 0?t:e!==null}var Ez=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vx="SECRET_COMBOBOX_MODE_DO_NOT_USE",xz=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:m,size:g,disabled:y,notFoundContent:b,status:S,builtinPlacements:h,dropdownMatchSelectWidth:v,popupMatchSelectWidth:p,direction:C,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:_,maxCount:A}=e,M=Ez(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:D,getPrefixCls:I,renderEmpty:V,direction:j,virtual:P,popupMatchSelectWidth:$,popupOverflow:L,select:N}=u.useContext(ft),[,T]=sr(),k=m??(T==null?void 0:T.controlHeight),H=I("select",r),U=I(),G=C??j,{compactSize:ee,compactItemClassnames:Q}=hd(H,G),[ae,ce]=Ng("select",E,o),ne=ka(H),[X,te,ie]=fz(H,ne),Y=u.useMemo(()=>{const{mode:st}=e;if(st!=="combobox")return st===vx?"combobox":st},[e.mode]),oe=Y==="multiple"||Y==="tags",fe=wz(e.suffixIcon,e.showArrow),Pe=(n=p??v)!==null&&n!==void 0?n:$,{status:ve,hasFeedback:le,isFormItemInput:me,feedbackIcon:se}=u.useContext(bo),Ee=wd(ve,S);let Ne;b!==void 0?Ne=b:Y==="combobox"?Ne=null:Ne=(V==null?void 0:V("Select"))||u.createElement(KF,{componentName:"Select"});const{suffixIcon:Se,itemIcon:De,removeIcon:pe,clearIcon:ot}=Cz(Object.assign(Object.assign({},M),{multiple:oe,hasFeedback:le,feedbackIcon:se,showSuffixIcon:fe,prefixCls:H,componentName:"Select"})),Be=x===!0?{clearIcon:ot}:x,xe=dr(M,["suffixIcon","itemIcon"]),Ce=q(s||c,{[`${H}-dropdown-${G}`]:G==="rtl"},i,ie,ne,te),Ve=Eo(st=>{var ut;return(ut=g??ee)!==null&&ut!==void 0?ut:st}),ke=u.useContext(La),tt=y??ke,vt=q({[`${H}-lg`]:Ve==="large",[`${H}-sm`]:Ve==="small",[`${H}-rtl`]:G==="rtl",[`${H}-${ae}`]:ce,[`${H}-in-form-item`]:me},Ic(H,Ee,le),Q,N==null?void 0:N.className,a,i,ie,ne,te),dt=u.useMemo(()=>f!==void 0?f:G==="rtl"?"bottomRight":"bottomLeft",[f,G]),[Qe]=nE("SelectLike",R==null?void 0:R.zIndex);return X(u.createElement(Mg,Object.assign({ref:t,virtual:P,showSearch:N==null?void 0:N.showSearch},xe,{style:Object.assign(Object.assign({},N==null?void 0:N.style),w),dropdownMatchSelectWidth:Pe,transitionName:Bi(U,"slide-up",O),builtinPlacements:QF(h,L),listHeight:d,listItemHeight:k,mode:Y,prefixCls:H,placement:dt,direction:G,suffixIcon:Se,menuItemSelectedIcon:De,removeIcon:pe,allowClear:Be,notFoundContent:Ne,className:vt,getPopupContainer:l||D,dropdownClassName:Ce,disabled:tt,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:Qe}),maxCount:oe?A:void 0,tagRender:oe?_:void 0})))},Wa=u.forwardRef(xz),Rz=f4(Wa);Wa.SECRET_COMBOBOX_MODE_DO_NOT_USE=vx;Wa.Option=Tg;Wa.OptGroup=Ig;Wa._InternalPanelDoNotUseOrYouWillBeFired=Rz;var $z=re.ESC,Oz=re.TAB;function Pz(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=u.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},s=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(f){switch(f.keyCode){case $z:l();break;case Oz:{var m=!1;i.current||(m=s()),m?f.preventDefault():l();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Rt(s,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}},[t])}var _z=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=u.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Gr(t,a==null?void 0:a.ref);return K.createElement(K.Fragment,null,r&&K.createElement("div",{className:"".concat(o,"-arrow")}),K.cloneElement(a,{ref:aa(a)?i:void 0}))}),ei={adjustX:1,adjustY:1},ti=[0,0],Iz={topLeft:{points:["bl","tl"],overflow:ei,offset:[0,-4],targetOffset:ti},top:{points:["bc","tc"],overflow:ei,offset:[0,-4],targetOffset:ti},topRight:{points:["br","tr"],overflow:ei,offset:[0,-4],targetOffset:ti},bottomLeft:{points:["tl","bl"],overflow:ei,offset:[0,4],targetOffset:ti},bottom:{points:["tc","bc"],overflow:ei,offset:[0,4],targetOffset:ti},bottomRight:{points:["tr","br"],overflow:ei,offset:[0,4],targetOffset:ti}},Tz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Mz(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?Iz:m,y=e.getPopupContainer,b=e.showAction,S=e.hideAction,h=e.overlayClassName,v=e.overlayStyle,p=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,x=e.autoFocus,E=e.overlay,R=e.children,O=e.onVisibleChange,_=it(e,Tz),A=K.useState(),M=W(A,2),D=M[0],I=M[1],V="visible"in e?p:D,j=K.useRef(null),P=K.useRef(null),$=K.useRef(null);K.useImperativeHandle(t,function(){return j.current});var L=function(ae){I(ae),O==null||O(ae)};Pz({visible:V,triggerRef:$,onVisibleChange:L,autoFocus:x,overlayRef:P});var N=function(ae){var ce=e.onOverlayClick;I(!1),ce&&ce(ae)},T=function(){return K.createElement(_z,{ref:P,overlay:E,prefixCls:i,arrow:o})},k=function(){return typeof E=="function"?T:T()},H=function(){var ae=e.minOverlayWidthMatchTrigger,ce=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ae:!ce},U=function(){var ae=e.openClassName;return ae!==void 0?ae:"".concat(i,"-open")},G=K.cloneElement(R,{className:q((n=R.props)===null||n===void 0?void 0:n.className,V&&U()),ref:aa(R)?Gr($,R.ref):void 0}),ee=S;return!ee&&w.indexOf("contextMenu")!==-1&&(ee=["click"]),K.createElement(Pg,be({builtinPlacements:g},_,{prefixCls:i,ref:j,popupClassName:q(h,F({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:w,showAction:b,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:V,stretch:H()?"minWidth":"",popup:k(),onPopupVisibleChange:L,onPopupClick:N,getPopupContainer:y}),G)}const Nz=K.forwardRef(Mz);var px=u.createContext(null);function gx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function hx(e){var t=u.useContext(px);return gx(t,e)}var Lz=["children","locked"],Ur=u.createContext(null);function Az(e,t){var n=z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function ys(e){var t=e.children,n=e.locked,r=it(e,Lz),o=u.useContext(Ur),a=Os(function(){return Az(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!cs(i[1],l[1],!0))});return u.createElement(Ur.Provider,{value:a},t)}var jz=[],yx=u.createContext(null);function Ed(){return u.useContext(yx)}var bx=u.createContext(jz);function js(e){var t=u.useContext(bx);return u.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var Sx=u.createContext(null),Lg=u.createContext({});function fb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Cg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Dz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ye(e.querySelectorAll("*")).filter(function(r){return fb(r,t)});return fb(e,t)&&n.unshift(e),n}var Bv=re.LEFT,kv=re.RIGHT,Hv=re.UP,Bu=re.DOWN,ku=re.ENTER,Cx=re.ESC,ml=re.HOME,vl=re.END,mb=[Hv,Bu,Bv,kv];function Fz(e,t,n,r){var o,a,i,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===ku)return{inlineTrigger:!0};var m=(o={},F(o,Hv,s),F(o,Bu,c),o),g=(a={},F(a,Bv,n?c:s),F(a,kv,n?s:c),F(a,Bu,d),F(a,ku,d),a),y=(i={},F(i,Hv,s),F(i,Bu,c),F(i,ku,d),F(i,Cx,f),F(i,Bv,n?d:f),F(i,kv,n?f:d),i),b={inline:m,horizontal:g,vertical:y,inlineSub:m,horizontalSub:y,verticalSub:y},S=(l=b["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(S){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 zz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Bz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ag(e,t){var n=Dz(e,!0);return n.filter(function(r){return t.has(r)})}function vb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Ag(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Vv=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(gx(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function kz(e,t,n,r,o,a,i,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var m=function(){Rt.cancel(d.current)};return u.useEffect(function(){return function(){m()}},[]),function(g){var y=g.which;if([].concat(mb,[ku,Cx,ml,vl]).includes(y)){var b=a(),S=Vv(b,r),h=S,v=h.elements,p=h.key2element,C=h.element2key,w=p.get(t),x=Bz(w,v),E=C.get(x),R=Fz(e,i(E,!0).length===1,n,y);if(!R&&y!==ml&&y!==vl)return;(mb.includes(y)||[ml,vl].includes(y))&&g.preventDefault();var O=function(P){if(P){var $=P,L=P.querySelector("a");L!=null&&L.getAttribute("href")&&($=L);var N=C.get(P);l(N),m(),d.current=Rt(function(){f.current===N&&$.focus()})}};if([ml,vl].includes(y)||R.sibling||!x){var _;!x||e==="inline"?_=o.current:_=zz(x);var A,M=Ag(_,v);y===ml?A=M[0]:y===vl?A=M[M.length-1]:A=vb(_,v,x,R.offset),O(A)}else if(R.inlineTrigger)s(E);else if(R.offset>0)s(E,!0),m(),d.current=Rt(function(){S=Vv(b,r);var j=x.getAttribute("aria-controls"),P=document.getElementById(j),$=vb(P,S.elements);O($)},5);else if(R.offset<0){var D=i(E,!0),I=D[D.length-2],V=p.get(I);s(I,!1),O(V)}}c==null||c(g)}}function Hz(e){Promise.resolve().then(e)}var jg="__RC_UTIL_PATH_SPLIT__",pb=function(t){return t.join(jg)},Vz=function(t){return t.split(jg)},Wv="rc-menu-more";function Wz(){var e=u.useState({}),t=W(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),a=u.useState([]),i=W(a,2),l=i[0],s=i[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},m=u.useCallback(function(p,C){var w=pb(C);o.current.set(w,p),r.current.set(p,w),c.current+=1;var x=c.current;Hz(function(){x===c.current&&f()})},[]),g=u.useCallback(function(p,C){var w=pb(C);o.current.delete(w),r.current.delete(p)},[]),y=u.useCallback(function(p){s(p)},[]),b=u.useCallback(function(p,C){var w=r.current.get(p)||"",x=Vz(w);return C&&l.includes(x[0])&&x.unshift(Wv),x},[l]),S=u.useCallback(function(p,C){return p.filter(function(w){return w!==void 0}).some(function(w){var x=b(w,!0);return x.includes(C)})},[b]),h=function(){var C=ye(r.current.keys());return l.length&&C.push(Wv),C},v=u.useCallback(function(p){var C="".concat(r.current.get(p)).concat(jg),w=new Set;return ye(o.current.keys()).forEach(function(x){x.startsWith(C)&&w.add(o.current.get(x))}),w},[]);return u.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:y,isSubPathKey:S,getKeyPath:b,getKeys:h,getSubPathKeys:v}}function xl(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var Uz=Math.random().toFixed(5).toString().slice(2),gb=0;function Gz(e){var t=ir(e,{value:e}),n=W(t,2),r=n[0],o=n[1];return u.useEffect(function(){gb+=1;var a="".concat(Uz,"-").concat(gb);o("rc-menu-uuid-".concat(a))},[]),r}function wx(e,t,n,r){var o=u.useContext(Ur),a=o.activeKey,i=o.onActive,l=o.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e)},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e)}),s}function Ex(e){var t=u.useContext(Ur),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function xx(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=u.createElement(t,z({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Kz=["item"];function Tc(e){var t=e.item,n=it(e,Kz);return Object.defineProperty(n,"item",{get:function(){return Nn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var qz=["title","attribute","elementRef"],Qz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Xz=["active"],Yz=function(e){ia(n,e);var t=la(n);function n(){return yn(this,n),t.apply(this,arguments)}return bn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,s=it(o,qz),c=dr(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Nn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(to.Item,be({},i,{title:typeof a=="string"?a:void 0},c,{ref:l}))}}]),n}(u.Component),Jz=u.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,l=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,y=e.onFocus,b=it(e,Qz),S=hx(a),h=u.useContext(Ur),v=h.prefixCls,p=h.onItemClick,C=h.disabled,w=h.overflowDisabled,x=h.itemIcon,E=h.selectedKeys,R=h.onActive,O=u.useContext(Lg),_=O._internalRenderMenuItem,A="".concat(v,"-item"),M=u.useRef(),D=u.useRef(),I=C||i,V=Ba(t,D),j=js(a),P=function(ne){return{key:a,keyPath:ye(j).reverse(),item:M.current,domEvent:ne}},$=l||x,L=wx(a,I,d,f),N=L.active,T=it(L,Xz),k=E.includes(a),H=Ex(j.length),U=function(ne){if(!I){var X=P(ne);m==null||m(Tc(X)),p(X)}},G=function(ne){if(g==null||g(ne),ne.which===re.ENTER){var X=P(ne);m==null||m(Tc(X)),p(X)}},ee=function(ne){R(a),y==null||y(ne)},Q={};e.role==="option"&&(Q["aria-selected"]=k);var ae=u.createElement(Yz,be({ref:M,elementRef:V,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&S?null:S},b,T,Q,{component:"li","aria-disabled":i,style:z(z({},H),r),className:q(A,(n={},F(n,"".concat(A,"-active"),N),F(n,"".concat(A,"-selected"),k),F(n,"".concat(A,"-disabled"),I),n),o),onClick:U,onKeyDown:G,onFocus:ee}),s,u.createElement(xx,{props:z(z({},e),{},{isSelected:k}),icon:$}));return _&&(ae=_(ae,e,{selected:k})),ae});function Zz(e,t){var n=e.eventKey,r=Ed(),o=js(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement(Jz,be({},e,{ref:t}))}const xd=u.forwardRef(Zz);var e3=["className","children"],t3=function(t,n){var r=t.className,o=t.children,a=it(t,e3),i=u.useContext(Ur),l=i.prefixCls,s=i.mode,c=i.rtl;return u.createElement("ul",be({className:q(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Dg=u.forwardRef(t3);Dg.displayName="SubMenuList";function Fg(e,t){return Zo(e).map(function(n,r){if(u.isValidElement(n)){var o,a,i=n.key,l=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,s=l==null;s&&(l="tmp_key-".concat([].concat(ye(t),[r]).join("-")));var c={key:l,eventKey:l};return u.cloneElement(n,c)}return n})}var In={adjustX:1,adjustY:1},n3={topLeft:{points:["bl","tl"],overflow:In},topRight:{points:["br","tr"],overflow:In},bottomLeft:{points:["tl","bl"],overflow:In},bottomRight:{points:["tr","br"],overflow:In},leftTop:{points:["tr","tl"],overflow:In},leftBottom:{points:["br","bl"],overflow:In},rightTop:{points:["tl","tr"],overflow:In},rightBottom:{points:["bl","br"],overflow:In}},r3={topLeft:{points:["bl","tl"],overflow:In},topRight:{points:["br","tr"],overflow:In},bottomLeft:{points:["tl","bl"],overflow:In},bottomRight:{points:["tr","br"],overflow:In},rightTop:{points:["tr","tl"],overflow:In},rightBottom:{points:["br","bl"],overflow:In},leftTop:{points:["tl","tr"],overflow:In},leftBottom:{points:["bl","br"],overflow:In}};function Rx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var o3={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function a3(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,d=e.onVisibleChange,f=u.useContext(Ur),m=f.getPopupContainer,g=f.rtl,y=f.subMenuOpenDelay,b=f.subMenuCloseDelay,S=f.builtinPlacements,h=f.triggerSubMenuAction,v=f.forceSubMenuRender,p=f.rootClassName,C=f.motion,w=f.defaultMotions,x=u.useState(!1),E=W(x,2),R=E[0],O=E[1],_=z(g?z({},r3):z({},n3),S),A=o3[c],M=Rx(c,C,w),D=u.useRef(M);c!=="inline"&&(D.current=M);var I=z(z({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=u.useRef();return u.useEffect(function(){return V.current=Rt(function(){O(n)}),function(){Rt.cancel(V.current)}},[n]),u.createElement(Pg,{prefixCls:t,popupClassName:q("".concat(t,"-popup"),F({},"".concat(t,"-rtl"),g),i,p),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:_,popupPlacement:A,popupVisible:R,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[h],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:v,popupMotion:I,fresh:!0},r)}function i3(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=u.useContext(Ur),l=i.prefixCls,s=i.forceSubMenuRender,c=i.motion,d=i.defaultMotions,f=i.mode,m=u.useRef(!1);m.current=f===a;var g=u.useState(!m.current),y=W(g,2),b=y[0],S=y[1],h=m.current?n:!1;u.useEffect(function(){m.current&&S(!1)},[f]);var v=z({},Rx(a,c,d));r.length>1&&(v.motionAppear=!1);var p=v.onVisibleChanged;return v.onVisibleChanged=function(C){return!m.current&&!C&&S(!0),p==null?void 0:p(C)},b?null:u.createElement(ys,{mode:a,locked:!m.current},u.createElement(wo,be({visible:h},v,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var w=C.className,x=C.style;return u.createElement(Dg,{id:t,className:w,style:x},o)}))}var l3=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],s3=["active"],u3=u.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.title,i=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,g=e.popupOffset,y=e.popupStyle,b=e.onClick,S=e.onMouseEnter,h=e.onMouseLeave,v=e.onTitleClick,p=e.onTitleMouseEnter,C=e.onTitleMouseLeave,w=it(e,l3),x=hx(i),E=u.useContext(Ur),R=E.prefixCls,O=E.mode,_=E.openKeys,A=E.disabled,M=E.overflowDisabled,D=E.activeKey,I=E.selectedKeys,V=E.itemIcon,j=E.expandIcon,P=E.onItemClick,$=E.onOpenChange,L=E.onActive,N=u.useContext(Lg),T=N._internalRenderSubMenuItem,k=u.useContext(Sx),H=k.isSubPathKey,U=js(),G="".concat(R,"-submenu"),ee=A||l,Q=u.useRef(),ae=u.useRef(),ce=d??V,ne=f??j,X=_.includes(i),te=!M&&X,ie=H(I,i),Y=wx(i,ee,p,C),oe=Y.active,fe=it(Y,s3),Pe=u.useState(!1),ve=W(Pe,2),le=ve[0],me=ve[1],se=function(Qe){ee||me(Qe)},Ee=function(Qe){se(!0),S==null||S({key:i,domEvent:Qe})},Ne=function(Qe){se(!1),h==null||h({key:i,domEvent:Qe})},Se=u.useMemo(function(){return oe||(O!=="inline"?le||H([D],i):!1)},[O,oe,D,le,i,H]),De=Ex(U.length),pe=function(Qe){ee||(v==null||v({key:i,domEvent:Qe}),O==="inline"&&$(i,!X))},ot=xl(function(dt){b==null||b(Tc(dt)),P(dt)}),Be=function(Qe){O!=="inline"&&$(i,Qe)},xe=function(){L(i)},Ce=x&&"".concat(x,"-popup"),Ve=u.createElement("div",be({role:"menuitem",style:De,className:"".concat(G,"-title"),tabIndex:ee?null:-1,ref:Q,title:typeof a=="string"?a:null,"data-menu-id":M&&x?null:x,"aria-expanded":te,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ee,onClick:pe,onFocus:xe},fe),a,u.createElement(xx,{icon:O!=="horizontal"?ne:void 0,props:z(z({},e),{},{isOpen:te,isSubMenu:!0})},u.createElement("i",{className:"".concat(G,"-arrow")}))),ke=u.useRef(O);if(O!=="inline"&&U.length>1?ke.current="vertical":ke.current=O,!M){var tt=ke.current;Ve=u.createElement(a3,{mode:tt,prefixCls:G,visible:!s&&te&&O!=="inline",popupClassName:m,popupOffset:g,popupStyle:y,popup:u.createElement(ys,{mode:tt==="horizontal"?"vertical":tt},u.createElement(Dg,{id:Ce,ref:ae},c)),disabled:ee,onVisibleChange:Be},Ve)}var vt=u.createElement(to.Item,be({ref:t,role:"none"},w,{component:"li",style:r,className:q(G,"".concat(G,"-").concat(O),o,(n={},F(n,"".concat(G,"-open"),te),F(n,"".concat(G,"-active"),Se),F(n,"".concat(G,"-selected"),ie),F(n,"".concat(G,"-disabled"),ee),n)),onMouseEnter:Ee,onMouseLeave:Ne}),Ve,!M&&u.createElement(i3,{id:Ce,open:te,keyPath:U},c));return T&&(vt=T(vt,e,{selected:ie,active:Se,open:te,disabled:ee})),u.createElement(ys,{onItemClick:ot,mode:O==="horizontal"?"vertical":O,itemIcon:ce,expandIcon:ne},vt)}),zg=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=js(n),a=Fg(r,o),i=Ed();u.useEffect(function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}},[o]);var l;return i?l=a:l=u.createElement(u3,be({ref:t},e),a),u.createElement(bx.Provider,{value:o},l)});function $x(e){var t=e.className,n=e.style,r=u.useContext(Ur),o=r.prefixCls,a=Ed();return a?null:u.createElement("li",{role:"separator",className:q("".concat(o,"-item-divider"),t),style:n})}var c3=["className","title","eventKey","children"],d3=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=it(e,c3),i=u.useContext(Ur),l=i.prefixCls,s="".concat(l,"-item-group");return u.createElement("li",be({ref:t,role:"presentation"},a,{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")},o))}),Ox=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=js(n),a=Fg(r,o),i=Ed();return i?a:u.createElement(d3,be({ref:t},dr(e,["warnKey"])),a)}),f3=["label","children","key","type"];function Uv(e,t){var n=t.item,r=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(i,l){if(i&&je(i)==="object"){var s=i,c=s.label,d=s.children,f=s.key,m=s.type,g=it(s,f3),y=f??"tmp-".concat(l);return d||m==="group"?m==="group"?u.createElement(r,be({key:y},g,{title:c}),Uv(d,t)):u.createElement(o,be({key:y},g,{title:c}),Uv(d,t)):m==="divider"?u.createElement(a,be({key:y},g)):u.createElement(n,be({key:y},g),c)}return null}).filter(function(i){return i})}function hb(e,t,n,r){var o=e,a=z({divider:$x,item:xd,group:Ox,submenu:zg},r);return t&&(o=Uv(t,a)),Fg(o,n)}var m3=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ua=[],v3=u.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,l=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,m=o.items,g=o.children,y=o.direction,b=o.id,S=o.mode,h=S===void 0?"vertical":S,v=o.inlineCollapsed,p=o.disabled,C=o.disabledOverflow,w=o.subMenuOpenDelay,x=w===void 0?.1:w,E=o.subMenuCloseDelay,R=E===void 0?.1:E,O=o.forceSubMenuRender,_=o.defaultOpenKeys,A=o.openKeys,M=o.activeKey,D=o.defaultActiveFirst,I=o.selectable,V=I===void 0?!0:I,j=o.multiple,P=j===void 0?!1:j,$=o.defaultSelectedKeys,L=o.selectedKeys,N=o.onSelect,T=o.onDeselect,k=o.inlineIndent,H=k===void 0?24:k,U=o.motion,G=o.defaultMotions,ee=o.triggerSubMenuAction,Q=ee===void 0?"hover":ee,ae=o.builtinPlacements,ce=o.itemIcon,ne=o.expandIcon,X=o.overflowedIndicator,te=X===void 0?"...":X,ie=o.overflowedIndicatorPopupClassName,Y=o.getPopupContainer,oe=o.onClick,fe=o.onOpenChange,Pe=o.onKeyDown;o.openAnimation,o.openTransitionName;var ve=o._internalRenderMenuItem,le=o._internalRenderSubMenuItem,me=o._internalComponents,se=it(o,m3),Ee=u.useMemo(function(){return[hb(g,m,ua,me),hb(g,m,ua,{})]},[g,m,me]),Ne=W(Ee,2),Se=Ne[0],De=Ne[1],pe=u.useState(!1),ot=W(pe,2),Be=ot[0],xe=ot[1],Ce=u.useRef(),Ve=Gz(b),ke=y==="rtl",tt=ir(_,{value:A,postState:function(Fe){return Fe||ua}}),vt=W(tt,2),dt=vt[0],Qe=vt[1],st=function(Fe){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tt(){Qe(Fe),fe==null||fe(Fe)}Je?Jo.flushSync(Tt):Tt()},ut=u.useState(dt),Lt=W(ut,2),bt=Lt[0],Et=Lt[1],Dt=u.useRef(!1),St=u.useMemo(function(){return(h==="inline"||h==="vertical")&&v?["vertical",v]:[h,!1]},[h,v]),Ze=W(St,2),ze=Ze[0],He=Ze[1],Le=ze==="inline",ge=u.useState(ze),Ye=W(ge,2),nt=Ye[0],de=Ye[1],we=u.useState(He),he=W(we,2),Ie=he[0],We=he[1];u.useEffect(function(){de(ze),We(He),Dt.current&&(Le?Qe(bt):st(ua))},[ze,He]);var et=u.useState(0),Pt=W(et,2),gt=Pt[0],Ge=Pt[1],Re=gt>=Se.length-1||nt!=="horizontal"||C;u.useEffect(function(){Le&&Et(dt)},[dt]),u.useEffect(function(){return Dt.current=!0,function(){Dt.current=!1}},[]);var Ue=Wz(),xt=Ue.registerPath,Ct=Ue.unregisterPath,_t=Ue.refreshOverflowKeys,Ht=Ue.isSubPathKey,$e=Ue.getKeyPath,Oe=Ue.getKeys,Me=Ue.getSubPathKeys,It=u.useMemo(function(){return{registerPath:xt,unregisterPath:Ct}},[xt,Ct]),an=u.useMemo(function(){return{isSubPathKey:Ht}},[Ht]);u.useEffect(function(){_t(Re?ua:Se.slice(gt+1).map(function(at){return at.key}))},[gt,Re]);var fr=ir(M||D&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:M}),Zt=W(fr,2),Hn=Zt[0],mr=Zt[1],Vn=xl(function(at){mr(at)}),Jn=xl(function(){mr(void 0)});u.useImperativeHandle(t,function(){return{list:Ce.current,focus:function(Fe){var Je,Tt=Oe(),At=Vv(Tt,Ve),fn=At.elements,Wn=At.key2element,On=At.element2key,Un=Ag(Ce.current,fn),Ua=Hn??(Un[0]?On.get(Un[0]):(Je=Se.find(function(Ir){return!Ir.props.disabled}))===null||Je===void 0?void 0:Je.key),mn=Wn.get(Ua);if(Ua&&mn){var $o;mn==null||($o=mn.focus)===null||$o===void 0||$o.call(mn,Fe)}}}});var xo=ir($||[],{value:L,postState:function(Fe){return Array.isArray(Fe)?Fe:Fe==null?ua:[Fe]}}),An=W(xo,2),Sn=An[0],ro=An[1],Ro=function(Fe){if(V){var Je=Fe.key,Tt=Sn.includes(Je),At;P?Tt?At=Sn.filter(function(Wn){return Wn!==Je}):At=[].concat(ye(Sn),[Je]):At=[Je],ro(At);var fn=z(z({},Fe),{},{selectedKeys:At});Tt?T==null||T(fn):N==null||N(fn)}!P&&dt.length&&nt!=="inline"&&st(ua)},vr=xl(function(at){oe==null||oe(Tc(at)),Ro(at)}),pr=xl(function(at,Fe){var Je=dt.filter(function(At){return At!==at});if(Fe)Je.push(at);else if(nt!=="inline"){var Tt=Me(at);Je=Je.filter(function(At){return!Tt.has(At)})}cs(dt,Je,!0)||st(Je,!0)}),qr=function(Fe,Je){var Tt=Je??!dt.includes(Fe);pr(Fe,Tt)},gr=kz(nt,Hn,ke,Ve,Ce,Oe,$e,mr,qr,Pe);u.useEffect(function(){xe(!0)},[]);var Xe=u.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:le}},[ve,le]),Ke=nt!=="horizontal"||C?Se:Se.map(function(at,Fe){return u.createElement(ys,{key:at.key,overflowDisabled:Fe>gt},at)}),en=u.createElement(to,be({id:b,ref:Ce,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:xd,className:q(i,"".concat(i,"-root"),"".concat(i,"-").concat(nt),c,(r={},F(r,"".concat(i,"-inline-collapsed"),Ie),F(r,"".concat(i,"-rtl"),ke),r),l),dir:y,style:s,role:"menu",tabIndex:f,data:Ke,renderRawItem:function(Fe){return Fe},renderRawRest:function(Fe){var Je=Fe.length,Tt=Je?Se.slice(-Je):null;return u.createElement(zg,{eventKey:Wv,title:te,disabled:Re,internalPopupClose:Je===0,popupClassName:ie},Tt)},maxCount:nt!=="horizontal"||C?to.INVALIDATE:to.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Fe){Ge(Fe)},onKeyDown:gr},se));return u.createElement(Lg.Provider,{value:Xe},u.createElement(px.Provider,{value:Ve},u.createElement(ys,{prefixCls:i,rootClassName:l,mode:nt,openKeys:dt,rtl:ke,disabled:p,motion:Be?U:null,defaultMotions:Be?G:null,activeKey:Hn,onActive:Vn,onInactive:Jn,selectedKeys:Sn,inlineIndent:H,subMenuOpenDelay:x,subMenuCloseDelay:R,forceSubMenuRender:O,builtinPlacements:ae,triggerSubMenuAction:Q,getPopupContainer:Y,itemIcon:ce,expandIcon:ne,onItemClick:vr,onOpenChange:pr},u.createElement(Sx.Provider,{value:an},en),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(yx.Provider,{value:It},De)))))}),Ds=v3;Ds.Item=xd;Ds.SubMenu=zg;Ds.ItemGroup=Ox;Ds.Divider=$x;var p3={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"},g3=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:p3}))},h3=u.forwardRef(g3);function Px(e){return Gt(e,{inputAffixPadding:e.paddingXXS})}const _x=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:y,controlOutlineWidth:b,controlOutline:S,colorErrorOutline:h,colorWarningOutline:v,colorBgContainer:p}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:y,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${S}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${v}`,hoverBg:p,activeBg:p,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},y3=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Bg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},y3(Gt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ix=(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}}),yb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ix(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),b3=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ix(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bg(e))}),yb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),yb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),bb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),S3=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},bb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),bb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Bg(e))}})}),C3=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Tx=(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}}),Sb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Tx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),w3=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bg(e))}),Sb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Sb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Cb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),E3=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:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Cb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Cb(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),x3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Mx=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Nx=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Lx=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},x3(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({},Mx(e)),"&-sm":Object.assign({},Nx(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),R3=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({},Mx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Nx(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 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(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:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${J(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"},qi()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},$3=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},no(e)),Lx(e)),b3(e)),w3(e)),C3(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},O3=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 ${J(e.inputAffixPadding)}`}}}},P3=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},Lx(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),O3(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},_3=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},no(e)),R3(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}}},S3(e)),E3(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}}})})}},I3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,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}}}}},T3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.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"}}}}}},M3=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},kg=_r("Input",e=>{const t=Gt(e,Px(e));return[$3(t),T3(t),P3(t),_3(t),I3(t),M3(t),xg(t)]},_x,{resetFont:!1});var N3={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"},L3=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:N3}))},A3=u.forwardRef(L3);const Rd=u.createContext(null);var j3=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,s=i.align,c=s===void 0?"center":s,d=u.useState(),f=W(d,2),m=f[0],g=f[1],y=u.useRef(),b=K.useCallback(function(h){return typeof l=="function"?l(h):typeof l=="number"?l:h},[l]);function S(){Rt.cancel(y.current)}return u.useEffect(function(){var h={};if(n)if(r){h.width=b(n.width);var v=o?"right":"left";c==="start"&&(h[v]=n[v]),c==="center"&&(h[v]=n[v]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(h[v]=n[v]+n.width,h.transform="translateX(-100%)")}else h.height=b(n.height),c==="start"&&(h.top=n.top),c==="center"&&(h.top=n.top+n.height/2,h.transform="translateY(-50%)"),c==="end"&&(h.top=n.top+n.height,h.transform="translateY(-100%)");return S(),y.current=Rt(function(){g(h)}),S},[n,r,o,c,b]),{style:m}},wb={width:0,height:0,left:0,top:0};function D3(e,t,n){return u.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||wb,i=a.left+a.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var d;c=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||wb}var f=o.get(s)||z({},c);f.right=i-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Eb(e,t){var n=u.useRef(e),r=u.useState({}),o=W(r,2),a=o[1];function i(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,a({})}return[n.current,i]}var F3=.1,xb=.01,Hu=20,Rb=Math.pow(.995,Hu);function z3(e,t){var n=u.useState(),r=W(n,2),o=r[0],a=r[1],i=u.useState(0),l=W(i,2),s=l[0],c=l[1],d=u.useState(0),f=W(d,2),m=f[0],g=f[1],y=u.useState(),b=W(y,2),S=b[0],h=b[1],v=u.useRef();function p(O){var _=O.touches[0],A=_.screenX,M=_.screenY;a({x:A,y:M}),window.clearInterval(v.current)}function C(O){if(o){O.preventDefault();var _=O.touches[0],A=_.screenX,M=_.screenY;a({x:A,y:M});var D=A-o.x,I=M-o.y;t(D,I);var V=Date.now();c(V),g(V-s),h({x:D,y:I})}}function w(){if(o&&(a(null),h(null),S)){var O=S.x/m,_=S.y/m,A=Math.abs(O),M=Math.abs(_);if(Math.max(A,M)<F3)return;var D=O,I=_;v.current=window.setInterval(function(){if(Math.abs(D)<xb&&Math.abs(I)<xb){window.clearInterval(v.current);return}D*=Rb,I*=Rb,t(D*Hu,I*Hu)},Hu)}}var x=u.useRef();function E(O){var _=O.deltaX,A=O.deltaY,M=0,D=Math.abs(_),I=Math.abs(A);D===I?M=x.current==="x"?_:A:D>I?(M=_,x.current="x"):(M=A,x.current="y"),t(-M,-M)&&O.preventDefault()}var R=u.useRef(null);R.current={onTouchStart:p,onTouchMove:C,onTouchEnd:w,onWheel:E},u.useEffect(function(){function O(D){R.current.onTouchStart(D)}function _(D){R.current.onTouchMove(D)}function A(D){R.current.onTouchEnd(D)}function M(D){R.current.onWheel(D)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",A)}},[])}function Ax(e){var t=u.useState(0),n=W(t,2),r=n[0],o=n[1],a=u.useRef(0),i=u.useRef();return i.current=e,av(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function B3(e){var t=u.useRef([]),n=u.useState({}),r=W(n,2),o=r[1],a=u.useRef(typeof e=="function"?e():e),i=Ax(function(){var s=a.current;t.current.forEach(function(c){s=c(s)}),t.current=[],a.current=s,o({})});function l(s){t.current.push(s),i()}return[a.current,l]}var $b={width:0,height:0,left:0,top:0,right:0};function k3(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,c=i.rtl,d,f,m;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),u.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,y=g,b=0;b<g;b+=1){var S=e.get(l[b].key)||$b;if(S[f]+S[d]>m+t){y=b-1;break}}for(var h=0,v=g-1;v>=0;v-=1){var p=e.get(l[v].key)||$b;if(p[f]<m){h=v+1;break}}return h>=y?[0,0]:[h,y]},[e,t,r,o,a,m,s,l.map(function(g){return g.key}).join("_"),c])}function Ob(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var H3="TABS_DQ";function jx(e){return String(e).replace(/"/g,H3)}function Dx(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Fx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Pb=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return je(o)==="object"&&!u.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),V3=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,b=e.onTabClick,S=e.getPopupContainer,h=e.popupClassName,v=u.useState(!1),p=W(v,2),C=p[0],w=p[1],x=u.useState(null),E=W(x,2),R=E[0],O=E[1],_=s.icon,A=_===void 0?"More":_,M="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),I=R!==null?"".concat(M,"-").concat(R):null,V=a==null?void 0:a.dropdownAriaLabel;function j(H,U){H.preventDefault(),H.stopPropagation(),f.onEdit("remove",{key:U,event:H})}var P=u.createElement(Ds,{onClick:function(U){var G=U.key,ee=U.domEvent;b(G,ee),w(!1)},prefixCls:"".concat(D,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[R],"aria-label":V!==void 0?V:"expanded dropdown"},o.map(function(H){var U=H.closable,G=H.disabled,ee=H.closeIcon,Q=H.key,ae=H.label,ce=Dx(U,ee,f,G);return u.createElement(xd,{key:Q,id:"".concat(M,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:G},u.createElement("span",null,ae),ce&&u.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(X){X.stopPropagation(),j(X,Q)}},ee||f.removeIcon||"×"))}));function $(H){for(var U=o.filter(function(ce){return!ce.disabled}),G=U.findIndex(function(ce){return ce.key===R})||0,ee=U.length,Q=0;Q<ee;Q+=1){G=(G+H+ee)%ee;var ae=U[G];if(!ae.disabled){O(ae.key);return}}}function L(H){var U=H.which;if(!C){[re.DOWN,re.SPACE,re.ENTER].includes(U)&&(w(!0),H.preventDefault());return}switch(U){case re.UP:$(-1),H.preventDefault();break;case re.DOWN:$(1),H.preventDefault();break;case re.ESC:w(!1);break;case re.SPACE:case re.ENTER:R!==null&&b(R,H);break}}u.useEffect(function(){var H=document.getElementById(I);H&&H.scrollIntoView&&H.scrollIntoView(!1)},[R]),u.useEffect(function(){C||O(null)},[C]);var N=F({},g?"marginRight":"marginLeft",m);o.length||(N.visibility="hidden",N.order=1);var T=q(F({},"".concat(D,"-rtl"),g)),k=i?null:u.createElement(Nz,be({prefixCls:D,overlay:P,visible:o.length?C:!1,onVisibleChange:w,overlayClassName:q(T,h),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},s),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:L},A));return u.createElement("div",{className:q("".concat(n,"-nav-operations"),d),style:c,ref:t},k,u.createElement(Fx,{prefixCls:n,locale:a,editable:f}))});const W3=u.memo(V3,function(e,t){return t.tabMoving});var U3=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.tab,i=a.key,l=a.label,s=a.disabled,c=a.closeIcon,d=a.icon,f=t.closable,m=t.renderWrapper,g=t.removeAriaLabel,y=t.editable,b=t.onClick,S=t.onFocus,h=t.style,v="".concat(n,"-tab"),p=Dx(f,c,y,s);function C(R){s||b(R)}function w(R){R.preventDefault(),R.stopPropagation(),y.onEdit("remove",{key:i,event:R})}var x=u.useMemo(function(){return d&&typeof l=="string"?u.createElement("span",null,l):l},[l,d]),E=u.createElement("div",{key:i,"data-node-key":jx(i),className:q(v,F(F(F({},"".concat(v,"-with-remove"),p),"".concat(v,"-active"),o),"".concat(v,"-disabled"),s)),style:h,onClick:C},u.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(v,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(O){O.stopPropagation(),C(O)},onKeyDown:function(O){[re.SPACE,re.ENTER].includes(O.which)&&(O.preventDefault(),C(O))},onFocus:S},d&&u.createElement("span",{className:"".concat(v,"-icon")},d),l&&x),p&&u.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(v,"-remove"),onClick:function(O){O.stopPropagation(),w(O)}},c||y.removeIcon||"×"));return m?m(E):E},G3=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,d=l.x,f=l.y;return Math.abs(s-r)<1?[s,c,d-n.x,f-n.y]:[r,o,i,a]},ni=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return[s,c]}return[o,i]},hu=function(t,n){return t[n?0:1]},_b=u.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,i=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,g=e.children,y=e.onTabClick,b=e.onTabScroll,S=e.indicator,h=u.useContext(Rd),v=h.prefixCls,p=h.tabs,C=u.useRef(null),w=u.useRef(null),x=u.useRef(null),E=u.useRef(null),R=u.useRef(null),O=u.useRef(null),_=u.useRef(null),A=f==="top"||f==="bottom",M=Eb(0,function(Ge,Re){A&&b&&b({direction:Ge>Re?"left":"right"})}),D=W(M,2),I=D[0],V=D[1],j=Eb(0,function(Ge,Re){!A&&b&&b({direction:Ge>Re?"top":"bottom"})}),P=W(j,2),$=P[0],L=P[1],N=u.useState([0,0]),T=W(N,2),k=T[0],H=T[1],U=u.useState([0,0]),G=W(U,2),ee=G[0],Q=G[1],ae=u.useState([0,0]),ce=W(ae,2),ne=ce[0],X=ce[1],te=u.useState([0,0]),ie=W(te,2),Y=ie[0],oe=ie[1],fe=B3(new Map),Pe=W(fe,2),ve=Pe[0],le=Pe[1],me=D3(p,ve,ee[0]),se=hu(k,A),Ee=hu(ee,A),Ne=hu(ne,A),Se=hu(Y,A),De=se<Ee+Ne,pe=De?se-Se:se-Ne,ot="".concat(v,"-nav-operations-hidden"),Be=0,xe=0;A&&l?(Be=0,xe=Math.max(0,Ee-pe)):(Be=Math.min(0,pe-Ee),xe=0);function Ce(Ge){return Ge<Be?Be:Ge>xe?xe:Ge}var Ve=u.useRef(null),ke=u.useState(),tt=W(ke,2),vt=tt[0],dt=tt[1];function Qe(){dt(Date.now())}function st(){Ve.current&&clearTimeout(Ve.current)}z3(E,function(Ge,Re){function Ue(xt,Ct){xt(function(_t){var Ht=Ce(_t+Ct);return Ht})}return De?(A?Ue(V,Ge):Ue(L,Re),st(),Qe(),!0):!1}),u.useEffect(function(){return st(),vt&&(Ve.current=setTimeout(function(){dt(0)},100)),st},[vt]);var ut=k3(me,pe,A?I:$,Ee,Ne,Se,z(z({},e),{},{tabs:p})),Lt=W(ut,2),bt=Lt[0],Et=Lt[1],Dt=nn(function(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Re=me.get(Ge)||{width:0,height:0,left:0,right:0,top:0};if(A){var Ue=I;l?Re.right<I?Ue=Re.right:Re.right+Re.width>I+pe&&(Ue=Re.right+Re.width-pe):Re.left<-I?Ue=-Re.left:Re.left+Re.width>-I+pe&&(Ue=-(Re.left+Re.width-pe)),L(0),V(Ce(Ue))}else{var xt=$;Re.top<-$?xt=-Re.top:Re.top+Re.height>-$+pe&&(xt=-(Re.top+Re.height-pe)),V(0),L(Ce(xt))}}),St={};f==="top"||f==="bottom"?St[l?"marginRight":"marginLeft"]=m:St.marginTop=m;var Ze=p.map(function(Ge,Re){var Ue=Ge.key;return u.createElement(U3,{id:o,prefixCls:v,key:Ue,tab:Ge,style:Re===0?void 0:St,closable:Ge.closable,editable:c,active:Ue===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Ct){y(Ue,Ct)},onFocus:function(){Dt(Ue),Qe(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),ze=function(){return le(function(){var Re,Ue=new Map,xt=(Re=R.current)===null||Re===void 0?void 0:Re.getBoundingClientRect();return p.forEach(function(Ct){var _t,Ht=Ct.key,$e=(_t=R.current)===null||_t===void 0?void 0:_t.querySelector('[data-node-key="'.concat(jx(Ht),'"]'));if($e){var Oe=G3($e,xt),Me=W(Oe,4),It=Me[0],an=Me[1],fr=Me[2],Zt=Me[3];Ue.set(Ht,{width:It,height:an,left:fr,top:Zt})}}),Ue})};u.useEffect(function(){ze()},[p.map(function(Ge){return Ge.key}).join("_")]);var He=Ax(function(){var Ge=ni(C),Re=ni(w),Ue=ni(x);H([Ge[0]-Re[0]-Ue[0],Ge[1]-Re[1]-Ue[1]]);var xt=ni(_);X(xt);var Ct=ni(O);oe(Ct);var _t=ni(R);Q([_t[0]-xt[0],_t[1]-xt[1]]),ze()}),Le=p.slice(0,bt),ge=p.slice(Et+1),Ye=[].concat(ye(Le),ye(ge)),nt=me.get(i),de=j3({activeTabOffset:nt,horizontal:A,indicator:S,rtl:l}),we=de.style;u.useEffect(function(){Dt()},[i,Be,xe,Ob(nt),Ob(me),A]),u.useEffect(function(){He()},[l]);var he=!!Ye.length,Ie="".concat(v,"-nav-wrap"),We,et,Pt,gt;return A?l?(et=I>0,We=I!==xe):(We=I<0,et=I!==Be):(Pt=$<0,gt=$!==Be),u.createElement(Br,{onResize:He},u.createElement("div",{ref:Ba(t,C),role:"tablist",className:q("".concat(v,"-nav"),n),style:r,onKeyDown:function(){Qe()}},u.createElement(Pb,{ref:w,position:"left",extra:s,prefixCls:v}),u.createElement(Br,{onResize:He},u.createElement("div",{className:q(Ie,F(F(F(F({},"".concat(Ie,"-ping-left"),We),"".concat(Ie,"-ping-right"),et),"".concat(Ie,"-ping-top"),Pt),"".concat(Ie,"-ping-bottom"),gt)),ref:E},u.createElement(Br,{onResize:He},u.createElement("div",{ref:R,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat($,"px)"),transition:vt?"none":void 0}},Ze,u.createElement(Fx,{ref:_,prefixCls:v,locale:d,editable:c,style:z(z({},Ze.length===0?void 0:St),{},{visibility:he?"hidden":null})}),u.createElement("div",{className:q("".concat(v,"-ink-bar"),F({},"".concat(v,"-ink-bar-animated"),a.inkBar)),style:we}))))),u.createElement(W3,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:v,tabs:Ye,className:!he&&ot,tabMoving:!!vt})),u.createElement(Pb,{ref:x,position:"right",extra:s,prefixCls:v})))}),zx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,s=e.children;return u.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:q(n,i&&"".concat(n,"-active"),r),ref:t},s)}),K3=["renderTabBar"],q3=["label","key"],Q3=function(t){var n=t.renderTabBar,r=it(t,K3),o=u.useContext(Rd),a=o.tabs;if(n){var i=z(z({},r),{},{panes:a.map(function(l){var s=l.label,c=l.key,d=it(l,q3);return u.createElement(zx,be({tab:s,key:c,tabKey:c},d))})});return n(i,_b)}return u.createElement(_b,r)},X3=["key","forceRender","style","className","destroyInactiveTabPane"],Y3=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=u.useContext(Rd),s=l.prefixCls,c=l.tabs,d=o.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(a),F({},"".concat(s,"-content-animated"),d))},c.map(function(m){var g=m.key,y=m.forceRender,b=m.style,S=m.className,h=m.destroyInactiveTabPane,v=it(m,X3),p=g===r;return u.createElement(wo,be({key:g,visible:p,forceRender:y,removeOnLeave:!!(i||h),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(C,w){var x=C.style,E=C.className;return u.createElement(zx,be({},v,{prefixCls:f,id:n,tabKey:g,animated:d,active:p,style:z(z({},b),x),className:q(S,E),ref:w}))})})))};function J3(){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=z({inkBar:!0},je(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Z3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ib=0,e5=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,y=e.tabBarGutter,b=e.tabBarStyle,S=e.tabBarExtraContent,h=e.locale,v=e.more,p=e.destroyInactiveTabPane,C=e.renderTabBar,w=e.onChange,x=e.onTabClick,E=e.onTabScroll,R=e.getPopupContainer,O=e.popupClassName,_=e.indicator,A=it(e,Z3),M=u.useMemo(function(){return(i||[]).filter(function(Y){return Y&&je(Y)==="object"&&"key"in Y})},[i]),D=l==="rtl",I=J3(f),V=u.useState(!1),j=W(V,2),P=j[0],$=j[1];u.useEffect(function(){$(Og())},[]);var L=ir(function(){var Y;return(Y=M[0])===null||Y===void 0?void 0:Y.key},{value:s,defaultValue:c}),N=W(L,2),T=N[0],k=N[1],H=u.useState(function(){return M.findIndex(function(Y){return Y.key===T})}),U=W(H,2),G=U[0],ee=U[1];u.useEffect(function(){var Y=M.findIndex(function(fe){return fe.key===T});if(Y===-1){var oe;Y=Math.max(0,Math.min(G,M.length-1)),k((oe=M[Y])===null||oe===void 0?void 0:oe.key)}ee(Y)},[M.map(function(Y){return Y.key}).join("_"),T,G]);var Q=ir(null,{value:n}),ae=W(Q,2),ce=ae[0],ne=ae[1];u.useEffect(function(){n||(ne("rc-tabs-".concat(Ib)),Ib+=1)},[]);function X(Y,oe){x==null||x(Y,oe);var fe=Y!==T;k(Y),fe&&(w==null||w(Y))}var te={id:ce,activeKey:T,animated:I,tabPosition:g,rtl:D,mobile:P},ie=z(z({},te),{},{editable:d,locale:h,more:v,tabBarGutter:y,onTabClick:X,onTabScroll:E,extra:S,style:b,panes:null,getPopupContainer:R,popupClassName:O,indicator:_});return u.createElement(Rd.Provider,{value:{tabs:M,prefixCls:o}},u.createElement("div",be({ref:t,id:n,className:q(o,"".concat(o,"-").concat(g),F(F(F({},"".concat(o,"-mobile"),P),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),D),a)},A),u.createElement(Q3,be({},ie,{renderTabBar:C})),u.createElement(Y3,be({destroyInactiveTabPane:p},te,{animated:I}))))});const t5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function n5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},t5),{motionName:Bi(e,"switch")})),n}var r5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function o5(e){return e.filter(t=>t)}function a5(e,t){if(e)return e;const n=Zo(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,s=r5(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return o5(n)}const i5=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}`}}}}},[Pc(e,"slide-up"),Pc(e,"slide-down")]]},l5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${J(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:J(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:J(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadiusLG)} 0 0 ${J(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 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},s5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},no(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:`${J(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({},zi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${J(e.paddingXXS)} ${J(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"}}})}})}},u5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${J(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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:J(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${J(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:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},c5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadius)} ${J(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${J(e.borderRadius)} ${J(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadius)} ${J(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadius)} 0 0 ${J(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},d5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},vd(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color: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 ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},f5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=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:J(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:J(e.marginXS)},marginLeft:{_skip_check_:!0,value:J(a(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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},m5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},no(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:o},padding:`0 ${J(e.paddingXS)}`,background:"transparent",border:`${J(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},vd(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),d5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},v5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},p5=_r("Tabs",e=>{const t=Gt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[c5(t),f5(t),u5(t),s5(t),l5(t),m5(t),i5(t)]},v5),g5=()=>null;var h5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Bx=e=>{var t,n,r,o,a,i,l,s,c,d,f;const{type:m,className:g,rootClassName:y,size:b,onEdit:S,hideAdd:h,centered:v,addIcon:p,removeIcon:C,moreIcon:w,more:x,popupClassName:E,children:R,items:O,animated:_,style:A,indicatorSize:M,indicator:D}=e,I=h5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:V}=I,{direction:j,tabs:P,getPrefixCls:$,getPopupContainer:L}=u.useContext(ft),N=$("tabs",V),T=ka(N),[k,H,U]=p5(N,T);let G;m==="editable-card"&&(G={onEdit:(te,ie)=>{let{key:Y,event:oe}=ie;S==null||S(te==="add"?oe:Y,te)},removeIcon:(t=C??(P==null?void 0:P.removeIcon))!==null&&t!==void 0?t:u.createElement(_s,null),addIcon:(p??(P==null?void 0:P.addIcon))||u.createElement(A3,null),showAdd:h!==!0});const ee=$(),Q=Eo(b),ae=a5(O,R),ce=n5(N,_),ne=Object.assign(Object.assign({},P==null?void 0:P.style),A),X={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=P==null?void 0:P.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=D==null?void 0:D.size)!==null&&o!==void 0?o:M)!==null&&a!==void 0?a:(i=P==null?void 0:P.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:P==null?void 0:P.indicatorSize};return k(u.createElement(e5,Object.assign({direction:j,getPopupContainer:L},I,{items:ae,className:q({[`${N}-${Q}`]:Q,[`${N}-card`]:["card","editable-card"].includes(m),[`${N}-editable-card`]:m==="editable-card",[`${N}-centered`]:v},P==null?void 0:P.className,g,y,H,U,T),popupClassName:q(E,H,U,T),style:ne,editable:G,more:Object.assign({icon:(f=(d=(c=(s=P==null?void 0:P.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:P==null?void 0:P.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:u.createElement(h3,null),transitionName:`${ee}-slide-up`},x),prefixCls:N,animated:ce,indicator:X})))};Bx.TabPane=g5;var y5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kx=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=y5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=u.useContext(ft),i=a("card",t),l=q(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:l}))},b5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${J(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},qi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},zi),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},S5=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${J(o)} 0 0 0 ${n},
      0 ${J(o)} 0 0 ${n},
      ${J(o)} ${J(o)} 0 0 ${n},
      ${J(o)} 0 0 0 ${n} inset,
      0 ${J(o)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},C5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${J(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},qi()),{"& > 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:J(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:J(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${a}`}}})},w5=e=>Object.assign(Object.assign({margin:`${J(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},qi()),{"&-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},zi),"&-description":{color:e.colorTextDescription}}),E5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${J(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${J(e.padding)} ${J(n)}`}}},x5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},R5=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:a,boxShadowTertiary:i,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},no(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:b5(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},qi()),[`${n}-grid`]:S5(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:C5(e),[`${n}-meta`]:w5(e)}),[`${n}-bordered`]:{border:`${J(e.lineWidth)} ${e.lineType} ${a}`,[`${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:`${J(e.borderRadiusLG)} ${J(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`]:{[`> div${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:E5(e),[`${n}-loading`]:x5(e),[`${n}-rtl`]:{direction:"rtl"}}},$5=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${J(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},O5=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}),P5=_r("Card",e=>{const t=Gt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[R5(t),$5(t)]},O5);var Tb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _5=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return u.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return u.createElement("li",{style:{width:`${100/n.length}%`},key:i},u.createElement("span",null,o))}))},I5=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:f=!0,size:m,type:g,cover:y,actions:b,tabList:S,children:h,activeTabKey:v,defaultActiveTabKey:p,tabBarExtraContent:C,hoverable:w,tabProps:x={},classNames:E,styles:R}=e,O=Tb(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:A,card:M}=u.useContext(ft),D=ve=>{var le;(le=e.onTabChange)===null||le===void 0||le.call(e,ve)},I=ve=>{var le;return q((le=M==null?void 0:M.classNames)===null||le===void 0?void 0:le[ve],E==null?void 0:E[ve])},V=ve=>{var le;return Object.assign(Object.assign({},(le=M==null?void 0:M.styles)===null||le===void 0?void 0:le[ve]),R==null?void 0:R[ve])},j=u.useMemo(()=>{let ve=!1;return u.Children.forEach(h,le=>{(le==null?void 0:le.type)===kx&&(ve=!0)}),ve},[h]),P=_("card",n),[$,L,N]=P5(P),T=u.createElement(Va,{loading:!0,active:!0,paragraph:{rows:4},title:!1},h),k=v!==void 0,H=Object.assign(Object.assign({},x),{[k?"activeKey":"defaultActiveKey"]:k?v:p,tabBarExtraContent:C});let U;const G=Eo(m),ee=!G||G==="default"?"large":G,Q=S?u.createElement(Bx,Object.assign({size:ee},H,{className:`${P}-head-tabs`,onChange:D,items:S.map(ve=>{var{tab:le}=ve,me=Tb(ve,["tab"]);return Object.assign({label:le},me)})})):null;if(c||i||Q){const ve=q(`${P}-head`,I("header")),le=q(`${P}-head-title`,I("title")),me=q(`${P}-extra`,I("extra")),se=Object.assign(Object.assign({},l),V("header"));U=u.createElement("div",{className:ve,style:se},u.createElement("div",{className:`${P}-head-wrapper`},c&&u.createElement("div",{className:le,style:V("title")},c),i&&u.createElement("div",{className:me,style:V("extra")},i)),Q)}const ae=q(`${P}-cover`,I("cover")),ce=y?u.createElement("div",{className:ae,style:V("cover")},y):null,ne=q(`${P}-body`,I("body")),X=Object.assign(Object.assign({},s),V("body")),te=u.createElement("div",{className:ne,style:X},d?T:h),ie=q(`${P}-actions`,I("actions")),Y=b!=null&&b.length?u.createElement(_5,{actionClasses:ie,actionStyle:V("actions"),actions:b}):null,oe=dr(O,["onTabChange"]),fe=q(P,M==null?void 0:M.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:w,[`${P}-contain-grid`]:j,[`${P}-contain-tabs`]:S==null?void 0:S.length,[`${P}-${G}`]:G,[`${P}-type-${g}`]:!!g,[`${P}-rtl`]:A==="rtl"},r,o,L,N),Pe=Object.assign(Object.assign({},M==null?void 0:M.style),a);return $(u.createElement("div",Object.assign({ref:t},oe,{className:fe,style:Pe}),U,ce,te,Y))});var T5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const M5=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=T5(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(ft),s=l("card",t),c=q(`${s}-meta`,n),d=r?u.createElement("div",{className:`${s}-meta-avatar`},r):null,f=o?u.createElement("div",{className:`${s}-meta-title`},o):null,m=a?u.createElement("div",{className:`${s}-meta-description`},a):null,g=f||m?u.createElement("div",{className:`${s}-meta-detail`},f,m):null;return u.createElement("div",Object.assign({},i,{className:c}),d,g)},Hi=I5;Hi.Grid=kx;Hi.Meta=M5;function N5(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,c=s===void 0?void 0:s,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function y(S){var h=S||{},v=h.upcomingOnly,p=v===void 0?!1:v;g(),f=!p}function b(){for(var S=arguments.length,h=new Array(S),v=0;v<S;v++)h[v]=arguments[v];var p=this,C=Date.now()-m;if(f)return;function w(){m=Date.now(),t.apply(p,h)}function x(){d=void 0}!l&&c&&!d&&w(),g(),c===void 0&&C>e?l?(m=Date.now(),a||(d=setTimeout(c?x:w,e))):w():a!==!0&&(d=setTimeout(c?x:w,c===void 0?e-C:e))}return b.cancel=y,b}function L5(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return N5(e,t,{debounceMode:a!==!1})}function A5(e){return!!(e.addonBefore||e.addonAfter)}function j5(e){return!!(e.prefix||e.suffix||e.allowClear)}function Mb(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Mc(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Mb(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Mb(t,e,r),n(o);return}n(o)}}function D5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Hx=K.forwardRef(function(e,t){var n,r,o=e.inputElement,a=e.children,i=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,g=e.disabled,y=e.readOnly,b=e.focused,S=e.triggerFocus,h=e.allowClear,v=e.value,p=e.handleReset,C=e.hidden,w=e.classes,x=e.classNames,E=e.dataAttrs,R=e.styles,O=e.components,_=a??o,A=(O==null?void 0:O.affixWrapper)||"span",M=(O==null?void 0:O.groupWrapper)||"span",D=(O==null?void 0:O.wrapper)||"span",I=(O==null?void 0:O.groupAddon)||"span",V=u.useRef(null),j=function(oe){var fe;(fe=V.current)!==null&&fe!==void 0&&fe.contains(oe.target)&&(S==null||S())},P=j5(e),$=u.cloneElement(_,{value:v,className:q(_.props.className,!P&&(x==null?void 0:x.variant))||null}),L=u.useRef(null);if(K.useImperativeHandle(t,function(){return{nativeElement:L.current||V.current}}),P){var N,T=null;if(h){var k,H=!g&&!y&&v,U="".concat(i,"-clear-icon"),G=je(h)==="object"&&h!==null&&h!==void 0&&h.clearIcon?h.clearIcon:"✖";T=K.createElement("span",{onClick:p,onMouseDown:function(oe){return oe.preventDefault()},className:q(U,(k={},F(k,"".concat(U,"-hidden"),!H),F(k,"".concat(U,"-has-suffix"),!!s),k)),role:"button",tabIndex:-1},G)}var ee="".concat(i,"-affix-wrapper"),Q=q(ee,(N={},F(N,"".concat(i,"-disabled"),g),F(N,"".concat(ee,"-disabled"),g),F(N,"".concat(ee,"-focused"),b),F(N,"".concat(ee,"-readonly"),y),F(N,"".concat(ee,"-input-with-clear-btn"),s&&h&&v),N),w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),ae=(s||h)&&K.createElement("span",{className:q("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},T,s);$=K.createElement(A,be({className:Q,style:R==null?void 0:R.affixWrapper,onClick:j},E==null?void 0:E.affixWrapper,{ref:V}),l&&K.createElement("span",{className:q("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},l),$,ae)}if(A5(e)){var ce="".concat(i,"-group"),ne="".concat(ce,"-addon"),X="".concat(ce,"-wrapper"),te=q("".concat(i,"-wrapper"),ce,w==null?void 0:w.wrapper,x==null?void 0:x.wrapper),ie=q(X,F({},"".concat(X,"-disabled"),g),w==null?void 0:w.group,x==null?void 0:x.groupWrapper);$=K.createElement(M,{className:ie,ref:L},K.createElement(D,{className:te},c&&K.createElement(I,{className:ne},c),$,d&&K.createElement(I,{className:ne},d)))}return K.cloneElement($,{className:q((n=$.props)===null||n===void 0?void 0:n.className,f)||null,style:z(z({},(r=$.props)===null||r===void 0?void 0:r.style),m),hidden:C})}),F5=["show"];function Vx(e,t){return u.useMemo(function(){var n={};t&&(n.show=je(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,o=r.show,a=it(r,F5);return z(z({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var z5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],B5=u.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=s===void 0?"rc-input":s,d=e.disabled,f=e.htmlSize,m=e.className,g=e.maxLength,y=e.suffix,b=e.showCount,S=e.count,h=e.type,v=h===void 0?"text":h,p=e.classes,C=e.classNames,w=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,R=it(e,z5),O=u.useState(!1),_=W(O,2),A=_[0],M=_[1],D=u.useRef(!1),I=u.useRef(null),V=u.useRef(null),j=function(se){I.current&&D5(I.current,se)},P=ir(e.defaultValue,{value:e.value}),$=W(P,2),L=$[0],N=$[1],T=L==null?"":String(L),k=u.useState(null),H=W(k,2),U=H[0],G=H[1],ee=Vx(S,b),Q=ee.max||g,ae=ee.strategy(T),ce=!!Q&&ae>Q;u.useImperativeHandle(t,function(){var me;return{focus:j,blur:function(){var Ee;(Ee=I.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,Ne,Se){var De;(De=I.current)===null||De===void 0||De.setSelectionRange(Ee,Ne,Se)},select:function(){var Ee;(Ee=I.current)===null||Ee===void 0||Ee.select()},input:I.current,nativeElement:((me=V.current)===null||me===void 0?void 0:me.nativeElement)||I.current}}),u.useEffect(function(){M(function(me){return me&&d?!1:me})},[d]);var ne=function(se,Ee,Ne){var Se=Ee;if(!D.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ee)>ee.max){if(Se=ee.exceedFormatter(Ee,{max:ee.max}),Ee!==Se){var De,pe;G([((De=I.current)===null||De===void 0?void 0:De.selectionStart)||0,((pe=I.current)===null||pe===void 0?void 0:pe.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;N(Se),I.current&&Mc(I.current,se,r,Se)};u.useEffect(function(){if(U){var me;(me=I.current)===null||me===void 0||me.setSelectionRange.apply(me,ye(U))}},[U]);var X=function(se){ne(se,se.target.value,{source:"change"})},te=function(se){D.current=!1,ne(se,se.currentTarget.value,{source:"compositionEnd"}),E==null||E(se)},ie=function(se){i&&se.key==="Enter"&&i(se),l==null||l(se)},Y=function(se){M(!0),o==null||o(se)},oe=function(se){M(!1),a==null||a(se)},fe=function(se){N(""),j(),I.current&&Mc(I.current,se,r)},Pe=ce&&"".concat(c,"-out-of-range"),ve=function(){var se=dr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return K.createElement("input",be({autoComplete:n},se,{onChange:X,onFocus:Y,onBlur:oe,onKeyDown:ie,className:q(c,F({},"".concat(c,"-disabled"),d),C==null?void 0:C.input),style:w==null?void 0:w.input,ref:I,size:f,type:v,onCompositionStart:function(Ne){D.current=!0,x==null||x(Ne)},onCompositionEnd:te}))},le=function(){var se=Number(Q)>0;if(y||ee.show){var Ee=ee.showFormatter?ee.showFormatter({value:T,count:ae,maxLength:Q}):"".concat(ae).concat(se?" / ".concat(Q):"");return K.createElement(K.Fragment,null,ee.show&&K.createElement("span",{className:q("".concat(c,"-show-count-suffix"),F({},"".concat(c,"-show-count-has-suffix"),!!y),C==null?void 0:C.count),style:z({},w==null?void 0:w.count)},Ee),y)}return null};return K.createElement(Hx,be({},R,{prefixCls:c,className:q(m,Pe),handleReset:fe,value:T,focused:A,triggerFocus:j,suffix:le(),disabled:d,classes:p,classNames:C,styles:w}),ve())});const k5=e=>{const{getPrefixCls:t,direction:n}=u.useContext(ft),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=kg(i),c=q(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},s,o),d=u.useContext(bo),f=u.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(u.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},u.createElement(bo.Provider,{value:f},e.children)))},Wx=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:K.createElement(Sg,null)}),t};function Ux(e,t){const n=u.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return u.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function H5(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var V5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function W5(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)}}}const $d=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:y,style:b,styles:S,rootClassName:h,onChange:v,classNames:p,variant:C}=e,w=V5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:R}=K.useContext(ft),O=x("input",r),_=u.useRef(null),A=ka(O),[M,D,I]=kg(O,A),{compactSize:V,compactItemClassnames:j}=hd(O,E),P=Eo(ie=>{var Y;return(Y=i??V)!==null&&Y!==void 0?Y:ie}),$=K.useContext(La),L=l??$,{status:N,hasFeedback:T,feedbackIcon:k}=u.useContext(bo),H=wd(N,a),U=H5(e)||!!T;u.useRef(U);const G=Ux(_,!0),ee=ie=>{G(),s==null||s(ie)},Q=ie=>{G(),c==null||c(ie)},ae=ie=>{G(),v==null||v(ie)},ce=(T||d)&&K.createElement(K.Fragment,null,d,T&&k),ne=Wx(f??(R==null?void 0:R.allowClear)),[X,te]=Ng("input",C,o);return M(K.createElement(B5,Object.assign({ref:Gr(t,_),prefixCls:O,autoComplete:R==null?void 0:R.autoComplete},w,{disabled:L,onBlur:ee,onFocus:Q,style:Object.assign(Object.assign({},R==null?void 0:R.style),b),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),S),suffix:ce,allowClear:ne,className:q(y,h,I,A,j,R==null?void 0:R.className),onChange:ae,addonBefore:g&&K.createElement(Lv,{form:!0,space:!0},g),addonAfter:m&&K.createElement(Lv,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},p),R==null?void 0:R.classNames),{input:q({[`${O}-sm`]:P==="small",[`${O}-lg`]:P==="large",[`${O}-rtl`]:E==="rtl"},p==null?void 0:p.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,D),variant:q({[`${O}-${X}`]:te},Ic(O,H)),affixWrapper:q({[`${O}-affix-wrapper-sm`]:P==="small",[`${O}-affix-wrapper-lg`]:P==="large",[`${O}-affix-wrapper-rtl`]:E==="rtl"},D),wrapper:q({[`${O}-group-rtl`]:E==="rtl"},D),groupWrapper:q({[`${O}-group-wrapper-sm`]:P==="small",[`${O}-group-wrapper-lg`]:P==="large",[`${O}-group-wrapper-rtl`]:E==="rtl",[`${O}-group-wrapper-${X}`]:te},Ic(`${O}-group-wrapper`,H,T),D)})})))}),U5=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},G5=_r(["Input","OTP"],e=>{const t=Gt(e,Px(e));return[U5(t)]},_x);var K5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q5=u.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:a,mask:i}=e,l=K5(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof i=="string"?i:n,c=y=>{r(a,y.target.value)},d=u.useRef(null);u.useImperativeHandle(t,()=>d.current);const f=()=>{Rt(()=>{var y;const b=(y=d.current)===null||y===void 0?void 0:y.input;document.activeElement===b&&b&&b.select()})},m=y=>{let{key:b}=y;b==="ArrowLeft"?o(a-1):b==="ArrowRight"&&o(a+1),f()},g=y=>{y.key==="Backspace"&&!n&&o(a-1),f()};return u.createElement($d,Object.assign({},l,{ref:d,value:s,onInput:c,onFocus:f,onKeyDown:m,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var Q5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function yu(e){return(e||"").split("")}const X5=u.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:s,variant:c,disabled:d,status:f,autoFocus:m,mask:g}=e,y=Q5(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:S}=u.useContext(ft),h=b("otp",n),v=ea(y,{aria:!0,data:!0,attr:!0}),p=ka(h),[C,w,x]=G5(h,p),E=Eo(T=>o??T),R=u.useContext(bo),O=wd(R.status,f),_=u.useMemo(()=>Object.assign(Object.assign({},R),{status:O,hasFeedback:!1,feedbackIcon:null}),[R,O]),A=u.useRef(null),M=u.useRef({});u.useImperativeHandle(t,()=>({focus:()=>{var T;(T=M.current[0])===null||T===void 0||T.focus()},blur:()=>{var T;for(let k=0;k<r;k+=1)(T=M.current[k])===null||T===void 0||T.blur()},nativeElement:A.current}));const D=T=>s?s(T):T,[I,V]=u.useState(yu(D(a||"")));u.useEffect(()=>{i!==void 0&&V(yu(i))},[i]);const j=nn(T=>{V(T),l&&T.length===r&&T.every(k=>k)&&T.some((k,H)=>I[H]!==k)&&l(T.join(""))}),P=nn((T,k)=>{let H=ye(I);for(let G=0;G<T;G+=1)H[G]||(H[G]="");k.length<=1?H[T]=k:H=H.slice(0,T).concat(yu(k)),H=H.slice(0,r);for(let G=H.length-1;G>=0&&!H[G];G-=1)H.pop();const U=D(H.map(G=>G||" ").join(""));return H=yu(U).map((G,ee)=>G===" "&&!H[ee]?H[ee]:G),H}),$=(T,k)=>{var H;const U=P(T,k),G=Math.min(T+k.length,r-1);G!==T&&((H=M.current[G])===null||H===void 0||H.focus()),j(U)},L=T=>{var k;(k=M.current[T])===null||k===void 0||k.focus()},N={variant:c,disabled:d,status:O,mask:g};return C(u.createElement("div",Object.assign({},v,{ref:A,className:q(h,{[`${h}-sm`]:E==="small",[`${h}-lg`]:E==="large",[`${h}-rtl`]:S==="rtl"},x,w)}),u.createElement(bo.Provider,{value:_},Array.from({length:r}).map((T,k)=>{const H=`otp-${k}`,U=I[k]||"";return u.createElement(q5,Object.assign({ref:G=>{M.current[k]=G},key:H,index:k,size:E,htmlSize:1,className:`${h}-input`,onChange:$,value:U,onActiveChange:L,autoFocus:k===0&&m},N))}))))});var Y5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},J5=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:Y5}))},Z5=u.forwardRef(J5),e6={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"},t6=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:e6}))},n6=u.forwardRef(t6),r6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const o6=e=>e?u.createElement(n6,null):u.createElement(Z5,null),a6={click:"onClick",hover:"onMouseOver"},i6=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=o6}=e,i=typeof o=="object"&&o.visible!==void 0,[l,s]=u.useState(()=>i?o.visible:!1),c=u.useRef(null);u.useEffect(()=>{i&&s(o.visible)},[i,o]);const d=Ux(c),f=()=>{n||(l&&d(),s(R=>{var O;const _=!R;return typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,_)),_}))},m=R=>{const O=a6[r]||"",_=a(l),A={[O]:f,className:`${R}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return u.cloneElement(u.isValidElement(_)?_:u.createElement("span",null,_),A)},{className:g,prefixCls:y,inputPrefixCls:b,size:S}=e,h=r6(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=u.useContext(ft),p=v("input",b),C=v("input-password",y),w=o&&m(C),x=q(C,g,{[`${C}-${S}`]:!!S}),E=Object.assign(Object.assign({},dr(h,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:x,prefixCls:p,suffix:w});return S&&(E.size=S),u.createElement($d,Object.assign({ref:Gr(t,c)},E))});var l6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s6=u.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:y}=e,b=l6(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:h}=u.useContext(ft),v=u.useRef(!1),p=S("input-search",n),C=S("input",r),{compactSize:w}=hd(p,h),x=Eo(N=>{var T;return(T=a??w)!==null&&T!==void 0?T:N}),E=u.useRef(null),R=N=>{N!=null&&N.target&&N.type==="click"&&f&&f(N.target.value,N,{source:"clear"}),m==null||m(N)},O=N=>{var T;document.activeElement===((T=E.current)===null||T===void 0?void 0:T.input)&&N.preventDefault()},_=N=>{var T,k;f&&f((k=(T=E.current)===null||T===void 0?void 0:T.input)===null||k===void 0?void 0:k.value,N,{source:"input"})},A=N=>{v.current||c||_(N)},M=typeof l=="boolean"?u.createElement(mx,null):null,D=`${p}-button`;let I;const V=l||{},j=V.type&&V.type.__ANT_BUTTON===!0;j||V.type==="button"?I=ps(V,Object.assign({onMouseDown:O,onClick:N=>{var T,k;(k=(T=V==null?void 0:V.props)===null||T===void 0?void 0:T.onClick)===null||k===void 0||k.call(T,N),_(N)},key:"enterButton"},j?{className:D,size:x}:{})):I=u.createElement(Mn,{className:D,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:O,onClick:_,loading:c,icon:M},l),s&&(I=[I,ps(s,{key:"addonAfter"})]);const P=q(p,{[`${p}-rtl`]:h==="rtl",[`${p}-${x}`]:!!x,[`${p}-with-button`]:!!l},o),$=N=>{v.current=!0,g==null||g(N)},L=N=>{v.current=!1,y==null||y(N)};return u.createElement($d,Object.assign({ref:Gr(E,t),onPressEnter:A},b,{size:x,onCompositionStart:$,onCompositionEnd:L,prefixCls:C,addonAfter:I,suffix:i,onChange:R,className:P,disabled:d}))});var u6=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,c6=["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"],kf={},yr;function d6(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&&kf[n])return kf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=c6.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(kf[n]=s),s}function f6(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;yr||(yr=document.createElement("textarea"),yr.setAttribute("tab-index","-1"),yr.setAttribute("aria-hidden","true"),document.body.appendChild(yr)),e.getAttribute("wrap")?yr.setAttribute("wrap",e.getAttribute("wrap")):yr.removeAttribute("wrap");var o=d6(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;yr.setAttribute("style","".concat(s,";").concat(u6)),yr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,m=yr.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){yr.value=" ";var g=yr.scrollHeight-a;n!==null&&(c=g*n,l==="border-box"&&(c=c+a+i),m=Math.max(c,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var y={height:m,overflowY:f,resize:"none"};return c&&(y.minHeight=c),d&&(y.maxHeight=d),y}var m6=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hf=0,Vf=1,Wf=2,v6=u.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=it(n,m6),g=ir(o,{value:a,postState:function(U){return U??""}}),y=W(g,2),b=y[0],S=y[1],h=function(U){S(U.target.value),f==null||f(U)},v=u.useRef();u.useImperativeHandle(t,function(){return{textArea:v.current}});var p=u.useMemo(function(){return i&&je(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=W(p,2),w=C[0],x=C[1],E=!!i,R=function(){try{if(document.activeElement===v.current){var U=v.current,G=U.selectionStart,ee=U.selectionEnd,Q=U.scrollTop;v.current.setSelectionRange(G,ee),v.current.scrollTop=Q}}catch{}},O=u.useState(Wf),_=W(O,2),A=_[0],M=_[1],D=u.useState(),I=W(D,2),V=I[0],j=I[1],P=function(){M(Hf)};zt(function(){E&&P()},[a,w,x,E]),zt(function(){if(A===Hf)M(Vf);else if(A===Vf){var H=f6(v.current,!1,w,x);M(Wf),j(H)}else R()},[A]);var $=u.useRef(),L=function(){Rt.cancel($.current)},N=function(U){A===Wf&&(l==null||l(U),i&&(L(),$.current=Rt(function(){P()})))};u.useEffect(function(){return L},[]);var T=E?V:null,k=z(z({},c),T);return(A===Hf||A===Vf)&&(k.overflowY="hidden",k.overflowX="hidden"),u.createElement(Br,{onResize:N,disabled:!(i||l)},u.createElement("textarea",be({},m,{ref:v,style:k,className:q(r,s,F({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:h})))}),p6=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],g6=K.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,y=g===void 0?"rc-textarea":g,b=e.showCount,S=e.count,h=e.className,v=e.style,p=e.disabled,C=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,R=e.readOnly,O=it(e,p6),_=ir(r,{value:o,defaultValue:r}),A=W(_,2),M=A[0],D=A[1],I=M==null?"":String(M),V=K.useState(!1),j=W(V,2),P=j[0],$=j[1],L=K.useRef(!1),N=K.useState(null),T=W(N,2),k=T[0],H=T[1],U=u.useRef(null),G=u.useRef(null),ee=function(){var Ce;return(Ce=G.current)===null||Ce===void 0?void 0:Ce.textArea},Q=function(){ee().focus()};u.useImperativeHandle(t,function(){var xe;return{resizableTextArea:G.current,focus:Q,blur:function(){ee().blur()},nativeElement:((xe=U.current)===null||xe===void 0?void 0:xe.nativeElement)||ee()}}),u.useEffect(function(){$(function(xe){return!p&&xe})},[p]);var ae=K.useState(null),ce=W(ae,2),ne=ce[0],X=ce[1];K.useEffect(function(){if(ne){var xe;(xe=ee()).setSelectionRange.apply(xe,ye(ne))}},[ne]);var te=Vx(S,b),ie=(n=te.max)!==null&&n!==void 0?n:c,Y=Number(ie)>0,oe=te.strategy(I),fe=!!ie&&oe>ie,Pe=function(Ce,Ve){var ke=Ve;!L.current&&te.exceedFormatter&&te.max&&te.strategy(Ve)>te.max&&(ke=te.exceedFormatter(Ve,{max:te.max}),Ve!==ke&&X([ee().selectionStart||0,ee().selectionEnd||0])),D(ke),Mc(Ce.currentTarget,Ce,l,ke)},ve=function(Ce){L.current=!0,d==null||d(Ce)},le=function(Ce){L.current=!1,Pe(Ce,Ce.currentTarget.value),f==null||f(Ce)},me=function(Ce){Pe(Ce,Ce.target.value)},se=function(Ce){var Ve=O.onPressEnter,ke=O.onKeyDown;Ce.key==="Enter"&&Ve&&Ve(Ce),ke==null||ke(Ce)},Ee=function(Ce){$(!0),a==null||a(Ce)},Ne=function(Ce){$(!1),i==null||i(Ce)},Se=function(Ce){D(""),Q(),Mc(ee(),Ce,l)},De=m,pe;te.show&&(te.showFormatter?pe=te.showFormatter({value:I,count:oe,maxLength:ie}):pe="".concat(oe).concat(Y?" / ".concat(ie):""),De=K.createElement(K.Fragment,null,De,K.createElement("span",{className:q("".concat(y,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},pe)));var ot=function(Ce){var Ve;E==null||E(Ce),(Ve=ee())!==null&&Ve!==void 0&&Ve.style.height&&H(!0)},Be=!O.autoSize&&!b&&!s;return K.createElement(Hx,{ref:U,value:I,allowClear:s,handleReset:Se,suffix:De,prefixCls:y,classNames:z(z({},w),{},{affixWrapper:q(w==null?void 0:w.affixWrapper,F(F({},"".concat(y,"-show-count"),b),"".concat(y,"-textarea-allow-clear"),s))}),disabled:p,focused:P,className:q(h,fe&&"".concat(y,"-out-of-range")),style:z(z({},v),k&&!Be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:C,readOnly:R},K.createElement(v6,be({},O,{maxLength:c,onKeyDown:se,onChange:me,onFocus:Ee,onBlur:Ne,onCompositionStart:ve,onCompositionEnd:le,className:q(w==null?void 0:w.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:v==null?void 0:v.resize}),disabled:p,prefixCls:y,onResize:ot,ref:G,readOnly:R})))}),h6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y6=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:s,allowClear:c,classNames:d,rootClassName:f,className:m,style:g,styles:y,variant:b}=e,S=h6(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:h,direction:v,textArea:p}=u.useContext(ft),C=Eo(i),w=u.useContext(La),x=l??w,{status:E,hasFeedback:R,feedbackIcon:O}=u.useContext(bo),_=wd(E,s),A=u.useRef(null);u.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=A.current)===null||N===void 0?void 0:N.resizableTextArea,focus:T=>{var k,H;W5((H=(k=A.current)===null||k===void 0?void 0:k.resizableTextArea)===null||H===void 0?void 0:H.textArea,T)},blur:()=>{var T;return(T=A.current)===null||T===void 0?void 0:T.blur()}}});const M=h("input",o),D=ka(M),[I,V,j]=kg(M,D),[P,$]=Ng("textArea",b,a),L=Wx(c??(p==null?void 0:p.allowClear));return I(u.createElement(g6,Object.assign({autoComplete:p==null?void 0:p.autoComplete},S,{style:Object.assign(Object.assign({},p==null?void 0:p.style),g),styles:Object.assign(Object.assign({},p==null?void 0:p.styles),y),disabled:x,allowClear:L,className:q(j,D,m,f,p==null?void 0:p.className),classNames:Object.assign(Object.assign(Object.assign({},d),p==null?void 0:p.classNames),{textarea:q({[`${M}-sm`]:C==="small",[`${M}-lg`]:C==="large"},V,d==null?void 0:d.textarea,(n=p==null?void 0:p.classNames)===null||n===void 0?void 0:n.textarea),variant:q({[`${M}-${P}`]:$},Ic(M,_)),affixWrapper:q(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:v==="rtl",[`${M}-affix-wrapper-sm`]:C==="small",[`${M}-affix-wrapper-lg`]:C==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},V)}),prefixCls:M,suffix:R&&u.createElement("span",{className:`${M}-textarea-suffix`},O),ref:A})))}),pn=$d;pn.Group=k5;pn.Search=s6;pn.TextArea=y6;pn.Password=i6;pn.OTP=X5;function Nb(e){return["small","middle","large"].includes(e)}function Dk(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Gx=["wrap","nowrap","wrap-reverse"],Kx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],qx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],b6=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Gx.includes(n)}},S6=(e,t)=>{const n={};return qx.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},C6=(e,t)=>{const n={};return Kx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function w6(e,t){return q(Object.assign(Object.assign(Object.assign({},b6(e,t)),S6(e,t)),C6(e,t)))}const E6=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},x6=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},R6=e=>{const{componentCls:t}=e,n={};return Gx.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},$6=e=>{const{componentCls:t}=e,n={};return qx.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},O6=e=>{const{componentCls:t}=e,n={};return Kx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},P6=()=>({}),_6=_r("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Gt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[E6(o),x6(o),R6(o),$6(o),O6(o)]},P6,{resetStyle:!1});var I6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const T6=K.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:i,gap:l,children:s,vertical:c=!1,component:d="div"}=e,f=I6(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:y}=K.useContext(ft),b=y("flex",n),[S,h,v]=_6(b),p=c??(m==null?void 0:m.vertical),C=q(o,r,m==null?void 0:m.className,b,h,v,w6(b,e),{[`${b}-rtl`]:g==="rtl",[`${b}-gap-${l}`]:Nb(l),[`${b}-vertical`]:p}),w=Object.assign(Object.assign({},m==null?void 0:m.style),a);return i&&(w.flex=i),l&&!Nb(l)&&(w.gap=l),S(K.createElement(d,Object.assign({ref:t,className:C,style:w},dr(f,["justify","wrap","align"])),s))});function M6(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,a=`${o}-hidden`,[i,l]=u.useState(!1);zt(()=>{t!==0&&l(!0)},[t!==0]);const s=Math.max(Math.min(t,100),0),c=100,d=c/5,f=c/2-d/2,m=f*2*Math.PI,g=(y,b)=>u.createElement("circle",{className:q(y,`${r}-circle`),r:f,cx:"50",cy:"50",strokeWidth:d,style:b});return i?u.createElement("span",{className:q(o,`${r}-progress`,s<=0&&a)},u.createElement("svg",{viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},g(`${r}-circle-bg`),g("",{strokeDasharray:`${m*s/100} ${m*(100-s)/100}`,strokeDashoffset:`${m/4}`}))):null}function N6(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:q(o,n>0&&a)},u.createElement("span",{className:q(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>u.createElement("i",{className:`${t}-dot-item`,key:i})))),u.createElement(M6,{prefixCls:t,percent:n}))}function L6(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&u.isValidElement(n)?ps(n,{className:q(n.props.className,o),percent:r}):u.createElement(N6,{prefixCls:t,percent:r})}const A6=new yt("antSpinMove",{to:{opacity:1}}),j6=new yt("antRotate",{to:{transform:"rotate(405deg)"}}),D6=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},no(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:A6,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:j6,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},F6=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},z6=_r("Spin",e=>{const t=Gt(e,{spinDotDefault:e.colorTextDescription});return[D6(t)]},F6),B6=200,Lb=[[30,.05],[70,.03],[96,.01]];function k6(e,t){const[n,r]=u.useState(0),o=u.useRef(),a=t==="auto";return u.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const l=100-i;for(let s=0;s<Lb.length;s+=1){const[c,d]=Lb[s];if(i<=c)return i+l*d}return i})},B6)),()=>{clearInterval(o.current)}),[a,e]),a?n:t}var H6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Qx;function V6(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Xx=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:s,style:c,children:d,fullscreen:f=!1,indicator:m,percent:g}=e,y=H6(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b}=u.useContext(ft),S=b("spin",t),[h,v,p]=z6(S),[C,w]=u.useState(()=>n&&!V6(n,r)),x=k6(C,g);u.useEffect(()=>{if(n){const I=L5(r,()=>{w(!0)});return I(),()=>{var V;(V=I==null?void 0:I.cancel)===null||V===void 0||V.call(I)}}w(!1)},[r,n]);const E=u.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:R,spin:O}=u.useContext(ft),_=q(S,O==null?void 0:O.className,{[`${S}-sm`]:i==="small",[`${S}-lg`]:i==="large",[`${S}-spinning`]:C,[`${S}-show-text`]:!!l,[`${S}-rtl`]:R==="rtl"},o,!f&&a,v,p),A=q(`${S}-container`,{[`${S}-blur`]:C}),M=Object.assign(Object.assign({},O==null?void 0:O.style),c),D=u.createElement("div",Object.assign({},y,{style:M,className:_,"aria-live":"polite","aria-busy":C}),u.createElement(L6,{prefixCls:S,indicator:m??Qx,percent:x}),l&&(E||f)?u.createElement("div",{className:`${S}-text`},l):null);return h(E?u.createElement("div",Object.assign({},y,{className:q(`${S}-nested-loading`,s,v,p)}),C&&u.createElement("div",{key:"loading"},D),u.createElement("div",{className:A,key:"container"},d)):f?u.createElement("div",{className:q(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:C},a,v,p)},D):D)};Xx.setDefaultIndicator=e=>{Qx=e};var W6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U6=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:l,footer:s}=e,c=W6(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=u.useContext(ft),f=d(),m=t||d("modal"),g=ka(f),[y,b,S]=FE(m,g),h=`${m}-confirm`;let v={};return a?v={closable:o??!1,title:"",footer:"",children:u.createElement(BE,Object.assign({},e,{prefixCls:m,confirmPrefixCls:h,rootPrefixCls:f,content:l}))}:v={closable:o??!0,title:i,footer:s!==null&&u.createElement(TE,Object.assign({},e)),children:l},y(u.createElement(SE,Object.assign({prefixCls:m,className:q(b,`${m}-pure-panel`,a&&h,a&&`${h}-${a}`,n,S,g)},c,{closeIcon:IE(m,r),closable:o},v)))},G6=QE(U6);function Yx(e){return Ls(WE(e))}const gn=zE;gn.useModal=d4;gn.info=function(t){return Ls(UE(t))};gn.success=function(t){return Ls(GE(t))};gn.error=function(t){return Ls(KE(t))};gn.warning=Yx;gn.warn=Yx;gn.confirm=function(t){return Ls(qE(t))};gn.destroyAll=function(){for(;Sa.length;){const t=Sa.pop();t&&t()}};gn.config=i4;gn._InternalPanelDoNotUseOrYouWillBeFired=G6;function Jx(e,t){return function(){return e.apply(t,arguments)}}const{toString:K6}=Object.prototype,{getPrototypeOf:Hg}=Object,Od=(e=>t=>{const n=K6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kr=e=>(e=e.toLowerCase(),t=>Od(t)===e),Pd=e=>t=>typeof t===e,{isArray:Ji}=Array,bs=Pd("undefined");function q6(e){return e!==null&&!bs(e)&&e.constructor!==null&&!bs(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zx=Kr("ArrayBuffer");function Q6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zx(e.buffer),t}const X6=Pd("string"),Er=Pd("function"),eR=Pd("number"),_d=e=>e!==null&&typeof e=="object",Y6=e=>e===!0||e===!1,Vu=e=>{if(Od(e)!=="object")return!1;const t=Hg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J6=Kr("Date"),Z6=Kr("File"),eB=Kr("Blob"),tB=Kr("FileList"),nB=e=>_d(e)&&Er(e.pipe),rB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=Od(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},oB=Kr("URLSearchParams"),[aB,iB,lB,sB]=["ReadableStream","Request","Response","Headers"].map(Kr),uB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ji(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function tR(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const nR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rR=e=>!bs(e)&&e!==nR;function Gv(){const{caseless:e}=rR(this)&&this||{},t={},n=(r,o)=>{const a=e&&tR(t,o)||o;Vu(t[a])&&Vu(r)?t[a]=Gv(t[a],r):Vu(r)?t[a]=Gv({},r):Ji(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fs(arguments[r],n);return t}const cB=(e,t,n,{allOwnKeys:r}={})=>(Fs(t,(o,a)=>{n&&Er(o)?e[a]=Jx(o,n):e[a]=o},{allOwnKeys:r}),e),dB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fB=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mB=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Hg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vB=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},pB=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!eR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hg(Uint8Array)),hB=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},yB=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},bB=Kr("HTMLFormElement"),SB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ab=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CB=Kr("RegExp"),oR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fs(n,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},wB=e=>{oR(e,(t,n)=>{if(Er(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Er(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},EB=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Ji(e)?r(e):r(String(e).split(t)),n},xB=()=>{},RB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uf="abcdefghijklmnopqrstuvwxyz",jb="0123456789",aR={DIGIT:jb,ALPHA:Uf,ALPHA_DIGIT:Uf+Uf.toUpperCase()+jb},$B=(e=16,t=aR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function OB(e){return!!(e&&Er(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const PB=e=>{const t=new Array(10),n=(r,o)=>{if(_d(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=Ji(r)?[]:{};return Fs(r,(i,l)=>{const s=n(i,o+1);!bs(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},_B=Kr("AsyncFunction"),IB=e=>e&&(_d(e)||Er(e))&&Er(e.then)&&Er(e.catch),Z={isArray:Ji,isArrayBuffer:Zx,isBuffer:q6,isFormData:rB,isArrayBufferView:Q6,isString:X6,isNumber:eR,isBoolean:Y6,isObject:_d,isPlainObject:Vu,isReadableStream:aB,isRequest:iB,isResponse:lB,isHeaders:sB,isUndefined:bs,isDate:J6,isFile:Z6,isBlob:eB,isRegExp:CB,isFunction:Er,isStream:nB,isURLSearchParams:oB,isTypedArray:gB,isFileList:tB,forEach:Fs,merge:Gv,extend:cB,trim:uB,stripBOM:dB,inherits:fB,toFlatObject:mB,kindOf:Od,kindOfTest:Kr,endsWith:vB,toArray:pB,forEachEntry:hB,matchAll:yB,isHTMLForm:bB,hasOwnProperty:Ab,hasOwnProp:Ab,reduceDescriptors:oR,freezeMethods:wB,toObjectSet:EB,toCamelCase:SB,noop:xB,toFiniteNumber:RB,findKey:tR,global:nR,isContextDefined:rR,ALPHABET:aR,generateString:$B,isSpecCompliantForm:OB,toJSONObject:PB,isAsyncFn:_B,isThenable:IB};function rt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Z.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const iR=rt.prototype,lR={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lR[e]={value:e}});Object.defineProperties(rt,lR);Object.defineProperty(iR,"isAxiosError",{value:!0});rt.from=(e,t,n,r,o,a)=>{const i=Object.create(iR);return Z.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),rt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const TB=null;function Kv(e){return Z.isPlainObject(e)||Z.isArray(e)}function sR(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Db(e,t,n){return e?e.concat(t).map(function(o,a){return o=sR(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function MB(e){return Z.isArray(e)&&!e.some(Kv)}const NB=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Id(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!Z.isUndefined(S[b])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(Z.isDate(y))return y.toISOString();if(!s&&Z.isBlob(y))throw new rt("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(y)||Z.isTypedArray(y)?s&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,b,S){let h=y;if(y&&!S&&typeof y=="object"){if(Z.endsWith(b,"{}"))b=r?b:b.slice(0,-2),y=JSON.stringify(y);else if(Z.isArray(y)&&MB(y)||(Z.isFileList(y)||Z.endsWith(b,"[]"))&&(h=Z.toArray(y)))return b=sR(b),h.forEach(function(p,C){!(Z.isUndefined(p)||p===null)&&t.append(i===!0?Db([b],C,a):i===null?b:b+"[]",c(p))}),!1}return Kv(y)?!0:(t.append(Db(S,b,a),c(y)),!1)}const f=[],m=Object.assign(NB,{defaultVisitor:d,convertValue:c,isVisitable:Kv});function g(y,b){if(!Z.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(y),Z.forEach(y,function(h,v){(!(Z.isUndefined(h)||h===null)&&o.call(t,h,Z.isString(v)?v.trim():v,b,m))===!0&&g(h,b?b.concat(v):[v])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Fb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vg(e,t){this._pairs=[],e&&Id(e,this,t)}const uR=Vg.prototype;uR.append=function(t,n){this._pairs.push([t,n])};uR.toString=function(t){const n=t?function(r){return t.call(this,r,Fb)}:Fb;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function LB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cR(e,t,n){if(!t)return e;const r=n&&n.encode||LB,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Vg(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class zb{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AB=typeof URLSearchParams<"u"?URLSearchParams:Vg,jB=typeof FormData<"u"?FormData:null,DB=typeof Blob<"u"?Blob:null,FB={isBrowser:!0,classes:{URLSearchParams:AB,FormData:jB,Blob:DB},protocols:["http","https","file","blob","url","data"]},Wg=typeof window<"u"&&typeof document<"u",zB=(e=>Wg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),BB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kB=Wg&&window.location.href||"http://localhost",HB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wg,hasStandardBrowserEnv:zB,hasStandardBrowserWebWorkerEnv:BB,origin:kB},Symbol.toStringTag,{value:"Module"})),Vr={...HB,...FB};function VB(e,t){return Id(e,new Vr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Vr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function WB(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function UB(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function fR(e){function t(n,r,o,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),s=a>=n.length;return i=!i&&Z.isArray(o)?o.length:i,s?(Z.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Z.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Z.isArray(o[i])&&(o[i]=UB(o[i])),!l)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(WB(r),o,n,0)}),n}return null}function GB(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zs={transitional:dR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(fR(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return VB(t,this.formSerializer).toString();if((l=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Id(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),GB(t)):t}],transformResponse:[function(t){const n=this.transitional||zs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?rt.from(l,rt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vr.classes.FormData,Blob:Vr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{zs.headers[e]={}});const KB=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qB=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&KB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bb=Symbol("internals");function pl(e){return e&&String(e).trim().toLowerCase()}function Wu(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Wu):String(e)}function QB(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const XB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gf(e,t,n,r,o){if(Z.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function YB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function JB(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class Yn{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,c){const d=pl(s);if(!d)throw new Error("header name must be a non-empty string");const f=Z.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||s]=Wu(l))}const i=(l,s)=>Z.forEach(l,(c,d)=>a(c,d,s));if(Z.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(Z.isString(t)&&(t=t.trim())&&!XB(t))i(qB(t),n);else if(Z.isHeaders(t))for(const[l,s]of t.entries())a(s,l,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=pl(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return QB(o);if(Z.isFunction(n))return n.call(this,o,r);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=pl(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Gf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=pl(i),i){const l=Z.findKey(r,i);l&&(!n||Gf(r,r[l],l,n))&&(delete r[l],o=!0)}}return Z.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||Gf(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Z.forEach(this,(o,a)=>{const i=Z.findKey(r,a);if(i){n[i]=Wu(o),delete n[a];return}const l=t?YB(a):String(a).trim();l!==a&&delete n[a],n[l]=Wu(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Bb]=this[Bb]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=pl(i);r[l]||(JB(o,i),r[l]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}Yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Yn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Yn);function Kf(e,t){const n=this||zs,r=t||n,o=Yn.from(r.headers);let a=r.data;return Z.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function mR(e){return!!(e&&e.__CANCEL__)}function Zi(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(Zi,rt,{__CANCEL__:!0});function vR(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ZB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function e8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),d=r[a];i||(i=c),n[o]=s,r[o]=c;let f=a,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const g=d&&c-d;return g?Math.round(m*1e3/g):void 0}}function t8(e,t){let n=0;const r=1e3/t;let o=null;return function(){const i=this===!0,l=Date.now();if(i||l-n>r)return o&&(clearTimeout(o),o=null),n=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}const Nc=(e,t,n=3)=>{let r=0;const o=e8(50,250);return t8(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-r,c=o(s),d=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:a,lengthComputable:l!=null};f[t?"download":"upload"]=!0,e(f)},n)},n8=Vr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=Z.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),r8=Vr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Z.isString(r)&&i.push("path="+r),Z.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function o8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function a8(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pR(e,t){return e&&!o8(t)?a8(e,t):t}const kb=e=>e instanceof Yn?{...e}:e;function Aa(e,t){t=t||{};const n={};function r(c,d,f){return Z.isPlainObject(c)&&Z.isPlainObject(d)?Z.merge.call({caseless:f},c,d):Z.isPlainObject(d)?Z.merge({},d):Z.isArray(d)?d.slice():d}function o(c,d,f){if(Z.isUndefined(d)){if(!Z.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function a(c,d){if(!Z.isUndefined(d))return r(void 0,d)}function i(c,d){if(Z.isUndefined(d)){if(!Z.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,d)=>o(kb(c),kb(d),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=s[d]||o,m=f(e[d],t[d],d);Z.isUndefined(m)&&f!==l||(n[d]=m)}),n}const gR=e=>{const t=Aa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Yn.from(i),t.url=cR(pR(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(Z.isFormData(n)){if(Vr.hasStandardBrowserEnv||Vr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[c,...d]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Vr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&n8(t.url))){const c=o&&a&&r8.read(a);c&&i.set(o,c)}return t},i8=typeof XMLHttpRequest<"u",l8=i8&&function(e){return new Promise(function(n,r){const o=gR(e);let a=o.data;const i=Yn.from(o.headers).normalize();let{responseType:l}=o,s;function c(){o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const g=Yn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};vR(function(h){n(h),c()},function(h){r(h),c()},b),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new rt("Request aborted",rt.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||dR;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new rt(y,b.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,o,d)),d=null},a===void 0&&i.setContentType(null),"setRequestHeader"in d&&Z.forEach(i.toJSON(),function(y,b){d.setRequestHeader(b,y)}),Z.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",Nc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Nc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=g=>{d&&(r(!g||g.type?new Zi(null,e,d):g),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const m=ZB(o.url);if(m&&Vr.protocols.indexOf(m)===-1){r(new rt("Unsupported protocol "+m+":",rt.ERR_BAD_REQUEST,e));return}d.send(a||null)})},s8=(e,t)=>{let n=new AbortController,r;const o=function(s){if(!r){r=!0,i();const c=s instanceof Error?s:this.reason;n.abort(c instanceof rt?c:new Zi(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{o(new rt(`timeout ${t} of ms exceeded`,rt.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",o):s.unsubscribe(o))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},u8=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},c8=async function*(e,t,n){for await(const r of e)yield*u8(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Hb=(e,t,n,r,o)=>{const a=c8(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:s,value:c}=await a.next();if(s){l.close(),r();return}let d=c.byteLength;n&&n(i+=d),l.enqueue(new Uint8Array(c))},cancel(l){return r(l),a.return()}},{highWaterMark:2})},Vb=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Td=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hR=Td&&typeof ReadableStream=="function",qv=Td&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),d8=hR&&(()=>{let e=!1;const t=new Request(Vr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Wb=64*1024,Qv=hR&&!!(()=>{try{return Z.isReadableStream(new Response("").body)}catch{}})(),Lc={stream:Qv&&(e=>e.body)};Td&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Lc[t]&&(Lc[t]=Z.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new rt(`Response type '${t}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const f8=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await qv(e)).byteLength},m8=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??f8(t)},v8=Td&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:m}=gR(e);c=c?(c+"").toLowerCase():"text";let[g,y]=o||a||i?s8([o,a],i):[],b,S;const h=()=>{!b&&setTimeout(()=>{g&&g.unsubscribe()}),b=!0};let v;try{if(s&&d8&&n!=="get"&&n!=="head"&&(v=await m8(d,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),E;Z.isFormData(r)&&(E=x.headers.get("content-type"))&&d.setContentType(E),x.body&&(r=Hb(x.body,Wb,Vb(v,Nc(s)),null,qv))}Z.isString(f)||(f=f?"cors":"omit"),S=new Request(t,{...m,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let p=await fetch(S);const C=Qv&&(c==="stream"||c==="response");if(Qv&&(l||C)){const x={};["status","statusText","headers"].forEach(R=>{x[R]=p[R]});const E=Z.toFiniteNumber(p.headers.get("content-length"));p=new Response(Hb(p.body,Wb,l&&Vb(E,Nc(l,!0)),C&&h,qv),x)}c=c||"text";let w=await Lc[Z.findKey(Lc,c)||"text"](p,e);return!C&&h(),y&&y(),await new Promise((x,E)=>{vR(x,E,{data:w,headers:Yn.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(p){throw h(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,e,S),{cause:p.cause||p}):rt.from(p,p&&p.code,e,S)}}),Xv={http:TB,xhr:l8,fetch:v8};Z.forEach(Xv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ub=e=>`- ${e}`,p8=e=>Z.isFunction(e)||e===null||e===!1,yR={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let i;if(r=n,!p8(n)&&(r=Xv[(i=String(n)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+a]=r}if(!r){const a=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
`+a.map(Ub).join(`
`):" "+Ub(a[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Xv};function qf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zi(null,e)}function Gb(e){return qf(e),e.headers=Yn.from(e.headers),e.data=Kf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yR.getAdapter(e.adapter||zs.adapter)(e).then(function(r){return qf(e),r.data=Kf.call(e,e.transformResponse,r),r.headers=Yn.from(r.headers),r},function(r){return mR(r)||(qf(e),r&&r.response&&(r.response.data=Kf.call(e,e.transformResponse,r.response),r.response.headers=Yn.from(r.response.headers))),Promise.reject(r)})}const bR="1.7.2",Ug={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ug[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kb={};Ug.transitional=function(t,n,r){function o(a,i){return"[Axios v"+bR+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new rt(o(i," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!Kb[i]&&(Kb[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function g8(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const l=e[a],s=l===void 0||i(l,a,e);if(s!==!0)throw new rt("option "+a+" must be "+s,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+a,rt.ERR_BAD_OPTION)}}const Yv={assertOptions:g8,validators:Ug},_o=Yv.validators;class Ra{constructor(t){this.defaults=t,this.interceptors={request:new zb,response:new zb}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Aa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Yv.assertOptions(r,{silentJSONParsing:_o.transitional(_o.boolean),forcedJSONParsing:_o.transitional(_o.boolean),clarifyTimeoutError:_o.transitional(_o.boolean)},!1),o!=null&&(Z.isFunction(o)?n.paramsSerializer={serialize:o}:Yv.assertOptions(o,{encode:_o.function,serialize:_o.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Z.merge(a.common,a[n.method]);a&&Z.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Yn.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(s=s&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let d,f=0,m;if(!s){const y=[Gb.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),m=y.length,d=Promise.resolve(n);f<m;)d=d.then(y[f++],y[f++]);return d}m=l.length;let g=n;for(f=0;f<m;){const y=l[f++],b=l[f++];try{g=y(g)}catch(S){b.call(this,S);break}}try{d=Gb.call(this,g)}catch(y){return Promise.reject(y)}for(f=0,m=c.length;f<m;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Aa(this.defaults,t);const n=pR(t.baseURL,t.url);return cR(n,t.params,t.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(t){Ra.prototype[t]=function(n,r){return this.request(Aa(r||{},{method:t,url:n,data:(r||{}).data}))}});Z.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(Aa(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ra.prototype[t]=n(),Ra.prototype[t+"Form"]=n(!0)});class Gg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Zi(a,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Gg(function(o){t=o}),cancel:t}}}function h8(e){return function(n){return e.apply(null,n)}}function y8(e){return Z.isObject(e)&&e.isAxiosError===!0}const Jv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jv).forEach(([e,t])=>{Jv[t]=e});function SR(e){const t=new Ra(e),n=Jx(Ra.prototype.request,t);return Z.extend(n,Ra.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return SR(Aa(e,o))},n}const on=SR(zs);on.Axios=Ra;on.CanceledError=Zi;on.CancelToken=Gg;on.isCancel=mR;on.VERSION=bR;on.toFormData=Id;on.AxiosError=rt;on.Cancel=on.CanceledError;on.all=function(t){return Promise.all(t)};on.spread=h8;on.isAxiosError=y8;on.mergeConfig=Aa;on.AxiosHeaders=Yn;on.formToJSON=e=>fR(Z.isHTMLForm(e)?new FormData(e):e);on.getAdapter=yR.getAdapter;on.HttpStatusCode=Jv;on.default=on;const CR=window.location.protocol+"//universitysolutions.in/collportal";console.log(CR);const xr=on.create({baseURL:CR,headers:{"X-Auth-Origin":"UNICLARE"}});xr.interceptors.request.use(function(e){const t=localStorage.getItem("uniclare-token");return t&&(e.headers.Authorization=t),e},function(e){return Promise.reject(e)});const Nt=(e,t)=>{console.log(e),e.toLowerCase()=="error"?gn.error({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#FF4D4F",borderColor:"#FF4D4F"}}}):e.toLowerCase()=="success"?gn.success({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#52c41a",borderColor:"#52c41a"}}}):e.toLowerCase()=="info"?gn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}}):e.toLowerCase()=="warning"?gn.warning({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#faad14",borderColor:"#faad14"}}}):gn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}})},b8=()=>async(e,t)=>{try{const n=await xr.post("/app.php?a=getUnivDetails");n.data.error_code===0?(localStorage.setItem("uniclare-token",n.data.data.token),e({type:"USER_INFO",payload:n.data.data.token}),navigate("/")):e({type:"CLEAR_USER_INFO",payload:{}})}catch(n){Nt("error",n.message)}},S8=(e,t)=>{let n={...t,password:btoa(t.password)};return async(r,o)=>{try{const a=o();let i=localStorage.getItem("dbname"),l=localStorage.getItem("type");r({type:"SET_BTN_LOADER"});const s=await xr.post("/app.php?a=uniclareLogin&db="+i+"&type="+l,n);r({type:"UNSET_BTN_LOADER"}),s.data.error_code===0?(s.data.data.users.length===1&&s.data.data.users[0].fusertype!=="A"&&(localStorage.setItem("uniclare-token",s.data.data.token),localStorage.setItem("userInfo",JSON.stringify(s.data.data.userInfo)),r({type:"USER_INFO",payload:s.data.data.userInfo})),r({type:"USERS",payload:s.data.data.users}),r({type:"SET_ERROR_MSG",payload:""})):(Nt("info",s.data.data.msg),r({type:"SET_ERROR_MSG",payload:s.data.data.msg}))}catch(a){Nt("error",a.message)}}},Fk=e=>async(t,n)=>{localStorage.removeItem("uniclare-token");const r=localStorage.getItem("uniclare-rootpath");localStorage.removeItem("uniclare-token"),localStorage.removeItem("userInfo"),e(r),t({type:"LOGOUT_USER",payload:[]})},C8=e=>async(t,n)=>{try{const r=localStorage.getItem("uniclare-rootpath");t({type:"SET_LOADER"});const o=await xr.get("app.php?a=isLoggedIn");if(t({type:"UNSET_LOADER"}),typeof o.data!="object"){localStorage.removeItem("uniclare-token"),localStorage.removeItem("userInfo"),Nt("error","Token Expired ! Please Login Again"),e(r);return}}catch(r){Nt("error",r.message);return}},w8=(e,t)=>{let n={...t,password:btoa(t.password)};return async(r,o)=>{try{const a=o();let i=localStorage.getItem("dbname"),l=localStorage.getItem("type");r({type:"SET_LOADER"});const s=await xr.post("/app.php?a=uniclareAdminLogin&db="+i+"&type="+l,n);r({type:"UNSET_LOADER"}),s.data.error_code===0?(s.data.data.users.length===1&&(localStorage.setItem("uniclare-token",s.data.data.token),localStorage.setItem("userInfo",JSON.stringify(s.data.data.userInfo)),r({type:"USER_INFO",payload:s.data.data.userInfo})),r({type:"USERS",payload:s.data.data.users}),r({type:"SET_ERROR_MSG",payload:""})):(Nt("info",s.data.data.msg),r({type:"SET_ERROR_MSG",payload:s.data.data.msg}))}catch(a){Nt("error",a.message)}}};var E8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},x8=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:E8}))},R8=u.forwardRef(x8),$8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},O8=function(t,n){return u.createElement(dn,be({},t,{ref:n,icon:$8}))},Zv=u.forwardRef(O8);const P8="/assets/098_logo-Cc_avybB.jpg",_8="/assets/Logisys-CUGyUsc1.png",I8=e=>{const t=u.useRef(null),n=u.useRef(null),[r,o]=u.useState({mobileno:"",password:"",usertype:"",otp:""}),[a,i]=u.useState([]),[l,s]=u.useState(!1),c=Rs(),d=za(),f=qP();u.useEffect(()=>{localStorage.setItem("type",d.pathname.split("/")[1]),localStorage.setItem("uniclare-rootpath",d.pathname),document.getElementById("univ-title").innerHTML=d.pathname.split("/")[1],d.pathname.split("/")[1]==="demo"?localStorage.setItem("univlogo",P8):localStorage.setItem("univlogo",_8),m()},[]),u.useEffect(()=>{var C;i(e.loginfo.users),((C=e.loginfo.users)==null?void 0:C.length)===1&&(o({...r,usertype:e.loginfo.users[0].fusertype}),e.loginfo.users[0].fusertype!=="T"&&e.loginfo.users[0].fusertype!=="M"&&h())},[e.loginfo.users]);const m=async()=>{e.getUnivDetails()},g=async(C,w)=>{o(w==="usertype"?{...r,[w]:C}:{...r,[C.target.name]:C.target.value})};let y="/"+localStorage.getItem("type")+"/register",b="/"+localStorage.getItem("type")+"/ForgetPassword";const S=async(C,w)=>{if(e.loginfo.users!==void 0&&e.loginfo.users.length>1&&r.usertype===""||r.mobileno===""||r.password===""){Nt("Warning","Please fill all the fields");return}r.usertype!=="T"&&r.usertype!==""&&r.usertype!=="M"&&r.usertype!==""?await h():await e.handleLogin(c,r)},h=async()=>{try{let C={...r,password:btoa(r.password)};f({type:"SET_BTN_LOADER"});const w=localStorage.getItem("dbname");let x=localStorage.getItem("type");const E=await xr.post("app.php?a=getAdminOTP&db="+w+"&type="+x,C);f({type:"UNSET_BTN_LOADER"}),E.data.error_code===0?s(!0):Nt("error",E.data.data.msg)}catch(C){Nt("error",C.message);return}},v=async()=>{if(r.otp===""){Nt("warning","Please Enter OTP ");return}await e.handleAdminLogin(c,r)},p=(C,w)=>{w!=="continue"&&C.key==="Enter"?t.current.click():w==="continue"&&C.key==="Enter"&&n.current.click()};return B.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundImage:"url(https://img.freepik.com/premium-photo/abstract-blurred-empty-college-library-interior-space-blurry-classroom-with-bookshelves-by-defocused-effect-use-background-backdrop-book-shop-business-education-resources-concepts_505557-7370.jpg)",backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:[B.jsx(gn,{title:"Enter OTP",open:l,width:400,footer:[B.jsx(Mn,{size:"medium",type:"primary",danger:!0,onClick:()=>s(!1),children:"Cancel"},2),B.jsx(Mn,{size:"medium",type:"primary",onClick:()=>v(),ref:n,children:"Continue"},1)],closable:!1,children:B.jsx(pn,{size:"large",style:{marginBottom:"10px"},prefix:B.jsx(Zv,{}),name:"otp",value:r.otp,maxLength:6,onChange:g,onKeyDown:C=>p(C,"continue")})}),B.jsxs(Hi,{style:{width:400},children:[B.jsx("h2",{children:"Login"}),B.jsx("p",{children:"Sign in to your account"}),B.jsx("label",{children:"Mobile Number"}),B.jsx(pn,{size:"large",style:{marginBottom:"10px"},prefix:B.jsx(Zv,{}),name:"mobileno",value:r.mobileno,maxLength:10,onChange:g,onKeyDown:p}),B.jsx("label",{children:"Password"}),B.jsx(pn.Password,{size:"large",style:{marginBottom:"20px"},prefix:B.jsx(R8,{}),name:"password",value:r.password,onChange:g,onKeyDown:p}),(a==null?void 0:a.length)>1&&B.jsxs("div",{children:[B.jsx("label",{children:"Select Role"}),B.jsx(Wa,{placeholder:"Login as",value:r.usertype,options:e.loginfo.users.map((C,w)=>({key:w,value:C.fusertype,label:C.fdescpn})),style:{width:"100%",marginBottom:"20px"},onChange:C=>g(C,"usertype"),onKeyDown:p})]}),B.jsx(Mn,{ref:t,type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:e.loader,onClick:()=>S(),children:(a==null?void 0:a.length)>1?"OK":"Login"}),B.jsx(hc,{to:y,children:"Click here to Register"}),B.jsx(hc,{to:b,style:{float:"right"},children:"Forgot Password"})]})]})},T8=e=>({loginfo:e.loginfo,loader:e.loader.btnLoading}),gl=ng(T8,{handleLogin:S8,getUnivDetails:b8,handleAdminLogin:w8})(I8),M8=()=>B.jsx("div",{children:"NoPageFound"}),hl=()=>{const[e,t]=u.useState({usertype:"T",regno:"",name:"",dob:"",mobileNo:"",emailId:"",password:"",confirmPassword:"",mobOtp:"",emailOtp:"",otp:""}),[n,r]=u.useState([{value:"T",label:"Teacher"}]),[o,a]=u.useState(!1),[i,l]=u.useState(!0),[s,c]=u.useState(!0),[d,f]=u.useState(!1),m="/"+localStorage.getItem("type"),g=localStorage.getItem("dbname"),y=Rs(),b=(p,C)=>{C=="usertype"?t({...e,[C]:p}):t({...e,[p.target.name]:p.target.value})},S=async()=>{a(!0),await xr.get("/app.php?a=validateRegno&db="+g+"&usertype="+e.usertype+"&regno="+e.regno).then(p=>{p.data.error_code===0?(t({...e,mobileNo:p.data.data.fmobile,emailId:p.data.data.femail,name:p.data.data.fteachname,dob:p.data.data.fdob}),l(!1)):Nt("info",p.data.data.msg),a(!1)}).catch(p=>Nt("error",p))},h=async()=>{a(!0),await xr.post("/app.php?a=sendOtp&db="+g,e).then(p=>{p.data.error_code===0?(c(!1),f(!0)):Nt("info",p.data.data.msg),a(!1)}).catch(p=>Nt("error",p))},v=async()=>{a(!0),await xr.post("/app.php?a=registerUser&db="+g,e).then(p=>{p.data.error_code===0?(Nt("success",p.data.data.msg),y(localStorage.getItem("uniclare-rootpath"))):Nt("info",p.data.data.msg),a(!1)}).catch(p=>Nt("error",p))};return B.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[B.jsxs(gn,{title:"OTP Verification",centered:!0,open:d,footer:[B.jsx(Mn,{onClick:()=>v(),loading:o,children:"Register"},"ok")],children:[B.jsx("label",{children:"Enter OTP"}),B.jsx(pn,{name:"otp",style:{marginBottom:"20px"},value:e.otp,maxLength:4,onChange:b})]}),B.jsxs(Hi,{style:{width:400},children:[B.jsx("h4",{children:"Registration"}),B.jsx("p",{children:"Create your account"}),B.jsx("label",{children:"User Type"}),B.jsx(Wa,{disabled:!i&&!0,defaultValue:"teacher",name:"usertype",style:{width:"100%",marginBottom:"20px"},value:e.usertype,options:n,onChange:p=>b(p,"usertype")}),B.jsx("label",{children:"Teacher Code"}),B.jsx(pn,{disabled:!i&&!0,name:"regno",style:{marginBottom:"20px"},value:e.regno,maxLength:20,onChange:b}),i?B.jsx(Mn,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>S(),children:"Validate"}):B.jsxs("div",{children:[B.jsxs(Hi,{style:{marginBottom:"20px"},children:[B.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},children:[B.jsx("span",{children:B.jsx("b",{children:"Name"})}),B.jsx("span",{children:e.name})]}),B.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[B.jsx("span",{children:B.jsx("b",{children:"Date of Birth"})}),B.jsx("span",{children:e.dob})]})]}),B.jsx("label",{children:"Mobile Number"}),B.jsx(pn,{name:"mobileNo",disabled:!0,style:{marginBottom:"20px"},value:e.mobileNo,maxLength:10}),B.jsx("label",{children:"Email ID"}),B.jsx(pn,{name:"emailId",disabled:!0,style:{marginBottom:"20px"},value:e.emailId}),B.jsx("label",{children:"Password"}),B.jsx(pn.Password,{name:"password",style:{marginBottom:"20px"},value:e.password,maxLength:32,onChange:b}),B.jsx("label",{children:"Confirm Password"}),B.jsx(pn.Password,{name:"confirmPassword",style:{marginBottom:"20px"},value:e.confirmPassword,maxLength:32,onChange:b}),s&&B.jsx(Mn,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>h(),children:"Send OTP"})]}),"Already Registered ?",B.jsx(hc,{to:m,children:B.jsx("a",{children:"Click here"})})]})]})},N8=()=>{const[e,t]=u.useState(""),[n,r]=u.useState(""),[o,a]=u.useState(!1),[i,l]=u.useState(!1),[s,c]=u.useState(!0),[d,f]=u.useState(!1),[m,g]=u.useState(""),[y,b]=u.useState(""),S="/"+localStorage.getItem("type"),h=localStorage.getItem("dbname"),v=async()=>{l(!0),await xr.get("/app.php?a=validateMobileNo&db="+h+"&fmobile="+e).then(w=>{w.data.error_code==0?(f(!0),c(!1)):Nt("info",w.data.data.msg),l(!1)}).catch(w=>{Nt("error",w),l(!1)})},p=async()=>{if(n==""){Nt("info","Enter OTP");return}l(!0),await xr.post("/app.php?a=verifyOtp&db="+h+"&fmobile="+e+"&fotp="+n).then(w=>{w.data.error_code===0?(a(!0),f(!1),c(!1)):Nt("info",w.data.data.msg),l(!1)}).catch(w=>Nt("error",w))},C=async()=>{if(m!=y){Nt("info","Password and Confirm password mismatch");return}l(!0),await xr.post("/app.php?a=saveNewPassword&db="+h+"&fmobile="+e+"&fnewpaswd="+m).then(w=>{w.data.error_code===0?(t(""),r(""),a(!1),l(!1),c(!0),f(!1),g(""),b(""),Nt("success",w.data.data.msg)):Nt("info",w.data.data.msg),l(!1)}).catch(w=>Nt("error",w))};return B.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundImage:"url(https://img.freepik.com/premium-photo/abstract-blurred-empty-college-library-interior-space-blurry-classroom-with-bookshelves-by-defocused-effect-use-background-backdrop-book-shop-business-education-resources-concepts_505557-7370.jpg)",backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:[B.jsx(gn,{title:"Enter OTP",open:d,width:400,footer:[B.jsx(Mn,{size:"medium",type:"primary",danger:!0,onClick:()=>{f(!1),c(!0)},children:"Cancel"},2),B.jsx(Mn,{size:"medium",type:"primary",onClick:()=>p(),children:"Submit"},1)],closable:!1,children:B.jsx(pn,{size:"large",style:{marginBottom:"10px"},prefix:B.jsx(Zv,{}),name:"otp",value:n,maxLength:6,onChange:w=>r(w.target.value)})}),B.jsxs(Hi,{style:{width:400},children:[B.jsx("h4",{children:"Forget Password"}),B.jsx("label",{children:"Mobile No."}),B.jsx(pn,{name:"fmobile",style:{width:"100%",marginBottom:"20px"},value:e,onChange:w=>{t(w.target.value)}}),s&&B.jsx(Mn,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:i,onClick:()=>v(),children:"Validate"}),o&&B.jsxs("div",{children:[B.jsx("label",{children:"Password"}),B.jsx(pn.Password,{name:"password",style:{marginBottom:"20px"},value:m,maxLength:32,onChange:w=>g(w.target.value)}),B.jsx("label",{children:"Confirm Password"}),B.jsx(pn.Password,{name:"confirmPassword",style:{marginBottom:"20px"},value:y,maxLength:32,onChange:w=>b(w.target.value)}),B.jsx(Mn,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:i,onClick:()=>C(),children:"Save"})]}),"Already Registered ?",B.jsx(hc,{to:S,children:B.jsx("a",{children:"Click here"})})]})]})},L8=()=>{let t="/"+localStorage.getItem("type")+"/ForgetPassword";return B.jsxs(CC,{children:[B.jsx(Ae,{path:"/dypatil",element:B.jsx(gl,{})}),B.jsx(Ae,{path:"/demo",element:B.jsx(gl,{})}),B.jsx(Ae,{path:"/acu",element:B.jsx(gl,{})}),B.jsx(Ae,{path:"/reva",element:B.jsx(gl,{})}),B.jsx(Ae,{path:"/jssu",element:B.jsx(gl,{})}),B.jsx(Ae,{path:"/",element:B.jsx(Wm,{to:"404"})}),B.jsx(Ae,{path:"404",element:B.jsx(M8,{})}),B.jsx(Ae,{path:"*",element:B.jsx(Wm,{to:"404"})}),B.jsx(Ae,{path:"/demo/register",element:B.jsx(hl,{})}),B.jsx(Ae,{path:"/acu/register",element:B.jsx(hl,{})}),B.jsx(Ae,{path:"/reva/register",element:B.jsx(hl,{})}),B.jsx(Ae,{path:"/dypatil/register",element:B.jsx(hl,{})}),B.jsx(Ae,{path:"/jssu/register",element:B.jsx(hl,{})}),B.jsx(Ae,{path:t,element:B.jsx(N8,{})})]})},A8="modulepreload",j8=function(e){return"/"+e},qb={},ct=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=j8(l),l in qb)return;qb[l]=!0;const s=l.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":A8,s||(d.as="script",d.crossOrigin=""),d.href=l,i&&d.setAttribute("nonce",i),document.head.appendChild(d),s)return new Promise((f,m)=>{d.addEventListener("load",f),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(a=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a})},D8={padding:50,background:"rgba(0, 0, 0, 0.05)",borderRadius:4},F8=B.jsx("div",{style:D8}),z8=()=>B.jsx(Ps,{theme:{components:{Spin:{colorPrimary:"#8231d3"}}},children:B.jsx(T6,{style:{height:"100vh",justifyContent:"center",alignItems:"center",position:"fixed",zIndex:1,backgroundColor:"#000",opacity:.8,width:"100%",textShadow:"none"},children:B.jsx(Xx,{tip:"Loading...",size:"large",children:F8})})}),B8=u.lazy(()=>ct(()=>import("./Header-WK0UbNkg.js"),__vite__mapDeps([0,1]))),k8=u.lazy(()=>ct(()=>import("./Dashboard-CX4loRcy.js"),[])),H8=u.lazy(()=>ct(()=>import("./GuideLines-DErdrFgE.js"),__vite__mapDeps([2,3,4]))),V8=u.lazy(()=>ct(()=>import("./BankDetails-DsE298T_.js"),__vite__mapDeps([5,3,4,6,7]))),W8=u.lazy(()=>ct(()=>import("./QpPattern-pPDyEoWX.js"),__vite__mapDeps([8,9,10,11,3,12,13,14,15,4,6,7,16,17]))),U8=u.lazy(()=>ct(()=>import("./AvailableQp-B91EmYl1.js"),__vite__mapDeps([18,9,10,11,3,19,16,17,14,13,7,20,4,6]))),G8=u.lazy(()=>ct(()=>import("./EligibleQpSetter-BC2KoL20.js"),__vite__mapDeps([21,9,10,11,3,20,4,6,7,16,17,14,13]))),K8=u.lazy(()=>ct(()=>import("./SelectQpSetter-CEcLNkG8.js"),__vite__mapDeps([22,23,10,9,11,3,20,4,6,7,16,17,14,13]))),q8=u.lazy(()=>ct(()=>import("./AcceptQpRequest-CLfrqUDR.js"),__vite__mapDeps([24,3,4,13,14,16,17,7]))),Q8=u.lazy(()=>ct(()=>import("./UploadQuestionPaper-B4_Pg-N3.js"),__vite__mapDeps([25,12,13,14,15,3,4,16,17,7]))),X8=u.lazy(()=>ct(()=>import("./PrepareQuestionPaper-BcdqfqUN.js"),__vite__mapDeps([26,27,3,4,16,17,14,13,7,28,29]))),Y8=u.lazy(()=>ct(()=>import("./PrepareThQp-quaNeTNj.js"),__vite__mapDeps([30,31,32,27,9,3,19,29,4,13,14,6,7,12,15,33]))),J8=u.lazy(()=>ct(()=>import("./AssignModerator-BAvBfGwx.js"),__vite__mapDeps([34,23,9,10,3,20,4,6,7,16,17,14,13]))),Z8=u.lazy(()=>ct(()=>import("./DisplayTempCode-BuyLkDo6.js"),__vite__mapDeps([35,36,11,3,9,4,16,17,14,13,7,28,29,15]))),ek=u.lazy(()=>ct(()=>import("./CreateTempCode-Deh4mEnd.js"),__vite__mapDeps([37,36,16,17,14,13,3,7,15,19,4,6]))),tk=u.lazy(()=>ct(()=>import("./QpSummary-CiGctSWN.js"),__vite__mapDeps([38,10,9,11,3,29,4,6,7,16,17,14,13]))),nk=u.lazy(()=>ct(()=>import("./SelectFinalQp-CUsc-Rlw.js"),__vite__mapDeps([39,10,9,40,11,3,20,4,6,7,16,17,14,13]))),rk=u.lazy(()=>ct(()=>import("./SelectFinalMCQQp-KR8RA7jA.js"),__vite__mapDeps([41,9,10,40,11,3,20,4,6,7,16,17,14,13,29]))),ok=u.lazy(()=>ct(()=>import("./ModQpDetailsOnline-CirXU6gi.js"),__vite__mapDeps([42,43,9,3,4,16,17,14,13,7,28,29]))),ak=u.lazy(()=>ct(()=>import("./ModQpDetailsOffline-B9iwMa3F.js"),__vite__mapDeps([44,43,9,12,13,14,15,16,17,3,7,19,4]))),ik=u.lazy(()=>ct(()=>import("./ViewMcqFinalPaper-DRDcMtPI.js"),__vite__mapDeps([45,9,10,27,3,6,7,16,17,14,13]))),lk=u.lazy(()=>ct(()=>import("./GenerateBill-BNvKXf9Z.js"),__vite__mapDeps([46,10,9,11,3,20,4,6,7,16,17,14,13]))),sk=u.lazy(()=>ct(()=>import("./ChangePassword-xll7hQbY.js"),__vite__mapDeps([47,3,6,7]))),uk=u.lazy(()=>ct(()=>import("./ViewQPScr-BsoUkRER.js"),__vite__mapDeps([48,49,11,3,10,9,50,4,6,7,16,17,14,13]))),ck=u.lazy(()=>ct(()=>import("./ViewFinalQP-BNcqFYrD.js"),__vite__mapDeps([51,49,11,3,10,9,50,4,6,7,16,17,14,13,12,15,20]))),dk=u.lazy(()=>ct(()=>import("./AssignUserMenus-rNyEAm0I.js"),__vite__mapDeps([52,53,3,50,20,4,6,7,17,14]))),fk=u.lazy(()=>ct(()=>import("./Usertype-CX0nshep.js"),__vite__mapDeps([54,53,9,3,50,4,16,17,14,13,7,6,20,28]))),mk=u.lazy(()=>ct(()=>import("./CreateUser-D8rP-9St.js"),__vite__mapDeps([55,23,9,53,3,50,4,16,17,14,13,7,6,28]))),Qb=u.lazy(()=>ct(()=>import("./TeacherEntry-B5Q6zPpP.js"),__vite__mapDeps([56,23,9,57,3,50,4,6,7]))),vk=u.lazy(()=>ct(()=>import("./ViewTeacherList-DTXtENUP.js"),__vite__mapDeps([58,57,11,3,9,19,4,16,17,14,13,7,28]))),pk=u.lazy(()=>ct(()=>import("./PrepareQuestionPaper-BsEX211P.js"),__vite__mapDeps([59,31,32,60,13,14,9,3,19,29,4,6,7,12,15,61]))),Xb=u.lazy(()=>ct(()=>import("./ViewPrepareQp-D62wKw0w.js"),__vite__mapDeps([62,60,13,14,3,4,16,17,7,28,29]))),Yb=u.lazy(()=>ct(()=>import("./SubjectCreation-CjEmH02B.js"),__vite__mapDeps([63,64,9,3,6,7]))),gk=u.lazy(()=>ct(()=>import("./ViewSubject-CtmtYDrk.js"),__vite__mapDeps([65,64,3,16,17,14,13,7]))),Jb=u.lazy(()=>ct(()=>import("./DegreeGroup-CZW9f4oQ.js"),__vite__mapDeps([66,67,3,6,7]))),hk=u.lazy(()=>ct(()=>import("./Viewdeggrp-BOBtBXx-.js"),__vite__mapDeps([68,67,3,16,17,14,13,7]))),Zb=u.lazy(()=>ct(()=>import("./Degree-B_LEdsVM.js"),__vite__mapDeps([69,70,3,6,7]))),yk=u.lazy(()=>ct(()=>import("./ViewDegree-DsUtnkiH.js"),__vite__mapDeps([71,70,3,16,17,14,13,7]))),bk=e=>B.jsx("div",{children:B.jsxs(u.Suspense,{fallback:B.jsx("h2",{children:"Loading..."}),children:[B.jsx(B8,{}),e.loader&&B.jsx(z8,{}),B.jsxs(CC,{children:[B.jsx(Ae,{path:"*",element:B.jsx(Wm,{to:"/dashboard",replace:!0})}),B.jsx(Ae,{path:"dashboard",element:B.jsx(k8,{})}),B.jsx(Ae,{path:"/qpsettings/guidelines",element:B.jsx(H8,{})}),B.jsx(Ae,{path:"/qpsettings/bank-details",element:B.jsx(V8,{})}),B.jsx(Ae,{path:"/qpsettings/upload-qp-pattern",element:B.jsx(W8,{})}),B.jsx(Ae,{path:"/qpsettings/available-qp",element:B.jsx(U8,{})}),B.jsx(Ae,{path:"/qpsettings/eligible-qp-setter",element:B.jsx(G8,{})}),B.jsx(Ae,{path:"/qpsettings/select-qp-setter",element:B.jsx(K8,{})}),B.jsx(Ae,{path:"/qpsettings/accept-qp-request",element:B.jsx(q8,{})}),B.jsx(Ae,{path:"/qpsettings/upload-qp",element:B.jsx(Q8,{})}),B.jsx(Ae,{path:"/qpsettings/prepare-qp",element:B.jsx(X8,{})}),B.jsx(Ae,{path:"/qpsettings/prepare-thqp/:qpcode/:year/:mode/:teachcode/:set/:tempcode/:type/:disabled",element:B.jsx(Y8,{})}),B.jsx(Ae,{path:"/qpsettings/assign-moderator",element:B.jsx(J8,{})}),B.jsx(Ae,{path:"/qpsettings/qpsummary",element:B.jsx(tk,{})}),B.jsx(Ae,{path:"/qpsettings/crttemp",element:B.jsx(Z8,{})}),B.jsx(Ae,{path:"/qpsettings/edit/:type/:ftempcode",element:B.jsx(ek,{})}),B.jsx(Ae,{path:"/qpsettings/select-final-qp",element:B.jsx(nk,{})}),B.jsx(Ae,{path:"/qpsettings/select-final-mcq-qp",element:B.jsx(rk,{})}),B.jsx(Ae,{path:"/qpsettings/mod-qp-det-online",element:B.jsx(ok,{})}),B.jsx(Ae,{path:"/qpsettings/mod-qp-det-offline",element:B.jsx(ak,{})}),B.jsx(Ae,{path:"/qpsettings/mcq-final-paper",element:B.jsx(ik,{})}),B.jsx(Ae,{path:"/qpsettings/generatebill",element:B.jsx(lk,{})}),B.jsx(Ae,{path:"/qpsettings/changepwd",element:B.jsx(sk,{})}),B.jsx(Ae,{path:"/viewQPscr",element:B.jsx(uk,{})}),B.jsx(Ae,{path:"/viewFinalQPScr",element:B.jsx(ck,{})}),B.jsx(Ae,{path:"/qpsetting/assign-user-menus",element:B.jsx(dk,{})}),B.jsx(Ae,{path:"/qpsetting/create-usertype",element:B.jsx(fk,{})}),B.jsx(Ae,{path:"/qpsettings/create-user",element:B.jsx(mk,{})}),B.jsx(Ae,{path:"/qpsettings/teacher-entry/:type",element:B.jsx(Qb,{})}),B.jsx(Ae,{path:"/qpsettings/view-teacher-list",element:B.jsx(vk,{})}),B.jsx(Ae,{path:"/qpsettings/teacher-entry/:teachcode/:mobileno/:type",element:B.jsx(Qb,{})}),B.jsx(Ae,{path:"/qpsettings/prepare-qn-paper/:qpcode/:year/:mode/:teachcode/:set/:tempcode/:type/:disabled",element:B.jsx(pk,{})}),B.jsx(Ae,{path:"/qpsettings/prepare-qp-2",element:B.jsx(Xb,{})}),B.jsx(Ae,{path:"/qpsettings/mod-qp-online-2",element:B.jsx(Xb,{})}),B.jsx(Ae,{path:"/qpsettings/subject/type",element:B.jsx(Yb,{})}),B.jsx(Ae,{path:"/qpsettings/subject/:qpcode/:type",element:B.jsx(Yb,{})}),B.jsx(Ae,{path:"/qpsetting/viewsubject",element:B.jsx(gk,{})}),B.jsx(Ae,{path:"/qpsetting/deggrp/type",element:B.jsx(Jb,{})}),B.jsx(Ae,{path:"/qpsetting/deggrp/:deggrp/:type",element:B.jsx(Jb,{})}),B.jsx(Ae,{path:"/qpsetting/viewdeggrp",element:B.jsx(hk,{})}),B.jsx(Ae,{path:"/qpsettings/degree",element:B.jsx(Zb,{})}),B.jsx(Ae,{path:"/qpsettings/degree/:degcode/:degree/:examcode/:examno/:deggrp",element:B.jsx(Zb,{})}),B.jsx(Ae,{path:"/qpsettings/viewdegree",element:B.jsx(yk,{})})]})]})}),Sk=e=>({loader:e.loader.appLoading}),Ck=ng(Sk)(bk),yl={borderRadius:6,colorPrimary:"#8231d3",Button:{colorPrimary:"#8231d3"},borderColor:"#d9d9d9"},wk=e=>{var c,d;const[t,n]=u.useState(["demo","acu","dypatil","reva","jssu"]),r=localStorage.getItem("uniclare-token"),o=Rs(),a=za();localStorage.getItem("dbname"),document.getElementById("univlogo").href=localStorage.getItem("univlogo");let i=a.pathname.split("/");console.log(i);let l=t.filter(f=>f===i[1]);i[1]==l[0]&&l.length!==0&&(localStorage.setItem("dbname",i[1]),localStorage.setItem("type",i[1]),localStorage.setItem("uniclare-rootpath",a.pathname)),u.useEffect(()=>{r!==null&&s()},[]);const s=async()=>{e.isUserLoggedIn(o)};return B.jsx(Ps,{theme:{token:{colorPrimary:yl.colorPrimary,borderRadius:yl.borderRadius,colorBorder:yl.borderColor},components:{Button:{colorPrimary:(c=yl.Button)==null?void 0:c.colorPrimary,algorithm:(d=yl.Button)==null?void 0:d.algorithm},Table:{borderColor:"#cedce5"}}},componentSize:"large",children:B.jsx("div",{children:r===null?B.jsx(L8,{}):B.jsx(Ck,{})})})},Ek=e=>({token:e.loginfo.userData}),xk=ng(Ek,{isUserLoggedIn:C8})(wk);Qf.createRoot(document.getElementById("root")).render(B.jsx(k2,{children:B.jsx(UP,{store:wI,children:B.jsx(xk,{})})}));export{_k as $,Fk as A,Mn as B,wo as C,Hi as D,Nt as E,pn as F,Wa as G,qP as H,dn as I,pz as J,re as K,hc as L,gn as M,_s as N,CR as O,Rg as P,$k as Q,n6 as R,Va as S,A3 as T,no as U,FD as V,jk as W,ka as X,Ik as Y,ye as Z,it as _,be as a,$x as a$,PE as a0,MI as a1,La as a2,Eo as a3,xM as a4,Wj as a5,xw as a6,Di as a7,Ak as a8,Nk as a9,Jo as aA,ep as aB,mx as aC,Rk as aD,Fn as aE,je as aF,Pk as aG,yt as aH,En as aI,ia as aJ,la as aK,yn as aL,lt as aM,bn as aN,K as aO,Ha as aP,zn as aQ,qi as aR,zi as aS,ED as aT,mv as aU,ir as aV,Tk as aW,oA as aX,Nb as aY,Dk as aZ,sr as a_,Ns as aa,Zo as ab,bo as ac,Rt as ad,Gr as ae,Nw as af,md as ag,Na as ah,vL as ai,CL as aj,Sg as ak,Jw as al,Cg as am,dr as an,Lk as ao,ki as ap,Oc as aq,Fi as ar,$E as as,aa as at,ps as au,EM as av,Aj as aw,kj as ax,Bx as ay,y6 as az,W as b,xd as b0,Ok as b1,hN as b2,Pc as b3,QD as b4,hg as b5,js as b6,zg as b7,nn as b8,Ds as b9,yz as bA,va as bB,KF as bC,Xx as bD,aE as bE,eA as bF,Pg as bG,IL as bH,vE as bI,sE as bJ,h3 as ba,Ox as bb,ME as bc,LE as bd,NE as be,AE as bf,By as bg,Nz as bh,f4 as bi,hd as bj,Hm as bk,_x as bl,Px as bm,Nx as bn,Lx as bo,Ix as bp,Bg as bq,RM as br,cs as bs,Os as bt,Jr as bu,Br as bv,ag as bw,Mk as bx,FA as by,lx as bz,q as c,z as d,F as e,zt as f,ft as g,Gj as h,Ny as i,_r as j,J as k,vd as l,Gt as m,yD as n,nE as o,ea as p,Lv as q,u as r,Bi as s,B as t,Ba as u,xr as v,Nn as w,ng as x,Rs as y,Zw as z};