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 : 18.227.209.89
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/index-DXwwbSQ-.js |
const __vite__fileDeps=["assets/Header-Dz_TKOcE.js","assets/Header-DLQGvZvA.css","assets/GuideLines-C7f-pcP8.js","assets/index-C9zck7tp.js","assets/HomeOutlined-DJi-fNI3.js","assets/BankDetails-BXhX5Z12.js","assets/row-DCc3uht9.js","assets/responsiveObserver-BwBvPd7-.js","assets/QpPattern-CbGJI_fa.js","assets/sem-D2Wh8RBS.js","assets/UploadQpPattern-CyMG9yLA.js","assets/datatable-B2si5n_u.js","assets/UploadOutlined-Dam9l3dI.js","assets/index-Cp4ILwZE.js","assets/index-CI4cx5Fn.js","assets/DeleteOutlined-D-qXOX6D.js","assets/Table-DLoblIqA.js","assets/index-BVb88WDa.js","assets/AvailableQp-CUU-ezAs.js","assets/ArrowLeftOutlined-wrpok2FY.js","assets/SaveOutlined-DuO3L2oa.js","assets/EligibleQpSetter-YCVkahhE.js","assets/SelectQpSetter-gRR3JPXp.js","assets/index-BAGt7q6d.js","assets/AcceptQpRequest-CodLqWU9.js","assets/UploadQuestionPaper-BnIfO7TV.js","assets/PrepareQuestionPaper-Bz-uC7mg.js","assets/PrepareQp-D0g18ArW.js","assets/EditOutlined-GXaCn7Rg.js","assets/FilePdfOutlined-OrSKZSpx.js","assets/PrepareThQp-qsJJ8k63.js","assets/quill.snow-CF1GfDbq.js","assets/quill-D-h-yQ65.css","assets/PrepareThQp-DcIxWSQY.css","assets/AssignModerator-DG0MQ7xG.js","assets/DisplayTempCode-CD9w1c1d.js","assets/TemplateCode-BYn0AvSX.js","assets/CreateTempCode-BrGuDMDH.js","assets/QpSummary-B21-SMTB.js","assets/SelectFinalQp-CTEivKHV.js","assets/SelectFinalQP-B7-WeoQ7.js","assets/SelectFinalMCQQp-DbGnIN43.js","assets/ModQpDetailsOnline-h3CqbEaP.js","assets/ModQpDetails-TPTqVvZ8.js","assets/ModQpDetailsOffline-CU_Gdz7J.js","assets/ViewMcqFinalPaper-D9KQENtr.js","assets/GenerateBill-BhnonOeZ.js","assets/ChangePassword-DLIr4jOD.js","assets/ViewQPScr-WDlalJ93.js","assets/ViewQPScr-BV7ZY6_p.js","assets/StopOutlined-D0t7QsZC.js","assets/ViewFinalQP-CLSS9AGP.js","assets/AssignUserMenus-C7aJCzjf.js","assets/Usertype-BJQ5RQfE.js","assets/Usertype-Ckr0GHBs.js","assets/CreateUser-D2oGzVfo.js","assets/TeacherEntry-DhR2yFtA.js","assets/TeacherEntry-Cjwr2XqH.js","assets/ViewTeacherList-Bbu3jvRF.js","assets/PrepareQuestionPaper-CGCNvbvD.js","assets/PrepareQuestionPaper-DzRZKwpO.js","assets/PrepareQuestionPaper-C2UwIRZt.css","assets/ViewPrepareQp-8EypCn3q.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
function Qb(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 lk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xb={exports:{}},Mc={},Yb={exports:{}},ft={};/**
* @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 ys=Symbol.for("react.element"),yR=Symbol.for("react.portal"),bR=Symbol.for("react.fragment"),SR=Symbol.for("react.strict_mode"),CR=Symbol.for("react.profiler"),wR=Symbol.for("react.provider"),ER=Symbol.for("react.context"),xR=Symbol.for("react.forward_ref"),RR=Symbol.for("react.suspense"),$R=Symbol.for("react.memo"),OR=Symbol.for("react.lazy"),Ug=Symbol.iterator;function PR(e){return e===null||typeof e!="object"?null:(e=Ug&&e[Ug]||e["@@iterator"],typeof e=="function"?e:null)}var Jb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zb=Object.assign,eS={};function Hi(e,t,n){this.props=e,this.context=t,this.refs=eS,this.updater=n||Jb}Hi.prototype.isReactComponent={};Hi.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")};Hi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tS(){}tS.prototype=Hi.prototype;function Jm(e,t,n){this.props=e,this.context=t,this.refs=eS,this.updater=n||Jb}var Zm=Jm.prototype=new tS;Zm.constructor=Jm;Zb(Zm,Hi.prototype);Zm.isPureReactComponent=!0;var Kg=Array.isArray,nS=Object.prototype.hasOwnProperty,ep={current:null},rS={key:!0,ref:!0,__self:!0,__source:!0};function oS(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)nS.call(t,r)&&!rS.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:ys,type:e,key:a,ref:i,props:o,_owner:ep.current}}function _R(e,t){return{$$typeof:ys,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tp(e){return typeof e=="object"&&e!==null&&e.$$typeof===ys}function IR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Gg=/\/+/g;function Ld(e,t){return typeof e=="object"&&e!==null&&e.key!=null?IR(""+e.key):t.toString(36)}function hu(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 ys:case yR:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Ld(i,0):r,Kg(o)?(n="",e!=null&&(n=e.replace(Gg,"$&/")+"/"),hu(o,t,n,"",function(c){return c})):o!=null&&(tp(o)&&(o=_R(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Gg,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Kg(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+Ld(a,l);i+=hu(a,t,n,s,o)}else if(s=PR(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+Ld(a,l++),i+=hu(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 ks(e,t,n){if(e==null)return e;var r=[],o=0;return hu(e,r,"","",function(a){return t.call(n,a,o++)}),r}function TR(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 jn={current:null},yu={transition:null},MR={ReactCurrentDispatcher:jn,ReactCurrentBatchConfig:yu,ReactCurrentOwner:ep};function aS(){throw Error("act(...) is not supported in production builds of React.")}ft.Children={map:ks,forEach:function(e,t,n){ks(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ks(e,function(){t++}),t},toArray:function(e){return ks(e,function(t){return t})||[]},only:function(e){if(!tp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ft.Component=Hi;ft.Fragment=bR;ft.Profiler=CR;ft.PureComponent=Jm;ft.StrictMode=SR;ft.Suspense=RR;ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MR;ft.act=aS;ft.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=Zb({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=ep.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)nS.call(t,s)&&!rS.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:ys,type:e.type,key:o,ref:a,props:r,_owner:i}};ft.createContext=function(e){return e={$$typeof:ER,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wR,_context:e},e.Consumer=e};ft.createElement=oS;ft.createFactory=function(e){var t=oS.bind(null,e);return t.type=e,t};ft.createRef=function(){return{current:null}};ft.forwardRef=function(e){return{$$typeof:xR,render:e}};ft.isValidElement=tp;ft.lazy=function(e){return{$$typeof:OR,_payload:{_status:-1,_result:e},_init:TR}};ft.memo=function(e,t){return{$$typeof:$R,type:e,compare:t===void 0?null:t}};ft.startTransition=function(e){var t=yu.transition;yu.transition={};try{e()}finally{yu.transition=t}};ft.unstable_act=aS;ft.useCallback=function(e,t){return jn.current.useCallback(e,t)};ft.useContext=function(e){return jn.current.useContext(e)};ft.useDebugValue=function(){};ft.useDeferredValue=function(e){return jn.current.useDeferredValue(e)};ft.useEffect=function(e,t){return jn.current.useEffect(e,t)};ft.useId=function(){return jn.current.useId()};ft.useImperativeHandle=function(e,t,n){return jn.current.useImperativeHandle(e,t,n)};ft.useInsertionEffect=function(e,t){return jn.current.useInsertionEffect(e,t)};ft.useLayoutEffect=function(e,t){return jn.current.useLayoutEffect(e,t)};ft.useMemo=function(e,t){return jn.current.useMemo(e,t)};ft.useReducer=function(e,t,n){return jn.current.useReducer(e,t,n)};ft.useRef=function(e){return jn.current.useRef(e)};ft.useState=function(e){return jn.current.useState(e)};ft.useSyncExternalStore=function(e,t,n){return jn.current.useSyncExternalStore(e,t,n)};ft.useTransition=function(){return jn.current.useTransition()};ft.version="18.3.1";Yb.exports=ft;var u=Yb.exports;const G=Ym(u),$a=Qb({__proto__:null,default:G},[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 NR=u,LR=Symbol.for("react.element"),AR=Symbol.for("react.fragment"),FR=Object.prototype.hasOwnProperty,DR=NR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jR={key:!0,ref:!0,__self:!0,__source:!0};function iS(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)FR.call(t,r)&&!jR.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:LR,type:e,key:a,ref:i,props:o,_owner:DR.current}}Mc.Fragment=AR;Mc.jsx=iS;Mc.jsxs=iS;Xb.exports=Mc;var U=Xb.exports,Gf={},lS={exports:{}},sr={},sS={exports:{}},uS={};/**
* @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,B=$[T];if(0<o(B,L))$[T]=L,$[N]=B,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,B=$.length,k=B>>>1;T<k;){var W=2*(T+1)-1,K=$[W],ee=W+1,Q=$[ee];if(0>o(K,N))ee<B&&0>o(Q,K)?($[T]=Q,$[ee]=N,T=ee):($[T]=K,$[W]=N,T=W);else if(ee<B&&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,v=3,g=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=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,F(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=v;try{for(p(L),f=n(s);f!==null&&(!(f.expirationTime>L)||$&&!A());){var T=f.callback;if(typeof T=="function"){f.callback=null,v=f.priorityLevel;var B=T(f.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(s)&&r(s),p(L)}else r(s);f=n(s)}if(f!==null)var k=!0;else{var W=n(c);W!==null&&P(C,W.startTime-L),k=!1}return k}finally{f=null,v=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 m=="function")D=function(){m(M)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,H=I.port2;I.port1.onmessage=M,D=function(){H.postMessage(null)}}else D=function(){S(M,0)};function F($){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,F(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 v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(v){case 1:case 2:case 3:var L=3;break;default:L=v}var N=v;v=L;try{return $()}finally{v=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=v;v=$;try{return L()}finally{v=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 B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=N+B,$={id:d++,callback:L,priorityLevel:$,startTime:N,expirationTime:B,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=B,t(s,$),y||g||(y=!0,F(w))),$},e.unstable_shouldYield=A,e.unstable_wrapCallback=function($){var L=v;return function(){var N=v;v=L;try{return $.apply(this,arguments)}finally{v=N}}}})(uS);sS.exports=uS;var zR=sS.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 BR=u,ir=zR;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 cS=new Set,Dl={};function Fa(e,t){Oi(e,t),Oi(e+"Capture",t)}function Oi(e,t){for(Dl[e]=t,e=0;e<t.length;e++)cS.add(t[e])}var mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qf=Object.prototype.hasOwnProperty,kR=/^[: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]*$/,qg={},Qg={};function HR(e){return qf.call(Qg,e)?!0:qf.call(qg,e)?!1:kR.test(e)?Qg[e]=!0:(qg[e]=!0,!1)}function VR(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 WR(e,t,n,r){if(t===null||typeof t>"u"||VR(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zn(e,t,n,r,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 Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new zn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Rn[e]=new zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var np=/[\-:]([a-z])/g;function rp(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(np,rp);Rn[t]=new zn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(np,rp);Rn[t]=new zn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(np,rp);Rn[t]=new zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new zn(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function op(e,t,n,r){var o=Rn.hasOwnProperty(t)?Rn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(WR(t,n,o,r)&&(n=null),r||o===null?HR(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=BR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hs=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),ap=Symbol.for("react.strict_mode"),Qf=Symbol.for("react.profiler"),dS=Symbol.for("react.provider"),fS=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Yf=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),To=Symbol.for("react.lazy"),vS=Symbol.for("react.offscreen"),Xg=Symbol.iterator;function tl(e){return e===null||typeof e!="object"?null:(e=Xg&&e[Xg]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,Ad;function gl(e){if(Ad===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ad=t&&t[1]||""}return`
`+Ad+e}var Fd=!1;function Dd(e,t){if(!e||Fd)return"";Fd=!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{Fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gl(e):""}function UR(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=Dd(e.type,!1),e;case 11:return e=Dd(e.type.render,!1),e;case 1:return e=Dd(e.type,!0),e;default:return""}}function Jf(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 Qf:return"Profiler";case ap:return"StrictMode";case Xf:return"Suspense";case Yf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fS:return(e.displayName||"Context")+".Consumer";case dS:return(e._context.displayName||"Context")+".Provider";case ip:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:Jf(e.type)||"Memo";case To:t=e._payload,e=e._init;try{return Jf(e(t))}catch{}}return null}function KR(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 Jf(t);case 8:return t===ap?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GR(e){var t=mS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var 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 Vs(e){e._valueTracker||(e._valueTracker=GR(e))}function pS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zf(e,t){var n=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yg(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 gS(e,t){t=t.checked,t!=null&&op(e,"checked",t,!1)}function ev(e,t){gS(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")?tv(e,t.type,n):t.hasOwnProperty("defaultValue")&&tv(e,t.type,Xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jg(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 tv(e,t,n){(t!=="number"||Vu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hl=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 nv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ue(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zg(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(hl(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 hS(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 eh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yS(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 rv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ws,bS=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(Ws=Ws||document.createElement("div"),Ws.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wl={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},qR=["Webkit","ms","Moz","O"];Object.keys(wl).forEach(function(e){qR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wl[t]=wl[e]})});function SS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wl.hasOwnProperty(e)&&wl[e]?(""+t).trim():t+"px"}function CS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=SS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var QR=Wt({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 ov(e,t){if(t){if(QR[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 av(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 iv=null;function sp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lv=null,Si=null,Ci=null;function th(e){if(e=Cs(e)){if(typeof lv!="function")throw Error(ue(280));var t=e.stateNode;t&&(t=Dc(t),lv(e.stateNode,e.type,t))}}function wS(e){Si?Ci?Ci.push(e):Ci=[e]:Si=e}function ES(){if(Si){var e=Si,t=Ci;if(Ci=Si=null,th(e),t)for(e=0;e<t.length;e++)th(t[e])}}function xS(e,t){return e(t)}function RS(){}var jd=!1;function $S(e,t,n){if(jd)return e(t,n);jd=!0;try{return xS(e,t,n)}finally{jd=!1,(Si!==null||Ci!==null)&&(RS(),ES())}}function zl(e,t){var n=e.stateNode;if(n===null)return null;var r=Dc(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 sv=!1;if(mo)try{var nl={};Object.defineProperty(nl,"passive",{get:function(){sv=!0}}),window.addEventListener("test",nl,nl),window.removeEventListener("test",nl,nl)}catch{sv=!1}function XR(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 El=!1,Wu=null,Uu=!1,uv=null,YR={onError:function(e){El=!0,Wu=e}};function JR(e,t,n,r,o,a,i,l,s){El=!1,Wu=null,XR.apply(YR,arguments)}function ZR(e,t,n,r,o,a,i,l,s){if(JR.apply(this,arguments),El){if(El){var c=Wu;El=!1,Wu=null}else throw Error(ue(198));Uu||(Uu=!0,uv=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 OS(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 nh(e){if(Da(e)!==e)throw Error(ue(188))}function e$(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 nh(o),e;if(a===r)return nh(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 PS(e){return e=e$(e),e!==null?_S(e):null}function _S(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_S(e);if(t!==null)return t;e=e.sibling}return null}var IS=ir.unstable_scheduleCallback,rh=ir.unstable_cancelCallback,t$=ir.unstable_shouldYield,n$=ir.unstable_requestPaint,Xt=ir.unstable_now,r$=ir.unstable_getCurrentPriorityLevel,up=ir.unstable_ImmediatePriority,TS=ir.unstable_UserBlockingPriority,Ku=ir.unstable_NormalPriority,o$=ir.unstable_LowPriority,MS=ir.unstable_IdlePriority,Nc=null,Jr=null;function a$(e){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(Nc,e,void 0,(e.current.flags&128)===128)}catch{}}var Dr=Math.clz32?Math.clz32:s$,i$=Math.log,l$=Math.LN2;function s$(e){return e>>>=0,e===0?32:31-(i$(e)/l$|0)|0}var Us=64,Ks=4194304;function yl(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 Gu(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=yl(l):(a&=i,a!==0&&(r=yl(a)))}else i=n&~o,i!==0?r=yl(i):a!==0&&(r=yl(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-Dr(t),o=1<<n,r|=e[n],t&=~o;return r}function u$(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 c$(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Dr(a),l=1<<i,s=o[i];s===-1?(!(l&n)||l&r)&&(o[i]=u$(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function cv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function NS(){var e=Us;return Us<<=1,!(Us&4194240)&&(Us=64),e}function zd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dr(t),e[t]=n}function d$(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-Dr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function cp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var $t=0;function LS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var AS,dp,FS,DS,jS,dv=!1,Gs=[],ko=null,Ho=null,Vo=null,Bl=new Map,kl=new Map,No=[],f$="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 oh(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":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function rl(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=Cs(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function v$(e,t,n,r,o){switch(t){case"focusin":return ko=rl(ko,e,t,n,r,o),!0;case"dragenter":return Ho=rl(Ho,e,t,n,r,o),!0;case"mouseover":return Vo=rl(Vo,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Bl.set(a,rl(Bl.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,kl.set(a,rl(kl.get(a)||null,e,t,n,r,o)),!0}return!1}function zS(e){var t=pa(e.target);if(t!==null){var n=Da(t);if(n!==null){if(t=n.tag,t===13){if(t=OS(n),t!==null){e.blockedOn=t,jS(e.priority,function(){FS(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 bu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);iv=r,n.target.dispatchEvent(r),iv=null}else return t=Cs(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function ah(e,t,n){bu(e)&&n.delete(t)}function m$(){dv=!1,ko!==null&&bu(ko)&&(ko=null),Ho!==null&&bu(Ho)&&(Ho=null),Vo!==null&&bu(Vo)&&(Vo=null),Bl.forEach(ah),kl.forEach(ah)}function ol(e,t){e.blockedOn===t&&(e.blockedOn=null,dv||(dv=!0,ir.unstable_scheduleCallback(ir.unstable_NormalPriority,m$)))}function Hl(e){function t(o){return ol(o,e)}if(0<Gs.length){ol(Gs[0],e);for(var n=1;n<Gs.length;n++){var r=Gs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ko!==null&&ol(ko,e),Ho!==null&&ol(Ho,e),Vo!==null&&ol(Vo,e),Bl.forEach(t),kl.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);)zS(n),n.blockedOn===null&&No.shift()}var wi=So.ReactCurrentBatchConfig,qu=!0;function p$(e,t,n,r){var o=$t,a=wi.transition;wi.transition=null;try{$t=1,fp(e,t,n,r)}finally{$t=o,wi.transition=a}}function g$(e,t,n,r){var o=$t,a=wi.transition;wi.transition=null;try{$t=4,fp(e,t,n,r)}finally{$t=o,wi.transition=a}}function fp(e,t,n,r){if(qu){var o=fv(e,t,n,r);if(o===null)Qd(e,t,r,Qu,n),oh(e,r);else if(v$(o,e,t,n,r))r.stopPropagation();else if(oh(e,r),t&4&&-1<f$.indexOf(e)){for(;o!==null;){var a=Cs(o);if(a!==null&&AS(a),a=fv(e,t,n,r),a===null&&Qd(e,t,r,Qu,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else Qd(e,t,r,null,n)}}var Qu=null;function fv(e,t,n,r){if(Qu=null,e=sp(r),e=pa(e),e!==null)if(t=Da(e),t===null)e=null;else if(n=t.tag,n===13){if(e=OS(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 Qu=e,null}function BS(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(r$()){case up:return 1;case TS:return 4;case Ku:case o$:return 16;case MS:return 536870912;default:return 16}default:return 16}}var Ao=null,vp=null,Su=null;function kS(){if(Su)return Su;var e,t=vp,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 Su=o.slice(e,1<r?1-r:void 0)}function Cu(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 qs(){return!0}function ih(){return!1}function ur(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)?qs:ih,this.isPropagationStopped=ih,this}return Wt(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=qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),t}var Vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mp=ur(Vi),Ss=Wt({},Vi,{view:0,detail:0}),h$=ur(Ss),Bd,kd,al,Lc=Wt({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pp,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!==al&&(al&&e.type==="mousemove"?(Bd=e.screenX-al.screenX,kd=e.screenY-al.screenY):kd=Bd=0,al=e),Bd)},movementY:function(e){return"movementY"in e?e.movementY:kd}}),lh=ur(Lc),y$=Wt({},Lc,{dataTransfer:0}),b$=ur(y$),S$=Wt({},Ss,{relatedTarget:0}),Hd=ur(S$),C$=Wt({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),w$=ur(C$),E$=Wt({},Vi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x$=ur(E$),R$=Wt({},Vi,{data:0}),sh=ur(R$),$$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O$={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"},P$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P$[e])?!!t[e]:!1}function pp(){return _$}var I$=Wt({},Ss,{key:function(e){if(e.key){var t=$$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pp,charCode:function(e){return e.type==="keypress"?Cu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T$=ur(I$),M$=Wt({},Lc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uh=ur(M$),N$=Wt({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pp}),L$=ur(N$),A$=Wt({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),F$=ur(A$),D$=Wt({},Lc,{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}),j$=ur(D$),z$=[9,13,27,32],gp=mo&&"CompositionEvent"in window,xl=null;mo&&"documentMode"in document&&(xl=document.documentMode);var B$=mo&&"TextEvent"in window&&!xl,HS=mo&&(!gp||xl&&8<xl&&11>=xl),ch=" ",dh=!1;function VS(e,t){switch(e){case"keyup":return z$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ii=!1;function k$(e,t){switch(e){case"compositionend":return WS(t);case"keypress":return t.which!==32?null:(dh=!0,ch);case"textInput":return e=t.data,e===ch&&dh?null:e;default:return null}}function H$(e,t){if(ii)return e==="compositionend"||!gp&&VS(e,t)?(e=kS(),Su=vp=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 HS&&t.locale!=="ko"?null:t.data;default:return null}}var V$={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 fh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V$[e.type]:t==="textarea"}function US(e,t,n,r){wS(r),t=Xu(t,"onChange"),0<t.length&&(n=new mp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rl=null,Vl=null;function W$(e){n1(e,0)}function Ac(e){var t=ui(e);if(pS(t))return e}function U$(e,t){if(e==="change")return t}var KS=!1;if(mo){var Vd;if(mo){var Wd="oninput"in document;if(!Wd){var vh=document.createElement("div");vh.setAttribute("oninput","return;"),Wd=typeof vh.oninput=="function"}Vd=Wd}else Vd=!1;KS=Vd&&(!document.documentMode||9<document.documentMode)}function mh(){Rl&&(Rl.detachEvent("onpropertychange",GS),Vl=Rl=null)}function GS(e){if(e.propertyName==="value"&&Ac(Vl)){var t=[];US(t,Vl,e,sp(e)),$S(W$,t)}}function K$(e,t,n){e==="focusin"?(mh(),Rl=t,Vl=n,Rl.attachEvent("onpropertychange",GS)):e==="focusout"&&mh()}function G$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ac(Vl)}function q$(e,t){if(e==="click")return Ac(t)}function Q$(e,t){if(e==="input"||e==="change")return Ac(t)}function X$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vr=typeof Object.is=="function"?Object.is:X$;function Wl(e,t){if(Vr(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(!qf.call(t,o)||!Vr(e[o],t[o]))return!1}return!0}function ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gh(e,t){var n=ph(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=ph(n)}}function qS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function QS(){for(var e=window,t=Vu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vu(e.document)}return t}function hp(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 Y$(e){var t=QS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qS(n.ownerDocument.documentElement,n)){if(r!==null&&hp(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=gh(n,a);var i=gh(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 J$=mo&&"documentMode"in document&&11>=document.documentMode,li=null,vv=null,$l=null,mv=!1;function hh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mv||li==null||li!==Vu(r)||(r=li,"selectionStart"in r&&hp(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&&Wl($l,r)||($l=r,r=Xu(vv,"onSelect"),0<r.length&&(t=new mp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Qs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var si={animationend:Qs("Animation","AnimationEnd"),animationiteration:Qs("Animation","AnimationIteration"),animationstart:Qs("Animation","AnimationStart"),transitionend:Qs("Transition","TransitionEnd")},Ud={},XS={};mo&&(XS=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 Fc(e){if(Ud[e])return Ud[e];if(!si[e])return e;var t=si[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in XS)return Ud[e]=t[n];return e}var YS=Fc("animationend"),JS=Fc("animationiteration"),ZS=Fc("animationstart"),e1=Fc("transitionend"),t1=new Map,yh="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){t1.set(e,t),Fa(t,[e])}for(var Kd=0;Kd<yh.length;Kd++){var Gd=yh[Kd],Z$=Gd.toLowerCase(),eO=Gd[0].toUpperCase()+Gd.slice(1);ta(Z$,"on"+eO)}ta(YS,"onAnimationEnd");ta(JS,"onAnimationIteration");ta(ZS,"onAnimationStart");ta("dblclick","onDoubleClick");ta("focusin","onFocus");ta("focusout","onBlur");ta(e1,"onTransitionEnd");Oi("onMouseEnter",["mouseout","mouseover"]);Oi("onMouseLeave",["mouseout","mouseover"]);Oi("onPointerEnter",["pointerout","pointerover"]);Oi("onPointerLeave",["pointerout","pointerover"]);Fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="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(" "),tO=new Set("cancel close invalid load scroll toggle".split(" ").concat(bl));function bh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ZR(r,t,void 0,e),e.currentTarget=null}function n1(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;bh(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;bh(o,l,c),a=s}}}if(Uu)throw e=uv,Uu=!1,uv=null,e}function Dt(e,t){var n=t[bv];n===void 0&&(n=t[bv]=new Set);var r=e+"__bubble";n.has(r)||(r1(t,e,2,!1),n.add(r))}function qd(e,t,n){var r=0;t&&(r|=4),r1(n,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Ul(e){if(!e[Xs]){e[Xs]=!0,cS.forEach(function(n){n!=="selectionchange"&&(tO.has(n)||qd(n,!1,e),qd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,qd("selectionchange",!1,t))}}function r1(e,t,n,r){switch(BS(t)){case 1:var o=p$;break;case 4:o=g$;break;default:o=fp}n=o.bind(null,t,n,e),o=void 0,!sv||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 Qd(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}$S(function(){var c=a,d=sp(n),f=[];e:{var v=t1.get(e);if(v!==void 0){var g=mp,y=e;switch(e){case"keypress":if(Cu(n)===0)break e;case"keydown":case"keyup":g=T$;break;case"focusin":y="focus",g=Hd;break;case"focusout":y="blur",g=Hd;break;case"beforeblur":case"afterblur":g=Hd;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=lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=b$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=L$;break;case YS:case JS:case ZS:g=w$;break;case e1:g=F$;break;case"scroll":g=h$;break;case"wheel":g=j$;break;case"copy":case"cut":case"paste":g=x$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=uh}var b=(t&4)!==0,S=!b&&e==="scroll",h=b?v!==null?v+"Capture":null:v;b=[];for(var m=c,p;m!==null;){p=m;var C=p.stateNode;if(p.tag===5&&C!==null&&(p=C,h!==null&&(C=zl(m,h),C!=null&&b.push(Kl(m,C,p)))),S)break;m=m.return}0<b.length&&(v=new g(v,y,null,n,d),f.push({event:v,listeners:b}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==iv&&(y=n.relatedTarget||n.fromElement)&&(pa(y)||y[po]))break e;if((g||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.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=lh,C="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=uh,C="onPointerLeave",h="onPointerEnter",m="pointer"),S=g==null?v:ui(g),p=y==null?v:ui(y),v=new b(C,m+"leave",g,n,d),v.target=S,v.relatedTarget=p,C=null,pa(d)===c&&(b=new b(h,m+"enter",y,n,d),b.target=p,b.relatedTarget=S,C=b),S=C,g&&y)t:{for(b=g,h=y,m=0,p=b;p;p=qa(p))m++;for(p=0,C=h;C;C=qa(C))p++;for(;0<m-p;)b=qa(b),m--;for(;0<p-m;)h=qa(h),p--;for(;m--;){if(b===h||h!==null&&b===h.alternate)break t;b=qa(b),h=qa(h)}b=null}else b=null;g!==null&&Sh(f,v,g,b,!1),y!==null&&S!==null&&Sh(f,S,y,b,!0)}}e:{if(v=c?ui(c):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var w=U$;else if(fh(v))if(KS)w=Q$;else{w=G$;var x=K$}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(w=q$);if(w&&(w=w(e,c))){US(f,w,n,d);break e}x&&x(e,v,c),e==="focusout"&&(x=v._wrapperState)&&x.controlled&&v.type==="number"&&tv(v,"number",v.value)}switch(x=c?ui(c):window,e){case"focusin":(fh(x)||x.contentEditable==="true")&&(li=x,vv=c,$l=null);break;case"focusout":$l=vv=li=null;break;case"mousedown":mv=!0;break;case"contextmenu":case"mouseup":case"dragend":mv=!1,hh(f,n,d);break;case"selectionchange":if(J$)break;case"keydown":case"keyup":hh(f,n,d)}var E;if(gp)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?VS(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(HS&&n.locale!=="ko"&&(ii||R!=="onCompositionStart"?R==="onCompositionEnd"&&ii&&(E=kS()):(Ao=d,vp="value"in Ao?Ao.value:Ao.textContent,ii=!0)),x=Xu(c,R),0<x.length&&(R=new sh(R,e,null,n,d),f.push({event:R,listeners:x}),E?R.data=E:(E=WS(n),E!==null&&(R.data=E)))),(E=B$?k$(e,n):H$(e,n))&&(c=Xu(c,"onBeforeInput"),0<c.length&&(d=new sh("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=E))}n1(f,t)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xu(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=zl(e,n),a!=null&&r.unshift(Kl(e,a,o)),a=zl(e,t),a!=null&&r.push(Kl(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 Sh(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=zl(n,a),s!=null&&i.unshift(Kl(n,s,l))):o||(s=zl(n,a),s!=null&&i.push(Kl(n,s,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var nO=/\r\n?/g,rO=/\u0000|\uFFFD/g;function Ch(e){return(typeof e=="string"?e:""+e).replace(nO,`
`).replace(rO,"")}function Ys(e,t,n){if(t=Ch(t),Ch(e)!==t&&n)throw Error(ue(425))}function Yu(){}var pv=null,gv=null;function hv(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 yv=typeof setTimeout=="function"?setTimeout:void 0,oO=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,aO=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(iO)}:yv;function iO(e){setTimeout(function(){throw e})}function Xd(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),Hl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Hl(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 Eh(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 Wi=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Wi,Gl="__reactProps$"+Wi,po="__reactContainer$"+Wi,bv="__reactEvents$"+Wi,lO="__reactListeners$"+Wi,sO="__reactHandles$"+Wi;function pa(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Eh(e);e!==null;){if(n=e[Xr])return n;e=Eh(e)}return t}e=n,n=e.parentNode}return null}function Cs(e){return e=e[Xr]||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 Dc(e){return e[Gl]||null}var Sv=[],ci=-1;function na(e){return{current:e}}function zt(e){0>ci||(e.current=Sv[ci],Sv[ci]=null,ci--)}function At(e,t){ci++,Sv[ci]=e.current,e.current=t}var Yo={},Mn=na(Yo),Gn=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 Ju(){zt(Gn),zt(Mn)}function xh(e,t,n){if(Mn.current!==Yo)throw Error(ue(168));At(Mn,t),At(Gn,n)}function o1(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,KR(e)||"Unknown",o));return Wt({},n,r)}function Zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yo,Oa=Mn.current,At(Mn,e),At(Gn,Gn.current),!0}function Rh(e,t,n){var r=e.stateNode;if(!r)throw Error(ue(169));n?(e=o1(e,t,Oa),r.__reactInternalMemoizedMergedChildContext=e,zt(Gn),zt(Mn),At(Mn,e)):zt(Gn),At(Gn,n)}var io=null,jc=!1,Yd=!1;function a1(e){io===null?io=[e]:io.push(e)}function uO(e){jc=!0,a1(e)}function ra(){if(!Yd&&io!==null){Yd=!0;var e=0,t=$t;try{var n=io;for($t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}io=null,jc=!1}catch(o){throw io!==null&&(io=io.slice(e+1)),IS(up,ra),o}finally{$t=t,Yd=!1}}return null}var di=[],fi=0,ec=null,tc=0,yr=[],br=0,Pa=null,so=1,uo="";function ca(e,t){di[fi++]=tc,di[fi++]=ec,ec=e,tc=t}function i1(e,t,n){yr[br++]=so,yr[br++]=uo,yr[br++]=Pa,Pa=e;var r=so;e=uo;var o=32-Dr(r)-1;r&=~(1<<o),n+=1;var a=32-Dr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,so=1<<32-Dr(t)+o|n<<o|r,uo=a+e}else so=1<<a|n<<o|r,uo=e}function yp(e){e.return!==null&&(ca(e,1),i1(e,1,0))}function bp(e){for(;e===ec;)ec=di[--fi],di[fi]=null,tc=di[--fi],di[fi]=null;for(;e===Pa;)Pa=yr[--br],yr[br]=null,uo=yr[--br],yr[br]=null,so=yr[--br],yr[br]=null}var or=null,nr=null,Bt=!1,Fr=null;function l1(e,t){var n=Sr(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,or=e,nr=Wo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,or=e,nr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pa!==null?{id:so,overflow:uo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Sr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,or=e,nr=null,!0):!1;default:return!1}}function Cv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wv(e){if(Bt){var t=nr;if(t){var n=t;if(!$h(e,t)){if(Cv(e))throw Error(ue(418));t=Wo(n.nextSibling);var r=or;t&&$h(e,t)?l1(r,n):(e.flags=e.flags&-4097|2,Bt=!1,or=e)}}else{if(Cv(e))throw Error(ue(418));e.flags=e.flags&-4097|2,Bt=!1,or=e}}}function Oh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;or=e}function Js(e){if(e!==or)return!1;if(!Bt)return Oh(e),Bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hv(e.type,e.memoizedProps)),t&&(t=nr)){if(Cv(e))throw s1(),Error(ue(418));for(;t;)l1(e,t),t=Wo(t.nextSibling)}if(Oh(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){nr=Wo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nr=null}}else nr=or?Wo(e.stateNode.nextSibling):null;return!0}function s1(){for(var e=nr;e;)e=Wo(e.nextSibling)}function _i(){nr=or=null,Bt=!1}function Sp(e){Fr===null?Fr=[e]:Fr.push(e)}var cO=So.ReactCurrentBatchConfig;function il(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 Zs(e,t){throw e=Object.prototype.toString.call(t),Error(ue(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ph(e){var t=e._init;return t(e._payload)}function u1(e){function t(h,m){if(e){var p=h.deletions;p===null?(h.deletions=[m],h.flags|=16):p.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function o(h,m){return h=qo(h,m),h.index=0,h.sibling=null,h}function a(h,m,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<m?(h.flags|=2,m):p):(h.flags|=2,m)):(h.flags|=1048576,m)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,m,p,C){return m===null||m.tag!==6?(m=of(p,h.mode,C),m.return=h,m):(m=o(m,p),m.return=h,m)}function s(h,m,p,C){var w=p.type;return w===ai?d(h,m,p.props.children,C,p.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Ph(w)===m.type)?(C=o(m,p.props),C.ref=il(h,m,p),C.return=h,C):(C=Pu(p.type,p.key,p.props,null,h.mode,C),C.ref=il(h,m,p),C.return=h,C)}function c(h,m,p,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=af(p,h.mode,C),m.return=h,m):(m=o(m,p.children||[]),m.return=h,m)}function d(h,m,p,C,w){return m===null||m.tag!==7?(m=wa(p,h.mode,C,w),m.return=h,m):(m=o(m,p),m.return=h,m)}function f(h,m,p){if(typeof m=="string"&&m!==""||typeof m=="number")return m=of(""+m,h.mode,p),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Hs:return p=Pu(m.type,m.key,m.props,null,h.mode,p),p.ref=il(h,null,m),p.return=h,p;case oi:return m=af(m,h.mode,p),m.return=h,m;case To:var C=m._init;return f(h,C(m._payload),p)}if(hl(m)||tl(m))return m=wa(m,h.mode,p,null),m.return=h,m;Zs(h,m)}return null}function v(h,m,p,C){var w=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return w!==null?null:l(h,m,""+p,C);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Hs:return p.key===w?s(h,m,p,C):null;case oi:return p.key===w?c(h,m,p,C):null;case To:return w=p._init,v(h,m,w(p._payload),C)}if(hl(p)||tl(p))return w!==null?null:d(h,m,p,C,null);Zs(h,p)}return null}function g(h,m,p,C,w){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(p)||null,l(m,h,""+C,w);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Hs:return h=h.get(C.key===null?p:C.key)||null,s(m,h,C,w);case oi:return h=h.get(C.key===null?p:C.key)||null,c(m,h,C,w);case To:var x=C._init;return g(h,m,p,x(C._payload),w)}if(hl(C)||tl(C))return h=h.get(p)||null,d(m,h,C,w,null);Zs(m,C)}return null}function y(h,m,p,C){for(var w=null,x=null,E=m,R=m=0,O=null;E!==null&&R<p.length;R++){E.index>R?(O=E,E=null):O=E.sibling;var _=v(h,E,p[R],C);if(_===null){E===null&&(E=O);break}e&&E&&_.alternate===null&&t(h,E),m=a(_,m,R),x===null?w=_:x.sibling=_,x=_,E=O}if(R===p.length)return n(h,E),Bt&&ca(h,R),w;if(E===null){for(;R<p.length;R++)E=f(h,p[R],C),E!==null&&(m=a(E,m,R),x===null?w=E:x.sibling=E,x=E);return Bt&&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),m=a(O,m,R),x===null?w=O:x.sibling=O,x=O);return e&&E.forEach(function(A){return t(h,A)}),Bt&&ca(h,R),w}function b(h,m,p,C){var w=tl(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=m,R=m=0,O=null,_=p.next();E!==null&&!_.done;R++,_=p.next()){E.index>R?(O=E,E=null):O=E.sibling;var A=v(h,E,_.value,C);if(A===null){E===null&&(E=O);break}e&&E&&A.alternate===null&&t(h,E),m=a(A,m,R),x===null?w=A:x.sibling=A,x=A,E=O}if(_.done)return n(h,E),Bt&&ca(h,R),w;if(E===null){for(;!_.done;R++,_=p.next())_=f(h,_.value,C),_!==null&&(m=a(_,m,R),x===null?w=_:x.sibling=_,x=_);return Bt&&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),m=a(_,m,R),x===null?w=_:x.sibling=_,x=_);return e&&E.forEach(function(M){return t(h,M)}),Bt&&ca(h,R),w}function S(h,m,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 Hs:e:{for(var w=p.key,x=m;x!==null;){if(x.key===w){if(w=p.type,w===ai){if(x.tag===7){n(h,x.sibling),m=o(x,p.props.children),m.return=h,h=m;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===To&&Ph(w)===x.type){n(h,x.sibling),m=o(x,p.props),m.ref=il(h,x,p),m.return=h,h=m;break e}n(h,x);break}else t(h,x);x=x.sibling}p.type===ai?(m=wa(p.props.children,h.mode,C,p.key),m.return=h,h=m):(C=Pu(p.type,p.key,p.props,null,h.mode,C),C.ref=il(h,m,p),C.return=h,h=C)}return i(h);case oi:e:{for(x=p.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(h,m.sibling),m=o(m,p.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=af(p,h.mode,C),m.return=h,h=m}return i(h);case To:return x=p._init,S(h,m,x(p._payload),C)}if(hl(p))return y(h,m,p,C);if(tl(p))return b(h,m,p,C);Zs(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,p),m.return=h,h=m):(n(h,m),m=of(p,h.mode,C),m.return=h,h=m),i(h)):n(h,m)}return S}var Ii=u1(!0),c1=u1(!1),nc=na(null),rc=null,vi=null,Cp=null;function wp(){Cp=vi=rc=null}function Ep(e){var t=nc.current;zt(nc),e._currentValue=t}function Ev(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){rc=e,Cp=vi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kn=!0),e.firstContext=null)}function xr(e){var t=e._currentValue;if(Cp!==e)if(e={context:e,memoizedValue:t,next:null},vi===null){if(rc===null)throw Error(ue(308));vi=e,rc.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var ga=null;function xp(e){ga===null?ga=[e]:ga.push(e)}function d1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,xp(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 Rp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f1(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 co(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,gt&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,xp(r)):(t.next=o.next,o.next=t),r.interleaved=t,go(e,n)}function wu(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,cp(e,n)}}function _h(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 oc(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 v=l.lane,g=l.eventTime;if((r&v)===v){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(v=t,g=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(g,f,v);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,v=typeof y=="function"?y.call(g,f,v):y,v==null)break e;f=Wt({},f,v);break e;case 2:Mo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else g={eventTime:g,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=f):d=d.next=g,i|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,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 Ih(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 ws={},Zr=na(ws),ql=na(ws),Ql=na(ws);function ha(e){if(e===ws)throw Error(ue(174));return e}function $p(e,t){switch(At(Ql,t),At(ql,e),At(Zr,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rv(t,e)}zt(Zr),At(Zr,t)}function Ti(){zt(Zr),zt(ql),zt(Ql)}function v1(e){ha(Ql.current);var t=ha(Zr.current),n=rv(t,e.type);t!==n&&(At(ql,e),At(Zr,n))}function Op(e){ql.current===e&&(zt(Zr),zt(ql))}var Ht=na(0);function ac(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jd=[];function Pp(){for(var e=0;e<Jd.length;e++)Jd[e]._workInProgressVersionPrimary=null;Jd.length=0}var Eu=So.ReactCurrentDispatcher,Zd=So.ReactCurrentBatchConfig,_a=0,Vt=null,ln=null,vn=null,ic=!1,Ol=!1,Xl=0,dO=0;function On(){throw Error(ue(321))}function _p(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vr(e[n],t[n]))return!1;return!0}function Ip(e,t,n,r,o,a){if(_a=a,Vt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eu.current=e===null||e.memoizedState===null?pO:gO,e=n(r,o),Ol){a=0;do{if(Ol=!1,Xl=0,25<=a)throw Error(ue(301));a+=1,vn=ln=null,t.updateQueue=null,Eu.current=hO,e=n(r,o)}while(Ol)}if(Eu.current=lc,t=ln!==null&&ln.next!==null,_a=0,vn=ln=Vt=null,ic=!1,t)throw Error(ue(300));return e}function Tp(){var e=Xl!==0;return Xl=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?Vt.memoizedState=vn=e:vn=vn.next=e,vn}function Rr(){if(ln===null){var e=Vt.alternate;e=e!==null?e.memoizedState:null}else e=ln.next;var t=vn===null?Vt.memoizedState:vn.next;if(t!==null)vn=t,ln=e;else{if(e===null)throw Error(ue(310));ln=e,e={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},vn===null?Vt.memoizedState=vn=e:vn=vn.next=e}return vn}function Yl(e,t){return typeof t=="function"?t(e):t}function ef(e){var t=Rr(),n=t.queue;if(n===null)throw Error(ue(311));n.lastRenderedReducer=e;var r=ln,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,Vt.lanes|=d,Ia|=d}c=c.next}while(c!==null&&c!==a);s===null?i=r:s.next=l,Vr(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,Vt.lanes|=a,Ia|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tf(e){var t=Rr(),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);Vr(a,t.memoizedState)||(Kn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function m1(){}function p1(e,t){var n=Vt,r=Rr(),o=t(),a=!Vr(r.memoizedState,o);if(a&&(r.memoizedState=o,Kn=!0),r=r.queue,Mp(y1.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||vn!==null&&vn.memoizedState.tag&1){if(n.flags|=2048,Jl(9,h1.bind(null,n,r,o,t),void 0,null),pn===null)throw Error(ue(349));_a&30||g1(n,t,o)}return o}function g1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function h1(e,t,n,r){t.value=n,t.getSnapshot=r,b1(t)&&S1(e)}function y1(e,t,n){return n(function(){b1(t)&&S1(e)})}function b1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vr(e,n)}catch{return!0}}function S1(e){var t=go(e,1);t!==null&&jr(t,e,1,-1)}function Th(e){var t=Qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:e},t.queue=e,e=e.dispatch=mO.bind(null,Vt,e),[t.memoizedState,e]}function Jl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.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 C1(){return Rr().memoizedState}function xu(e,t,n,r){var o=Qr();Vt.flags|=e,o.memoizedState=Jl(1|t,n,void 0,r===void 0?null:r)}function zc(e,t,n,r){var o=Rr();r=r===void 0?null:r;var a=void 0;if(ln!==null){var i=ln.memoizedState;if(a=i.destroy,r!==null&&_p(r,i.deps)){o.memoizedState=Jl(t,n,a,r);return}}Vt.flags|=e,o.memoizedState=Jl(1|t,n,a,r)}function Mh(e,t){return xu(8390656,8,e,t)}function Mp(e,t){return zc(2048,8,e,t)}function w1(e,t){return zc(4,2,e,t)}function E1(e,t){return zc(4,4,e,t)}function x1(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 R1(e,t,n){return n=n!=null?n.concat([e]):null,zc(4,4,x1.bind(null,t,e),n)}function Np(){}function $1(e,t){var n=Rr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_p(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function O1(e,t){var n=Rr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&_p(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function P1(e,t,n){return _a&21?(Vr(n,t)||(n=NS(),Vt.lanes|=n,Ia|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kn=!0),e.memoizedState=n)}function fO(e,t){var n=$t;$t=n!==0&&4>n?n:4,e(!0);var r=Zd.transition;Zd.transition={};try{e(!1),t()}finally{$t=n,Zd.transition=r}}function _1(){return Rr().memoizedState}function vO(e,t,n){var r=Go(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},I1(e))T1(t,n);else if(n=d1(e,t,n,r),n!==null){var o=An();jr(n,e,r,o),M1(n,t,r)}}function mO(e,t,n){var r=Go(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(I1(e))T1(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,Vr(l,i)){var s=t.interleaved;s===null?(o.next=o,xp(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=d1(e,t,o,r),n!==null&&(o=An(),jr(n,e,r,o),M1(n,t,r))}}function I1(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function T1(e,t){Ol=ic=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cp(e,n)}}var lc={readContext:xr,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},pO={readContext:xr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:xr,useEffect:Mh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xu(4194308,4,x1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xu(4194308,4,e,t)},useInsertionEffect:function(e,t){return xu(4,2,e,t)},useMemo:function(e,t){var n=Qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qr();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=vO.bind(null,Vt,e),[r.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:Np,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=fO.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vt,o=Qr();if(Bt){if(n===void 0)throw Error(ue(407));n=n()}else{if(n=t(),pn===null)throw Error(ue(349));_a&30||g1(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Mh(y1.bind(null,r,a,e),[e]),r.flags|=2048,Jl(9,h1.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Qr(),t=pn.identifierPrefix;if(Bt){var n=uo,r=so;n=(r&~(1<<32-Dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dO++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gO={readContext:xr,useCallback:$1,useContext:xr,useEffect:Mp,useImperativeHandle:R1,useInsertionEffect:w1,useLayoutEffect:E1,useMemo:O1,useReducer:ef,useRef:C1,useState:function(){return ef(Yl)},useDebugValue:Np,useDeferredValue:function(e){var t=Rr();return P1(t,ln.memoizedState,e)},useTransition:function(){var e=ef(Yl)[0],t=Rr().memoizedState;return[e,t]},useMutableSource:m1,useSyncExternalStore:p1,useId:_1,unstable_isNewReconciler:!1},hO={readContext:xr,useCallback:$1,useContext:xr,useEffect:Mp,useImperativeHandle:R1,useInsertionEffect:w1,useLayoutEffect:E1,useMemo:O1,useReducer:tf,useRef:C1,useState:function(){return tf(Yl)},useDebugValue:Np,useDeferredValue:function(e){var t=Rr();return ln===null?t.memoizedState=e:P1(t,ln.memoizedState,e)},useTransition:function(){var e=tf(Yl)[0],t=Rr().memoizedState;return[e,t]},useMutableSource:m1,useSyncExternalStore:p1,useId:_1,unstable_isNewReconciler:!1};function Mr(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Wt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bc={isMounted:function(e){return(e=e._reactInternals)?Da(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=An(),o=Go(e),a=co(r,o);a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(jr(t,e,o,r),wu(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=An(),o=Go(e),a=co(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Uo(e,a,o),t!==null&&(jr(t,e,o,r),wu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=An(),r=Go(e),o=co(n,r);o.tag=2,t!=null&&(o.callback=t),t=Uo(e,o,r),t!==null&&(jr(t,e,r,n),wu(t,e,r))}};function Nh(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?!Wl(n,r)||!Wl(o,a):!0}function N1(e,t,n){var r=!1,o=Yo,a=t.contextType;return typeof a=="object"&&a!==null?a=xr(a):(o=qn(t)?Oa:Mn.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=Bc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Lh(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&&Bc.enqueueReplaceState(t,t.state,null)}function Rv(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Rp(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=xr(a):(a=qn(t)?Oa:Mn.current,o.context=Pi(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(xv(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&&Bc.enqueueReplaceState(o,o.state,null),oc(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+=UR(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 nf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $v(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yO=typeof WeakMap=="function"?WeakMap:Map;function L1(e,t,n){n=co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){uc||(uc=!0,Fv=r),$v(e,t)},n}function A1(e,t,n){n=co(-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(){$v(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){$v(e,t),typeof r!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Ah(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new yO;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=MO.bind(null,e,t,n),t.then(e,e))}function Fh(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 Dh(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=co(-1,1),t.tag=2,Uo(n,t,1))),n.lanes|=1),e)}var bO=So.ReactCurrentOwner,Kn=!1;function Ln(e,t,n,r){t.child=e===null?c1(t,null,n,r):Ii(t,e.child,n,r)}function jh(e,t,n,r,o){n=n.render;var a=t.ref;return Ei(t,o),r=Ip(e,t,n,r,a,o),n=Tp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(Bt&&n&&yp(t),t.flags|=1,Ln(e,t,r,o),t.child)}function zh(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!kp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,F1(e,t,a,r,o)):(e=Pu(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:Wl,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 F1(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(Wl(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 Ov(e,t,n,r,o)}function D1(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},At(pi,tr),tr|=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,At(pi,tr),tr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,At(pi,tr),tr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,At(pi,tr),tr|=r;return Ln(e,t,o,n),t.child}function j1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ov(e,t,n,r,o){var a=qn(n)?Oa:Mn.current;return a=Pi(t,a),Ei(t,o),n=Ip(e,t,n,r,a,o),r=Tp(),e!==null&&!Kn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ho(e,t,o)):(Bt&&r&&yp(t),t.flags|=1,Ln(e,t,n,o),t.child)}function Bh(e,t,n,r,o){if(qn(n)){var a=!0;Zu(t)}else a=!1;if(Ei(t,o),t.stateNode===null)Ru(e,t),N1(t,n,r),Rv(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=xr(c):(c=qn(n)?Oa:Mn.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)&&Lh(t,i,r,c),Mo=!1;var v=t.memoizedState;i.state=v,oc(t,r,i,o),s=t.memoizedState,l!==r||v!==s||Gn.current||Mo?(typeof d=="function"&&(xv(t,n,d,r),s=t.memoizedState),(l=Mo||Nh(t,n,l,r,v,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,f1(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Mr(t.type,l),i.props=c,f=t.pendingProps,v=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=xr(s):(s=qn(n)?Oa:Mn.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||v!==s)&&Lh(t,i,r,s),Mo=!1,v=t.memoizedState,i.state=v,oc(t,r,i,o);var y=t.memoizedState;l!==f||v!==y||Gn.current||Mo?(typeof g=="function"&&(xv(t,n,g,r),y=t.memoizedState),(c=Mo||Nh(t,n,c,r,v,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&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===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&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return Pv(e,t,n,r,a,o)}function Pv(e,t,n,r,o,a){j1(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Rh(t,n,!1),ho(e,t,a);r=t.stateNode,bO.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)):Ln(e,t,l,a),t.memoizedState=r.state,o&&Rh(t,n,!0),t.child}function z1(e){var t=e.stateNode;t.pendingContext?xh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xh(e,t.context,!1),$p(e,t.containerInfo)}function kh(e,t,n,r,o){return _i(),Sp(o),t.flags|=256,Ln(e,t,n,r),t.child}var _v={dehydrated:null,treeContext:null,retryLane:0};function Iv(e){return{baseLanes:e,cachePool:null,transitions:null}}function B1(e,t,n){var r=t.pendingProps,o=Ht.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),At(Ht,o&1),e===null)return wv(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=Vc(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=Iv(n),t.memoizedState=_v,e):Lp(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return SO(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?Iv(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=_v,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 Lp(e,t){return t=Vc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,n,r){return r!==null&&Sp(r),Ii(t,e.child,null,n),e=Lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SO(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=nf(Error(ue(422))),eu(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Vc({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=Iv(i),t.memoizedState=_v,a);if(!(t.mode&1))return eu(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=nf(a,r,void 0),eu(e,t,i,r)}if(l=(i&e.childLanes)!==0,Kn||l){if(r=pn,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),jr(r,e,o,-1))}return Bp(),r=nf(Error(ue(421))),eu(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=NO.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,nr=Wo(o.nextSibling),or=t,Bt=!0,Fr=null,e!==null&&(yr[br++]=so,yr[br++]=uo,yr[br++]=Pa,so=e.id,uo=e.overflow,Pa=t),t=Lp(t,r.children),t.flags|=4096,t)}function Hh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ev(e.return,t,n)}function rf(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 k1(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ln(e,t,r.children,n),r=Ht.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&&Hh(e,n,t);else if(e.tag===19)Hh(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(At(Ht,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&&ac(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rf(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&&ac(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rf(t,!0,n,null,a);break;case"together":rf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ru(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 CO(e,t,n){switch(t.tag){case 3:z1(t),_i();break;case 5:v1(t);break;case 1:qn(t.type)&&Zu(t);break;case 4:$p(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;At(nc,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(At(Ht,Ht.current&1),t.flags|=128,null):n&t.child.childLanes?B1(e,t,n):(At(Ht,Ht.current&1),e=ho(e,t,n),e!==null?e.sibling:null);At(Ht,Ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return k1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),At(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,D1(e,t,n)}return ho(e,t,n)}var H1,Tv,V1,W1;H1=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}};Tv=function(){};V1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ha(Zr.current);var a=null;switch(n){case"input":o=Zf(e,o),r=Zf(e,r),a=[];break;case"select":o=Wt({},o,{value:void 0}),r=Wt({},r,{value:void 0}),a=[];break;case"textarea":o=nv(e,o),r=nv(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yu)}ov(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"&&(Dl.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"&&(Dl.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Dt("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)}};W1=function(e,t,n,r){n!==r&&(t.flags|=4)};function ll(e,t){if(!Bt)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 Pn(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 wO(e,t,n){var r=t.pendingProps;switch(bp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(t),null;case 1:return qn(t.type)&&Ju(),Pn(t),null;case 3:return r=t.stateNode,Ti(),zt(Gn),zt(Mn),Pp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fr!==null&&(zv(Fr),Fr=null))),Tv(e,t),Pn(t),null;case 5:Op(t);var o=ha(Ql.current);if(n=t.type,e!==null&&t.stateNode!=null)V1(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 Pn(t),null}if(e=ha(Zr.current),Js(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Xr]=t,r[Gl]=a,e=(t.mode&1)!==0,n){case"dialog":Dt("cancel",r),Dt("close",r);break;case"iframe":case"object":case"embed":Dt("load",r);break;case"video":case"audio":for(o=0;o<bl.length;o++)Dt(bl[o],r);break;case"source":Dt("error",r);break;case"img":case"image":case"link":Dt("error",r),Dt("load",r);break;case"details":Dt("toggle",r);break;case"input":Yg(r,a),Dt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Dt("invalid",r);break;case"textarea":Zg(r,a),Dt("invalid",r)}ov(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&&Ys(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Ys(r.textContent,l,e),o=["children",""+l]):Dl.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&Dt("scroll",r)}switch(n){case"input":Vs(r),Jg(r,a,!0);break;case"textarea":Vs(r),eh(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Yu)}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=yS(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[Xr]=t,e[Gl]=r,H1(e,t,!1,!1),t.stateNode=e;e:{switch(i=av(n,r),n){case"dialog":Dt("cancel",e),Dt("close",e),o=r;break;case"iframe":case"object":case"embed":Dt("load",e),o=r;break;case"video":case"audio":for(o=0;o<bl.length;o++)Dt(bl[o],e);o=r;break;case"source":Dt("error",e),o=r;break;case"img":case"image":case"link":Dt("error",e),Dt("load",e),o=r;break;case"details":Dt("toggle",e),o=r;break;case"input":Yg(e,r),o=Zf(e,r),Dt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Wt({},r,{value:void 0}),Dt("invalid",e);break;case"textarea":Zg(e,r),o=nv(e,r),Dt("invalid",e);break;default:o=r}ov(n,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?CS(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&bS(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&jl(e,s):typeof s=="number"&&jl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Dl.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Dt("scroll",e):s!=null&&op(e,a,s,i))}switch(n){case"input":Vs(e),Jg(e,r,!1);break;case"textarea":Vs(e),eh(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=Yu)}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 Pn(t),null;case 6:if(e&&t.stateNode!=null)W1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ue(166));if(n=ha(Ql.current),ha(Zr.current),Js(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,(a=r.nodeValue!==n)&&(e=or,e!==null))switch(e.tag){case 3:Ys(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ys(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=t,t.stateNode=r}return Pn(t),null;case 13:if(zt(Ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Bt&&nr!==null&&t.mode&1&&!(t.flags&128))s1(),_i(),t.flags|=98560,a=!1;else if(a=Js(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[Xr]=t}else _i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pn(t),a=!1}else Fr!==null&&(zv(Fr),Fr=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||Ht.current&1?sn===0&&(sn=3):Bp())),t.updateQueue!==null&&(t.flags|=4),Pn(t),null);case 4:return Ti(),Tv(e,t),e===null&&Ul(t.stateNode.containerInfo),Pn(t),null;case 10:return Ep(t.type._context),Pn(t),null;case 17:return qn(t.type)&&Ju(),Pn(t),null;case 19:if(zt(Ht),a=t.memoizedState,a===null)return Pn(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)ll(a,!1);else{if(sn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ac(e),i!==null){for(t.flags|=128,ll(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 At(Ht,Ht.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xt()>Ni&&(t.flags|=128,r=!0,ll(a,!1),t.lanes=4194304)}else{if(!r)if(e=ac(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ll(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Bt)return Pn(t),null}else 2*Xt()-a.renderingStartTime>Ni&&n!==1073741824&&(t.flags|=128,r=!0,ll(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=Xt(),t.sibling=null,n=Ht.current,At(Ht,r?n&1|2:n&1),t):(Pn(t),null);case 22:case 23:return zp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tr&1073741824&&(Pn(t),t.subtreeFlags&6&&(t.flags|=8192)):Pn(t),null;case 24:return null;case 25:return null}throw Error(ue(156,t.tag))}function EO(e,t){switch(bp(t),t.tag){case 1:return qn(t.type)&&Ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ti(),zt(Gn),zt(Mn),Pp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Op(t),null;case 13:if(zt(Ht),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 zt(Ht),null;case 4:return Ti(),null;case 10:return Ep(t.type._context),null;case 22:case 23:return zp(),null;case 24:return null;default:return null}}var tu=!1,In=!1,xO=typeof WeakSet=="function"?WeakSet:Set,_e=null;function mi(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 Mv(e,t,n){try{n()}catch(r){qt(e,t,r)}}var Vh=!1;function RO(e,t){if(pv=qu,e=QS(),hp(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,v=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;)v=f,f=g;for(;;){if(f===e)break t;if(v===n&&++c===o&&(l=i),v===a&&++d===r&&(s=i),(g=f.nextSibling)!==null)break;f=v,v=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(gv={focusedElem:e,selectionRange:n},qu=!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,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?b:Mr(t.type,b),S);h.__reactInternalSnapshotBeforeUpdate=m}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=Vh,Vh=!1,y}function Pl(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&&Mv(t,n,a)}o=o.next}while(o!==r)}}function kc(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 Nv(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 U1(e){var t=e.alternate;t!==null&&(e.alternate=null,U1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[Gl],delete t[bv],delete t[lO],delete t[sO])),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 K1(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K1(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 Lv(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=Yu));else if(r!==4&&(e=e.child,e!==null))for(Lv(e,t,n),e=e.sibling;e!==null;)Lv(e,t,n),e=e.sibling}function Av(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(Av(e,t,n),e=e.sibling;e!==null;)Av(e,t,n),e=e.sibling}var Sn=null,Nr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)G1(e,t,n),n=n.sibling}function G1(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 5:In||mi(n,t);case 6:var r=Sn,o=Nr;Sn=null,Oo(e,t,n),Sn=r,Nr=o,Sn!==null&&(Nr?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(Nr?(e=Sn,n=n.stateNode,e.nodeType===8?Xd(e.parentNode,n):e.nodeType===1&&Xd(e,n),Hl(e)):Xd(Sn,n.stateNode));break;case 4:r=Sn,o=Nr,Sn=n.stateNode.containerInfo,Nr=!0,Oo(e,t,n),Sn=r,Nr=o;break;case 0:case 11:case 14:case 15:if(!In&&(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)&&Mv(n,t,i),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!In&&(mi(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?(In=(r=In)||n.memoizedState!==null,Oo(e,t,n),In=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xO),t.forEach(function(r){var o=LO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ir(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:Sn=l.stateNode,Nr=!1;break e;case 3:Sn=l.stateNode.containerInfo,Nr=!0;break e;case 4:Sn=l.stateNode.containerInfo,Nr=!0;break e}l=l.return}if(Sn===null)throw Error(ue(160));G1(a,i,o),Sn=null,Nr=!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;)q1(t,e),t=t.sibling}function q1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ir(t,e),qr(e),r&4){try{Pl(3,e,e.return),kc(3,e)}catch(b){qt(e,e.return,b)}try{Pl(5,e,e.return)}catch(b){qt(e,e.return,b)}}break;case 1:Ir(t,e),qr(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(Ir(t,e),qr(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var o=e.stateNode;try{jl(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&&gS(o,a),av(l,i);var c=av(l,a);for(i=0;i<s.length;i+=2){var d=s[i],f=s[i+1];d==="style"?CS(o,f):d==="dangerouslySetInnerHTML"?bS(o,f):d==="children"?jl(o,f):op(o,d,f,c)}switch(l){case"input":ev(o,a);break;case"textarea":hS(o,a);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;g!=null?bi(o,!!a.multiple,g,!1):v!==!!a.multiple&&(a.defaultValue!=null?bi(o,!!a.multiple,a.defaultValue,!0):bi(o,!!a.multiple,a.multiple?[]:"",!1))}o[Gl]=a}catch(b){qt(e,e.return,b)}}break;case 6:if(Ir(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(Ir(t,e),qr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hl(t.containerInfo)}catch(b){qt(e,e.return,b)}break;case 4:Ir(t,e),qr(e);break;case 13:Ir(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||(Dp=Xt())),r&4&&Uh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(In=(c=In)||d,Ir(t,e),In=c):Ir(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(v=_e,g=v.child,v.tag){case 0:case 11:case 14:case 15:Pl(4,v,v.return);break;case 1:mi(v,v.return);var y=v.stateNode;if(typeof y.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){qt(r,n,b)}}break;case 5:mi(v,v.return);break;case 22:if(v.memoizedState!==null){Gh(f);continue}}g!==null?(g.return=v,_e=g):Gh(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=SS("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:Ir(t,e),qr(e),r&4&&Uh(e);break;case 21:break;default:Ir(t,e),qr(e)}}function qr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(K1(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&&(jl(o,""),r.flags&=-33);var a=Wh(e);Av(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=Wh(e);Lv(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 $O(e,t,n){_e=e,Q1(e)}function Q1(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||tu;if(!i){var l=o.alternate,s=l!==null&&l.memoizedState!==null||In;l=tu;var c=In;if(tu=i,(In=s)&&!c)for(_e=o;_e!==null;)i=_e,s=i.child,i.tag===22&&i.memoizedState!==null?qh(o):s!==null?(s.return=i,_e=s):qh(o);for(;a!==null;)_e=a,Q1(a),a=a.sibling;_e=o,tu=l,In=c}Kh(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,_e=a):Kh(e)}}function Kh(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:In||kc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!In)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Ih(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}Ih(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&&Hl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ue(163))}In||t.flags&512&&Nv(t)}catch(v){qt(t,t.return,v)}}if(t===e){_e=null;break}if(n=t.sibling,n!==null){n.return=t.return,_e=n;break}_e=t.return}}function Gh(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 qh(e){for(;_e!==null;){var t=_e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kc(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{Nv(t)}catch(s){qt(t,a,s)}break;case 5:var i=t.return;try{Nv(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 OO=Math.ceil,sc=So.ReactCurrentDispatcher,Ap=So.ReactCurrentOwner,Cr=So.ReactCurrentBatchConfig,gt=0,pn=null,nn=null,En=0,tr=0,pi=na(0),sn=0,Zl=null,Ia=0,Hc=0,Fp=0,_l=null,Wn=null,Dp=0,Ni=1/0,ao=null,uc=!1,Fv=null,Ko=null,nu=!1,Fo=null,cc=0,Il=0,Dv=null,$u=-1,Ou=0;function An(){return gt&6?Xt():$u!==-1?$u:$u=Xt()}function Go(e){return e.mode&1?gt&2&&En!==0?En&-En:cO.transition!==null?(Ou===0&&(Ou=NS()),Ou):(e=$t,e!==0||(e=window.event,e=e===void 0?16:BS(e.type)),e):1}function jr(e,t,n,r){if(50<Il)throw Il=0,Dv=null,Error(ue(185));bs(e,n,r),(!(gt&2)||e!==pn)&&(e===pn&&(!(gt&2)&&(Hc|=n),sn===4&&Lo(e,En)),Qn(e,r),n===1&>===0&&!(t.mode&1)&&(Ni=Xt()+500,jc&&ra()))}function Qn(e,t){var n=e.callbackNode;c$(e,t);var r=Gu(e,e===pn?En:0);if(r===0)n!==null&&rh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&rh(n),t===1)e.tag===0?uO(Qh.bind(null,e)):a1(Qh.bind(null,e)),aO(function(){!(gt&6)&&ra()}),n=null;else{switch(LS(r)){case 1:n=up;break;case 4:n=TS;break;case 16:n=Ku;break;case 536870912:n=MS;break;default:n=Ku}n=rC(n,X1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function X1(e,t){if($u=-1,Ou=0,gt&6)throw Error(ue(327));var n=e.callbackNode;if(xi()&&e.callbackNode!==n)return null;var r=Gu(e,e===pn?En:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dc(e,r);else{t=r;var o=gt;gt|=2;var a=J1();(pn!==e||En!==t)&&(ao=null,Ni=Xt()+500,Ca(e,t));do try{IO();break}catch(l){Y1(e,l)}while(!0);wp(),sc.current=a,gt=o,nn!==null?t=0:(pn=null,En=0,t=sn)}if(t!==0){if(t===2&&(o=cv(e),o!==0&&(r=o,t=jv(e,o))),t===1)throw n=Zl,Ca(e,0),Lo(e,r),Qn(e,Xt()),n;if(t===6)Lo(e,r);else{if(o=e.current.alternate,!(r&30)&&!PO(o)&&(t=dc(e,r),t===2&&(a=cv(e),a!==0&&(r=a,t=jv(e,a))),t===1))throw n=Zl,Ca(e,0),Lo(e,r),Qn(e,Xt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ue(345));case 2:da(e,Wn,ao);break;case 3:if(Lo(e,r),(r&130023424)===r&&(t=Dp+500-Xt(),10<t)){if(Gu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){An(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yv(da.bind(null,e,Wn,ao),t);break}da(e,Wn,ao);break;case 4:if(Lo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Dr(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*OO(r/1960))-r,10<r){e.timeoutHandle=yv(da.bind(null,e,Wn,ao),r);break}da(e,Wn,ao);break;case 5:da(e,Wn,ao);break;default:throw Error(ue(329))}}}return Qn(e,Xt()),e.callbackNode===n?X1.bind(null,e):null}function jv(e,t){var n=_l;return e.current.memoizedState.isDehydrated&&(Ca(e,t).flags|=256),e=dc(e,t),e!==2&&(t=Wn,Wn=n,t!==null&&zv(t)),e}function zv(e){Wn===null?Wn=e:Wn.push.apply(Wn,e)}function PO(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(!Vr(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&=~Fp,t&=~Hc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dr(t),r=1<<n;e[n]=-1,t&=~r}}function Qh(e){if(gt&6)throw Error(ue(327));xi();var t=Gu(e,0);if(!(t&1))return Qn(e,Xt()),null;var n=dc(e,t);if(e.tag!==0&&n===2){var r=cv(e);r!==0&&(t=r,n=jv(e,r))}if(n===1)throw n=Zl,Ca(e,0),Lo(e,t),Qn(e,Xt()),n;if(n===6)throw Error(ue(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,da(e,Wn,ao),Qn(e,Xt()),null}function jp(e,t){var n=gt;gt|=1;try{return e(t)}finally{gt=n,gt===0&&(Ni=Xt()+500,jc&&ra())}}function Ta(e){Fo!==null&&Fo.tag===0&&!(gt&6)&&xi();var t=gt;gt|=1;var n=Cr.transition,r=$t;try{if(Cr.transition=null,$t=1,e)return e()}finally{$t=r,Cr.transition=n,gt=t,!(gt&6)&&ra()}}function zp(){tr=pi.current,zt(pi)}function Ca(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oO(n)),nn!==null)for(n=nn.return;n!==null;){var r=n;switch(bp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ju();break;case 3:Ti(),zt(Gn),zt(Mn),Pp();break;case 5:Op(r);break;case 4:Ti();break;case 13:zt(Ht);break;case 19:zt(Ht);break;case 10:Ep(r.type._context);break;case 22:case 23:zp()}n=n.return}if(pn=e,nn=e=qo(e.current,null),En=tr=t,sn=0,Zl=null,Fp=Hc=Ia=0,Wn=_l=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 Y1(e,t){do{var n=nn;try{if(wp(),Eu.current=lc,ic){for(var r=Vt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ic=!1}if(_a=0,vn=ln=Vt=null,Ol=!1,Xl=0,Ap.current=null,n===null||n.return===null){sn=1,Zl=t,nn=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=En,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 v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Fh(i);if(g!==null){g.flags&=-257,Dh(g,i,l,a,t),g.mode&1&&Ah(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)){Ah(a,c,t),Bp();break e}s=Error(ue(426))}}else if(Bt&&l.mode&1){var S=Fh(i);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Dh(S,i,l,a,t),Sp(Mi(s,l));break e}}a=s=Mi(s,l),sn!==4&&(sn=2),_l===null?_l=[a]:_l.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var h=L1(a,s,t);_h(a,h);break e;case 1:l=s;var m=a.type,p=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ko===null||!Ko.has(p)))){a.flags|=65536,t&=-t,a.lanes|=t;var C=A1(a,l,t);_h(a,C);break e}}a=a.return}while(a!==null)}eC(n)}catch(w){t=w,nn===n&&n!==null&&(nn=n=n.return);continue}break}while(!0)}function J1(){var e=sc.current;return sc.current=lc,e===null?lc:e}function Bp(){(sn===0||sn===3||sn===2)&&(sn=4),pn===null||!(Ia&268435455)&&!(Hc&268435455)||Lo(pn,En)}function dc(e,t){var n=gt;gt|=2;var r=J1();(pn!==e||En!==t)&&(ao=null,Ca(e,t));do try{_O();break}catch(o){Y1(e,o)}while(!0);if(wp(),gt=n,sc.current=r,nn!==null)throw Error(ue(261));return pn=null,En=0,sn}function _O(){for(;nn!==null;)Z1(nn)}function IO(){for(;nn!==null&&!t$();)Z1(nn)}function Z1(e){var t=nC(e.alternate,e,tr);e.memoizedProps=e.pendingProps,t===null?eC(e):nn=t,Ap.current=null}function eC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=EO(n,t),n!==null){n.flags&=32767,nn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sn=6,nn=null;return}}else if(n=wO(n,t,tr),n!==null){nn=n;return}if(t=t.sibling,t!==null){nn=t;return}nn=t=e}while(t!==null);sn===0&&(sn=5)}function da(e,t,n){var r=$t,o=Cr.transition;try{Cr.transition=null,$t=1,TO(e,t,n,r)}finally{Cr.transition=o,$t=r}return null}function TO(e,t,n,r){do xi();while(Fo!==null);if(gt&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(d$(e,a),e===pn&&(nn=pn=null,En=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nu||(nu=!0,rC(Ku,function(){return xi(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=Cr.transition,Cr.transition=null;var i=$t;$t=1;var l=gt;gt|=4,Ap.current=null,RO(e,n),q1(n,e),Y$(gv),qu=!!pv,gv=pv=null,e.current=n,$O(n),n$(),gt=l,$t=i,Cr.transition=a}else e.current=n;if(nu&&(nu=!1,Fo=e,cc=o),a=e.pendingLanes,a===0&&(Ko=null),a$(n.stateNode),Qn(e,Xt()),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(uc)throw uc=!1,e=Fv,Fv=null,e;return cc&1&&e.tag!==0&&xi(),a=e.pendingLanes,a&1?e===Dv?Il++:(Il=0,Dv=e):Il=0,ra(),null}function xi(){if(Fo!==null){var e=LS(cc),t=Cr.transition,n=$t;try{if(Cr.transition=null,$t=16>e?16:e,Fo===null)var r=!1;else{if(e=Fo,Fo=null,cc=0,gt&6)throw Error(ue(331));var o=gt;for(gt|=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:Pl(8,d,a)}var f=d.child;if(f!==null)f.return=d,_e=f;else for(;_e!==null;){d=_e;var v=d.sibling,g=d.return;if(U1(d),d===c){_e=null;break}if(v!==null){v.return=g,_e=v;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:Pl(9,a,a.return)}var h=a.sibling;if(h!==null){h.return=a.return,_e=h;break e}_e=a.return}}var m=e.current;for(_e=m;_e!==null;){i=_e;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,_e=p;else e:for(i=m;_e!==null;){if(l=_e,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:kc(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(gt=o,ra(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(Nc,e)}catch{}r=!0}return r}finally{$t=n,Cr.transition=t}}return!1}function Xh(e,t,n){t=Mi(n,t),t=L1(e,t,1),e=Uo(e,t,1),t=An(),e!==null&&(bs(e,1,t),Qn(e,t))}function qt(e,t,n){if(e.tag===3)Xh(e,e,n);else for(;t!==null;){if(t.tag===3){Xh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ko===null||!Ko.has(r))){e=Mi(n,e),e=A1(t,e,1),t=Uo(t,e,1),e=An(),t!==null&&(bs(t,1,e),Qn(t,e));break}}t=t.return}}function MO(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=An(),e.pingedLanes|=e.suspendedLanes&n,pn===e&&(En&n)===n&&(sn===4||sn===3&&(En&130023424)===En&&500>Xt()-Dp?Ca(e,0):Fp|=n),Qn(e,t)}function tC(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=An();e=go(e,t),e!==null&&(bs(e,t,n),Qn(e,n))}function NO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tC(e,n)}function LO(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),tC(e,n)}var nC;nC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gn.current)Kn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kn=!1,CO(e,t,n);Kn=!!(e.flags&131072)}else Kn=!1,Bt&&t.flags&1048576&&i1(t,tc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ru(e,t),e=t.pendingProps;var o=Pi(t,Mn.current);Ei(t,n),o=Ip(null,t,r,e,o,n);var a=Tp();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,Zu(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rp(t),o.updater=Bc,t.stateNode=o,o._reactInternals=t,Rv(t,r,e,n),t=Pv(null,t,r,!0,a,n)):(t.tag=0,Bt&&a&&yp(t),Ln(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ru(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=FO(r),e=Mr(r,e),o){case 0:t=Ov(null,t,r,e,n);break e;case 1:t=Bh(null,t,r,e,n);break e;case 11:t=jh(null,t,r,e,n);break e;case 14:t=zh(null,t,r,Mr(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:Mr(r,o),Ov(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Bh(e,t,r,o,n);case 3:e:{if(z1(t),e===null)throw Error(ue(387));r=t.pendingProps,a=t.memoizedState,o=a.element,f1(e,t),oc(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=kh(e,t,r,n,o);break e}else if(r!==o){o=Mi(Error(ue(424)),t),t=kh(e,t,r,n,o);break e}else for(nr=Wo(t.stateNode.containerInfo.firstChild),or=t,Bt=!0,Fr=null,n=c1(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}Ln(e,t,r,n)}t=t.child}return t;case 5:return v1(t),e===null&&wv(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,hv(r,o)?i=null:a!==null&&hv(r,a)&&(t.flags|=32),j1(e,t),Ln(e,t,i,n),t.child;case 6:return e===null&&wv(t),null;case 13:return B1(e,t,n);case 4:return $p(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ii(t,null,r,n):Ln(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),jh(e,t,r,o,n);case 7:return Ln(e,t,t.pendingProps,n),t.child;case 8:return Ln(e,t,t.pendingProps.children,n),t.child;case 12:return Ln(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,At(nc,r._currentValue),r._currentValue=i,a!==null)if(Vr(a.value,i)){if(a.children===o.children&&!Gn.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=co(-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),Ev(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),Ev(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}Ln(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),o=xr(o),r=r(o),t.flags|=1,Ln(e,t,r,n),t.child;case 14:return r=t.type,o=Mr(r,t.pendingProps),o=Mr(r.type,o),zh(e,t,r,o,n);case 15:return F1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Ru(e,t),t.tag=1,qn(r)?(e=!0,Zu(t)):e=!1,Ei(t,n),N1(t,r,o),Rv(t,r,o,n),Pv(null,t,r,!0,e,n);case 19:return k1(e,t,n);case 22:return D1(e,t,n)}throw Error(ue(156,t.tag))};function rC(e,t){return IS(e,t)}function AO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sr(e,t,n,r){return new AO(e,t,n,r)}function kp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FO(e){if(typeof e=="function")return kp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ip)return 11;if(e===lp)return 14}return 2}function qo(e,t){var n=e.alternate;return n===null?(n=Sr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")kp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ai:return wa(n.children,o,a,t);case ap:i=8,o|=8;break;case Qf:return e=Sr(12,n,t,o|2),e.elementType=Qf,e.lanes=a,e;case Xf:return e=Sr(13,n,t,o),e.elementType=Xf,e.lanes=a,e;case Yf:return e=Sr(19,n,t,o),e.elementType=Yf,e.lanes=a,e;case vS:return Vc(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dS:i=10;break e;case fS:i=9;break e;case ip:i=11;break e;case lp:i=14;break e;case To:i=16,r=null;break e}throw Error(ue(130,e==null?e:typeof e,""))}return t=Sr(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function wa(e,t,n,r){return e=Sr(7,e,r,t),e.lanes=n,e}function Vc(e,t,n,r){return e=Sr(22,e,r,t),e.elementType=vS,e.lanes=n,e.stateNode={isHidden:!1},e}function of(e,t,n){return e=Sr(6,e,null,t),e.lanes=n,e}function af(e,t,n){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DO(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=zd(0),this.expirationTimes=zd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zd(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hp(e,t,n,r,o,a,i,l,s){return e=new DO(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Sr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rp(a),e}function jO(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 oC(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 o1(e,n,t)}return t}function aC(e,t,n,r,o,a,i,l,s){return e=Hp(n,r,!0,e,o,a,i,l,s),e.context=oC(null),n=e.current,r=An(),o=Go(n),a=co(r,o),a.callback=t??null,Uo(n,a,o),e.current.lanes=o,bs(e,o,r),Qn(e,r),e}function Wc(e,t,n,r){var o=t.current,a=An(),i=Go(o);return n=oC(n),t.context===null?t.context=n:t.pendingContext=n,t=co(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Uo(o,t,i),e!==null&&(jr(e,o,i,a),wu(e,o,i)),i}function fc(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 Yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vp(e,t){Yh(e,t),(e=e.alternate)&&Yh(e,t)}function zO(){return null}var iC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wp(e){this._internalRoot=e}Uc.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ue(409));Wc(e,t,null,null)};Uc.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ta(function(){Wc(null,e,null,null)}),t[po]=null}};function Uc(e){this._internalRoot=e}Uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=DS();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&&zS(e)}};function Up(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jh(){}function BO(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var c=fc(i);a.call(c)}}var i=aC(t,r,e,0,null,!1,!1,"",Jh);return e._reactRootContainer=i,e[po]=i.current,Ul(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=fc(s);l.call(c)}}var s=Hp(e,0,!1,null,null,!1,!1,"",Jh);return e._reactRootContainer=s,e[po]=s.current,Ul(e.nodeType===8?e.parentNode:e),Ta(function(){Wc(t,s,n,r)}),s}function Gc(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=fc(i);l.call(s)}}Wc(t,i,e,o)}else i=BO(n,t,e,o,r);return fc(i)}AS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yl(t.pendingLanes);n!==0&&(cp(t,n|1),Qn(t,Xt()),!(gt&6)&&(Ni=Xt()+500,ra()))}break;case 13:Ta(function(){var r=go(e,1);if(r!==null){var o=An();jr(r,e,1,o)}}),Vp(e,1)}};dp=function(e){if(e.tag===13){var t=go(e,134217728);if(t!==null){var n=An();jr(t,e,134217728,n)}Vp(e,134217728)}};FS=function(e){if(e.tag===13){var t=Go(e),n=go(e,t);if(n!==null){var r=An();jr(n,e,t,r)}Vp(e,t)}};DS=function(){return $t};jS=function(e,t){var n=$t;try{return $t=e,t()}finally{$t=n}};lv=function(e,t,n){switch(t){case"input":if(ev(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=Dc(r);if(!o)throw Error(ue(90));pS(r),ev(r,o)}}}break;case"textarea":hS(e,n);break;case"select":t=n.value,t!=null&&bi(e,!!n.multiple,t,!1)}};xS=jp;RS=Ta;var kO={usingClientEntryPoint:!1,Events:[Cs,ui,Dc,wS,ES,jp]},sl={findFiberByHostInstance:pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HO={bundleType:sl.bundleType,version:sl.version,rendererPackageName:sl.rendererPackageName,rendererConfig:sl.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=PS(e),e===null?null:e.stateNode},findFiberByHostInstance:sl.findFiberByHostInstance||zO,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 ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{Nc=ru.inject(HO),Jr=ru}catch{}}sr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kO;sr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Up(t))throw Error(ue(200));return jO(e,t,null,n)};sr.createRoot=function(e,t){if(!Up(e))throw Error(ue(299));var n=!1,r="",o=iC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hp(e,1,!1,null,null,n,!1,r,o),e[po]=t.current,Ul(e.nodeType===8?e.parentNode:e),new Wp(t)};sr.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=PS(t),e=e===null?null:e.stateNode,e};sr.flushSync=function(e){return Ta(e)};sr.hydrate=function(e,t,n){if(!Kc(t))throw Error(ue(200));return Gc(null,e,t,!0,n)};sr.hydrateRoot=function(e,t,n){if(!Up(e))throw Error(ue(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=iC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=aC(t,null,e,1,n??null,o,!1,a,i),e[po]=t.current,Ul(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 Uc(t)};sr.render=function(e,t,n){if(!Kc(t))throw Error(ue(200));return Gc(null,e,t,!1,n)};sr.unmountComponentAtNode=function(e){if(!Kc(e))throw Error(ue(40));return e._reactRootContainer?(Ta(function(){Gc(null,null,e,!1,function(){e._reactRootContainer=null,e[po]=null})}),!0):!1};sr.unstable_batchedUpdates=jp;sr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kc(n))throw Error(ue(200));if(e==null||e._reactInternals===void 0)throw Error(ue(38));return Gc(e,t,n,!1,r)};sr.version="18.3.1-next-f1338f8080-20240426";function lC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lC)}catch(e){console.error(e)}}lC(),lS.exports=sr;var Jo=lS.exports;const Bv=Ym(Jo),VO=Qb({__proto__:null,default:Bv},[Jo]);var Zh=Jo;Gf.createRoot=Zh.createRoot,Gf.hydrateRoot=Zh.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 es(){return es=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},es.apply(this,arguments)}var Do;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Do||(Do={}));const e0="popstate";function WO(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:l="",hash:s=""}=ja(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),kv("",{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:vc(a))}function r(o,a){Kp(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return KO(t,n,r,e)}function Yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function UO(){return Math.random().toString(36).substr(2,8)}function t0(e,t){return{usr:e.state,key:e.key,idx:t}}function kv(e,t,n,r){return n===void 0&&(n=null),es({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ja(t):t,{state:n,key:t&&t.key||r||UO()})}function vc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ja(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KO(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(es({},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 v(S,h){l=Do.Push;let m=kv(b.location,S,h);n&&n(m,S),c=d()+1;let p=t0(m,c),C=b.createHref(m);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 m=kv(b.location,S,h);n&&n(m,S),c=d();let p=t0(m,c),C=b.createHref(m);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,m=typeof S=="string"?S:vc(S);return m=m.replace(/ $/,"%20"),Yt(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,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(e0,f),s=S,()=>{o.removeEventListener(e0,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:v,replace:g,go(S){return i.go(S)}};return b}var n0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(n0||(n0={}));function GO(e,t,n){return n===void 0&&(n="/"),qO(e,t,n,!1)}function qO(e,t,n,r){let o=typeof t=="string"?ja(t):t,a=Gp(o.pathname||"/",n);if(a==null)return null;let i=sC(e);QO(i);let l=null;for(let s=0;l==null&&s<i.length;++s){let c=i2(a);l=o2(i[s],c,r)}return l}function sC(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("/")&&(Yt(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&&(Yt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),sC(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:n2(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 uC(a.path))o(a,i,s)}),t}function uC(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=uC(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 QO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:r2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XO=/^:[\w-]+$/,YO=3,JO=2,ZO=1,e2=10,t2=-2,r0=e=>e==="*";function n2(e,t){let n=e.split("/"),r=n.length;return n.some(r0)&&(r+=t2),t&&(r+=JO),n.filter(o=>!r0(o)).reduce((o,a)=>o+(XO.test(a)?YO:a===""?ZO:e2),r)}function r2(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 o2(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=o0({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d),v=s.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=o0({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:c2(Qo([a,f.pathnameBase])),route:v}),f.pathnameBase!=="/"&&(a=Qo([a,f.pathnameBase]))}return i}function o0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=a2(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:v,isOptional:g}=d;if(v==="*"){let b=l[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=l[f];return g&&!y?c[v]=void 0:c[v]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function a2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Kp(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 i2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kp(!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 Gp(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 l2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ja(e):e;return{pathname:n?n.startsWith("/")?n:s2(n,t):t,search:d2(r),hash:f2(o)}}function s2(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 lf(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 u2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qp(e,t){let n=u2(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ja(e):(o=es({},e),Yt(!o.pathname||!o.pathname.includes("?"),lf("?","pathname","search",o)),Yt(!o.pathname||!o.pathname.includes("#"),lf("#","pathname","hash",o)),Yt(!o.search||!o.search.includes("#"),lf("#","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 v=i.split("/");for(;v[0]==="..";)v.shift(),f-=1;o.pathname=v.join("/")}l=f>=0?t[f]:"/"}let s=l2(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,"/"),c2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),d2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function v2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cC=["post","put","patch","delete"];new Set(cC);const m2=["get",...cC];new Set(m2);/**
* 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 ts(){return ts=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},ts.apply(this,arguments)}const Xp=u.createContext(null),p2=u.createContext(null),oa=u.createContext(null),qc=u.createContext(null),Co=u.createContext({outlet:null,matches:[],isDataRoute:!1}),dC=u.createContext(null);function g2(e,t){let{relative:n}=t===void 0?{}:t;Ui()||Yt(!1);let{basename:r,navigator:o}=u.useContext(oa),{hash:a,pathname:i,search:l}=vC(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:Qo([r,i])),o.createHref({pathname:s,search:l,hash:a})}function Ui(){return u.useContext(qc)!=null}function za(){return Ui()||Yt(!1),u.useContext(qc).location}function fC(e){u.useContext(oa).static||u.useLayoutEffect(e)}function Es(){let{isDataRoute:e}=u.useContext(Co);return e?_2():h2()}function h2(){Ui()||Yt(!1);let e=u.useContext(Xp),{basename:t,future:n,navigator:r}=u.useContext(oa),{matches:o}=u.useContext(Co),{pathname:a}=za(),i=JSON.stringify(qp(o,n.v7_relativeSplatPath)),l=u.useRef(!1);return fC(()=>{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=Qp(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 sk(){let{matches:e}=u.useContext(Co),t=e[e.length-1];return t?t.params:{}}function vC(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(qp(o,r.v7_relativeSplatPath));return u.useMemo(()=>Qp(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function y2(e,t){return b2(e,t)}function b2(e,t,n,r){Ui()||Yt(!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"?ja(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||Yt(!1),d=S}else d=c;let v=d.pathname||"/",g=v;if(s!=="/"){let S=s.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=GO(e,{pathname:g}),b=x2(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(qc.Provider,{value:{location:ts({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Do.Pop}},b):b}function S2(){let e=P2(),t=v2(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 C2=u.createElement(S2,null);class w2 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(dC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E2(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(Xp);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 x2(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||Yt(!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:v,errors:g}=n,y=f.route.loader&&v[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,v)=>{let g,y=!1,b=null,S=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||C2,s&&(c<0&&v===0?(y=!0,S=null):c===v&&(y=!0,S=f.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,v+1)),m=()=>{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(E2,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||v===0)?u.createElement(w2,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var mC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mC||{}),mc=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}(mc||{});function R2(e){let t=u.useContext(Xp);return t||Yt(!1),t}function $2(e){let t=u.useContext(p2);return t||Yt(!1),t}function O2(e){let t=u.useContext(Co);return t||Yt(!1),t}function pC(e){let t=O2(),n=t.matches[t.matches.length-1];return n.route.id||Yt(!1),n.route.id}function P2(){var e;let t=u.useContext(dC),n=$2(mc.UseRouteError),r=pC(mc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function _2(){let{router:e}=R2(mC.UseNavigateStable),t=pC(mc.UseNavigateStable),n=u.useRef(!1);return fC(()=>{n.current=!0}),u.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ts({fromRouteId:t},a)))},[e,t])}function Hv(e){let{to:t,replace:n,state:r,relative:o}=e;Ui()||Yt(!1);let{future:a,static:i}=u.useContext(oa),{matches:l}=u.useContext(Co),{pathname:s}=za(),c=Es(),d=Qp(t,qp(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 nt(e){Yt(!1)}function I2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Do.Pop,navigator:a,static:i=!1,future:l}=e;Ui()&&Yt(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:a,static:i,future:ts({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=ja(r));let{pathname:d="/",search:f="",hash:v="",state:g=null,key:y="default"}=r,b=u.useMemo(()=>{let S=Gp(d,s);return S==null?null:{location:{pathname:S,search:f,hash:v,state:g,key:y},navigationType:o}},[s,d,f,v,g,y,o]);return b==null?null:u.createElement(oa.Provider,{value:c},u.createElement(qc.Provider,{children:n,value:b}))}function gC(e){let{children:t,location:n}=e;return y2(Vv(t),n)}new Promise(()=>{});function Vv(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,Vv(r.props.children,a));return}r.type!==nt&&Yt(!1),!r.props.index||!r.props.children||Yt(!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=Vv(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 Wv(){return Wv=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},Wv.apply(this,arguments)}function T2(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 M2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N2(e,t){return e.button===0&&(!t||t==="_self")&&!M2(e)}const L2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],A2="6";try{window.__reactRouterVersion=A2}catch{}const F2="startTransition",a0=$a[F2];function D2(e){let{basename:t,children:n,future:r,window:o}=e,a=u.useRef();a.current==null&&(a.current=WO({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&&a0?a0(()=>s(f)):s(f)},[s,c]);return u.useLayoutEffect(()=>i.listen(d),[i,d]),u.createElement(I2,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const j2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z2=/^(?:[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,v=T2(t,L2),{basename:g}=u.useContext(oa),y,b=!1;if(typeof c=="string"&&z2.test(c)&&(y=c,j2))try{let p=new URL(window.location.href),C=c.startsWith("//")?new URL(p.protocol+c):new URL(c),w=Gp(C.pathname,g);C.origin===p.origin&&w!=null?c=w+C.search+C.hash:b=!0}catch{}let S=g2(c,{relative:o}),h=B2(c,{replace:i,state:l,target:s,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(p){r&&r(p),p.defaultPrevented||h(p)}return u.createElement("a",Wv({},v,{href:y||S,onClick:b||a?r:m,ref:n,target:s}))});var i0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(i0||(i0={}));var l0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(l0||(l0={}));function B2(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=Es(),c=za(),d=vC(e,{relative:i});return u.useCallback(f=>{if(N2(f,n)){f.preventDefault();let v=r!==void 0?r:vc(c)===vc(d);s(e,{replace:v,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[c,s,d,r,o,n,e,a,i,l])}var k2={};/**
* @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 xs=u;function H2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V2=typeof Object.is=="function"?Object.is:H2,W2=xs.useSyncExternalStore,U2=xs.useRef,K2=xs.useEffect,G2=xs.useMemo,q2=xs.useDebugValue;k2.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=U2(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=G2(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,V2(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,v=n===void 0?null:n;return[function(){return s(t())},v===null?void 0:function(){return s(v())}]},[t,n,r,o]);var l=W2(e,a[0],a[1]);return K2(function(){i.hasValue=!0,i.value=l},[l]),q2(l),l};var wt="default"in $a?G:$a,s0=Symbol.for("react-redux-context"),u0=typeof globalThis<"u"?globalThis:{};function Q2(){if(!wt.createContext)return{};const e=u0[s0]??(u0[s0]=new Map);let t=e.get(wt.createContext);return t||(t=wt.createContext(null),e.set(wt.createContext,t)),t}var Ma=Q2(),X2=()=>{throw new Error("uSES not initialized!")};function yC(e=Ma){return function(){return wt.useContext(e)}}var Y2=yC(),J2=Symbol.for("react.element"),Z2=Symbol.for("react.portal"),eP=Symbol.for("react.fragment"),tP=Symbol.for("react.strict_mode"),nP=Symbol.for("react.profiler"),rP=Symbol.for("react.provider"),oP=Symbol.for("react.context"),aP=Symbol.for("react.server_context"),bC=Symbol.for("react.forward_ref"),iP=Symbol.for("react.suspense"),lP=Symbol.for("react.suspense_list"),Yp=Symbol.for("react.memo"),sP=Symbol.for("react.lazy"),uP=bC,cP=Yp;function dP(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case J2:{const n=e.type;switch(n){case eP:case nP:case tP:case iP:case lP:return n;default:{const r=n&&n.$$typeof;switch(r){case aP:case oP:case bC:case sP:case Yp:case rP:return r;default:return t}}}}case Z2:return t}}}function fP(e){return dP(e)===Yp}function vP(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l=!1,s,c,d,f,v;function g(m,p){return s=m,c=p,d=e(s,c),f=t(r,c),v=n(d,f,c),l=!0,v}function y(){return d=e(s,c),t.dependsOnOwnProps&&(f=t(r,c)),v=n(d,f,c),v}function b(){return e.dependsOnOwnProps&&(d=e(s,c)),t.dependsOnOwnProps&&(f=t(r,c)),v=n(d,f,c),v}function S(){const m=e(s,c),p=!i(m,d);return d=m,p&&(v=n(d,f,c)),v}function h(m,p){const C=!a(p,c),w=!o(m,s,p,c);return s=m,c=p,C&&w?y():C?b():w?S():v}return function(p,C){return l?h(p,C):g(p,C)}}function mP(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){const a=t(e,o),i=n(e,o),l=r(e,o);return vP(a,i,l,e,o)}function pP(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 Uv(e){return function(n){const r=e(n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function c0(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function SC(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=c0(e);let c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=c0(c),c=a(l,s)),c},a}}function Jp(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function gP(e){return e&&typeof e=="object"?Uv(t=>pP(e,t)):e?typeof e=="function"?SC(e):Jp(e,"mapDispatchToProps"):Uv(t=>({dispatch:t}))}function hP(e){return e?typeof e=="function"?SC(e):Jp(e,"mapStateToProps"):Uv(()=>({}))}function yP(e,t,n){return{...n,...e,...t}}function bP(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 SP(e){return e?typeof e=="function"?bP(e):Jp(e,"mergeProps"):()=>yP}function CP(e){e()}function wP(){let e=null,t=null;return{clear(){e=null,t=null},notify(){CP(()=>{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 d0={notify(){},get:()=>[]};function CC(e,t){let n,r=d0,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=wP())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=d0)}function v(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const y={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:s,isSubscribed:c,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>r};return y}var EP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xP=typeof navigator<"u"&&navigator.product==="ReactNative",pc=EP||xP?wt.useLayoutEffect:wt.useEffect;function f0(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sf(e,t){if(f0(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])||!f0(e[n[o]],t[n[o]]))return!1;return!0}var RP={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$P={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},OP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},PP={[uP]:OP,[cP]:wC};function v0(e){return fP(e)?wC:PP[e.$$typeof]||RP}var _P=Object.defineProperty,IP=Object.getOwnPropertyNames,m0=Object.getOwnPropertySymbols,TP=Object.getOwnPropertyDescriptor,MP=Object.getPrototypeOf,p0=Object.prototype;function Kv(e,t){if(typeof t!="string"){if(p0){const a=MP(t);a&&a!==p0&&Kv(e,a)}let n=IP(t);m0&&(n=n.concat(m0(t)));const r=v0(e),o=v0(t);for(let a=0;a<n.length;++a){const i=n[a];if(!$P[i]&&!(o&&o[i])&&!(r&&r[i])){const l=TP(t,i);try{_P(e,i,l)}catch{}}}}return e}var EC=X2,NP=e=>{EC=e},LP=[null,null];function AP(e,t,n){pc(()=>e(...t),n)}function FP(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function DP(e,t,n,r,o,a,i,l,s,c,d){if(!e)return()=>{};let f=!1,v=null;const g=()=>{if(f||!l.current)return;const b=t.getState();let S,h;try{S=r(b,o.current)}catch(m){h=m,v=m}h||(v=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,v)throw v}}function jP(e,t){return e===t}function zP(e,t,n,{pure:r,areStatesEqual:o=jP,areOwnPropsEqual:a=sf,areStatePropsEqual:i=sf,areMergedPropsEqual:l=sf,forwardRef:s=!1,context:c=Ma}={}){const d=c,f=hP(e),v=gP(t),g=SP(n),y=!!e;return S=>{const h=S.displayName||S.name||"Component",m=`Connect(${h})`,p={shouldHandleStateChanges:y,displayName:m,wrappedComponentName:h,WrappedComponent:S,initMapStateToProps:f,initMapDispatchToProps:v,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,H=D?E.store:M.store,F=I?M.getServerState:H.getState,P=wt.useMemo(()=>mP(H.dispatch,p),[H]),[$,L]=wt.useMemo(()=>{if(!y)return LP;const te=CC(H,D?void 0:M.subscription),ie=te.notifyNestedSubs.bind(te);return[te,ie]},[H,D,M]),N=wt.useMemo(()=>D?M:{...M,subscription:$},[D,M,$]),T=wt.useRef(void 0),B=wt.useRef(_),k=wt.useRef(void 0),W=wt.useRef(!1),K=wt.useRef(!1),ee=wt.useRef(void 0);pc(()=>(K.current=!0,()=>{K.current=!1}),[]);const Q=wt.useMemo(()=>()=>k.current&&_===B.current?k.current:P(H.getState(),_),[H,_]),ae=wt.useMemo(()=>ie=>$?DP(y,H,$,P,B,T,W,K,k,L,ie):()=>{},[$]);AP(FP,[B,T,W,_,k,L]);let ce;try{ce=EC(ae,Q,F?()=>P(F(),_):Q)}catch(te){throw ee.current&&(te.message+=`
The error may be correlated with this previous error:
${ee.current.stack}
`),te}pc(()=>{ee.current=void 0,k.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=m,s){const R=wt.forwardRef(function(_,A){return wt.createElement(x,{..._,reactReduxForwardedRef:A})});return R.displayName=m,R.WrappedComponent=S,Kv(R,S)}return Kv(x,S)}}var Zp=zP;function BP({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:a="once"}){const i=wt.useMemo(()=>{const c=CC(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]);pc(()=>{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 kP=BP;function xC(e=Ma){const t=e===Ma?Y2:yC(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var HP=xC();function VP(e=Ma){const t=e===Ma?HP:xC(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var WP=VP();NP(u.useSyncExternalStore);function bn(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 UP=typeof Symbol=="function"&&Symbol.observable||"@@observable",g0=UP,uf=()=>Math.random().toString(36).substring(7).split("").join("."),KP={INIT:`@@redux/INIT${uf()}`,REPLACE:`@@redux/REPLACE${uf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${uf()}`},gc=KP;function GP(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 RC(e,t,n){if(typeof e!="function")throw new Error(bn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(bn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(bn(1));return n(RC)(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(bn(3));return o}function f(S){if(typeof S!="function")throw new Error(bn(4));if(s)throw new Error(bn(5));let h=!0;c();const m=l++;return i.set(m,S),function(){if(h){if(s)throw new Error(bn(6));h=!1,c(),i.delete(m),a=null}}}function v(S){if(!GP(S))throw new Error(bn(7));if(typeof S.type>"u")throw new Error(bn(8));if(typeof S.type!="string")throw new Error(bn(17));if(s)throw new Error(bn(9));try{s=!0,o=r(o,S)}finally{s=!1}return(a=i).forEach(m=>{m()}),S}function g(S){if(typeof S!="function")throw new Error(bn(10));r=S,v({type:gc.REPLACE})}function y(){const S=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(bn(11));function m(){const C=h;C.next&&C.next(d())}return m(),{unsubscribe:S(m)}},[g0](){return this}}}return v({type:gc.INIT}),{dispatch:v,subscribe:f,getState:d,replaceReducer:g,[g0]:y}}function qP(e,t,n){return RC(e,t,n)}function QP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:gc.INIT})>"u")throw new Error(bn(12));if(typeof n(void 0,{type:gc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bn(13))})}function XP(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{QP(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],v=n[f],g=i[f],y=v(g,l);if(typeof y>"u")throw l&&l.type,new Error(bn(14));c[f]=y,s=s||y!==g}return s=s||r.length!==Object.keys(i).length,s?c:i}}function $C(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function YP(...e){return t=>(n,r)=>{const o=t(n,r);let a=()=>{throw new Error(bn(15))};const i={getState:o.getState,dispatch:(s,...c)=>a(s,...c)},l=e.map(s=>s(i));return a=$C(...l)(o.dispatch),{...o,dispatch:a}}}function JP(e){return({dispatch:n,getState:r})=>o=>a=>typeof a=="function"?a(n,r,e):o(a)}var ZP=JP();const e_={appLoading:!1,btnLoading:!1,draftLoading:!1,addLoading:!1},t_=(e=e_,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}},h0=localStorage.getItem("uniclare-token"),y0=localStorage.getItem("userInfo"),n_={userData:y0!=null?JSON.parse(y0):null,token:h0??null,loading:!1},r_=(e=n_,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}},o_=(e=[],t)=>{const{type:n,payload:r}=t;switch(n){case"MENUS":return r;case"CLEAR_USERINFO":return e;default:return e}},a_=(e=[],t)=>{switch(t.type){case"SAVE_BANK_DETAILS":return t.payload;default:return e}},i_=(e=[],t)=>{switch(t.type){case"GET_QP_BANK_DETAILS":return t.payload;default:return e}},l_=(e=[],t)=>{switch(t.type){case"QP_GUIDELINES":return t.payload;default:return e}},s_=(e=[],t)=>{switch(t.type){case"GET_QP_DEGGRP":return t.payload;case"CLEAR_QP_DEGGRP":return t.payload;default:return e}},u_=(e=[],t)=>{switch(t.type){case"GET_QP_DEGREE":return t.payload;case"CLEAR_QP_DEGREE":return t.payload;default:return e}},c_=(e=[],t)=>{switch(t.type){case"GET_QP_BOARD":return t.payload;case"CLEAR_QP_BOARD":return t.payload;default:return e}},d_=(e=[],t)=>{switch(t.type){case"GET_QP_CODE":return t.payload;case"CLEAR_QP_CODE":return t.payload;default:return e}},f_=(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}},v_=(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}},m_=(e=[],t)=>{switch(t.type){case"EXAMNAME":return t.payload;default:return e}},p_=(e=[],t)=>{switch(t.type){case"GET_AVAILABLE_SUBJECTS":return t.payload;default:return e}},g_=(e=[],t)=>{switch(t.type){case"AVAILABLE_QP":return t.payload;case"CLEAR_AVAILABLE_QP":return t.payload;default:return e}},h_=(e=[],t)=>{switch(t.type){case"VIEW_DETAILED_AVAILABLE_QP":return t.payload;case"CLEAR_DETAILED_AVAILABLE_QP":return t.payload;default:return e}},y_=(e=[],t)=>{switch(t.type){case"ELIGIBLE_QP_SETTER":return t.payload;case"CLEAR_ELIGIBLE_QP_SETTER":return t.payload;default:return e}},b_=(e=[],t)=>{switch(t.type){case"SELECTED_QP_SETTER":return t.payload;case"CLEAR_SELECTED_QP_SETTER":return t.payload;default:return e}},S_=(e={},t)=>{switch(t.type){case"AVAILABLE_QP_DATA":return t.payload;case"CLEAR_AVAILABLE_QP_DATA":return t.payload;default:return e}},C_=(e=[],t)=>{switch(t.type){case"QP_DETAILS":return t.payload;case"CLEAR_QP_DETAILS":return t.payload;default:return e}},w_=(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}},E_=(e=[],t)=>{switch(t.type){case"QP_UPD_NOTE":return t.payload;case"CLEAR_QP_UPD_NOTE":return t.payload;default:return e}},x_=(e=[],t)=>{switch(t.type){case"PREPARE_QP_DETAILS":return t.payload;case"CLEAR_PREPARE_QP_DETAILS":return t.payload;default:return e}},R_=(e=[],t)=>{switch(t.type){case"QUESTION_NOS":return t.payload;case"CLEAR_QUESTION_NOS":return t.payload;default:return e}},$_=(e=[],t)=>{switch(t.type){case"QN_FILE_DET":return t.payload;case"CLEAR_QN_FILE_DET":return t.payload;default:return e}},O_=(e=[],t)=>{switch(t.type){case"MCQ_SELECTED_QP_DATA":return t.payload;default:return e}},P_=(e=[],t)=>{switch(t.type){case"MOD_DETAILS":return t.payload;default:return e}},__=(e=[],t)=>{switch(t.type){case"TEACHER_DETAILS":return t.payload;default:return e}},I_=(e=[],t)=>{switch(t.type){case"TEMP_DETAILS":return t.payload;case"CLEAR_TEMP_DETAILS":return t.payload;default:return e}},T_=(e=[],t)=>{switch(t.type){case"TEMP_CODE_DETAILS":return t.payload;case"CLEAR_TEMP_CODE_DETAILS":return t.payload;default:return e}},M_=(e=[],t)=>{switch(t.type){case"SET_SELECT_FINAL_QP":return t.payload;default:return e}},N_=(e=[],t)=>{switch(t.type){case"SET_SELECT_MCQ_FINAL_QP":return t.payload;default:return e}},L_=(e=[],t)=>{switch(t.type){case"MOD_QP_ONLINE":return t.payload;default:return e}},A_=(e=[],t)=>{switch(t.type){case"MOD_QP_OFFLINE":return t.payload;default:return e}},F_=(e=[],t)=>{switch(t.type){case"MOD_QP_DATA":return t.payload;default:return e}},D_=(e=[],t)=>{switch(t.type){case"QP_SUMMARY":return t.payload;case"CLEAR_QP_SUMMARY":return t.payload;default:return e}},j_=(e=[],t)=>{switch(t.type){case"GENERATE_BILL":return t.payload;case"CLEAR_GENERATE_BILL":return t.payload;default:return e}},z_=(e=[],t)=>{switch(t.type){case"OTP_CORRECT":return t.payload;case"OTP_NOT_CORRECT":return t.payload;default:return e}},B_=(e=[],t)=>{switch(t.type){case"VALIDATE_PASSWORD":return{...e,validate:t.payload};case"CHECK_PASSWORD":return{...e,check:t.payload};default:return e}},k_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGGRP":return t.payload;case"CLEAR_VIEW_QP_DEGGRP":return t.payload;default:return e}},H_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_BOARD":return t.payload;case"CLEAR_VIEW_QP_BOARD":return t.payload;default:return e}},V_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DEGREE":return t.payload;case"CLEAR_VIEW_QP_DEGREE":return t.payload;default:return e}},W_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_SUBJ":return t.payload;case"CLEAR_VIEW_QP_SUBJ":return t.payload;default:return e}},U_=(e=[],t)=>{switch(t.type){case"GET_VIEW_QP_DATA":return t.payload;case"CLEAR_VIEW_QP_DATA":return t.payload;default:return e}},K_=(e=[],t)=>{switch(t.type){case"VIEW_FINAL_QP_DATA":return t.payload;case"CLEAR_FINAL_QP_DATA":return t.payload;default:return e}},G_=(e=[],t)=>{switch(t.type){case"USER_TYPE_DATA":return t.payload;default:return e}},q_=(e=!1,t)=>{switch(t.type){case"OPEN_USERTYPE":return t.payload;default:return e}},Q_=(e=!1,t)=>{switch(t.type){case"GET_CREATE_USER_DATA":return t.payload;default:return e}},X_=(e=!1,t)=>{switch(t.type){case"OPEN_CREATE_USER_MODAL":return t.payload;default:return e}},Y_=(e=[],t)=>{switch(t.type){case"GET_ASSIGN_USER_MENUS":return t.payload;default:return e}},J_=(e=[],t)=>{switch(t.type){case"COLLEGE_DETAILS":return t.payload;default:return e}},Z_=(e=[],t)=>{switch(t.type){case"TEACHER_DETAILS":return t.payload;default:return e}},eI=(e={},t)=>{switch(t.type){case"TEACH_DET":return t.payload;default:return e}},tI=(e=[],t)=>{switch(t.type){case"GET_TEMPLATE_DETAILS":return t.payload;default:return e}},nI=(e=[],t)=>{switch(t.type){case"VIEW_PREPARE_QP_OPTION2":return t.payload;default:return e}},rI=XP({loginfo:r_,menuItems:o_,loader:t_,saveBankDet:a_,getBankDet:i_,deggrp:s_,board:c_,qpcode:d_,tempcodes:v_,patternDetails:f_,degree:u_,availableQp:g_,detailedAvailableQp:h_,eligibleQpSetter:y_,qpsetters:b_,avlQpCount:S_,qpAcceptDetails:C_,qpUpdData:w_,qpUpdNote:E_,prepareQpDetails:x_,getQuestions:R_,getAssignMod:P_,teachers:__,qnfiles:$_,tempDet:I_,tempcodedata:T_,examnames:m_,getSelectFinalQP:M_,getPreparedOmrQp:N_,getModQpOnline:L_,getModQpOffile:A_,getModUpdData:F_,selectedFinalMcq:O_,qpsummary:D_,billgenerate:j_,changepwd:z_,oldPwd:B_,viewQPDeggrp:k_,viewBoardData:H_,viewDegreeData:V_,viewSubjData:W_,viewQPData:U_,viewFinalQP:K_,availableSubjects:p_,qpGuidelines:l_,getUsertypedata:G_,openUsertype:q_,getAssignUserMenus:Y_,getCreateUserData:Q_,openCreateUserModal:X_,collegeDetails:J_,teacherDetails:Z_,teachdet:eI,getTemplateDetails:tI,getViewPrepareQpDetails:nI}),oI=(e,t)=>(t.type=="LOGOUT_USER"&&(e=void 0),rI(e,t)),aI=[ZP],iI=window.REDUX_DEVTOOLS_EXTENSION_COMPOSE||$C,lI=qP(oI,iI(YP(...aI)));var OC={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})()})(OC);var sI=OC.exports;const q=Ym(sI);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 PC={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 eg=Symbol.for("react.element"),tg=Symbol.for("react.portal"),Qc=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),Jc=Symbol.for("react.provider"),Zc=Symbol.for("react.context"),uI=Symbol.for("react.server_context"),ed=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),nd=Symbol.for("react.suspense_list"),rd=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),cI=Symbol.for("react.offscreen"),_C;_C=Symbol.for("react.module.reference");function Or(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eg:switch(e=e.type,e){case Qc:case Yc:case Xc:case td:case nd:return e;default:switch(e=e&&e.$$typeof,e){case uI:case Zc:case ed:case od:case rd:case Jc:return e;default:return t}}case tg:return t}}}Ot.ContextConsumer=Zc;Ot.ContextProvider=Jc;Ot.Element=eg;Ot.ForwardRef=ed;Ot.Fragment=Qc;Ot.Lazy=od;Ot.Memo=rd;Ot.Portal=tg;Ot.Profiler=Yc;Ot.StrictMode=Xc;Ot.Suspense=td;Ot.SuspenseList=nd;Ot.isAsyncMode=function(){return!1};Ot.isConcurrentMode=function(){return!1};Ot.isContextConsumer=function(e){return Or(e)===Zc};Ot.isContextProvider=function(e){return Or(e)===Jc};Ot.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eg};Ot.isForwardRef=function(e){return Or(e)===ed};Ot.isFragment=function(e){return Or(e)===Qc};Ot.isLazy=function(e){return Or(e)===od};Ot.isMemo=function(e){return Or(e)===rd};Ot.isPortal=function(e){return Or(e)===tg};Ot.isProfiler=function(e){return Or(e)===Yc};Ot.isStrictMode=function(e){return Or(e)===Xc};Ot.isSuspense=function(e){return Or(e)===td};Ot.isSuspenseList=function(e){return Or(e)===nd};Ot.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qc||e===Yc||e===Xc||e===td||e===nd||e===cI||typeof e=="object"&&e!==null&&(e.$$typeof===od||e.$$typeof===rd||e.$$typeof===Jc||e.$$typeof===Zc||e.$$typeof===ed||e.$$typeof===_C||e.getModuleId!==void 0)};Ot.typeOf=Or;PC.exports=Ot;var Tl=PC.exports;function Zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return G.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zo(r)):Tl.isFragment(r)&&r.props?n=n.concat(Zo(r.props.children,t)):n.push(r))}),n}var Gv={},dI=function(t){};function fI(e,t){}function vI(e,t){}function mI(){Gv={}}function IC(e,t,n){!t&&!Gv[n]&&(e(!1,n),Gv[n]=!0)}function Tn(e,t){IC(fI,e,t)}function pI(e,t){IC(vI,e,t)}Tn.preMessage=dI;Tn.resetWarned=mI;Tn.noteOnce=pI;function Ae(e){"@babel/helpers - typeof";return Ae=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},Ae(e)}function gI(e,t){if(Ae(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ae(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TC(e){var t=gI(e,"string");return Ae(t)=="symbol"?t:t+""}function j(e,t,n){return(t=TC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0(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?b0(Object(n),!0).forEach(function(r){j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ns(e){return e instanceof HTMLElement||e instanceof SVGElement}function hI(e){return e&&Ae(e)==="object"&&ns(e.nativeElement)?e.nativeElement:ns(e)?e:null}function Ml(e){var t=hI(e);if(t)return t;if(e instanceof G.Component){var n;return(n=Bv.findDOMNode)===null||n===void 0?void 0:n.call(Bv,e)}return null}function Rs(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 ng=function(t,n){typeof t=="function"?t(n):Ae(t)==="object"&&t&&"current"in t&&(t.current=n)},Ur=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){ng(i,a)})}},Ba=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Rs(function(){return Ur.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=Tl.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Tl.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Tl.ForwardRef)};function qv(e){return u.isValidElement(e)&&!Tl.isFragment(e)}var uk=function(t){return qv(t)&&aa(t)};Number(u.version.split(".")[0])>=19;var Qv=u.createContext(null);function yI(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),a=u.useContext(Qv),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(Qv.Provider,{value:i},t)}var MC=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}()}(),Xv=typeof window<"u"&&typeof document<"u"&&window.document===document,hc=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")()}(),bI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(hc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),SI=2;function CI(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){bI(a)}function l(){var s=Date.now();if(n){if(s-o<SI)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var wI=20,EI=["top","right","bottom","left","width","height","size","weight"],xI=typeof MutationObserver<"u",RI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=CI(this.refresh.bind(this),wI)}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(){!Xv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xI?(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(){!Xv||!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=EI.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}(),NC=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||hc},LC=ad(0,0,0,0);function yc(e){return parseFloat(e)||0}function S0(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+yc(a)},0)}function $I(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]=yc(i)}return n}function OI(e){var t=e.getBBox();return ad(0,0,t.width,t.height)}function PI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return LC;var r=Li(e).getComputedStyle(e),o=$I(r),a=o.left+o.right,i=o.top+o.bottom,l=yc(r.width),s=yc(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=S0(r,"left","right")+a),Math.round(s+i)!==n&&(s-=S0(r,"top","bottom")+i)),!II(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 ad(o.left,o.top,l,s)}var _I=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 II(e){return e===Li(e).document.documentElement}function TI(e){return Xv?_I(e)?OI(e):PI(e):LC}function MI(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 NC(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function ad(e,t,n,r){return{x:e,y:t,width:n,height:r}}var NI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ad(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=TI(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}(),LI=function(){function e(t,n){var r=MI(n);NC(this,{target:t,contentRect:r})}return e}(),AI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new MC,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 NI(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 LI(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}(),AC=typeof WeakMap<"u"?new WeakMap:new MC,FC=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=RI.getInstance(),r=new AI(t,n,this);AC.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){FC.prototype[e]=function(){var t;return(t=AC.get(this))[e].apply(t,arguments)}});var FI=function(){return typeof hc.ResizeObserver<"u"?hc.ResizeObserver:FC}(),jo=new Map;function DI(e){e.forEach(function(t){var n,r=t.target;(n=jo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var DC=new FI(DI);function jI(e,t){jo.has(e)||(jo.set(e,new Set),DC.observe(e)),jo.get(e).add(t)}function zI(e,t){jo.has(e)&&(jo.get(e).delete(t),jo.get(e).size||(DC.unobserve(e),jo.delete(e)))}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C0(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,TC(r.key),r)}}function hn(e,t,n){return t&&C0(e.prototype,t),n&&C0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rs(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&&rs(e,t)}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},os(e)}function rg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rg=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 BI(e,t){if(t&&(Ae(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=rg();return function(){var n,r=os(e);if(t){var o=os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return BI(this,n)}}var kI=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function HI(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),a=u.useRef(null),i=u.useContext(Qv),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,v=Ba(f,o),g=function(){var h;return Ml(o.current)||(o.current&&Ae(o.current)==="object"?Ml((h=o.current)===null||h===void 0?void 0:h.nativeElement):null)||Ml(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,m=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),m&&Promise.resolve().then(function(){m(I,S)})}},[]);return u.useEffect(function(){var S=g();return S&&!r&&jI(S,b),function(){return zI(S,b)}},[o.current,r]),u.createElement(kI,{ref:a},d?u.cloneElement(s,{ref:v}):s)}var VI=u.forwardRef(HI),WI="rc-observer-key";function UI(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(WI,"-").concat(a);return u.createElement(VI,be({},e,{key:i,ref:a===0?t:void 0}),o)})}var zr=u.forwardRef(UI);zr.Collection=yI;function cr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Yv(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 KI(e){if(Array.isArray(e))return Yv(e)}function jC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function og(e,t){if(e){if(typeof e=="string")return Yv(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)?Yv(e,t):void 0}}function GI(){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 KI(e)||jC(e)||og(e)||GI()}var zC=function(t){return+setTimeout(t,16)},BC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(zC=function(t){return window.requestAnimationFrame(t)},BC=function(t){return window.cancelAnimationFrame(t)});var w0=0,ag=new Map;function kC(e){ag.delete(e)}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;w0+=1;var r=w0;function o(a){if(a===0)kC(r),t();else{var i=zC(function(){o(a-1)});ag.set(r,i)}}return o(n),r};Rt.cancel=function(e){var t=ag.get(e);return kC(e),BC(t)};function HC(e){if(Array.isArray(e))return e}function qI(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 VC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V(e,t){return HC(e)||qI(e,t)||og(e,t)||VC()}function as(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 Jv(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 E0="data-rc-order",x0="data-rc-priority",QI="rc-util-key",Zv=new Map;function WC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):QI}function id(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function XI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ig(e){return Array.from((Zv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function UC(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=XI(r),l=i==="prependQueue",s=document.createElement("style");s.setAttribute(E0,i),l&&a&&s.setAttribute(x0,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=id(t),d=c.firstChild;if(r){if(l){var f=(t.styles||ig(c)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(E0)))return!1;var g=Number(v.getAttribute(x0)||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 KC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=id(t);return(t.styles||ig(n)).find(function(r){return r.getAttribute(WC(t))===e})}function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=KC(e,t);if(n){var r=id(t);r.removeChild(n)}}function YI(e,t){var n=Zv.get(e);if(!n||!Jv(document,n)){var r=UC("",t),o=r.parentNode;Zv.set(e,o),e.removeChild(r)}}function fo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=id(n),o=ig(r),a=z(z({},n),{},{styles:o});YI(r,a);var i=KC(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=UC(e,a);return d.setAttribute(WC(a),t),d}function JI(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=JI(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 ls(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(Tn(!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&&Ae(a)==="object"&&Ae(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(v){return o(a[v],i[v],c)})}return!1}return o(e,t)}var ZI="%";function em(e){return e.join(ZI)}var eT=function(){function e(t){gn(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t}return hn(e,[{key:"get",value:function(n){return this.opGet(em(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(em(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",Br="data-css-hash",zo="__cssinjs_instance__";function tT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Br,"]"))||[],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(Br,"]"))).forEach(function(o){var a=o.getAttribute(Br);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 eT(e)}var nT=u.createContext({hashPriority:"low",cache:tT(),defaultCache:!0});const ld=nT;var GC=hn(function e(){gn(this,e)}),qC="CALC_UNIT",rT=new RegExp(qC,"g");function cf(e){return typeof e=="number"?"".concat(e).concat(qC):e}var oT=function(e){ia(n,e);var t=la(n);function n(r,o){var a;gn(this,n),a=t.call(this),j(lt(a),"result",""),j(lt(a),"unitlessCssVar",void 0),j(lt(a),"lowPriority",void 0);var i=Ae(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):i==="number"?a.result=cf(r):i==="string"&&(a.result=r),a}return hn(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(cf(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(cf(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(rT,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(GC),aT=function(e){ia(n,e);var t=la(n);function n(r){var o;return gn(this,n),o=t.call(this),j(lt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return hn(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}(GC),iT=function(t,n){var r=t==="css"?oT:aT;return function(o){return new r(o,n)}};function lT(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 lg=function(){function e(){gn(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return hn(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=V(c,2),v=f[1];return o.internalGet(d)[1]<v?[d,o.internalGet(d)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=V(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!lT(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();j(lg,"MAX_CACHE_SIZE",20);j(lg,"MAX_CACHE_OFFSET",5);var R0=0,QC=function(){function e(t){gn(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=R0,t.length===0&&(t.length>0,void 0),R0+=1}return hn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),df=new lg;function tm(e){var t=Array.isArray(e)?e:[e];return df.has(t)||df.set(t,new QC(t)),df.get(t)}var sT=new WeakMap,ff={};function uT(e,t){for(var n=sT,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(ff)||n.set(ff,e()),n.get(ff)}var $0=new WeakMap;function Nl(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 QC?n+=o.id:o&&Ae(o)==="object"?n+=Nl(o,t):n+=o}),t&&(n=as(n)),$0.set(e,n)),n}function O0(e,t){return as("".concat(t,"_").concat(Nl(e,!0)))}var nm=Fn();function J(e){return typeof e=="number"?"".concat(e,"px"):e}function bc(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),{},j(j({},Ai,t),Br,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 _u=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()},cT=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=V(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},XC=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,s,c=V(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 v,g=_u(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,cT(o,n,{scope:r==null?void 0:r.scope})]},P0=Fn()?u.useLayoutEffect:u.useEffect,jt=function(t,n){var r=u.useRef(!0);P0(function(){return t(r.current)},n),P0(function(){return r.current=!1,function(){r.current=!0}},[])},rm=function(t,n){jt(function(r){if(!r)return t()},n)},dT=z({},$a),_0=dT.useInsertionEffect,fT=function(t,n,r){u.useMemo(t,r),jt(function(){return n(!0)},r)},vT=_0?function(e,t,n){return _0(function(){return e(),t()},n)}:fT;const mT=vT;var pT=z({},$a),gT=pT.useInsertionEffect,hT=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},yT=function(){return function(t){t()}},bT=typeof gT<"u"?hT:yT;const ST=bT;function sg(e,t,n,r,o){var a=u.useContext(ld),i=a.cache,l=[e].concat(ye(t)),s=em(l),c=ST([s]),d=function(y){i.opUpdate(s,function(b){var S=b||[void 0,void 0],h=V(S,2),m=h[0],p=m===void 0?0:m,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),v=f[1];return mT(function(){o==null||o(v)},function(g){return d(function(y){var b=V(y,2),S=b[0],h=b[1];return g&&S===0&&(o==null||o(v)),[S+1,h]}),function(){i.opUpdate(s,function(y){var b=y||[],S=V(b,2),h=S[0],m=h===void 0?0:h,p=S[1],C=m-1;return C===0?(c(function(){(g||!i.opGet(s))&&(r==null||r(p,!1))}),null):[m-1,p]})}},[s]),v}var CT={},wT="css",va=new Map;function ET(e){va.set(e,(va.get(e)||0)+1)}function xT(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 RT=0;function $T(e,t){va.set(e,(va.get(e)||0)-1);var n=Array.from(va.keys()),r=n.filter(function(o){var a=va.get(o)||0;return a<=0});n.length-r.length>RT&&r.forEach(function(o){xT(o,t),va.delete(o)})}var OT=function(t,n,r,o){var a=r.getDerivativeToken(t),i=z(z({},a),n);return o&&(i=o(i)),i},YC="token";function PT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(ld),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,s=n.override,c=s===void 0?CT:s,d=n.formatToken,f=n.getComputedToken,v=n.cssVar,g=uT(function(){return Object.assign.apply(Object,[{}].concat(ye(t)))},t),y=Nl(g),b=Nl(c),S=v?Nl(v):"",h=sg(YC,[l,e.id,y,b,S],function(){var m,p=f?f(g,c,e):OT(g,c,e,d),C=z({},p),w="";if(v){var x=XC(p,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),E=V(x,2);p=E[0],w=E[1]}var R=O0(p,l);p._tokenKey=R,C._tokenKey=O0(C,l);var O=(m=v==null?void 0:v.key)!==null&&m!==void 0?m:R;p._themeKey=O,ET(O);var _="".concat(wT,"-").concat(as(R));return p._hashId=_,[p,_,C,w,(v==null?void 0:v.key)||""]},function(m){$T(m[0]._themeKey,o)},function(m){var p=V(m,4),C=p[0],w=p[3];if(v&&w){var x=fo(w,as("css-variables-".concat(C._themeKey)),{mark:Br,prepend:"queue",attachTo:a,priority:-999});x[zo]=o,x.setAttribute(Ai,C._themeKey)}});return h}var _T=function(t,n,r){var o=V(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,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=bc(i,l,d,v,c);return[f,d,g]},IT={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},JC="comm",ZC="rule",ew="decl",TT="@import",MT="@keyframes",NT="@layer",tw=Math.abs,ug=String.fromCharCode;function nw(e){return e.trim()}function Iu(e,t,n){return e.replace(t,n)}function LT(e,t,n){return e.indexOf(t,n)}function ss(e,t){return e.charCodeAt(t)|0}function us(e,t,n){return e.slice(t,n)}function lo(e){return e.length}function AT(e){return e.length}function ou(e,t){return t.push(e),e}var sd=1,Fi=1,rw=0,$r=0,en=0,Ki="";function cg(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:sd,column:Fi,length:i,return:"",siblings:l}}function FT(){return en}function DT(){return en=$r>0?ss(Ki,--$r):0,Fi--,en===10&&(Fi=1,sd--),en}function kr(){return en=$r<rw?ss(Ki,$r++):0,Fi++,en===10&&(Fi=1,sd++),en}function Ea(){return ss(Ki,$r)}function Tu(){return $r}function ud(e,t){return us(Ki,e,t)}function om(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 jT(e){return sd=Fi=1,rw=lo(Ki=e),$r=0,[]}function zT(e){return Ki="",e}function vf(e){return nw(ud($r-1,am(e===91?e+2:e===40?e+1:e)))}function BT(e){for(;(en=Ea())&&en<33;)kr();return om(e)>2||om(en)>3?"":" "}function kT(e,t){for(;--t&&kr()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return ud(e,Tu()+(t<6&&Ea()==32&&kr()==32))}function am(e){for(;kr();)switch(en){case e:return $r;case 34:case 39:e!==34&&e!==39&&am(en);break;case 40:e===41&&am(e);break;case 92:kr();break}return $r}function HT(e,t){for(;kr()&&e+en!==57;)if(e+en===84&&Ea()===47)break;return"/*"+ud(t,$r-1)+"*"+ug(e===47?e:kr())}function VT(e){for(;!om(Ea());)kr();return ud(e,$r)}function WT(e){return zT(Mu("",null,null,null,[""],e=jT(e),0,[0],e))}function Mu(e,t,n,r,o,a,i,l,s){for(var c=0,d=0,f=i,v=0,g=0,y=0,b=1,S=1,h=1,m=0,p="",C=o,w=a,x=r,E=p;S;)switch(y=m,m=kr()){case 40:if(y!=108&&ss(E,f-1)==58){LT(E+=Iu(vf(m),"&","&\f"),"&\f",tw(c?l[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:E+=vf(m);break;case 9:case 10:case 13:case 32:E+=BT(y);break;case 92:E+=kT(Tu()-1,7);continue;case 47:switch(Ea()){case 42:case 47:ou(UT(HT(kr(),Tu()),t,n,s),s);break;default:E+="/"}break;case 123*b:l[c++]=lo(E)*h;case 125*b:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+d:h==-1&&(E=Iu(E,/\f/g,"")),g>0&&lo(E)-f&&ou(g>32?T0(E+";",r,n,f-1,s):T0(Iu(E," ","")+";",r,n,f-2,s),s);break;case 59:E+=";";default:if(ou(x=I0(E,t,n,c,d,o,l,p,C=[],w=[],f,a),a),m===123)if(d===0)Mu(E,t,x,x,C,a,f,l,w);else switch(v===99&&ss(E,3)===110?100:v){case 100:case 108:case 109:case 115:Mu(e,x,x,r&&ou(I0(e,x,x,0,0,o,l,p,o,C=[],f,w),w),o,w,f,l,r?C:w);break;default:Mu(E,x,x,x,[""],w,0,l,w)}}c=d=g=0,b=h=1,p=E="",f=i;break;case 58:f=1+lo(E),g=y;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&DT()==125)continue}switch(E+=ug(m),m*b){case 38:h=d>0?1:(E+="\f",-1);break;case 44:l[c++]=(lo(E)-1)*h,h=1;break;case 64:Ea()===45&&(E+=vf(kr())),v=Ea(),d=f=lo(p=E+=VT(Tu())),m++;break;case 45:y===45&&lo(E)==2&&(b=0)}}return a}function I0(e,t,n,r,o,a,i,l,s,c,d,f){for(var v=o-1,g=o===0?a:[""],y=AT(g),b=0,S=0,h=0;b<r;++b)for(var m=0,p=us(e,v+1,v=tw(S=i[b])),C=e;m<y;++m)(C=nw(S>0?g[m]+" "+p:Iu(p,/&\f/g,g[m])))&&(s[h++]=C);return cg(e,t,n,o===0?ZC:l,s,c,d,f)}function UT(e,t,n,r){return cg(e,t,n,JC,ug(FT()),us(e,2,-2),0,r)}function T0(e,t,n,r,o){return cg(e,t,n,ew,us(e,0,r),us(e,r+1,-1),r,o)}function im(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function KT(e,t,n,r){switch(e.type){case NT:if(e.children.length)break;case TT:case ew:return e.return=e.return||e.value;case JC:return"";case MT:return e.return=e.value+"{"+im(e.children,r)+"}";case ZC:if(!lo(e.value=e.props.join(",")))return""}return lo(n=im(e.children,r))?e.return=e.value+"{"+n+"}":""}var M0="data-ant-cssinjs-cache-path",ow="_FILE_STYLE__",xa,aw=!0;function GT(){if(!xa&&(xa={},Fn())){var e=document.createElement("div");e.className=M0,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=V(a,2),l=i[0],s=i[1];xa[l]=s});var n=document.querySelector("style[".concat(M0,"]"));if(n){var r;aw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function qT(e){return GT(),!!xa[e]}function QT(e){var t=xa[e],n=null;if(t&&Fn())if(aw)n=ow;else{var r=document.querySelector("style[".concat(Br,'="').concat(xa[e],'"]'));r?n=r.innerHTML:delete xa[e]}return[n,t]}var XT="_skip_check_",iw="_multi_value_";function Nu(e){var t=im(WT(e),KT);return t.replace(/\{%%%\:[^;];}/g,";")}function YT(e){return Ae(e)==="object"&&e&&(XT in e||iw in e)}function JT(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 ZT=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 v="",g={};function y(h){var m=h.getName(l);if(!g[m]){var p=e(h.style,n,{root:!1,parentSelectors:i}),C=V(p,1),w=C[0];g[m]="@keyframes ".concat(h.getName(l)).concat(w)}}function b(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(function(p){Array.isArray(p)?b(p,m):p&&m.push(p)}),m}var S=b(Array.isArray(t)?t:[t]);return S.forEach(function(h){var m=typeof h=="string"&&!o?{}:h;if(typeof m=="string")v+="".concat(m,`
`);else if(m._keyframe)y(m);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},m);Object.keys(p).forEach(function(C){var w=p[C];if(Ae(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!YT(w)){var x=!1,E=C.trim(),R=!1;(o||a)&&l?E.startsWith("@")?x=!0:E=JT(C,l,c):o&&!l&&(E==="&"||E==="")&&(E="",R=!0);var O=e(w,n,{root:R,injectHash:x,parentSelectors:[].concat(ye(i),[E])}),_=V(O,2),A=_[0],M=_[1];g=z(z({},g),M),v+="".concat(E).concat(A)}else{let H=function(F,P){var $=F.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),L=P;!IT[F]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),F==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),L=P.getName(l)),v+="".concat($,":").concat(L,";")};var D,I=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;Ae(w)==="object"&&w!==null&&w!==void 0&&w[iw]&&Array.isArray(I)?I.forEach(function(F){H(C,F)}):H(C,I)}})}}),o?s&&(v="@layer ".concat(s.name," {").concat(v,"}"),s.dependencies&&(g["@layer ".concat(s.name)]=s.dependencies.map(function(h){return"@layer ".concat(h,", ").concat(s.name,";")}).join(`
`))):v="{".concat(v,"}"),[v,g]};function lw(e,t){return as("".concat(e.join("%")).concat(t))}function eM(){return null}var sw="style";function lm(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(ld),f=d.autoClear;d.mock;var v=d.defaultCache,g=d.hashPriority,y=d.container,b=d.ssrInline,S=d.transformers,h=d.linters,m=d.cache,p=d.layer,C=n._tokenKey,w=[C];p&&w.push("layer"),w.push.apply(w,ye(r));var x=nm,E=sg(sw,w,function(){var M=w.join("|");if(qT(M)){var D=QT(M),I=V(D,2),H=I[0],F=I[1];if(H)return[H,C,F,{},l,c]}var P=t(),$=ZT(P,{hashId:o,hashPriority:g,layer:p?a:void 0,path:r.join("-"),transformers:S,linters:h}),L=V($,2),N=L[0],T=L[1],B=Nu(N),k=lw(w,B);return[B,C,k,T,l,c]},function(M,D){var I=V(M,3),H=I[2];(D||f)&&nm&&is(H,{mark:Br})},function(M){var D=V(M,4),I=D[0];D[1];var H=D[2],F=D[3];if(x&&I!==ow){var P={mark:Br,prepend:p?!1:"queue",attachTo:y,priority:c},$=typeof i=="function"?i():i;$&&(P.csp={nonce:$});var L=[],N=[];Object.keys(F).forEach(function(B){B.startsWith("@layer")?L.push(B):N.push(B)}),L.forEach(function(B){fo(Nu(F[B]),"_layer-".concat(B),z(z({},P),{},{prepend:!0}))});var T=fo(I,H,P);T[zo]=m.instanceId,T.setAttribute(Ai,C),N.forEach(function(B){fo(Nu(F[B]),"_effect-".concat(B),P)})}}),R=V(E,3),O=R[0],_=R[1],A=R[2];return function(M){var D;return!b||x||!v?D=u.createElement(eM,null):D=u.createElement("style",be({},j(j({},Ai,_),Br,A),{dangerouslySetInnerHTML:{__html:O}})),u.createElement(u.Fragment,null,D,M)}}var tM=function(t,n,r){var o=V(t,6),a=o[0],i=o[1],l=o[2],s=o[3],c=o[4],d=o[5],f=r||{},v=f.plain;if(c)return null;var g=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=bc(a,i,l,y,v),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var S=Nu(s[b]),h=bc(S,i,"_effect-".concat(b),y,v);b.startsWith("@layer")?g=h+g:g+=h}}),[d,l,g]},uw="cssVar",nM=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(ld),f=d.cache.instanceId,v=d.container,g=l._tokenKey,y=[].concat(ye(t.path),[r,c,g]),b=sg(uw,y,function(){var S=n(),h=XC(S,r,{prefix:o,unitless:a,ignore:i,scope:c}),m=V(h,2),p=m[0],C=m[1],w=lw(y,C);return[p,C,w,r]},function(S){var h=V(S,3),m=h[2];nm&&is(m,{mark:Br})},function(S){var h=V(S,3),m=h[1],p=h[2];if(m){var C=fo(m,p,{mark:Br,prepend:"queue",attachTo:v,priority:-999});C[zo]=f,C.setAttribute(Ai,r)}});return b},rM=function(t,n,r){var o=V(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)},v=bc(a,l,i,f,c);return[d,i,v]};j(j(j({},sw,tM),YC,_T),uw,rM);var ht=function(){function e(t,n){gn(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return hn(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 dg=u.createContext({});function cw(e){return HC(e)||jC(e)||og(e)||VC()}function Yr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function dw(e,t,n,r){if(!t.length)return n;var o=cw(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]=dw(l[a],i,n,r),l}function Lr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Yr(e,t.slice(0,-1))?e:dw(e,t,n,r)}function oM(e){return Ae(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function N0(e){return Array.isArray(e)?[]:{}}var aM=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=N0(t[0]);return t.forEach(function(o){function a(i,l){var s=new Set(l),c=Yr(o,i),d=Array.isArray(c);if(d||oM(c)){if(!s.has(c)){s.add(c);var f=Yr(r,i);d?r=Lr(r,i,[]):(!f||Ae(f)!=="object")&&(r=Lr(r,i,N0(c))),aM(c).forEach(function(v){a([].concat(ye(i),[v]),s)})}}else r=Lr(r,i,c)}a([])}),r}function iM(){}const lM=u.createContext({}),sM=()=>{const e=()=>{};return e.deprecated=iM,e},uM=u.createContext(void 0);var cM={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"},dM={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 fw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},L0={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"]},dM),timePickerLocale:Object.assign({},fw)},Jn="${label} is not a valid ${type}",Na={locale:"en",Pagination:cM,DatePicker:L0,TimePicker:fw,Calendar:L0,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,url:Jn,hex:Jn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let Lu=Object.assign({},Na.Modal),Au=[];const A0=()=>Au.reduce((e,t)=>Object.assign(Object.assign({},e),t),Na.Modal);function fM(e){if(e){const t=Object.assign({},e);return Au.push(t),Lu=A0(),()=>{Au=Au.filter(n=>n!==t),Lu=A0()}}Lu=Object.assign({},Na.Modal)}function vw(){return Lu}const fg=u.createContext(void 0),cd=(e,t)=>{const n=u.useContext(fg),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]},vM="internalMark",mM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>fM(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(fg.Provider,{value:o},n)};function xn(e,t){pM(e)&&(e="100%");var n=gM(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function au(e){return Math.min(1,Math.max(0,e))}function pM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function iu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ya(e){return e.length===1?"0"+e:String(e)}function hM(e,t,n){return{r:xn(e,255)*255,g:xn(t,255)*255,b:xn(n,255)*255}}function F0(e,t,n){e=xn(e,255),t=xn(t,255),n=xn(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 mf(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 yM(e,t,n){var r,o,a;if(e=xn(e,360),t=xn(t,100),n=xn(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=mf(l,i,e+1/3),o=mf(l,i,e),a=mf(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function sm(e,t,n){e=xn(e,255),t=xn(t,255),n=xn(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 bM(e,t,n){e=xn(e,360)*6,t=xn(t,100),n=xn(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 um(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 SM(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(CM(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 CM(e){return Math.round(parseFloat(e)*255).toString(16)}function D0(e){return er(e)/255}function er(e){return parseInt(e,16)}function wM(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var cm={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=RM(e)),typeof e=="object"&&(ro(e.r)&&ro(e.g)&&ro(e.b)?(t=hM(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ro(e.h)&&ro(e.s)&&ro(e.v)?(r=iu(e.s),o=iu(e.v),t=bM(e.h,r,o),i=!0,l="hsv"):ro(e.h)&&ro(e.s)&&ro(e.l)&&(r=iu(e.s),a=iu(e.l),t=yM(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mw(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 EM="[-\\+]?\\d+%?",xM="[-\\+]?\\d*\\.\\d+%?",Bo="(?:".concat(xM,")|(?:").concat(EM,")"),pf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),gf="[\\s|\\(]+(".concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")[,|\\s]+(").concat(Bo,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(Bo),rgb:new RegExp("rgb"+pf),rgba:new RegExp("rgba"+gf),hsl:new RegExp("hsl"+pf),hsla:new RegExp("hsla"+gf),hsv:new RegExp("hsv"+pf),hsva:new RegExp("hsva"+gf),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 RM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(cm[e])e=cm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tr.hex8.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),a:D0(n[4]),format:t?"name":"hex8"}:(n=Tr.hex6.exec(e),n?{r:er(n[1]),g:er(n[2]),b:er(n[3]),format:t?"name":"hex"}:(n=Tr.hex4.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),a:D0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tr.hex3.exec(e),n?{r:er(n[1]+n[1]),g:er(n[2]+n[2]),b:er(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ro(e){return!!Tr.CSS_UNIT.exec(String(e))}var wn=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=wM(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=mw(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=sm(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=sm(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=F0(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=F0(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),um(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),SM(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(xn(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(xn(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="#"+um(this.r,this.g,this.b,!1),n=0,r=Object.entries(cm);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=au(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=au(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=au(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=au(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),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}(),lu=2,j0=.16,$M=.05,OM=.05,PM=.15,pw=5,gw=4,_M=[{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 z0(e){var t=e.r,n=e.g,r=e.b,o=sm(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function su(e){var t=e.r,n=e.g,r=e.b;return"#".concat(um(t,n,r,!1))}function IM(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 B0(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function k0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-j0*t:t===gw?r=e.s+j0:r=e.s+$M*t,r>1&&(r=1),n&&t===pw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function H0(e,t,n){var r;return n?r=e.v+OM*t:r=e.v-PM*t,r>1&&(r=1),Number(r.toFixed(2))}function cs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ri(e),o=pw;o>0;o-=1){var a=z0(r),i=su(ri({h:B0(a,o,!0),s:k0(a,o,!0),v:H0(a,o,!0)}));n.push(i)}n.push(su(r));for(var l=1;l<=gw;l+=1){var s=z0(r),c=su(ri({h:B0(s,l),s:k0(s,l),v:H0(s,l)}));n.push(c)}return t.theme==="dark"?_M.map(function(d){var f=d.index,v=d.opacity,g=su(IM(ri(t.backgroundColor||"#141414"),ri(n[f]),v*100));return g}):n}var ck={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"},dm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dm.primary=dm[5];const hw={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"},ds=Object.assign(Object.assign({},hw),{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 TM(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),v=n(o),g=n(a),y=n(i),b=n(l),S=r(c,d),h=e.colorLink||e.colorInfo,m=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:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[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:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new wn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const MM=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 NM(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},MM(r))}const LM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Fu(e){return(e+8)/e}function AM(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 FM=e=>{const t=AM(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 DM(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 oo=(e,t)=>new wn(e).setAlpha(t).toRgbString(),ul=(e,t)=>new wn(e).darken(t).toHexString(),jM=e=>{const t=cs(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]}},zM=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgLayout:ul(n,4),colorBgContainer:ul(n,0),colorBgElevated:ul(n,0),colorBgSpotlight:oo(r,.85),colorBgBlur:"transparent",colorBorder:ul(n,15),colorBorderSecondary:ul(n,6)}};function BM(e){const t=Object.keys(hw).map(n=>{const r=cs(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),TM(e,{generateColorPalettes:jM,generateNeutralColorPalettes:zM})),FM(e.fontSize)),DM(e)),LM(e)),NM(e))}const yw=tm(BM),fm={token:ds,override:{override:ds},hashed:!0},bw=G.createContext(fm),vg="anticon",kM=["outlined","borderless","filled"],HM=(e,t)=>t||(e?`ant-${e}`:"ant"),dt=u.createContext({getPrefixCls:HM,iconPrefixCls:vg}),VM=`-ant-${Date.now()}-${Math.random()}`;function WM(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 wn(i),c=cs(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 wn(t.primaryColor),l=cs(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 wn(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 UM(e,t){const n=WM(e,t);Fn()&&fo(n,`${VM}-dynamic-theme`)}const La=u.createContext(!1),Sw=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),KM=e=>{let{children:t,size:n}=e;const r=u.useContext(Di);return u.createElement(Di.Provider,{value:n||r},t)};function GM(){const e=u.useContext(La),t=u.useContext(Di);return{componentDisabled:e,componentSize:t}}const qM="5.19.0";function hf(e){return e>=0&&e<=255}function uu(e,t){const{r:n,g:r,b:o,a}=new wn(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new wn(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),v=Math.round((o-s*(1-c))/c);if(hf(d)&&hf(f)&&hf(v))return new wn({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new wn({r:n,g:r,b:o,a:1}).toRgbString()}var QM=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 Cw(e){const{override:t}=e,n=QM(e,["override"]),r=Object.assign({},t);Object.keys(ds).forEach(v=>{delete r[v]});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 v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:uu(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:uu(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:uu(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:uu(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 wn("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new wn("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new wn("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 V0=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 ww={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Ew={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},XM={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},xw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=V0(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Cw(i),a&&Object.entries(a).forEach(l=>{let[s,c]=l;const{theme:d}=c,f=V0(c,["theme"]);let v=f;d&&(v=xw(Object.assign(Object.assign({},i),f),{override:f},d)),i[s]=v}),i};function lr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=G.useContext(bw),a=`${qM}-${t||""}`,i=n||yw,[l,s,c]=PT(i,[ds,e],{salt:a,override:r,getComputedToken:xw,formatToken:Cw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ww,ignore:Ew,preserve:XM}});return[i,c,t?s:"",l,o]}function tn(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 ji(e){var t=u.useRef(!1),n=u.useState(e),r=V(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 yf(e){return e!==void 0}function ar(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,l=ji(function(){return yf(o)?o:yf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=V(l,2),c=s[0],d=s[1],f=o!==void 0?o:c,v=i?i(f):f,g=tn(a),y=ji([f]),b=V(y,2),S=b[0],h=b[1];rm(function(){var p=S[0];c!==p&&g(c,p)},[S]),rm(function(){yf(o)||d(o)},[o]);var m=tn(function(p,C){d(p,C),h([f],C)});return[v,m]}const YM=1e3*60*10;let JM=function(){function e(){gn(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return hn(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>YM&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}])}();const W0=new JM;function ZM(e,t){return G.useMemo(()=>{const n=W0.get(t);if(n)return n;const r=e();return W0.set(t,r),r},t)}const zi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},to=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}},mg=()=>({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"}}),Gi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),eN=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"}}}),tN=(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})}},nN=e=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),dd=e=>({"&:focus-visible":Object.assign({},nN(e))});function rN(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 Rw=typeof CSSINJS_STATISTIC<"u";let vm=!0;function Ut(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Rw)return Object.assign.apply(Object,[{}].concat(t));vm=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),vm=!0,r}const U0={};function oN(){}const aN=e=>{let t,n=e,r=oN;return Rw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return vm&&t.add(a),o[a]}}),r=(o,a)=>{var i;U0[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=U0[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},$w=(e,t)=>{const[n,r]=lr();return lm({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({},mg()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Ow=(e,t,n)=>{var r;return typeof n=="function"?n(Ut(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},Pw=(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},K0=(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 pg(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,v,g]=lr(),{getPrefixCls:y,iconPrefixCls:b,csp:S}=u.useContext(dt),h=y(),m=g?"css":"js",p=ZM(()=>{const R=new Set;return g&&Object.keys(r.unitless||{}).forEach(O=>{R.add(_u(O,g.prefix)),R.add(_u(O,K0(a,g.prefix)))}),iT(m,R)},[m,a,g==null?void 0:g.prefix]),{max:C,min:w}=rN(m),x={theme:c,token:v,hashId:f,nonce:()=>S==null?void 0:S.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return lm(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":eN(v)}]),$w(b,S),[lm(Object.assign(Object.assign({},x),{path:[i,l,b]}),()=>{if(r.injectStyle===!1)return[];const{token:R,flush:O}=aN(v),_=Ow(a,d,n),A=`.${l}`,M=Pw(a,d,_,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(_).forEach(H=>{_[H]=`var(${_u(H,K0(a,g.prefix))})`});const D=Ut(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:tN(D,l,s,r.resetFont),I]}),f]}}const _w=(e,t,n,r)=>{const o=pg(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:s=l}=i;return o(l,s),null}},iN=(e,t,n)=>{const{unitless:r,injectStyle:o=!0,prefixToken:a}=n,i=s=>{let{rootCls:c,cssVar:d}=s;const[,f]=lr();return nM({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:r,ignore:Ew,token:f,scope:c},()=>{const v=Ow(e,f,t),g=Pw(e,f,v,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(v).forEach(y=>{g[a(y)]=g[y],delete g[y]}),g}),null};return s=>{const[,,,,c]=lr();return[d=>o&&c?G.createElement(G.Fragment,null,G.createElement(i,{rootCls:s,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},Pr=(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({},ww),{[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=pg(e,t,n,s),d=iN(o,n,s);return function(f){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;const[,g]=c(f,v),[y,b]=d(v);return[y,g,b]}},lN=Object.assign({},$a),{useId:G0}=lN,sN=()=>"",uN=typeof G0>"u"?sN:G0;function cN(e,t,n){var r;sM();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},fm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:fm.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=uN();return Rs(()=>{var l,s;if(!e)return t;const c=Object.assign({},a.components);Object.keys(e.components||{}).forEach(v=>{c[v]=Object.assign(Object.assign({},c[v]),e.components[v])});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!ls(c,f,!0)}))}var dN=["children"],Iw=u.createContext({});function fN(e){var t=e.children,n=it(e,dN);return u.createElement(Iw.Provider,{value:n},t)}var vN=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);function mN(e){var t=u.useReducer(function(l){return l+1},0),n=V(t,2),r=n[1],o=u.useRef(e),a=tn(function(){return o.current}),i=tn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[a,i]}var Io="none",cu="appear",du="enter",fu="leave",q0="none",Ar="prepare",hi="start",yi="active",gg="end",Tw="prepared";function Q0(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 pN(e,t){var n={animationend:Q0("Animation","AnimationEnd"),transitionend:Q0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var gN=pN(Fn(),typeof window<"u"?window:{}),Mw={};if(Fn()){var hN=document.createElement("div");Mw=hN.style}var vu={};function Nw(e){if(vu[e])return vu[e];var t=gN[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 Mw)return vu[e]=t[a],vu[e]}return""}var Lw=Nw("animationend"),Aw=Nw("transitionend"),Fw=!!(Lw&&Aw),X0=Lw||"animationend",Y0=Aw||"transitionend";function J0(e,t){if(!e)return null;if(Ae(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const yN=function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(Y0,e),o.removeEventListener(X0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Y0,e),o.addEventListener(X0,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var Dw=Fn()?u.useLayoutEffect:u.useEffect;const bN=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 SN=[Ar,hi,yi,gg],CN=[Ar,Tw],jw=!1,wN=!0;function zw(e){return e===yi||e===gg}const EN=function(e,t,n){var r=ji(q0),o=V(r,2),a=o[0],i=o[1],l=bN(),s=V(l,2),c=s[0],d=s[1];function f(){i(Ar,!0)}var v=t?CN:SN;return Dw(function(){if(a!==q0&&a!==gg){var g=v.indexOf(a),y=v[g+1],b=n(a);b===jw?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 xN(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,v=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,S=r.onEnterStart,h=r.onLeaveStart,m=r.onAppearActive,p=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,R=r.onVisibleChanged,O=ji(),_=V(O,2),A=_[0],M=_[1],D=mN(Io),I=V(D,2),H=I[0],F=I[1],P=ji(null),$=V(P,2),L=$[0],N=$[1],T=H(),B=u.useRef(!1),k=u.useRef(null);function W(){return n()}var K=u.useRef(!1);function ee(){F(Io),N(null,!0)}var Q=tn(function(ve){var se=H();if(se!==Io){var Ee=W();if(!(ve&&!ve.deadline&&ve.target!==Ee)){var Ne=K.current,Se;se===cu&&Ne?Se=w==null?void 0:w(Ee,ve):se===du&&Ne?Se=x==null?void 0:x(Ee,ve):se===fu&&Ne&&(Se=E==null?void 0:E(Ee,ve)),Ne&&Se!==!1&&ee()}}}),ae=yN(Q),ce=V(ae,1),ne=ce[0],X=function(se){switch(se){case cu:return j(j(j({},Ar,v),hi,b),yi,m);case du:return j(j(j({},Ar,g),hi,S),yi,p);case fu:return j(j(j({},Ar,y),hi,h),yi,C);default:return{}}},te=u.useMemo(function(){return X(T)},[T]),ie=EN(T,!e,function(ve){if(ve===Ar){var se=te[Ar];return se?se(W()):jw}if(fe in te){var Ee;N(((Ee=te[fe])===null||Ee===void 0?void 0:Ee.call(te,W(),null))||null)}return fe===yi&&T!==Io&&(ne(W()),d>0&&(clearTimeout(k.current),k.current=setTimeout(function(){Q({deadline:!0})},d))),fe===Tw&&ee(),wN}),Y=V(ie,2),oe=Y[0],fe=Y[1],Pe=zw(fe);K.current=Pe,Dw(function(){M(t);var ve=B.current;B.current=!0;var se;!ve&&t&&l&&(se=cu),ve&&t&&a&&(se=du),(ve&&!t&&c||!ve&&f&&!t&&c)&&(se=fu);var Ee=X(se);se&&(e||Ee[Ar])?(F(se),oe()):F(Io)},[t]),u.useEffect(function(){(T===cu&&!l||T===du&&!a||T===fu&&!c)&&F(Io)},[l,a,c]),u.useEffect(function(){return function(){B.current=!1,clearTimeout(k.current)}},[]);var me=u.useRef(!1);u.useEffect(function(){A&&(me.current=!0),A!==void 0&&T===Io&&((me.current||A)&&(R==null||R(A)),me.current=!0)},[A,T]);var le=L;return te[Ar]&&fe===hi&&(le=z({transition:"none"},le)),[T,fe,le,A??t]}function RN(e){var t=e;Ae(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,v=o.motionName,g=o.leavedClassName,y=o.eventProps,b=u.useContext(Iw),S=b.motion,h=n(o,S),m=u.useRef(),p=u.useRef();function C(){try{return m.current instanceof HTMLElement?m.current:Ml(p.current)}catch{return null}}var w=xN(h,l,C,o),x=V(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){m.current=L,ng(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 H;R===Ar?H="prepare":zw(R)?H="active":R===hi&&(H="start");var F=J0(v,"".concat(E,"-").concat(H));D=f(z(z({},I),{},{className:q(J0(v,E),j(j({},F,F&&H),v,typeof v=="string")),style:O}),M)}if(u.isValidElement(D)&&aa(D)){var P=D,$=P.ref;$||(D=u.cloneElement(D,{ref:M}))}return u.createElement(vN,{ref:p},D)});return r.displayName="CSSMotion",r}const wo=RN(Fw);var mm="add",pm="keep",gm="remove",bf="removed";function $N(e){var t;return e&&Ae(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map($N)}function ON(){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=hm(e),i=hm(t);a.forEach(function(c){for(var d=!1,f=r;f<o;f+=1){var v=i[f];if(v.key===c.key){r<f&&(n=n.concat(i.slice(r,f).map(function(g){return z(z({},g),{},{status:mm})})),r=f),n.push(z(z({},v),{},{status:pm})),r+=1,d=!0;break}}d||n.push(z(z({},c),{},{status:gm}))}),r<o&&(n=n.concat(i.slice(r).map(function(c){return z(z({},c),{},{status:mm})})));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,v=d.status;return f!==c||v!==gm}),n.forEach(function(d){d.key===c&&(d.status=pm)})}),n}var PN=["component","children","onVisibleChanged","onAllRemoved"],_N=["status"],IN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function TN(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;gn(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)),j(lt(i),"state",{keyEntities:[]}),j(lt(i),"removeKey",function(d){var f=i.state.keyEntities,v=f.map(function(g){return g.key!==d?g:z(z({},g),{},{status:bf})});return i.setState({keyEntities:v}),v.filter(function(g){var y=g.status;return y!==bf}).length}),i}return hn(a,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,d=c.component,f=c.children,v=c.onVisibleChanged,g=c.onAllRemoved,y=it(c,PN),b=d||u.Fragment,S={};return IN.forEach(function(h){S[h]=y[h],delete y[h]}),delete y.keys,u.createElement(b,y,s.map(function(h,m){var p=h.status,C=it(h,_N),w=p===mm||p===pm;return u.createElement(t,be({},S,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(E){if(v==null||v(E,{key:C.key}),!E){var R=l.removeKey(C.key);R===0&&g&&g()}}}),function(x,E){return f(z(z({},x),{},{index:m}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,d=s.keyEntities,f=hm(c),v=ON(d,f);return{keyEntities:v.filter(function(g){var y=d.find(function(b){var S=b.key;return g.key===S});return!(y&&y.status===bf&&g.status===gm)})}}}]),a}(u.Component);return j(n,"defaultProps",{component:"div"}),n}const dk=TN(Fw);function MN(e){const{children:t}=e,[,n]=lr(),{motion:r}=n,o=u.useRef(!1);return o.current=o.current||r===!1,o.current?u.createElement(fN,{motion:r},t):t}const NN=()=>null;var LN=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 AN=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Bw="ant";let Sc,kw,Hw,Vw;function Du(){return Sc||Bw}function FN(){return kw||vg}function DN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const jN=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Sc=t),n!==void 0&&(kw=n),"holderRender"in e&&(Vw=o),r&&(DN(r)?UM(Du(),r):Hw=r)},zN=()=>({getPrefixCls:(e,t)=>t||(e?`${Du()}-${e}`:Du()),getIconPrefixCls:FN,getRootPrefixCls:()=>Sc||Du(),getTheme:()=>Hw,holderRender:Vw}),BN=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:v,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:b,parentContext:S,iconPrefixCls:h,theme:m,componentDisabled:p,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:_,typography:A,checkbox:M,descriptions:D,divider:I,drawer:H,skeleton:F,steps:P,image:$,layout:L,list:N,mentions:T,modal:B,progress:k,result:W,slider:K,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:me,tag:le,table:ve,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:Fe,notification:pe,tree:ot,colorPicker:ze,datePicker:xe,rangePicker:Ce,flex:He,wave:Be,dropdown:et,warning:vt,tour:ct,floatButtonGroup:qe,variant:st,inputNumber:ut,treeSelect:Nt}=e,yt=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||vg,Ft=n||S.csp;$w(Et,Ft);const bt=cN(m,S.theme,{prefixCls:yt("")}),Je={csp:Ft,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||b,direction:c,space:d,virtual:f,popupMatchSelectWidth:g??v,popupOverflow:y,getPrefixCls:yt,iconPrefixCls:Et,theme:bt,segmented:C,statistic:w,spin:x,calendar:E,carousel:R,cascader:O,collapse:_,typography:A,checkbox:M,descriptions:D,divider:I,drawer:H,skeleton:F,steps:P,image:$,input:ce,textArea:ne,layout:L,list:N,mentions:T,modal:B,progress:k,result:W,slider:K,breadcrumb:ee,menu:Q,pagination:ae,empty:X,badge:te,radio:ie,rate:Y,switch:oe,transfer:fe,avatar:Pe,message:me,tag:le,table:ve,card:se,tabs:Ee,timeline:Ne,timePicker:Se,upload:Fe,notification:pe,tree:ot,colorPicker:ze,datePicker:xe,rangePicker:Ce,flex:He,wave:Be,dropdown:et,warning:vt,tour:ct,floatButtonGroup:qe,variant:st,inputNumber:ut,treeSelect:Nt},je=Object.assign({},S);Object.keys(Je).forEach(de=>{Je[de]!==void 0&&(je[de]=Je[de])}),AN.forEach(de=>{const we=e[de];we&&(je[de]=we)}),typeof r<"u"&&(je.button=Object.assign({autoInsertSpace:r},je.button));const ke=Rs(()=>je,je,(de,we)=>{const he=Object.keys(de),Ie=Object.keys(we);return he.length!==Ie.length||he.some(Ve=>de[Ve]!==we[Ve])}),Le=u.useMemo(()=>({prefixCls:Et,csp:Ft}),[Et,Ft]);let ge=u.createElement(u.Fragment,null,u.createElement(NN,{dropdownMatchSelectWidth:v}),t);const Xe=u.useMemo(()=>{var de,we,he,Ie;return gi(((de=Na.Form)===null||de===void 0?void 0:de.defaultValidateMessages)||{},((he=(we=ke.locale)===null||we===void 0?void 0:we.Form)===null||he===void 0?void 0:he.defaultValidateMessages)||{},((Ie=ke.form)===null||Ie===void 0?void 0:Ie.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ke,i==null?void 0:i.validateMessages]);Object.keys(Xe).length>0&&(ge=u.createElement(uM.Provider,{value:Xe},ge)),l&&(ge=u.createElement(mM,{locale:l,_ANT_MARK__:vM},ge)),(Et||Ft)&&(ge=u.createElement(dg.Provider,{value:Le},ge)),s&&(ge=u.createElement(KM,{size:s},ge)),ge=u.createElement(MN,null,ge);const tt=u.useMemo(()=>{const de=bt||{},{algorithm:we,token:he,components:Ie,cssVar:Ve}=de,Ze=LN(de,["algorithm","token","components","cssVar"]),Pt=we&&(!Array.isArray(we)||we.length>0)?tm(we):yw,pt={};Object.entries(Ie||{}).forEach(Re=>{let[We,xt]=Re;const St=Object.assign({},xt);"algorithm"in St&&(St.algorithm===!0?St.theme=Pt:(Array.isArray(St.algorithm)||typeof St.algorithm=="function")&&(St.theme=tm(St.algorithm)),delete St.algorithm),pt[We]=St});const Ue=Object.assign(Object.assign({},ds),he);return Object.assign(Object.assign({},Ze),{theme:Pt,token:Ue,components:pt,override:Object.assign({override:Ue},pt),cssVar:Ve})},[bt]);return m&&(ge=u.createElement(bw.Provider,{value:tt},ge)),ke.warning&&(ge=u.createElement(lM.Provider,{value:ke.warning},ge)),p!==void 0&&(ge=u.createElement(Sw,{disabled:p},ge)),u.createElement(dt.Provider,{value:ke},ge)},qi=e=>{const t=u.useContext(dt),n=u.useContext(fg);return u.createElement(BN,Object.assign({parentContext:t,legacyLocale:n},e))};qi.ConfigContext=dt;qi.SizeContext=Di;qi.config=jN;qi.useConfig=GM;Object.defineProperty(qi,"SizeContext",{get:()=>Di});const $s=qi;var kN={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 Ww(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function HN(e){return Ww(e)instanceof ShadowRoot}function Cc(e){return HN(e)?Ww(e):null}function VN(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function WN(e,t){Tn(e,"[@ant-design/icons] ".concat(t))}function Z0(e){return Ae(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ae(e.icon)==="object"||typeof e.icon=="function")}function ey(){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[VN(n)]=r}return t},{})}function ym(e,t,n){return n?G.createElement(e.tag,z(z({key:t},ey(e.attrs)),n),(e.children||[]).map(function(r,o){return ym(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):G.createElement(e.tag,z({key:t},ey(e.attrs)),(e.children||[]).map(function(r,o){return ym(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Uw(e){return cs(e)[0]}function Kw(e){return e?Array.isArray(e)?e:[e]:[]}var UN=`
.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);
}
}
`,KN=function(t){var n=u.useContext(dg),r=n.csp,o=n.prefixCls,a=UN;o&&(a=a.replace(/anticon/g,o)),u.useEffect(function(){var i=t.current,l=Cc(i);fo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},GN=["icon","className","onClick","style","primaryColor","secondaryColor"],Ll={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qN(e){var t=e.primaryColor,n=e.secondaryColor;Ll.primaryColor=t,Ll.secondaryColor=n||Uw(t),Ll.calculated=!!n}function QN(){return z({},Ll)}var Qi=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,s=it(t,GN),c=u.useRef(),d=Ll;if(i&&(d={primaryColor:i,secondaryColor:l||Uw(i)}),KN(c),WN(Z0(n),"icon should be icon definiton, but got ".concat(n)),!Z0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ym(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}))};Qi.displayName="IconReact";Qi.getTwoToneColors=QN;Qi.setTwoToneColors=qN;function Gw(e){var t=Kw(e),n=V(t,2),r=n[0],o=n[1];return Qi.setTwoToneColors({primaryColor:r,secondaryColor:o})}function XN(){var e=Qi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var YN=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gw(dm.primary);var cn=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,YN),d=u.useContext(dg),f=d.prefixCls,v=f===void 0?"anticon":f,g=d.rootClassName,y=q(g,v,j(j({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-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=Kw(s),m=V(h,2),p=m[0],C=m[1];return u.createElement("span",be({role:"img","aria-label":r.name},c,{ref:t,tabIndex:b,onClick:l,className:y}),u.createElement(Qi,{icon:r,primaryColor:p,secondaryColor:C,style:S}))});cn.displayName="AntdIcon";cn.getTwoToneColor=XN;cn.setTwoToneColor=Gw;var JN=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:kN}))},ZN=u.forwardRef(JN),eL={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"},tL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:eL}))},hg=u.forwardRef(tL),nL={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"},rL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:nL}))},Os=u.forwardRef(rL),oL={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"},aL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:oL}))},iL=u.forwardRef(aL),lL={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"},sL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:lL}))},uL=u.forwardRef(sL),cL=`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`,dL=`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`,fL="".concat(cL," ").concat(dL).split(/[\s\n]+/),vL="aria-",mL="data-";function ty(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"||ty(o,vL))||n.data&&ty(o,mL)||n.attr&&fL.includes(o))&&(r[o]=e[o])}),r}function pL(e){return e&&G.isValidElement(e)&&e.type===G.Fragment}const gL=(e,t,n)=>G.isValidElement(e)?G.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function fs(e,t){return gL(e,e,t)}const ka=e=>{const[,,,,t]=lr();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}}},hL={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"},yL=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:hL}))},qw=u.forwardRef(yL);const Qw=G.createContext(void 0),fa=100,bL=10,Xw=fa*bL,Yw={Modal:fa,Drawer:fa,Popover:fa,Popconfirm:fa,Tooltip:fa,Tour:fa},SL={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function CL(e){return e in Yw}function Jw(e,t){const[,n]=lr(),r=G.useContext(Qw),o=CL(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+Yw[e],a=Math.min(a,n.zIndexPopupBase+Xw)):a+=SL[e],[r===void 0?t:a,a]}function wL(){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 Dn(){Dn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(F,P,$){F[P]=$.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(F,P,$){return Object.defineProperty(F,P,{value:$,enumerable:!0,configurable:!0,writable:!0}),F[P]}try{c({},"")}catch{c=function($,L,N){return $[L]=N}}function d(F,P,$,L){var N=P&&P.prototype instanceof h?P:h,T=Object.create(N.prototype),B=new I(L||[]);return o(T,"_invoke",{value:_(F,$,B)}),T}function f(F,P,$){try{return{type:"normal",arg:F.call(P,$)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var v="suspendedStart",g="suspendedYield",y="executing",b="completed",S={};function h(){}function m(){}function p(){}var C={};c(C,i,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(H([])));x&&x!==n&&r.call(x,i)&&(C=x);var E=p.prototype=h.prototype=Object.create(C);function R(F){["next","throw","return"].forEach(function(P){c(F,P,function($){return this._invoke(P,$)})})}function O(F,P){function $(N,T,B,k){var W=f(F[N],F,T);if(W.type!=="throw"){var K=W.arg,ee=K.value;return ee&&Ae(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(Q){$("next",Q,B,k)},function(Q){$("throw",Q,B,k)}):P.resolve(ee).then(function(Q){K.value=Q,B(K)},function(Q){return $("throw",Q,B,k)})}k(W.arg)}var L;o(this,"_invoke",{value:function(T,B){function k(){return new P(function(W,K){$(T,B,W,K)})}return L=L?L.then(k,k):k()}})}function _(F,P,$){var L=v;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 B=$.delegate;if(B){var k=A(B,$);if(k){if(k===S)continue;return k}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(L===v)throw L=b,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);L=y;var W=f(F,P,$);if(W.type==="normal"){if(L=$.done?b:g,W.arg===S)continue;return{value:W.arg,done:$.done}}W.type==="throw"&&(L=b,$.method="throw",$.arg=W.arg)}}}function A(F,P){var $=P.method,L=F.iterator[$];if(L===e)return P.delegate=null,$==="throw"&&F.iterator.return&&(P.method="return",P.arg=e,A(F,P),P.method==="throw")||$!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+$+"' method")),S;var N=f(L,F.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[F.resultName]=T.value,P.next=F.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(F){var P={tryLoc:F[0]};1 in F&&(P.catchLoc=F[1]),2 in F&&(P.finallyLoc=F[2],P.afterLoc=F[3]),this.tryEntries.push(P)}function D(F){var P=F.completion||{};P.type="normal",delete P.arg,F.completion=P}function I(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(M,this),this.reset(!0)}function H(F){if(F||F===""){var P=F[i];if(P)return P.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var $=-1,L=function N(){for(;++$<F.length;)if(r.call(F,$))return N.value=F[$],N.done=!1,N;return N.value=e,N.done=!0,N};return L.next=L}}throw new TypeError(Ae(F)+" is not iterable")}return m.prototype=p,o(E,"constructor",{value:p,configurable:!0}),o(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(F){var P=typeof F=="function"&&F.constructor;return!!P&&(P===m||(P.displayName||P.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,p):(F.__proto__=p,c(F,s,"GeneratorFunction")),F.prototype=Object.create(E),F},t.awrap=function(F){return{__await:F}},R(O.prototype),c(O.prototype,l,function(){return this}),t.AsyncIterator=O,t.async=function(F,P,$,L,N){N===void 0&&(N=Promise);var T=new O(d(F,P,$,L),N);return t.isGeneratorFunction(P)?T:T.next().then(function(B){return B.done?B.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(F){var P=Object(F),$=[];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=H,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(K,ee){return B.type="throw",B.arg=P,$.next=K,ee&&($.method="next",$.arg=e),!!ee}for(var N=this.tryEntries.length-1;N>=0;--N){var T=this.tryEntries[N],B=T.completion;if(T.tryLoc==="root")return L("end");if(T.tryLoc<=this.prev){var k=r.call(T,"catchLoc"),W=r.call(T,"finallyLoc");if(k&&W){if(this.prev<T.catchLoc)return L(T.catchLoc,!0);if(this.prev<T.finallyLoc)return L(T.finallyLoc)}else if(k){if(this.prev<T.catchLoc)return L(T.catchLoc,!0)}else{if(!W)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 B=T?T.completion:{};return B.type=P,B.arg=$,T?(this.method="next",this.next=T.finallyLoc,S):this.complete(B)},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:H(P),resultName:$,nextLoc:L},this.method==="next"&&(this.arg=e),S}},t}function ny(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){ny(a,r,o,i,l,"next",s)}function l(s){ny(a,r,o,i,l,"throw",s)}i(void 0)})}}var Ps=z({},VO),EL=Ps.version,xL=Ps.render,RL=Ps.unmountComponentAtNode,fd;try{var $L=Number((EL||"").split(".")[0]);$L>=18&&(fd=Ps.createRoot)}catch{}function ry(e){var t=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ae(t)==="object"&&(t.usingClientEntryPoint=e)}var wc="__rc_react_root__";function OL(e,t){ry(!0);var n=t[wc]||fd(t);ry(!1),n.render(e),t[wc]=n}function PL(e,t){xL(e,t)}function Zw(e,t){if(fd){OL(e,t);return}PL(e,t)}function _L(e){return bm.apply(this,arguments)}function bm(){return bm=Ha(Dn().mark(function e(t){return Dn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[wc])===null||o===void 0||o.unmount(),delete t[wc]}));case 1:case"end":return r.stop()}},e)})),bm.apply(this,arguments)}function IL(e){RL(e)}function eE(e){return Sm.apply(this,arguments)}function Sm(){return Sm=Ha(Dn().mark(function e(t){return Dn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(fd===void 0){r.next=2;break}return r.abrupt("return",_L(t));case 2:IL(t);case 3:case"end":return r.stop()}},e)})),Sm.apply(this,arguments)}const Sf=()=>({height:0,opacity:0}),oy=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},TL=e=>({height:e?e.offsetHeight:0}),Cf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",fk=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Sf,onEnterStart:Sf,onAppearActive:oy,onEnterActive:oy,onLeaveStart:TL,onLeaveActive:Sf,onAppearEnd:Cf,onEnterEnd:Cf,onLeaveEnd:Cf,motionDeadline:500}},Bi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,yg=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},ML=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(",")}}}}},NL=pg("Wave",e=>[ML(e)]),tE=`${Bw}-wave-target`;function LL(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 wf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&LL(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function AL(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wf(t)?t:wf(n)?n:wf(r)?r:null}function Ef(e){return Number.isNaN(e)?0:e}const FL=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,v]=u.useState(0),[g,y]=u.useState(0),[b,S]=u.useState(0),[h,m]=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(AL(n));const E=x.position==="static",{borderLeftWidth:R,borderTopWidth:O}=x;d(E?n.offsetLeft:Ef(-parseFloat(R))),v(E?n.offsetTop:Ef(-parseFloat(O))),y(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:A,borderBottomLeftRadius:M,borderBottomRightRadius:D}=x;s([_,A,D,M].map(I=>Ef(parseFloat(I))))}if(u.useEffect(()=>{if(n){const x=Rt(()=>{C(),m(!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(tE));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;eE(O).then(()=>{O==null||O.remove()})}return!1}},(x,E)=>{let{className:R}=x;return u.createElement("div",{ref:Ur(o,E),className:q(t,R,{"wave-quick":w}),style:p})})},DL=(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),Zw(u.createElement(FL,Object.assign({},t,{target:e})),o)},jL=(e,t,n)=>{const{wave:r}=u.useContext(dt),[,o,a]=lr(),i=tn(c=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${tE}`)||d,{showEffect:v}=r||{};(v||DL)(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)})}},zL=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(dt),a=u.useRef(null),i=o("wave"),[,l]=NL(i),s=jL(a,q(i,l),r);if(G.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=v=>{!yg(v.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||s(v)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!G.isValidElement(t))return t??null;const c=aa(t)?Ur(t.ref,a):a;return fs(t,{ref:c})},Eo=e=>{const t=G.useContext(Di);return G.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},BL=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},kL=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"}}}},HL=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}}}},VL=Pr("Space",e=>{const t=Ut(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[kL(t),HL(t),BL(t)]},()=>({}),{resetStyle:!1});var nE=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 vd=u.createContext(null),md=(e,t)=>{const n=u.useContext(vd),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}},WL=e=>{let{children:t}=e;return u.createElement(vd.Provider,{value:null},t)},UL=e=>{var{children:t}=e,n=nE(e,["children"]);return u.createElement(vd.Provider,{value:n},t)},vk=e=>{const{getPrefixCls:t,direction:n}=u.useContext(dt),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:s,children:c}=e,d=nE(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(p=>r??p),v=t("space-compact",i),[g,y]=VL(v),b=q(v,y,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:o==="vertical"},l,s),S=u.useContext(vd),h=Zo(c),m=u.useMemo(()=>h.map((p,C)=>{const w=(p==null?void 0:p.key)||`${v}-item-${C}`;return u.createElement(UL,{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),m))};var KL=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 rE=u.createContext(void 0),GL=e=>{const{getPrefixCls:t,direction:n}=u.useContext(dt),{prefixCls:r,size:o,className:a}=e,i=KL(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=lr();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(rE.Provider,{value:o},u.createElement("div",Object.assign({},i,{className:d})))},ay=/^[\u4e00-\u9fa5]{2}$/,Cm=ay.test.bind(ay);function oE(e){return e==="danger"?{danger:!0}:{type:e}}function iy(e){return typeof e=="string"}function xf(e){return e==="text"||e==="link"}function qL(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&iy(e.type)&&Cm(e.props.children)?fs(e,{children:e.props.children.split("").join(n)}):iy(e)?Cm(e)?G.createElement("span",null,e.split("").join(n)):G.createElement("span",null,e):pL(e)?G.createElement("span",null,e):e}function QL(e,t){let n=!1;const r=[];return G.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}),G.Children.map(r,o=>qL(o,t))}const aE=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=q(`${a}-icon`,n);return G.createElement("span",{ref:t,className:i,style:r},o)}),ly=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,i=q(`${n}-loading-icon`,r);return G.createElement(aE,{prefixCls:n,className:i,style:o,ref:t},G.createElement(qw,{className:a}))}),Rf=()=>({width:0,opacity:0,transform:"scale(0)"}),$f=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),XL=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?G.createElement(ly,{prefixCls:t,className:o,style:a}):G.createElement(wo,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Rf,onAppearActive:$f,onEnterStart:Rf,onEnterActive:$f,onLeaveStart:$f,onLeaveActive:Rf},(l,s)=>{let{className:c,style:d}=l;return G.createElement(ly,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:s,iconClassName:c})})},sy=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),YL=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}},sy(`${t}-primary`,o),sy(`${t}-danger`,a)]}},iE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ut(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},lE=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),v=(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:v,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*v)/2-e.lineWidth,0)}},JL=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({},dd(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}}),ZL=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),eA=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),tA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vs=(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}})}),bg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},tA(e))}),sE=e=>Object.assign({},bg(e)),Ec=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sE(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})),vs(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})),vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bg(e))}),nA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sE(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})),vs(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})),vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bg(e))}),rA=e=>Object.assign(Object.assign({},uE(e)),{borderStyle:"dashed"}),oA=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ec(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ec(e))}),aA=e=>Object.assign(Object.assign(Object.assign({},yo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ec(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ec(e)),yo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),iA=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uE(e),[`${t}-primary`]:nA(e),[`${t}-dashed`]:rA(e),[`${t}-link`]:oA(e),[`${t}-text`]:aA(e),[`${t}-ghost`]:vs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Sg=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}`]:ZL(e)},{[`${n}${n}-round${t}`]:eA(e)}]},lA=e=>{const t=Ut(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Sg(t,e.componentCls)},sA=e=>{const t=Ut(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 Sg(t,`${e.componentCls}-sm`)},uA=e=>{const t=Ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Sg(t,`${e.componentCls}-lg`)},cA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},dA=Pr("Button",e=>{const t=iE(e);return[JL(t),lA(t),sA(t),uA(t),cA(t),iA(t),YL(t)]},lE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fA(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 vA(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 Cg(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({},fA(e,r,t)),vA(n,r,t))}}function mA(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 pA(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 gA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},mA(e,t)),pA(e.componentCls,t))}}const hA=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:'""'}}}}}}},yA=_w(["Button","compact"],e=>{const t=iE(e);return[Cg(t),gA(t),hA(t)]},lE);var bA=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 SA(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 CA=G.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:v,className:g,rootClassName:y,children:b,icon:S,iconPosition:h="start",ghost:m=!1,block:p=!1,htmlType:C="button",classNames:w,style:x={},autoInsertSpace:E}=e,R=bA(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(dt),D=(n=E??(M==null?void 0:M.autoInsertSpace))!==null&&n!==void 0?n:!0,I=_("btn",i),[H,F,P]=dA(I),$=u.useContext(La),L=v??$,N=u.useContext(rE),T=u.useMemo(()=>SA(a),[a]),[B,k]=u.useState(T.loading),[W,K]=u.useState(!1),Q=Ur(t,u.createRef()),ae=u.Children.count(b)===1&&!S&&!xf(O);u.useEffect(()=>{let Se=null;T.delay>0?Se=setTimeout(()=>{Se=null,k(!0)},T.delay):k(T.loading);function Fe(){Se&&(clearTimeout(Se),Se=null)}return Fe},[T]),u.useEffect(()=>{if(!Q||!Q.current||!D)return;const Se=Q.current.textContent;ae&&Cm(Se)?W||K(!0):W&&K(!1)},[Q]);const ce=Se=>{const{onClick:Fe}=e;if(B||L){Se.preventDefault();return}Fe==null||Fe(Se)},{compactSize:ne,compactItemClassnames:X}=md(I,A),te={large:"lg",small:"sm",middle:void 0},ie=Eo(Se=>{var Fe,pe;return(pe=(Fe=d??ne)!==null&&Fe!==void 0?Fe:N)!==null&&pe!==void 0?pe:Se}),Y=ie&&te[ie]||"",oe=B?"loading":S,fe=cr(R,["navigate"]),Pe=q(I,F,P,{[`${I}-${c}`]:c!=="default"&&c,[`${I}-${O}`]:O,[`${I}-${Y}`]:Y,[`${I}-icon-only`]:!b&&b!==0&&!!oe,[`${I}-background-ghost`]:m&&!xf(O),[`${I}-loading`]:B,[`${I}-two-chinese-chars`]:W&&D&&!B,[`${I}-block`]:p,[`${I}-dangerous`]:s,[`${I}-rtl`]:A==="rtl",[`${I}-icon-end`]:h==="end"},X,g,y,M==null?void 0:M.className),me=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),ve=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&&!B?G.createElement(aE,{prefixCls:I,className:le,style:ve},S):G.createElement(XL,{existIcon:!!S,prefixCls:I,loading:B}),Ee=b||b===0?QL(b,ae&&D):null;if(fe.href!==void 0)return H(G.createElement("a",Object.assign({},fe,{className:q(Pe,{[`${I}-disabled`]:L}),href:L?void 0:fe.href,style:me,onClick:ce,ref:Q,tabIndex:L?-1:0}),se,Ee));let Ne=G.createElement("button",Object.assign({},R,{type:C,className:Pe,style:me,onClick:ce,disabled:L,ref:Q}),se,Ee,!!X&&G.createElement(yA,{key:"compact",prefixCls:I}));return xf(O)||(Ne=G.createElement(zL,{component:"Button",disabled:B},Ne)),H(Ne)}),wr=CA;wr.Group=GL;wr.__ANT_BUTTON=!0;function Of(e){return!!(e!=null&&e.then)}const cE=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),v=u.useRef(null),[g,y]=ji(!1),b=function(){a==null||a.apply(void 0,arguments)};u.useEffect(()=>{let m=null;return i&&(m=setTimeout(()=>{var p;(p=v.current)===null||p===void 0||p.focus()})),()=>{m&&clearTimeout(m)}},[]);const S=m=>{Of(m)&&(y(!0),m.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=m=>{if(f.current)return;if(f.current=!0,!d){b();return}let p;if(l){if(p=d(m),c&&!Of(p)){f.current=!1,b(m);return}}else if(d.length)p=d(a),f.current=!1;else if(p=d(),!Of(p)){b();return}S(p)};return u.createElement(wr,Object.assign({},oE(t),{onClick:h,loading:g,prefixCls:r},o,{ref:v}),n)},_s=G.createContext({}),{Provider:dE}=_s,uy=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:s}=u.useContext(_s);return o?G.createElement(cE,{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},cy=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:s}=u.useContext(_s);return G.createElement(cE,{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 fE=u.createContext(null),dy=[];function wA(e,t){var n=u.useState(function(){if(!Fn())return null;var y=document.createElement("div");return y}),r=V(n,1),o=r[0],a=u.useRef(!1),i=u.useContext(fE),l=u.useState(dy),s=V(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 v(){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 jt(function(){return e?i?i(v):v():g(),g},[e]),jt(function(){c.length&&(c.forEach(function(y){return y()}),d(dy))},[c]),[o,f]}var Pf;function vE(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,";"):"";fo(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),t)}catch(y){console.error(y),o=s,a=c}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),is(t),{width:v,height:g}}function mk(e){return typeof document>"u"?0:(Pf===void 0&&(Pf=vE()),Pf.width)}function EA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:vE(e)}function xA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var RA="rc-util-locker-".concat(Date.now()),fy=0;function $A(e){var t=!!e,n=u.useState(function(){return fy+=1,"".concat(RA,"_").concat(fy)}),r=V(n,1),o=r[0];jt(function(){if(t){var a=EA(document.body).width,i=xA();fo(`
html body {
overflow-y: hidden;
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else is(o);return function(){is(o)}},[t,o])}var OA=!1;function PA(e){return OA}var vy=function(t){return t===!1?!1:!Fn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},wg=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=V(s,2),d=c[0],f=c[1],v=d||n;u.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=u.useState(function(){return vy(o)}),y=V(g,2),b=y[0],S=y[1];u.useEffect(function(){var A=vy(o);S(A??null)});var h=wA(v&&!b),m=V(h,2),p=m[0],C=m[1],w=b??p;$A(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(!v||!Fn()||b===void 0)return null;var O=w===!1||PA(),_=l;return t&&(_=u.cloneElement(l,{ref:R})),u.createElement(fE.Provider,{value:C},O?_:Jo.createPortal(_,w))}),mE=u.createContext({});function _A(){var e=z({},$a);return e.useId}var my=0,py=_A();const pE=py?function(t){var n=py();return t||n}:function(t){var n=u.useState("ssr-id"),r=V(n,2),o=r[0],a=r[1];return u.useEffect(function(){var i=my;my+=1,a("rc_unique_".concat(i))},[]),t||o};function gy(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function hy(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 IA(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=hy(o),n.top+=hy(o,!0),n}const TA=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var yy={width:0,height:0,overflow:"hidden",outline:"none"},MA={outline:"none"},gE=G.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,v=e.bodyStyle,g=e.bodyProps,y=e.modalRender,b=e.onMouseDown,S=e.onMouseUp,h=e.holderRef,m=e.visible,p=e.forceRender,C=e.width,w=e.height,x=e.classNames,E=e.styles,R=G.useContext(mE),O=R.panel,_=Ba(h,O),A=u.useRef(),M=u.useRef(),D=u.useRef();G.useImperativeHandle(t,function(){return{focus:function(){var k;(k=D.current)===null||k===void 0||k.focus({preventScroll:!0})},changeActive:function(k){var W=document,K=W.activeElement;k&&K===M.current?A.current.focus({preventScroll:!0}):!k&&K===A.current&&M.current.focus({preventScroll:!0})}}});var I={};C!==void 0&&(I.width=C),w!==void 0&&(I.height=w);var H=l?G.createElement("div",{className:q("".concat(n,"-footer"),x==null?void 0:x.footer),style:z({},E==null?void 0:E.footer)},l):null,F=a?G.createElement("div",{className:q("".concat(n,"-header"),x==null?void 0:x.header),style:z({},E==null?void 0:E.header)},G.createElement("div",{className:"".concat(n,"-title"),id:i},a)):null,P=u.useMemo(function(){return Ae(s)==="object"&&s!==null?s:s?{closeIcon:c??G.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),$=ea(P,!0),L=Ae(s)==="object"&&s.disabled,N=s?G.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},$,{className:"".concat(n,"-close"),disabled:L}),P.closeIcon):null,T=G.createElement("div",{className:q("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},N,F,G.createElement("div",be({className:q("".concat(n,"-body"),x==null?void 0:x.body),style:z(z({},v),E==null?void 0:E.body)},g),f),H);return G.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},G.createElement("div",{tabIndex:0,ref:A,style:yy,"aria-hidden":"true"}),G.createElement("div",{ref:D,tabIndex:-1,style:MA},G.createElement(TA,{shouldUpdate:m||p},y?y(T):T)),G.createElement("div",{tabIndex:0,ref:M,style:yy,"aria-hidden":"true"}))}),hE=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,v=e.mousePosition,g=u.useRef(),y=u.useState(),b=V(y,2),S=b[0],h=b[1],m={};S&&(m.transformOrigin=S);function p(){var C=IA(g.current);h(v&&(v.x||v.y)?"".concat(v.x-C.left,"px ").concat(v.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(gE,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:z(z(z({},E),o),m),className:q(a,x)}))})});hE.displayName="Content";var NA=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))})},LA=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,v=t.wrapClassName,g=t.wrapProps,y=t.onClose,b=t.afterOpenChange,S=t.afterClose,h=t.transitionName,m=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,H=t.styles,F=u.useRef(),P=u.useRef(),$=u.useRef(),L=u.useState(i),N=V(L,2),T=N[0],B=N[1],k=pE();function W(){Jv(P.current,document.activeElement)||(F.current=document.activeElement)}function K(){if(!Jv(P.current,document.activeElement)){var oe;(oe=$.current)===null||oe===void 0||oe.focus()}}function ee(oe){if(oe)K();else{if(B(!1),x&&F.current&&d){try{F.current.focus({preventScroll:!0})}catch{}F.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&&(B(!0),W())},[i]),u.useEffect(function(){return function(){clearTimeout(ce.current)}},[]);var Y=z(z(z({zIndex:o},f),H==null?void 0:H.wrapper),{},{display:T?null:"none"});return u.createElement("div",be({className:q("".concat(r,"-root"),D)},ea(t,{data:!0})),u.createElement(NA,{prefixCls:r,visible:x&&i,motionName:gy(r,E,R),style:z(z({zIndex:o},A),H==null?void 0:H.mask),maskProps:M,className:I==null?void 0:I.mask}),u.createElement("div",be({tabIndex:-1,onKeyDown:ie,className:q("".concat(r,"-wrap"),v,I==null?void 0:I.wrapper),ref:P,onClick:te,style:Y},g),u.createElement(hE,be({},t,{onMouseDown:ne,onMouseUp:X,ref:$,closable:C,ariaId:k,prefixCls:r,visible:i&&T,onClose:Q,onVisibleChanged:ee,motionName:gy(r,h,m)}))))},yE=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=V(c,2),f=d[0],v=d[1],g=u.useMemo(function(){return{panel:s}},[s]);return u.useEffect(function(){n&&v(!0)},[n]),!o&&i&&!f?null:u.createElement(mE.Provider,{value:g},u.createElement(wg,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},u.createElement(LA,be({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),v(!1)}}))))};yE.displayName="Dialog";var ba="RC_FORM_INTERNAL_HOOKS",Mt=function(){Tn(!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}}}),xc=u.createContext(null);function wm(e){return e==null?[]:Array.isArray(e)?e:[e]}function AA(e){return e&&!!e._init}function Em(){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 xm=Em();function FA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function DA(e,t,n){if(rg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&rs(o,n.prototype),o}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!FA(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 DA(r,arguments,os(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),rs(o,r)},Rm(e)}var jA=/%[sdj%]/g,zA=function(){};function $m(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 rr(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(jA,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 BA(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function un(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||BA(t)&&typeof e=="string"&&!e)}function kA(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 by(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 HA(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ye(e[n]||[]))}),t}var Sy=function(e){ia(n,e);var t=la(n);function n(r,o){var a;return gn(this,n),a=t.call(this,"Async Validation Error"),j(lt(a),"errors",void 0),j(lt(a),"fields",void 0),a.errors=r,a.fields=o,a}return hn(n)}(Rm(Error));function VA(e,t,n,r,o){if(t.first){var a=new Promise(function(v,g){var y=function(h){return r(h),h.length?g(new Sy(h,$m(h))):v(o)},b=HA(e);by(b,n,y)});return a.catch(function(v){return v}),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(v,g){var y=function(S){if(d.push.apply(d,S),c++,c===s)return r(d),d.length?g(new Sy(d,$m(d))):v(o)};l.length||(r(d),v(o)),l.forEach(function(b){var S=e[b];i.indexOf(b)!==-1?by(S,n,y):kA(S,n,y)})});return f.catch(function(v){return v}),f}function WA(e){return!!(e&&e.message!==void 0)}function UA(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cy(e,t){return function(n){var r;return e.fullFields?r=UA(t,e.fullFields):r=t[n.field||e.fullField],WA(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 wy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ae(r)==="object"&&Ae(e[n])==="object"?e[n]=z(z({},e[n]),r):e[n]=r}}return e}var Xa="enum",KA=function(t,n,r,o,a){t[Xa]=Array.isArray(t[Xa])?t[Xa]:[],t[Xa].indexOf(n)===-1&&o.push(rr(a.messages[Xa],t.fullField,t[Xa].join(", ")))},GA=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(rr(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(rr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},qA=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,v=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(v?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(rr(a.messages[f].len,t.fullField,t.len)):l&&!s&&d<t.min?o.push(rr(a.messages[f].min,t.fullField,t.min)):s&&!l&&d>t.max?o.push(rr(a.messages[f].max,t.fullField,t.max)):l&&s&&(d<t.min||d>t.max)&&o.push(rr(a.messages[f].range,t.fullField,t.min,t.max))},bE=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||un(n,i||t.type))&&o.push(rr(a.messages.required,t.fullField))},mu;const QA=function(){if(mu)return mu;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]+:)?//)",v="(?:\\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,}))",m="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(v,"(?:localhost|").concat(g,"|").concat(y,"|").concat(b).concat(S).concat(h,")").concat(m).concat(p);return mu=new RegExp("(?:^".concat(C,"$)"),"i"),mu};var Ey={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Sl={integer:function(t){return Sl.number(t)&&parseInt(t,10)===t},float:function(t){return Sl.number(t)&&!Sl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ae(t)==="object"&&!Sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ey.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QA())},hex:function(t){return typeof t=="string"&&!!t.match(Ey.hex)}},XA=function(t,n,r,o,a){if(t.required&&n===void 0){bE(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?Sl[l](n)||o.push(rr(a.messages.types[l],t.fullField,t.type)):l&&Ae(n)!==t.type&&o.push(rr(a.messages.types[l],t.fullField,t.type))},YA=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(rr(a.messages.whitespace,t.fullField))};const mt={required:bE,whitespace:YA,type:XA,range:qA,enum:KA,pattern:GA};var JA=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a)}r(i)},ZA=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();mt.required(t,n,o,i,a,"array"),n!=null&&(mt.type(t,n,o,i,a),mt.range(t,n,o,i,a))}r(i)},e4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&mt.type(t,n,o,i,a)}r(i)},t4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"date")&&!t.required)return r();if(mt.required(t,n,o,i,a),!un(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),mt.type(t,s,o,i,a),s&&mt.range(t,s.getTime(),o,i,a)}}r(i)},n4="enum",r4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&mt[n4](t,n,o,i,a)}r(i)},o4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&(mt.type(t,n,o,i,a),mt.range(t,n,o,i,a))}r(i)},a4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&(mt.type(t,n,o,i,a),mt.range(t,n,o,i,a))}r(i)},i4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&mt.type(t,n,o,i,a)}r(i)},l4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&(mt.type(t,n,o,i,a),mt.range(t,n,o,i,a))}r(i)},s4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),n!==void 0&&mt.type(t,n,o,i,a)}r(i)},u4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"string")&&!t.required)return r();mt.required(t,n,o,i,a),un(n,"string")||mt.pattern(t,n,o,i,a)}r(i)},c4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n)&&!t.required)return r();mt.required(t,n,o,i,a),un(n)||mt.type(t,n,o,i,a)}r(i)},d4=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":Ae(n);mt.required(t,n,o,i,a,l),r(i)},f4=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(un(n,"string")&&!t.required)return r();mt.required(t,n,o,i,a,"string"),un(n,"string")||(mt.type(t,n,o,i,a),mt.range(t,n,o,i,a),mt.pattern(t,n,o,i,a),t.whitespace===!0&&mt.whitespace(t,n,o,i,a))}r(i)},_f=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,i)&&!t.required)return r();mt.required(t,n,o,l,a,i),un(n,i)||mt.type(t,n,o,l,a)}r(l)};const Al={string:f4,method:i4,number:l4,boolean:e4,regexp:c4,integer:a4,float:o4,array:ZA,object:s4,enum:r4,pattern:u4,date:t4,url:_f,hex:_f,email:_f,required:d4,any:JA};var Is=function(){function e(t){gn(this,e),j(this,"rules",null),j(this,"_messages",xm),this.define(t)}return hn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ae(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=wy(Em(),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 m=0;m<y.length;m++)h(y[m]);b.length?(S=$m(b),s(b,S)):s(null,i)}if(l.messages){var d=this.messages();d===xm&&(d=Em()),wy(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},v=l.keys||Object.keys(this.rules);v.forEach(function(y){var b=r.rules[y],S=i[y];b.forEach(function(h){var m=h;typeof m.transform=="function"&&(i===n&&(i=z({},i)),S=i[y]=m.transform(S),S!=null&&(m.type=m.type||(Array.isArray(S)?"array":Ae(S)))),typeof m=="function"?m={validator:m}:m=z({},m),m.validator=r.getValidationMethod(m),m.validator&&(m.field=y,m.fullField=m.fullField||y,m.type=r.getType(m),f[y]=f[y]||[],f[y].push({rule:m,value:S,source:i,field:y}))})});var g={};return VA(f,l,function(y,b){var S=y.rule,h=(S.type==="object"||S.type==="array")&&(Ae(S.fields)==="object"||Ae(S.defaultField)==="object");h=h&&(S.required||!S.required&&y.value),S.field=y.field;function m(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(Cy(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(Cy(S,i)):l.error&&(O=[l.error(S,rr(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],H=Array.isArray(I)?I:[I];A[D]=H.map(m.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&&!Al.hasOwnProperty(n.type))throw new Error(rr("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"?Al.required:Al[this.getType(n)]||void 0}}]),e}();j(Is,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Al[t]=n});j(Is,"warning",zA);j(Is,"messages",xm);j(Is,"validators",Al);var Zn="'${name}' is not a valid ${type}",SE={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: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:"'${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}"}},xy=Is;function v4(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Ry="CODE_LOGIC_ERROR";function Om(e,t,n,r,o){return Pm.apply(this,arguments)}function Pm(){return Pm=Ha(Dn().mark(function e(t,n,r,o,a){var i,l,s,c,d,f,v,g,y;return Dn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return i=z({},r),delete i.ruleIndex,xy.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(Ry)}}),s=null,i&&i.type==="array"&&i.defaultField&&(s=i.defaultField,delete i.defaultField),c=new xy(j({},t,[i])),d=gi(SE,o.validateMessages),c.messages(d),f=[],S.prev=10,S.next=13,Promise.resolve(c.validate(j({},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,m){var p=h.message,C=p===Ry?d.default:p;return u.isValidElement(C)?u.cloneElement(C,{key:"error_".concat(m)}):C}));case 18:if(!(!f.length&&s)){S.next=23;break}return S.next=21,Promise.all(n.map(function(h,m){return Om("".concat(t,".").concat(m),h,s,o,a)}));case 21:return v=S.sent,S.abrupt("return",v.reduce(function(h,m){return[].concat(ye(h),ye(m))},[]));case 23:return g=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=f.map(function(h){return typeof h=="string"?v4(h,g):h}),S.abrupt("return",y);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),Pm.apply(this,arguments)}function m4(e,t,n,r,o,a){var i=e.join("."),l=n.map(function(d,f){var v=d.validator,g=z(z({},d),{},{ruleIndex:f});return v&&(g.validator=function(y,b,S){var h=!1,m=function(){for(var w=arguments.length,x=new Array(w),E=0;E<w;E++)x[E]=arguments[E];Promise.resolve().then(function(){Tn(!h,"Your validator function has already return a promise. `callback` will be ignored."),h||S.apply(void 0,x)})},p=v(y,b,m);h=p&&typeof p.then=="function"&&typeof p.catch=="function",Tn(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 v=d.warningOnly,g=d.ruleIndex,y=f.warningOnly,b=f.ruleIndex;return!!v==!!y?g-b:v?1:-1}),s;if(o===!0)s=new Promise(function(){var d=Ha(Dn().mark(function f(v,g){var y,b,S;return Dn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:y=0;case 1:if(!(y<l.length)){m.next=12;break}return b=l[y],m.next=5,Om(i,t,b,r,a);case 5:if(S=m.sent,!S.length){m.next=9;break}return g([{errors:S,rule:b}]),m.abrupt("return");case 9:y+=1,m.next=1;break;case 12:v([]);case 13:case"end":return m.stop()}},f)}));return function(f,v){return d.apply(this,arguments)}}());else{var c=l.map(function(d){return Om(i,t,d,r,a).then(function(f){return{errors:f,rule:d}})});s=(o?g4(c):p4(c)).then(function(d){return Promise.reject(d)})}return s.catch(function(d){return d}),s}function p4(e){return _m.apply(this,arguments)}function _m(){return _m=Ha(Dn().mark(function e(t){return Dn().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)})),_m.apply(this,arguments)}function g4(e){return Im.apply(this,arguments)}function Im(){return Im=Ha(Dn().mark(function e(t){var n;return Dn().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)})),Im.apply(this,arguments)}function Qt(e){return wm(e)}function $y(e,t){var n={};return t.forEach(function(r){var o=Yr(e,r);n=Lr(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 CE(t,r,n)})}function CE(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 h4(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ae(e)!=="object"||Ae(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 y4(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ae(t.target)==="object"&&e in t.target?t.target[e]:t}function Oy(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 b4=["name"],gr=[];function Py(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Eg=function(e){ia(n,e);var t=la(n);function n(r){var o;if(gn(this,n),o=t.call(this,r),j(lt(o),"state",{resetCount:0}),j(lt(o),"cancelRegisterFunc",null),j(lt(o),"mounted",!1),j(lt(o),"touched",!1),j(lt(o),"dirty",!1),j(lt(o),"validatePromise",void 0),j(lt(o),"prevValidating",void 0),j(lt(o),"errors",gr),j(lt(o),"warnings",gr),j(lt(o),"cancelRegister",function(){var s=o.props,c=s.preserve,d=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,Qt(f)),o.cancelRegisterFunc=null}),j(lt(o),"getNamePath",function(){var s=o.props,c=s.name,d=s.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ye(v),ye(c)):[]}),j(lt(o),"getRules",function(){var s=o.props,c=s.rules,d=c===void 0?[]:c,f=s.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})}),j(lt(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),j(lt(o),"metaCache",null),j(lt(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var d=z(z({},o.getMeta()),{},{destroy:s});ls(o.metaCache,d)||c(d),o.metaCache=d}else o.metaCache=null}),j(lt(o),"onStoreChange",function(s,c,d){var f=o.props,v=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,b=f.onReset,S=d.store,h=o.getNamePath(),m=o.getValue(s),p=o.getValue(S),C=c&&Ri(c,h);switch(d.type==="valueUpdate"&&d.source==="external"&&!ls(m,p)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=gr,o.warnings=gr,o.triggerMetaEvent()),d.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=gr,o.warnings=gr,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(v){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||gr),"warnings"in w&&(o.warnings=w.warnings||gr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Ri(c,h,!0)){o.reRender();return}if(v&&!h.length&&Py(v,s,S,m,p,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=y.map(Qt);if(x.some(function(E){return Ri(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!y.length||h.length||v)&&Py(v,s,S,m,p,d)){o.reRender();return}break}v===!0&&o.reRender()}),j(lt(o),"validateRules",function(s){var c=o.getNamePath(),d=o.getValue(),f=s||{},v=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,b=Promise.resolve().then(Ha(Dn().mark(function S(){var h,m,p,C,w,x,E;return Dn().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,m=h.validateFirst,p=m===void 0?!1:m,C=h.messageVariables,w=h.validateDebounce,x=o.getRules(),v&&(x=x.filter(function(_){return _}).filter(function(_){var A=_.validateTrigger;if(!A)return!0;var M=wm(A);return M.includes(v)})),!(w&&v)){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=m4(c,d,x,s,p,C),E.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr;if(o.validatePromise===b){var A;o.validatePromise=null;var M=[],D=[];(A=_.forEach)===null||A===void 0||A.call(_,function(I){var H=I.rule.warningOnly,F=I.errors,P=F===void 0?gr:F;H?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=gr,o.warnings=gr,o.triggerMetaEvent(),o.reRender()),b}),j(lt(o),"isFieldValidating",function(){return!!o.validatePromise}),j(lt(o),"isFieldTouched",function(){return o.touched}),j(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}),j(lt(o),"getErrors",function(){return o.errors}),j(lt(o),"getWarnings",function(){return o.warnings}),j(lt(o),"isListField",function(){return o.props.isListField}),j(lt(o),"isList",function(){return o.props.isList}),j(lt(o),"isPreserve",function(){return o.props.preserve}),j(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}),j(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}}),j(lt(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Yr(s||c(!0),d)}),j(lt(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.name,f=c.trigger,v=c.validateTrigger,g=c.getValueFromEvent,y=c.normalize,b=c.valuePropName,S=c.getValueProps,h=c.fieldContext,m=v!==void 0?v: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 j({},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,H=arguments.length,F=new Array(H),P=0;P<H;P++)F[P]=arguments[P];g?I=g.apply(void 0,F):I=y4.apply(void 0,[b].concat(F)),y&&(I=y(I,R,w(!0))),E({type:"updateValue",namePath:p,value:I}),_&&_.apply(void 0,F)};var D=wm(m||[]);return D.forEach(function(I){var H=M[I];M[I]=function(){H&&H.apply(void 0,arguments);var F=o.props.rules;F&&F.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 hn(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)):(Tn(!l,"`children` of Field is not validate ReactElement."),c=l),u.createElement(u.Fragment,{key:o},c)}}]),n}(u.Component);j(Eg,"contextType",ki);j(Eg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function wE(e){var t=e.name,n=it(e,b4),r=u.useContext(ki),o=u.useContext(xc),a=t!==void 0?Qt(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),u.createElement(Eg,be({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function S4(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(xc),c=u.useRef({keys:[],id:0}),d=c.current,f=u.useMemo(function(){var b=Qt(l.prefixName)||[];return[].concat(ye(b),ye(Qt(t)))},[l.prefixName,t]),v=u.useMemo(function(){return z(z({},l),{},{prefixName:f})},[l,f]),g=u.useMemo(function(){return{getKey:function(S){var h=f.length,m=S[h];return[d.keys[m],S.slice(h+1)]}}},[f]);if(typeof r!="function")return Tn(!1,"Form.List only accepts function as children."),null;var y=function(S,h,m){var p=m.source;return p==="internal"?!1:S!==h};return u.createElement(xc.Provider,{value:g},u.createElement(ki.Provider,{value:v},u.createElement(wE,{name:[],shouldUpdate:y,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!s},function(b,S){var h=b.value,m=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=Oy(d.keys,O,_),p(Oy(A,O,_)))}}},E=m||[];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 C4(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 EE="__@field_split__";function If(e){return e.map(function(t){return"".concat(Ae(t),":").concat(t)}).join(EE)}var Ya=function(){function e(){gn(this,e),j(this,"kvs",new Map)}return hn(e,[{key:"set",value:function(n,r){this.kvs.set(If(n),r)}},{key:"get",value:function(n){return this.kvs.get(If(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(If(n))}},{key:"map",value:function(n){return ye(this.kvs.entries()).map(function(r){var o=V(r,2),a=o[0],i=o[1],l=a.split(EE);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),d=V(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),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}(),w4=["name"],E4=hn(function e(t){var n=this;gn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(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}}),j(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}):(Tn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(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=Lr(i,s,Yr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),j(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}}),j(this,"getInitialValue",function(r){var o=Yr(n.initialValues,r);return r.length?gi(o):o}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),j(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)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(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}),j(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}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=Qt(a);return o.get(i)||{INVALIDATE_NAME_PATH:Qt(a)}})}),j(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&Ae(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,v,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=(v=d).isListField)!==null&&f!==void 0&&f.call(v))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(Qt))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var o=Qt(r);return Yr(n.store,o)}),j(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:Qt(r[i]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var o=Qt(r),a=n.getFieldsError([o])[0];return a.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Qt(r),a=n.getFieldsError([o])[0];return a.warnings}),j(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(Qt),c=!1):(s=null,c=i):(s=i.map(Qt),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 v=new Ya;s.forEach(function(b){v.set(b,[])}),d.forEach(function(b){var S=b.getNamePath();s.forEach(function(h){h.every(function(m,p){return S[p]===m})&&v.update(h,function(m){return[].concat(ye(m),[b])})})});var g=function(S){return S.some(f)},y=v.map(function(b){var S=b.value;return S});return c?y.every(g):y.some(g)}),j(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),j(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(Qt);return o.some(function(i){var l=i.getNamePath();return Ri(a,l)&&i.isFieldValidating()})}),j(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),j(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 v=d.getNamePath(),g=n.getInitialValue(v);if(g!==void 0)Tn(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var y=o.get(v);if(y&&y.size>1)Tn(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(v),S=d.isListField();!S&&(!r.skipExist||b===void 0)&&n.updateStore(Lr(n.store,v,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)}),j(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(Qt);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Lr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),j(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,s=it(i,w4),c=Qt(l);a.push(c),"value"in s&&n.updateStore(Lr(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:i})}),n.notifyWatch(a)}),j(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}),j(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Yr(n.store,a);i===void 0&&n.updateStore(Lr(n.store,a,o))}}),j(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),j(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!CE(f.getNamePath(),o)})){var d=n.store;n.updateStore(Lr(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),j(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}}}),j(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()}),j(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}),j(this,"updateValue",function(r,o){var a=Qt(r),i=n.store;n.updateStore(Lr(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)))}),j(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()}),j(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),j(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=Qt(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(s),v})})});var l=function s(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(a.push(v),s(v))}})};return l(r),a}),j(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)}}),j(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(Qt):[],c=[],d=String(Date.now()),f=new Set,v=i||{},g=v.recursive,y=v.dirty;n.getFieldEntities(!0).forEach(function(m){if(l||s.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(y&&!m.isFieldDirty())){var p=m.getNamePath();if(f.add(p.join(d)),!l||Ri(s,p,g)){var C=m.validateRules(z({validateMessages:z(z({},SE),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=C4(c);n.lastValidatePromise=b,b.catch(function(m){return m}).then(function(m){var p=m.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,p,{type:"validateFinish"}),n.triggerOnFieldsChange(p,m)});var S=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(m){var p=m.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:p,outOfDate:n.lastValidatePromise!==b})});S.catch(function(m){return m});var h=s.filter(function(m){return f.has(m.join(d))});return n.triggerOnFieldsChange(h),S}),j(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 xE(e){var t=u.useRef(),n=u.useState({}),r=V(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new E4(a);t.current=i.getForm()}return[t.current]}var Tm=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),RE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=u.useContext(Tm),l=u.useRef({});return u.createElement(Tm.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),{},j({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=z({},l.current);delete d[c],l.current=d,i.unregisterForm(c)}})},a)},x4=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],R4=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,v=t.validateTrigger,g=v===void 0?"onChange":v,y=t.onValuesChange,b=t.onFieldsChange,S=t.onFinish,h=t.onFinishFailed,m=t.clearOnDestroy,p=it(t,x4),C=u.useRef(null),w=u.useContext(Tm),x=xE(i),E=V(x,1),R=E[0],O=R.getInternalHooks(ba),_=O.useSubscribe,A=O.setInitialValues,M=O.setCallbacks,D=O.setValidateMessages,I=O.setPreserve,H=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(W){if(w.triggerFormChange(r,W),b){for(var K=arguments.length,ee=new Array(K>1?K-1:0),Q=1;Q<K;Q++)ee[Q-1]=arguments[Q];b.apply(void 0,[W].concat(ee))}},onFinish:function(W){w.triggerFormFinish(r,W),S&&S(W)},onFinishFailed:h}),I(l);var F=u.useRef(null);A(o,!F.current),F.current||(F.current=!0),u.useEffect(function(){return function(){return H(m)}},[]);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(){h4(N.current||[],a||[])||R.setFields(a||[]),N.current=a},[a,R]);var T=u.useMemo(function(){return z(z({},R),{},{validateTrigger:g})},[R,g]),B=u.createElement(xc.Provider,{value:null},u.createElement(ki.Provider,{value:T},P));return d===!1?B:u.createElement(d,be({},p,{ref:C,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),R.submit()},onReset:function(W){var K;W.preventDefault(),R.resetFields(),(K=p.onReset)===null||K===void 0||K.call(p,W)}}),B)};function _y(e){try{return JSON.stringify(e)}catch{return Math.random()}}function $4(){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=AA(a)?{form:a}:a,l=i.form,s=u.useState(),c=V(s,2),d=c[0],f=c[1],v=u.useMemo(function(){return _y(d)},[d]),g=u.useRef(v);g.current=v;var y=u.useContext(ki),b=l||y,S=b&&b._init,h=Qt(r),m=u.useRef(h);return m.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):Yr(D,m.current)},R=x(function(_,A){var M=E(_,A),D=_y(M);g.current!==D&&(g.current=D,f(M))}),O=E(p(),p(!0));return d!==O&&f(O),R}},[S]),d}var O4=u.forwardRef(R4),Ts=O4;Ts.FormProvider=RE;Ts.Field=wE;Ts.List=S4;Ts.useForm=xE;Ts.useWatch=$4;const pk=u.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),gk=u.createContext(null),hk=e=>{const t=cr(e,["prefixCls"]);return u.createElement(RE,Object.assign({},t))},yk=u.createContext({prefixCls:""}),bo=u.createContext({}),P4=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)},_4=u.createContext(void 0),Mm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=G.createElement(P4,{override:!0,status:!0},o)),t&&(o=G.createElement(WL,null,o)),o};function Iy(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Ty(e){const{closable:t,closeIcon:n}=e||{};return G.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 My(){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 I4={};function T4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I4;const r=Ty(e),o=Ty(t),a=G.useMemo(()=>Object.assign({closeIcon:G.createElement(Os,null)},n),[n]),i=G.useMemo(()=>r===!1?!1:r?My(a,o,r):o===!1?!1:o?My(a,o):a.closable?a:!1,[r,o,a]);return G.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=G.isValidElement(c)?G.cloneElement(c,d):G.createElement("span",Object.assign({},d),c))}return[!0,c]},[i,a])}const M4=()=>Fn()&&window.document.documentElement,pd=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)})},N4=new ht("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),gd=e=>({height:e,lineHeight:J(e)}),$i=e=>Object.assign({width:e},gd(e)),L4=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:N4,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Tf=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},gd(e)),A4=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))}},F4=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},Tf(t,l)),[`${r}-lg`]:Object.assign({},Tf(o,l)),[`${r}-sm`]:Object.assign({},Tf(a,l))}},Ny=e=>Object.assign({width:e},gd(e)),D4=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},Ny(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Ny(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%"}}},Mf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Nf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},gd(e)),j4=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()},Nf(r,l))},Mf(e,r,n)),{[`${n}-lg`]:Object.assign({},Nf(o,l))}),Mf(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Nf(a,l))}),Mf(e,a,`${n}-sm`))},z4=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:v,marginSM:g,borderRadius:y,titleHeight:b,blockRadius:S,paragraphLiHeight:h,controlHeightXS:m,paragraphMarginTop:p}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,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:m}}},[`${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"},j4(e)),A4(e)),F4(e)),D4(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${o} > li,
${n},
${a},
${i},
${l}
`]:Object.assign({},L4(e))}}},B4=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}},Xi=Pr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ut(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[z4(r)]},B4,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),k4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=u.useContext(dt),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(e,["prefixCls","className"]),g=q(s,`${s}-element`,{[`${s}-active`]:o},n,r,d,f);return c(u.createElement("div",{className:g},u.createElement(pd,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:i},v))))},H4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=u.useContext(dt),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(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(pd,Object.assign({prefixCls:`${s}-button`,size:i},v))))},V4="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",W4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=u.useContext(dt),l=i("skeleton",t),[s,c,d]=Xi(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:V4,className:`${l}-image-path`})))))},U4=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=u.useContext(dt),s=l("skeleton",t),[c,d,f]=Xi(s),v=cr(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(pd,Object.assign({prefixCls:`${s}-input`,size:i},v))))};var K4={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"},G4=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:K4}))},q4=u.forwardRef(G4);const Q4=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=u.useContext(dt),s=l("skeleton",t),[c,d,f]=Xi(s),v=q(s,`${s}-element`,{[`${s}-active`]:a},d,n,r,f),g=i??u.createElement(q4,null);return c(u.createElement("div",{className:v},u.createElement("div",{className:q(`${s}-image`,n),style:o},g)))},X4=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Y4=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:X4(l,e)}}));return u.createElement("ul",{className:q(t,n),style:r},a)},J4=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 Lf(e){return e&&typeof e=="object"?e:{}}function Z4(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function eF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function tF(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:v,direction:g,skeleton:y}=u.useContext(dt),b=v("skeleton",t),[S,h,m]=Xi(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`},Z4(C,w)),Lf(l));x=u.createElement("div",{className:`${b}-header`},u.createElement(pd,Object.assign({},O)))}let E;if(C||w){let O;if(C){const A=Object.assign(Object.assign({prefixCls:`${b}-title`},eF(p,w)),Lf(s));O=u.createElement(J4,Object.assign({},A))}let _;if(w){const A=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},tF(p,C)),Lf(c));_=u.createElement(Y4,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,m);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=H4;Va.Avatar=k4;Va.Input=U4;Va.Image=W4;Va.Node=Q4;function Ly(){}const nF=u.createContext({add:Ly,remove:Ly});function rF(e){const t=u.useContext(nF),n=u.useRef();return tn(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const Ay=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(_s);return G.createElement(wr,Object.assign({onClick:n},e),t)},Fy=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(_s);return G.createElement(wr,Object.assign({},oE(n),{loading:e,onClick:o},t),r)};function $E(e,t){return G.createElement("span",{className:`${e}-close-x`},t||G.createElement(Os,{className:`${e}-close-icon`}))}const OE=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[d]=cd("Modal",vw()),f=t||(d==null?void 0:d.okText),v=r||(d==null?void 0:d.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:v,okType:n,onOk:a,onCancel:i},y=G.useMemo(()=>g,ye(Object.values(g)));let b;return typeof c=="function"||typeof c>"u"?(b=G.createElement(G.Fragment,null,G.createElement(Ay,null),G.createElement(Fy,null)),typeof c=="function"&&(b=c(b,{OkBtn:Fy,CancelBtn:Ay})),b=G.createElement(dE,{value:y},b)):b=c,G.createElement(Sw,{disabled:!1},b)},oF=e=>({animationDuration:e,animationFillMode:"both"}),aF=e=>({animationDuration:e,animationFillMode:"both"}),hd=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({},oF(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},aF(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"}}},iF=new ht("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),lF=new ht("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),sF=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hd(r,iF,lF,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},uF=new ht("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cF=new ht("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),dF=new ht("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fF=new ht("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vF=new ht("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mF=new ht("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pF=new ht("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gF=new ht("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hF={"move-up":{inKeyframes:pF,outKeyframes:gF},"move-down":{inKeyframes:uF,outKeyframes:cF},"move-left":{inKeyframes:dF,outKeyframes:fF},"move-right":{inKeyframes:vF,outKeyframes:mF}},Dy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hF[t];return[hd(r,o,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},PE=new ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),_E=new ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),IE=new ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),TE=new ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yF=new ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),bF=new ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),SF=new ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),CF=new ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wF={"slide-up":{inKeyframes:PE,outKeyframes:_E},"slide-down":{inKeyframes:IE,outKeyframes:TE},"slide-left":{inKeyframes:yF,outKeyframes:bF},"slide-right":{inKeyframes:SF,outKeyframes:CF}},Rc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=wF[t];return[hd(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}}]},EF=new ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xF=new ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),jy=new ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zy=new ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RF=new ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$F=new ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),OF=new ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),PF=new ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_F=new ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IF=new ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TF=new ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MF=new ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NF={zoom:{inKeyframes:EF,outKeyframes:xF},"zoom-big":{inKeyframes:jy,outKeyframes:zy},"zoom-big-fast":{inKeyframes:jy,outKeyframes:zy},"zoom-left":{inKeyframes:OF,outKeyframes:PF},"zoom-right":{inKeyframes:_F,outKeyframes:IF},"zoom-up":{inKeyframes:RF,outKeyframes:$F},"zoom-down":{inKeyframes:TF,outKeyframes:MF}},LF=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=NF[t];return[hd(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 By(e){return{position:e,inset:0}}const AF=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({},By("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},By("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:sF(e)}]},FF=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({},to(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}},dd(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"}}}]},DF=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ME=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ut(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()})},NE=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}),LE=Pr("Modal",e=>{const t=ME(e);return[FF(t),DF(t),AF(t),LF(t,"zoom")]},NE,{unitless:{titleLineHeight:!0}});var jF=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 Nm;const zF=e=>{Nm={x:e.pageX,y:e.pageY},setTimeout(()=>{Nm=null},100)};M4()&&document.documentElement.addEventListener("click",zF,!0);const AE=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=u.useContext(dt),i=B=>{const{onCancel:k}=e;k==null||k(B)},l=B=>{const{onOk:k}=e;k==null||k(B)},{prefixCls:s,className:c,rootClassName:d,open:f,wrapClassName:v,centered:g,getContainer:y,focusTriggerAfterClose:b=!0,style:S,visible:h,width:m=520,footer:p,classNames:C,styles:w,children:x,loading:E}=e,R=jF(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]=LE(O,A),H=q(v,{[`${O}-centered`]:!!g,[`${O}-wrap-rtl`]:o==="rtl"}),F=p!==null&&!E?u.createElement(OE,Object.assign({},e,{onOk:l,onCancel:i})):null,[P,$]=T4(Iy(e),Iy(a),{closable:!0,closeIcon:u.createElement(Os,{className:`${O}-close-icon`}),closeIconRender:B=>$E(O,B)}),L=rF(`.${O}-content`),[N,T]=Jw("Modal",R.zIndex);return M(u.createElement(Mm,{form:!0,space:!0},u.createElement(Qw.Provider,{value:T},u.createElement(yE,Object.assign({width:m},R,{zIndex:N,getContainer:y===void 0?n:y,prefixCls:O,rootClassName:q(D,d,I,A),footer:F,visible:f??h,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:Nm,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(H,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))))},BF=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({},Gi()),[`&${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}}},kF=_w(["Modal","confirm"],e=>{const t=ME(e);return[BF(t)]},NE,{order:-1e3});var HF=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 FE(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:l,footer:s,locale:c}=e,d=HF(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=u.createElement(uL,null);break;case"success":f=u.createElement(ZN,null);break;case"error":f=u.createElement(hg,null);break;default:f=u.createElement(iL,null)}const v=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=cd("Modal"),b=c||y,S=r||(v?b==null?void 0:b.okText:b==null?void 0:b.justOkText),h=o||(b==null?void 0:b.cancelText),m=Object.assign({autoFocusButton:g,cancelTextLocale:h,okTextLocale:S,mergedOkCancel:v},d),p=u.useMemo(()=>m,ye(Object.values(m))),C=u.createElement(u.Fragment,null,u.createElement(uy,null),u.createElement(cy,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(dE,{value:p},u.createElement("div",{className:`${a}-btns`},typeof s=="function"?s(C,{OkBtn:cy,CancelBtn:uy}):C)):s,u.createElement(kF,{prefixCls:t}))}const VF=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:v,bodyStyle:g,closable:y=!1,closeIcon:b,modalRender:S,focusTriggerAfterClose:h,onConfirm:m,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),[,_]=lr(),A=u.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+Xw,[n,_]);return u.createElement(AE,{prefixCls:d,className:O,wrapClassName:q({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),m==null||m(!1)},open:o,title:"",footer:null,transitionName:Bi(v||"","zoom",e.transitionName),maskTransitionName:Bi(v||"","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(FE,Object.assign({},e,{confirmPrefixCls:C})))},DE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement($s,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(VF,Object.assign({},e)))},Sa=[];let jE="";function zE(){return jE}const WF=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=vw(),l=u.useContext(dt),s=zE()||l.getPrefixCls(),c=r||`${s}-modal`;let d=o;return d===!1&&(d=void 0),G.createElement(DE,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 Ms(e){const t=zN(),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),v=0;v<d;v++)f[v]=arguments[v];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}eE(n)}function i(c){clearTimeout(o),o=setTimeout(()=>{const d=t.getPrefixCls(void 0,zE()),f=t.getIconPrefixCls(),v=t.getTheme(),g=G.createElement(WF,Object.assign({},c));Zw(G.createElement($s,{prefixCls:d,iconPrefixCls:f,theme:v},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 BE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function kE(e){return Object.assign(Object.assign({},e),{type:"info"})}function HE(e){return Object.assign(Object.assign({},e),{type:"success"})}function VE(e){return Object.assign(Object.assign({},e),{type:"error"})}function WE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function UF(e){let{rootPrefixCls:t}=e;jE=t}var KF=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 GF=(e,t)=>{var n,{afterClose:r,config:o}=e,a=KF(e,["afterClose","config"]);const[i,l]=u.useState(!0),[s,c]=u.useState(o),{direction:d,getPrefixCls:f}=u.useContext(dt),v=f("modal"),g=f(),y=()=>{var m;r(),(m=s.afterClose)===null||m===void 0||m.call(s)},b=function(){var m;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;(m=s.onCancel)===null||m===void 0||(E=m).call.apply(E,[s,()=>{}].concat(ye(C.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:b,update:m=>{c(p=>Object.assign(Object.assign({},p),m))}}));const S=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[h]=cd("Modal",Na.Modal);return u.createElement(DE,Object.assign({prefixCls:v,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))},qF=u.forwardRef(GF);let ky=0;const QF=u.memo(u.forwardRef((e,t)=>{const[n,r]=wL();return u.useImperativeHandle(t,()=>({patchElement:r}),[]),u.createElement(u.Fragment,null,n)}));function XF(){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;ky+=1;const c=u.createRef();let d;const f=new Promise(S=>{d=S});let v=!1,g;const y=u.createElement(qF,{key:`modal-${ky}`,config:a(l),ref:c,afterClose:()=>{g==null||g()},isSilent:()=>v,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 m;(m=c.current)===null||m===void 0||m.update(S)}c.current?h():n(m=>[].concat(ye(m),[h]))},then:S=>(v=!0,f.then(S))}},[]);return[u.useMemo(()=>({info:r(kE),success:r(HE),error:r(VE),warning:r(BE),confirm:r(WE)}),[]),u.createElement(QF,{key:"modal-holder",ref:e})]}function UE(e){return t=>u.createElement($s,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const YF=(e,t,n,r)=>UE(a=>{const{prefixCls:i,style:l}=a,s=u.useRef(null),[c,d]=u.useState(0),[f,v]=u.useState(0),[g,y]=ar(!1,{value:a.open}),{getPrefixCls:b}=u.useContext(dt),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),v(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 m={paddingBottom:c,position:"relative",minWidth:f};return u.createElement("div",{ref:s,style:m},u.createElement(e,Object.assign({},h)))}),xg=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 yd=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))},JF=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=G.useMemo(function(){if(Ae(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=G.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(s==="combobox"&&l===""))},[o,i,r.length,l,s]);return{allowClear:d,clearIcon:G.createElement(yd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},KE=u.createContext(null);function ZF(){return u.useContext(KE)}function eD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=V(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 GE(){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 tD(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 nD(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 rD=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ja=void 0;function oD(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,v=e.children,g=e.display,y=e.order,b=e.component,S=b===void 0?"div":b,h=it(e,rD),m=i&&!g;function p(R){s(c,R)}u.useEffect(function(){return function(){p(null)}},[]);var C=a&&o!==Ja?a(o):v,w;r||(w={opacity:m?0:1,height:m?0:Ja,overflowY:m?"hidden":Ja,order:i?y:Ja,pointerEvents:m?"none":Ja,position:m?"absolute":Ja});var x={};m&&(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(zr,{onResize:function(O){var _=O.offsetWidth;p(_)},disabled:l},E)),E}var Fl=u.forwardRef(oD);Fl.displayName="Item";function aD(e){if(typeof MessageChannel>"u")Rt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function iD(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],aD(function(){Jo.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function cl(e,t){var n=u.useState(t),r=V(n,2),o=r[0],a=r[1],i=tn(function(l){e(function(){a(l)})});return[o,i]}var $c=G.createContext(null),lD=["component"],sD=["className"],uD=["className"],cD=function(t,n){var r=u.useContext($c);if(!r){var o=t.component,a=o===void 0?"div":o,i=it(t,lD);return u.createElement(a,be({},i,{ref:n}))}var l=r.className,s=it(r,sD),c=t.className,d=it(t,uD);return u.createElement($c.Provider,{value:null},u.createElement(Fl,be({ref:n,className:q(l,c)},s,d)))},qE=u.forwardRef(cD);qE.displayName="RawItem";var dD=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QE="responsive",XE="invalidate";function fD(e){return"+ ".concat(e.length," ...")}function vD(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,v=e.style,g=e.className,y=e.maxCount,b=e.renderRest,S=e.renderRawRest,h=e.suffix,m=e.component,p=m===void 0?"div":m,C=e.itemComponent,w=e.onVisibleChange,x=it(e,dD),E=f==="full",R=iD(),O=cl(R,null),_=V(O,2),A=_[0],M=_[1],D=A||0,I=cl(R,new Map),H=V(I,2),F=H[0],P=H[1],$=cl(R,0),L=V($,2),N=L[0],T=L[1],B=cl(R,0),k=V(B,2),W=k[0],K=k[1],ee=cl(R,0),Q=V(ee,2),ae=Q[0],ce=Q[1],ne=u.useState(null),X=V(ne,2),te=X[0],ie=X[1],Y=u.useState(null),oe=V(Y,2),fe=oe[0],Pe=oe[1],me=u.useMemo(function(){return fe===null&&E?Number.MAX_SAFE_INTEGER:fe||0},[fe,A]),le=u.useState(!1),ve=V(le,2),se=ve[0],Ee=ve[1],Ne="".concat(r,"-item"),Se=Math.max(N,W),Fe=y===QE,pe=a.length&&Fe,ot=y===XE,ze=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(me+1):a.slice(xe.length)},[a,xe,pe,me]),He=u.useCallback(function(Le,ge){var Xe;return typeof s=="function"?s(Le):(Xe=s&&(Le==null?void 0:Le[s]))!==null&&Xe!==void 0?Xe:ge},[s]),Be=u.useCallback(i||function(Le){return Le},[i]);function et(Le,ge,Xe){fe===Le&&(ge===void 0||ge===te)||(Pe(Le),Xe||(Ee(Le<a.length-1),w==null||w(Le)),ge!==void 0&&ie(ge))}function vt(Le,ge){M(ge.clientWidth)}function ct(Le,ge){P(function(Xe){var tt=new Map(Xe);return ge===null?tt.delete(Le):tt.set(Le,ge),tt})}function qe(Le,ge){K(ge),T(W)}function st(Le,ge){ce(ge)}function ut(Le){return F.get(He(xe[Le],Le))}jt(function(){if(D&&typeof Se=="number"&&xe){var Le=ae,ge=xe.length,Xe=ge-1;if(!ge){et(0,null);return}for(var tt=0;tt<ge;tt+=1){var de=ut(tt);if(E&&(de=de||0),de===void 0){et(tt-1,void 0,!0);break}if(Le+=de,Xe===0&&Le<=D||tt===Xe-1&&Le+ut(Xe)<=D){et(Xe,null);break}else if(Le+Se>D){et(tt-1,Le-de-ae+W);break}}h&&ut(0)+ae>D&&ie(null)}},[D,F,W,ae,He,xe]);var Nt=se&&!!Ce.length,yt={};te!==null&&pe&&(yt={position:"absolute",left:te,top:0});var Et={prefixCls:Ne,responsive:pe,component:C,invalidate:ot},Ft=l?function(Le,ge){var Xe=He(Le,ge);return u.createElement($c.Provider,{key:Xe,value:z(z({},Et),{},{order:ge,item:Le,itemKey:Xe,registerSize:ct,display:ge<=me})},l(Le,ge))}:function(Le,ge){var Xe=He(Le,ge);return u.createElement(Fl,be({},Et,{order:ge,key:Xe,item:Le,renderItem:Be,itemKey:Xe,registerSize:ct,display:ge<=me}))},bt,Je={order:Nt?me:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:qe,display:Nt};if(S)S&&(bt=u.createElement($c.Provider,{value:z(z({},Et),Je)},S(Ce)));else{var je=b||fD;bt=u.createElement(Fl,be({},Et,Je),typeof je=="function"?je(Ce):je)}var ke=u.createElement(p,be({className:q(!ot&&r,g),style:v,ref:t},x),xe.map(Ft),ze?bt:null,h&&u.createElement(Fl,be({},Et,{responsive:Fe,responsiveDisabled:!pe,order:me,className:"".concat(Ne,"-suffix"),registerSize:st,display:!0,style:yt}),h));return Fe&&(ke=u.createElement(zr,{onResize:vt,disabled:!pe},ke)),ke}var eo=u.forwardRef(vD);eo.displayName="Overflow";eo.Item=qE;eo.RESPONSIVE=QE;eo.INVALIDATE=XE;var mD=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,v=t.activeDescendantId,g=t.value,y=t.maxLength,b=t.onKeyDown,S=t.onMouseDown,h=t.onChange,m=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,H=_.onCompositionEnd,F=_.style;return"maxLength"in E.props,E=u.cloneElement(E,z(z(z({type:"search"},_),{},{id:a,ref:Ur(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?v:void 0},x),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:z(z({},F),{},{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($),H&&H($)},onPaste:m})),E},YE=u.forwardRef(mD);function JE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var pD=typeof window<"u"&&window.document&&window.document.documentElement,gD=pD;function hD(e){return e!=null}function yD(e){return!e&&e!==0}function Hy(e){return["string","number"].includes(Ae(e))}function ZE(e){var t=void 0;return e&&(Hy(e.title)?t=e.title.toString():Hy(e.label)&&(t=e.label.toString())),t}function bD(e,t){gD?u.useLayoutEffect(e,t):u.useEffect(e,t)}function SD(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Vy=function(t){t.preventDefault(),t.stopPropagation()},CD=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,v=t.showSearch,g=t.autoFocus,y=t.autoComplete,b=t.activeDescendantId,S=t.tabIndex,h=t.removeIcon,m=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,H=u.useRef(null),F=u.useState(0),P=V(F,2),$=P[0],L=P[1],N=u.useState(!1),T=V(N,2),B=T[0],k=T[1],W="".concat(r,"-selection"),K=a||f==="multiple"&&l===!1||f==="tags"?i:"",ee=f==="tags"||f==="multiple"&&l===!1||v&&(a||B);bD(function(){L(H.current.scrollWidth)},[K]);var Q=function(Y,oe,fe,Pe,me){return u.createElement("span",{title:ZE(Y),className:q("".concat(W,"-item"),j({},"".concat(W,"-item-disabled"),fe))},u.createElement("span",{className:"".concat(W,"-item-content")},oe),Pe&&u.createElement(yd,{className:"".concat(W,"-item-remove"),onMouseDown:Vy,onClick:me,customizeIcon:h},"×"))},ae=function(Y,oe,fe,Pe,me,le){var ve=function(Ee){Vy(Ee),E(!a)};return u.createElement("span",{onMouseDown:ve},x({label:oe,value:Y,disabled:fe,closable:Pe,onClose:me,isMaxTag:!!le}))},ce=function(Y){var oe=Y.disabled,fe=Y.label,Pe=Y.value,me=!d&&!oe,le=fe;if(typeof p=="number"&&(typeof fe=="string"||typeof fe=="number")){var ve=String(le);ve.length>p&&(le="".concat(ve.slice(0,p),"..."))}var se=function(Ne){Ne&&Ne.stopPropagation(),R(Y)};return typeof x=="function"?ae(Pe,le,oe,me,se):Q(Y,le,oe,me,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(W,"-search"),style:{width:$},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},u.createElement(YE,{ref:s,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:y,editable:ee,activeDescendantId:b,value:K,onKeyDown:A,onMouseDown:M,onChange:O,onPaste:_,onCompositionStart:D,onCompositionEnd:I,tabIndex:S,attrs:ea(t,!0)}),u.createElement("span",{ref:H,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},K," ")),te=u.createElement(eo,{prefixCls:"".concat(W,"-overflow"),data:o,renderItem:ce,renderRest:ne,suffix:X,itemKey:SD,maxCount:m});return u.createElement(u.Fragment,null,te,!o.length&&!K&&u.createElement("span",{className:"".concat(W,"-placeholder")},c))},wD=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,v=t.values,g=t.placeholder,y=t.tabIndex,b=t.showSearch,S=t.searchValue,h=t.activeValue,m=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=V(_,2),M=A[0],D=A[1],I=d==="combobox",H=I||b,F=v[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?ZE(F):O,N=u.useMemo(function(){return F?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:$?{visibility:"hidden"}:void 0},g)},[F,$,g,r]);return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(YE,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:s,editable:H,activeDescendantId:c,value:P,onKeyDown:p,onMouseDown:C,onChange:function(B){D(!0),w(B)},onPaste:x,onCompositionStart:E,onCompositionEnd:R,tabIndex:y,attrs:ea(t,!0),maxLength:I?m:void 0})),!I&&F?u.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:$?{visibility:"hidden"}:void 0},F.label):null,N)},ED=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,v=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=GE(0),m=V(h,2),p=m[0],C=m[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)),nD(L)&&y(!0)},x=function(){C(!0)},E=u.useRef(null),R=function($){v($,!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&&v("",!0,!1),y())},H={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:A,onInputPaste:M,onInputCompositionStart:O,onInputCompositionEnd:_},F=l==="multiple"||l==="tags"?u.createElement(CD,be({},t,H)):u.createElement(wD,be({},t,H));return u.createElement("div",{ref:S,className:"".concat(a,"-selector"),onClick:D,onMouseDown:I},F)},xD=u.forwardRef(ED);function RD(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,v=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],m=b[0],p=b[1];S===m||!["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:v,className:q("".concat(t,"-arrow"),i),style:g},l)}function $D(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 OD=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),PD=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,v=e.mask,g=e.arrow,y=e.arrowPos,b=e.align,S=e.motion,h=e.maskMotion,m=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,H=e.onAlign,F=e.onPrepare,P=e.stretch,$=e.targetWidth,L=e.targetHeight,N=typeof n=="function"?n():n,T=s||c,B=(p==null?void 0:p.length)>0,k=u.useState(!p||!B),W=V(k,2),K=W[0],ee=W[1];if(jt(function(){!K&&B&&i&&ee(!0)},[K,B,i]),!K)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:m||T,getContainer:p&&function(){return p(i)},autoDestroy:C},u.createElement($D,{prefixCls:o,open:s,zIndex:x,mask:v,motion:h}),u.createElement(zr,{onResize:H,disabled:!s},function(oe){return u.createElement(wo,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},S,{onAppearPrepare:F,onEnterPrepare:F,visible:s,onVisibleChanged:function(Pe){var me;S==null||(me=S.onVisibleChanged)===null||me===void 0||me.call(S,Pe),l(Pe)}}),function(fe,Pe){var me=fe.className,le=fe.style,ve=q(o,me,r);return u.createElement("div",{ref:Ur(oe,t,Pe),className:ve,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(RD,{prefixCls:o,arrow:g,arrowPos:y,align:b}),u.createElement(OD,{cache:!s&&!d},N))})}))}),_D=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=aa(n),a=u.useCallback(function(l){ng(t,r?r(l):l)},[r]),i=Ba(a,n.ref);return o?u.cloneElement(n,{ref:i}):n}),Wy=u.createContext(null);function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function ID(e,t,n,r){return u.useMemo(function(){var o=Uy(n??t),a=Uy(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 TD(){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 MD(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(TD((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function Ky(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ns(e){return e.ownerDocument.defaultView}function Lm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ns(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 ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function dl(e){return ms(parseFloat(e),0)}function Gy(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ns(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,S=dl(l),h=dl(s),m=dl(c),p=dl(d),C=ms(Math.round(f.width/y*1e3)/1e3),w=ms(Math.round(f.height/v*1e3)/1e3),x=(y-b-m-p)*C,E=(v-g-S-h)*w,R=S*w,O=h*w,_=m*C,A=p*C,M=0,D=0;if(a==="clip"){var I=dl(i);M=I*C,D=I*w}var H=f.x+_-M,F=f.y+R-D,P=H+f.width+2*M-_-A-x,$=F+f.height+2*D-R-O-E;n.left=Math.max(n.left,H),n.top=Math.max(n.top,F),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,$)}}),n}function qy(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 Qy(e,t){var n=t||[],r=V(n,2),o=r[0],a=r[1];return[qy(e.width,o),qy(e.height,a)]}function Xy(){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 ND(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=V(l,2),c=s[0],d=s[1],f=u.useRef(0),v=u.useMemo(function(){return t?Lm(t):[]},[t]),g=u.useRef({}),y=function(){g.current={}};e||y();var b=tn(function(){if(t&&n&&e){let fn=function(_r,sa){var Ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,Ga=N.x+_r,Zi=N.y+sa,el=Ga+ce,js=Zi+ae,_d=Math.max(Ga,Ka.left),Id=Math.max(Zi,Ka.top),Td=Math.min(el,Ka.right),Md=Math.min(js,Ka.bottom);return Math.max(0,(Td-_d)*(Md-Id))},$o=function(){pt=N.y+je,Ue=pt+ae,Re=N.x+Je,We=Re+ce};var m,p,C=t,w=C.ownerDocument,x=Ns(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,H=C.style.overflow,F=z(z({},o[r]),a),P=w.createElement("div");(m=C.parentElement)===null||m===void 0||m.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,B=T.clientWidth,k=T.clientHeight,W=T.scrollWidth,K=T.scrollHeight,ee=T.scrollTop,Q=T.scrollLeft,ae=N.height,ce=N.width,ne=$.height,X=$.width,te={left:0,top:0,right:B,bottom:k},ie={left:-Q,top:-ee,right:W-Q,bottom:K-ee},Y=F.htmlRegion,oe="visible",fe="visibleFirst";Y!=="scroll"&&Y!==fe&&(Y=oe);var Pe=Y===fe,me=Gy(ie,v),le=Gy(te,v),ve=Y===oe?le:me,se=Pe?le:ve;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=H,(p=C.parentElement)===null||p===void 0||p.removeChild(P);var Ne=ms(Math.round(ce/parseFloat(R)*1e3)/1e3),Se=ms(Math.round(ae/parseFloat(O)*1e3)/1e3);if(Ne===0||Se===0||ns(n)&&!yg(n))return;var Fe=F.offset,pe=F.targetOffset,ot=Qy(N,Fe),ze=V(ot,2),xe=ze[0],Ce=ze[1],He=Qy($,pe),Be=V(He,2),et=Be[0],vt=Be[1];$.x-=et,$.y-=vt;var ct=F.points||[],qe=V(ct,2),st=qe[0],ut=qe[1],Nt=Xy(ut),yt=Xy(st),Et=Za($,Nt),Ft=Za(N,yt),bt=z({},F),Je=Et.x-Ft.x+xe,je=Et.y-Ft.y+Ce,ke=fn(Je,je),Le=fn(Je,je,le),ge=Za($,["t","l"]),Xe=Za(N,["t","l"]),tt=Za($,["b","r"]),de=Za(N,["b","r"]),we=F.overflow||{},he=we.adjustX,Ie=we.adjustY,Ve=we.shiftX,Ze=we.shiftY,Pt=function(sa){return typeof sa=="boolean"?sa:sa>=0},pt,Ue,Re,We;$o();var xt=Pt(Ie),St=yt[0]===Nt[0];if(xt&&yt[0]==="t"&&(Ue>se.bottom||g.current.bt)){var _t=je;St?_t-=ae-ne:_t=ge.y-de.y-Ce;var kt=fn(Je,_t),$e=fn(Je,_t,le);kt>ke||kt===ke&&(!Pe||$e>=Le)?(g.current.bt=!0,je=_t,Ce=-Ce,bt.points=[Po(yt,0),Po(Nt,0)]):g.current.bt=!1}if(xt&&yt[0]==="b"&&(pt<se.top||g.current.tb)){var Oe=je;St?Oe+=ae-ne:Oe=tt.y-Xe.y-Ce;var Me=fn(Je,Oe),It=fn(Je,Oe,le);Me>ke||Me===ke&&(!Pe||It>=Le)?(g.current.tb=!0,je=Oe,Ce=-Ce,bt.points=[Po(yt,0),Po(Nt,0)]):g.current.tb=!1}var on=Pt(he),dr=yt[1]===Nt[1];if(on&&yt[1]==="l"&&(We>se.right||g.current.rl)){var Jt=Je;dr?Jt-=ce-X:Jt=ge.x-de.x-xe;var Bn=fn(Jt,je),fr=fn(Jt,je,le);Bn>ke||Bn===ke&&(!Pe||fr>=Le)?(g.current.rl=!0,Je=Jt,xe=-xe,bt.points=[Po(yt,1),Po(Nt,1)]):g.current.rl=!1}if(on&&yt[1]==="r"&&(Re<se.left||g.current.lr)){var kn=Je;dr?kn+=ce-X:kn=tt.x-Xe.x-xe;var Yn=fn(kn,je),xo=fn(kn,je,le);Yn>ke||Yn===ke&&(!Pe||xo>=Le)?(g.current.lr=!0,Je=kn,xe=-xe,bt.points=[Po(yt,1),Po(Nt,1)]):g.current.lr=!1}$o();var Nn=Ve===!0?0:Ve;typeof Nn=="number"&&(Re<le.left&&(Je-=Re-le.left-xe,$.x+X<le.left+Nn&&(Je+=$.x-le.left+X-Nn)),We>le.right&&(Je-=We-le.right-xe,$.x>le.right-Nn&&(Je+=$.x-le.right+Nn)));var yn=Ze===!0?0:Ze;typeof yn=="number"&&(pt<le.top&&(je-=pt-le.top-Ce,$.y+ne<le.top+yn&&(je+=$.y-le.top+ne-yn)),Ue>le.bottom&&(je-=Ue-le.bottom-Ce,$.y>le.bottom-yn&&(je+=$.y-le.bottom+yn)));var no=N.x+Je,Ro=no+ce,vr=N.y+je,mr=vr+ae,Gr=$.x,pr=Gr+X,Qe=$.y,Ke=Qe+ne,Zt=Math.max(no,Gr),at=Math.min(Ro,pr),De=(Zt+at)/2,Ye=De-no,Tt=Math.max(vr,Qe),Lt=Math.min(mr,Ke),dn=(Tt+Lt)/2,Hn=dn-vr;i==null||i(t,bt);var $n=Ee.right-N.x-(Je+N.width),Vn=Ee.bottom-N.y-(je+N.height);Ne===1&&(Je=Math.round(Je),$n=Math.round($n)),Se===1&&(je=Math.round(je),Vn=Math.round(Vn));var Ua={ready:!0,offsetX:Je/Ne,offsetY:je/Se,offsetR:$n/Ne,offsetB:Vn/Se,arrowX:Ye/Ne,arrowY:Hn/Se,scaleX:Ne,scaleY:Se,align:bt};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 jt(h,[r]),jt(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 LD(e,t,n,r,o){jt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=Lm(a),s=Lm(i),c=Ns(i),d=new Set([c].concat(ye(l),ye(s)));return d.forEach(function(v){v.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(v){v.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function AD(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=Ns(r);d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0);var f=Cc(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 FD=["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 DD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wg,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,v=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,S=n.mouseLeaveDelay,h=S===void 0?.1:S,m=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,H=n.builtinPlacements,F=H===void 0?{}:H,P=n.popupAlign,$=n.zIndex,L=n.stretch,N=n.getPopupClassNameFromAlign,T=n.fresh,B=n.alignPoint,k=n.onPopupClick,W=n.onPopupAlign,K=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,FD),oe=O||_||!1,fe=u.useState(!1),Pe=V(fe,2),me=Pe[0],le=Pe[1];jt(function(){le(xg())},[]);var ve=u.useRef({}),se=u.useContext(Wy),Ee=u.useMemo(function(){return{registerSubPopup:function(Ge,Kt){ve.current[Ge]=Kt,se==null||se.registerSubPopup(Ge,Kt)}}},[se]),Ne=pE(),Se=u.useState(null),Fe=V(Se,2),pe=Fe[0],ot=Fe[1],ze=u.useRef(null),xe=tn(function(Te){ze.current=Te,ns(Te)&&pe!==Te&&ot(Te),se==null||se.registerSubPopup(Ne,Te)}),Ce=u.useState(null),He=V(Ce,2),Be=He[0],et=He[1],vt=u.useRef(null),ct=tn(function(Te){ns(Te)&&Be!==Te&&(et(Te),vt.current=Te)}),qe=u.Children.only(i),st=(qe==null?void 0:qe.props)||{},ut={},Nt=tn(function(Te){var Ge,Kt,an=Be;return(an==null?void 0:an.contains(Te))||((Ge=Cc(an))===null||Ge===void 0?void 0:Ge.host)===Te||Te===an||(pe==null?void 0:pe.contains(Te))||((Kt=Cc(pe))===null||Kt===void 0?void 0:Kt.host)===Te||Te===pe||Object.values(ve.current).some(function(Gt){return(Gt==null?void 0:Gt.contains(Te))||Te===Gt})}),yt=Ky(a,ee,ce,ae),Et=Ky(a,Q,X,ne),Ft=u.useState(v||!1),bt=V(Ft,2),Je=bt[0],je=bt[1],ke=f??Je,Le=tn(function(Te){f===void 0&&je(Te)});jt(function(){je(f||!1)},[f]);var ge=u.useRef(ke);ge.current=ke;var Xe=u.useRef([]);Xe.current=[];var tt=tn(function(Te){var Ge;Le(Te),((Ge=Xe.current[Xe.current.length-1])!==null&&Ge!==void 0?Ge:ke)!==Te&&(Xe.current.push(Te),g==null||g(Te))}),de=u.useRef(),we=function(){clearTimeout(de.current)},he=function(Ge){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;we(),Kt===0?tt(Ge):de.current=setTimeout(function(){tt(Ge)},Kt*1e3)};u.useEffect(function(){return we},[]);var Ie=u.useState(!1),Ve=V(Ie,2),Ze=Ve[0],Pt=Ve[1];jt(function(Te){(!Te||ke)&&Pt(!0)},[ke]);var pt=u.useState(null),Ue=V(pt,2),Re=Ue[0],We=Ue[1],xt=u.useState([0,0]),St=V(xt,2),_t=St[0],kt=St[1],$e=function(Ge){kt([Ge.clientX,Ge.clientY])},Oe=ND(ke,pe,B?_t:Be,I,F,P,W),Me=V(Oe,11),It=Me[0],on=Me[1],dr=Me[2],Jt=Me[3],Bn=Me[4],fr=Me[5],kn=Me[6],Yn=Me[7],xo=Me[8],Nn=Me[9],yn=Me[10],no=ID(me,s,c,d),Ro=V(no,2),vr=Ro[0],mr=Ro[1],Gr=vr.has("click"),pr=mr.has("click")||mr.has("contextMenu"),Qe=tn(function(){Ze||yn()}),Ke=function(){ge.current&&B&&pr&&he(!1)};LD(ke,Be,pe,Qe,Ke),jt(function(){Qe()},[_t,I]),jt(function(){ke&&!(F!=null&&F[I])&&Qe()},[JSON.stringify(P)]);var Zt=u.useMemo(function(){var Te=MD(F,a,Nn,B);return q(Te,N==null?void 0:N(Nn))},[Nn,N,F,a,B]);u.useImperativeHandle(r,function(){return{nativeElement:vt.current,popupElement:ze.current,forceAlign:Qe}});var at=u.useState(0),De=V(at,2),Ye=De[0],Tt=De[1],Lt=u.useState(0),dn=V(Lt,2),Hn=dn[0],$n=dn[1],Vn=function(){if(L&&Be){var Ge=Be.getBoundingClientRect();Tt(Ge.width),$n(Ge.height)}},Ua=function(){Vn(),Qe()},fn=function(Ge){Pt(!1),yn(),y==null||y(Ge)},$o=function(){return new Promise(function(Ge){Vn(),We(function(){return Ge})})};jt(function(){Re&&(yn(),Re(),We(null))},[Re]);function _r(Te,Ge,Kt,an){ut[Te]=function(Gt){var zs;an==null||an(Gt),he(Ge,Kt);for(var Nd=arguments.length,Wg=new Array(Nd>1?Nd-1:0),Bs=1;Bs<Nd;Bs++)Wg[Bs-1]=arguments[Bs];(zs=st[Te])===null||zs===void 0||zs.call.apply(zs,[st,Gt].concat(Wg))}}(Gr||pr)&&(ut.onClick=function(Te){var Ge;ge.current&&pr?he(!1):!ge.current&&Gr&&($e(Te),he(!0));for(var Kt=arguments.length,an=new Array(Kt>1?Kt-1:0),Gt=1;Gt<Kt;Gt++)an[Gt-1]=arguments[Gt];(Ge=st.onClick)===null||Ge===void 0||Ge.call.apply(Ge,[st,Te].concat(an))}),AD(ke,pr,Be,pe,C,x,Nt,he);var sa=vr.has("hover"),Ka=mr.has("hover"),Ga,Zi;sa&&(_r("onMouseEnter",!0,b,function(Te){$e(Te)}),_r("onPointerEnter",!0,b,function(Te){$e(Te)}),Ga=function(Ge){(ke||Ze)&&pe!==null&&pe!==void 0&&pe.contains(Ge.target)&&he(!0,b)},B&&(ut.onMouseMove=function(Te){var Ge;(Ge=st.onMouseMove)===null||Ge===void 0||Ge.call(st,Te)})),Ka&&(_r("onMouseLeave",!1,h),_r("onPointerLeave",!1,h),Zi=function(){he(!1,h)}),vr.has("focus")&&_r("onFocus",!0,m),mr.has("focus")&&_r("onBlur",!1,p),vr.has("contextMenu")&&(ut.onContextMenu=function(Te){var Ge;ge.current&&mr.has("contextMenu")?he(!1):($e(Te),he(!0)),Te.preventDefault();for(var Kt=arguments.length,an=new Array(Kt>1?Kt-1:0),Gt=1;Gt<Kt;Gt++)an[Gt-1]=arguments[Gt];(Ge=st.onContextMenu)===null||Ge===void 0||Ge.call.apply(Ge,[st,Te].concat(an))}),te&&(ut.className=q(st.className,te));var el=z(z({},st),ut),js={},_d=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];_d.forEach(function(Te){Y[Te]&&(js[Te]=function(){for(var Ge,Kt=arguments.length,an=new Array(Kt),Gt=0;Gt<Kt;Gt++)an[Gt]=arguments[Gt];(Ge=el[Te])===null||Ge===void 0||Ge.call.apply(Ge,[el].concat(an)),Y[Te].apply(Y,an)})});var Id=u.cloneElement(qe,z(z({},el),js)),Td={x:fr,y:kn},Md=K?z({},K!==!0?K:{}):null;return u.createElement(u.Fragment,null,u.createElement(zr,{disabled:!ke,ref:ct,onResize:Ua},u.createElement(_D,{getTriggerDOMNode:ie},Id)),u.createElement(Wy.Provider,{value:Ee},u.createElement(PD,{portal:e,ref:xe,prefixCls:a,popup:A,className:q(M,Zt),style:D,target:Be,onMouseEnter:Ga,onMouseLeave:Zi,onPointerEnter:Ga,zIndex:$,open:ke,keepDom:Ze,fresh:T,onClick:k,mask:C,motion:yt,maskMotion:Et,onVisibleChanged:fn,onPrepare:$o,forceRender:R,autoDestroy:oe,getPopupContainer:E,align:Nn,arrow:Md,arrowPos:Td,ready:It,offsetX:on,offsetY:dr,offsetR:Jt,offsetB:Bn,onAlign:Qe,stretch:L,targetWidth:Ye/Yn,targetHeight:Hn/xo})))});return t}const Rg=DD(wg);var jD=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],zD=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"}}},BD=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,v=f===void 0?"ltr":f,g=t.placement,y=t.builtinPlacements,b=t.dropdownMatchSelectWidth,S=t.dropdownRender,h=t.dropdownAlign,m=t.getPopupContainer,p=t.empty,C=t.getTriggerDOMNode,w=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=it(t,jD),R="".concat(r,"-dropdown"),O=i;S&&(O=S(i));var _=u.useMemo(function(){return y||zD(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 H=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=H.current)===null||P===void 0?void 0:P.popupElement}}}),u.createElement(Rg,be({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:R,popupTransitionName:A,popup:u.createElement("div",{onMouseEnter:x},O),ref:H,stretch:D,popupAlign:h,popupVisible:o,getPopupContainer:m,popupClassName:q(d,j({},"".concat(R,"-empty"),p)),popupStyle:I,getTriggerDOMNode:C,onPopupVisibleChange:w}),a)},kD=u.forwardRef(BD);function Yy(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 Am(e){return typeof e<"u"&&!Number.isNaN(e)}function ex(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 HD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=ex(n,!1),i=a.label,l=a.value,s=a.options,c=a.groupLabel;function d(f,v){Array.isArray(f)&&f.forEach(function(g){if(v||!(s in g)){var y=g[l];o.push({key:Yy(g,o.length),groupOption:v,data:g,label:g[i],value:y})}else{var b=g[c];b===void 0&&r&&(b=g.label),o.push({key:Yy(g,o.length),group:!0,data:g,label:b}),d(g[s],!0)}})}return d(e,!1),o}function Fm(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Tn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var VD=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(s,c){var d=cw(c),f=d[0],v=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,v)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},$g=u.createContext(null);function WD(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(Ae(a))?a:i}).join(", ")),n.length>r?", ...":null)}var UD=["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"],KD=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dm=function(t){return t==="tags"||t==="multiple"},GD=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,v=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,b=e.onClear,S=e.mode,h=e.disabled,m=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,H=e.tokenSeparators,F=e.allowClear,P=e.suffixIcon,$=e.clearIcon,L=e.OptionList,N=e.animation,T=e.transitionName,B=e.dropdownStyle,k=e.dropdownClassName,W=e.dropdownMatchSelectWidth,K=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,UD),me=Dm(S),le=(i!==void 0?i:me)||S==="combobox",ve=z({},Pe);KD.forEach(function(Qe){delete ve[Qe]}),c==null||c.forEach(function(Qe){delete ve[Qe]});var se=u.useState(!1),Ee=V(se,2),Ne=Ee[0],Se=Ee[1];u.useEffect(function(){Se(xg())},[]);var Fe=u.useRef(null),pe=u.useRef(null),ot=u.useRef(null),ze=u.useRef(null),xe=u.useRef(null),Ce=u.useRef(!1),He=eD(),Be=V(He,3),et=Be[0],vt=Be[1],ct=Be[2];u.useImperativeHandle(t,function(){var Qe,Ke;return{focus:(Qe=ze.current)===null||Qe===void 0?void 0:Qe.focus,blur:(Ke=ze.current)===null||Ke===void 0?void 0:Ke.blur,scrollTo:function(at){var De;return(De=xe.current)===null||De===void 0?void 0:De.scrollTo(at)},nativeElement:Fe.current||pe.current}});var qe=u.useMemo(function(){var Qe;if(S!=="combobox")return A;var Ke=(Qe=d[0])===null||Qe===void 0?void 0:Qe.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(),Nt=Ba(pe,ut==null||(n=ut.props)===null||n===void 0?void 0:n.ref),yt=u.useState(!1),Et=V(yt,2),Ft=Et[0],bt=Et[1];jt(function(){bt(!0)},[]);var Je=ar(!1,{defaultValue:x,value:w}),je=V(Je,2),ke=je[0],Le=je[1],ge=Ft?ke:!1,Xe=!y&&v;(h||Xe&&ge&&S==="combobox")&&(ge=!1);var tt=Xe?!1:ge,de=u.useCallback(function(Qe){var Ke=Qe!==void 0?Qe:!ge;h||(Le(Ke),ge!==Ke&&(E==null||E(Ke)))},[h,ge,Le,E]),we=u.useMemo(function(){return(H||[]).some(function(Qe){return[`
`,`\r
`].includes(Qe)})},[H]),he=u.useContext($g)||{},Ie=he.maxCount,Ve=he.rawValues,Ze=function(Ke,Zt,at){if(!(me&&Am(Ie)&&(Ve==null?void 0:Ve.size)>=Ie)){var De=!0,Ye=Ke;O==null||O(null);var Tt=VD(Ke,H,Am(Ie)?Ie-Ve.size:void 0),Lt=at?null:Tt;return S!=="combobox"&&Lt&&(Ye="",I==null||I(Lt),de(!1),De=!1),D&&qe!==Ye&&D(Ye,{source:Zt?"typing":"effect"}),De}},Pt=function(Ke){!Ke||!Ke.trim()||D(Ke,{source:"submit"})};u.useEffect(function(){!ge&&!me&&S!=="combobox"&&Ze("",!1,!1)},[ge]),u.useEffect(function(){ke&&h&&Le(!1),h&&!Ce.current&&vt(!1)},[h]);var pt=GE(),Ue=V(pt,2),Re=Ue[0],We=Ue[1],xt=function(Ke){var Zt=Re(),at=Ke.which;if(at===re.ENTER&&(S!=="combobox"&&Ke.preventDefault(),ge||de(!0)),We(!!qe),at===re.BACKSPACE&&!Zt&&me&&!qe&&d.length){for(var De=ye(d),Ye=null,Tt=De.length-1;Tt>=0;Tt-=1){var Lt=De[Tt];if(!Lt.disabled){De.splice(Tt,1),Ye=Lt;break}}Ye&&f(De,{type:"remove",values:[Ye]})}for(var dn=arguments.length,Hn=new Array(dn>1?dn-1:0),$n=1;$n<dn;$n++)Hn[$n-1]=arguments[$n];if(ge){var Vn;(Vn=xe.current)===null||Vn===void 0||Vn.onKeyDown.apply(Vn,[Ke].concat(Hn))}oe==null||oe.apply(void 0,[Ke].concat(Hn))},St=function(Ke){for(var Zt=arguments.length,at=new Array(Zt>1?Zt-1:0),De=1;De<Zt;De++)at[De-1]=arguments[De];if(ge){var Ye;(Ye=xe.current)===null||Ye===void 0||Ye.onKeyUp.apply(Ye,[Ke].concat(at))}Y==null||Y.apply(void 0,[Ke].concat(at))},_t=function(Ke){var Zt=d.filter(function(at){return at!==Ke});f(Zt,{type:"remove",values:[Ke]})},kt=u.useRef(!1),$e=function(){vt(!0),h||(te&&!kt.current&&te.apply(void 0,arguments),X.includes("focus")&&de(!0)),kt.current=!0},Oe=function(){Ce.current=!0,vt(!1,function(){kt.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(Qe){return clearTimeout(Qe)}),Me.splice(0,Me.length)}},[]);var It=function(Ke){var Zt,at=Ke.target,De=(Zt=ot.current)===null||Zt===void 0?void 0:Zt.getPopupElement();if(De&&De.contains(at)){var Ye=setTimeout(function(){var Hn=Me.indexOf(Ye);if(Hn!==-1&&Me.splice(Hn,1),ct(),!Ne&&!De.contains(document.activeElement)){var $n;($n=ze.current)===null||$n===void 0||$n.focus()}});Me.push(Ye)}for(var Tt=arguments.length,Lt=new Array(Tt>1?Tt-1:0),dn=1;dn<Tt;dn++)Lt[dn-1]=arguments[dn];fe==null||fe.apply(void 0,[Ke].concat(Lt))},on=u.useState({}),dr=V(on,2),Jt=dr[1];function Bn(){Jt({})}var fr;ut&&(fr=function(Ke){de(Ke)}),tD(function(){var Qe;return[Fe.current,(Qe=ot.current)===null||Qe===void 0?void 0:Qe.getPopupElement()]},tt,de,!!ut);var kn=u.useMemo(function(){return z(z({},e),{},{notFoundContent:y,open:ge,triggerOpen:tt,id:r,showSearch:le,multiple:me,toggleOpen:de})},[e,y,tt,ge,r,le,me,de]),Yn=!!P||m,xo;Yn&&(xo=u.createElement(yd,{className:q("".concat(o,"-arrow"),j({},"".concat(o,"-arrow-loading"),m)),customizeIcon:P,customizeIconProps:{loading:m,searchValue:qe,open:ge,focused:et,showSearch:le}}));var Nn=function(){var Ke;b==null||b(),(Ke=ze.current)===null||Ke===void 0||Ke.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},yn=JF(o,Nn,d,F,$,h,qe,S),no=yn.allowClear,Ro=yn.clearIcon,vr=u.createElement(L,{ref:xe}),mr=q(o,a,j(j(j(j(j(j(j(j(j(j({},"".concat(o,"-focused"),et),"".concat(o,"-multiple"),me),"".concat(o,"-single"),!me),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),Yn),"".concat(o,"-disabled"),h),"".concat(o,"-loading"),m),"".concat(o,"-open"),ge),"".concat(o,"-customize-input"),st),"".concat(o,"-show-search"),le)),Gr=u.createElement(kD,{ref:ot,disabled:h,prefixCls:o,visible:tt,popupElement:vr,animation:N,transitionName:T,dropdownStyle:B,dropdownClassName:k,direction:s,dropdownMatchSelectWidth:W,dropdownRender:K,dropdownAlign:ee,placement:Q,builtinPlacements:ae,getPopupContainer:ce,empty:v,getTriggerDOMNode:function(Ke){return pe.current||Ke},onPopupVisibleChange:fr,onPopupMouseEnter:Bn},ut?u.cloneElement(ut,{ref:Nt}):u.createElement(xD,be({},e,{domRef:pe,prefixCls:o,inputElement:st,ref:ze,id:r,showSearch:le,autoClearSearchValue:M,mode:S,activeDescendantId:_,tagRender:l,values:d,open:ge,onToggleOpen:de,activeValue:R,searchValue:qe,onSearch:Ze,onSearchSubmit:Pt,onRemove:_t,tokenWithEnter:we}))),pr;return ut?pr=Gr:pr=u.createElement("div",be({className:mr},ve,{ref:Fe,onMouseDown:It,onKeyDown:xt,onKeyUp:St,onFocus:$e,onBlur:Oe}),u.createElement(WD,{visible:et&&!ge,values:d}),Gr,xo,no&&Ro),u.createElement(KE.Provider,{value:kn},pr)}),Og=function(){return null};Og.isSelectOptGroup=!0;var Pg=function(){return null};Pg.isSelectOption=!0;var tx=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={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},v=z(z({},v),{},j(j(j(j(j({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:f},u.createElement(zr,{onResize:function(y){var b=y.offsetHeight;b&&l&&l()}},u.createElement("div",be({style:v,className:q(j({},"".concat(i,"-holder-inner"),i)),ref:t},s),a,d)))});tx.displayName="Filler";function qD(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function QD(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,v=i(c,f,{style:{width:r},offsetX:o}),g=s(c);return u.createElement(qD,{key:g,setRef:function(b){return a(c,b)}},v)})}function XD(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 v=s(a[f]),g=s(i[f]);if(v!==g){c=f,d=d||v!==s(i[f+1]);break}}return c===null?null:{index:c,multiple:d}}function YD(e,t,n){var r=u.useState(e),o=V(r,2),a=o[0],i=o[1],l=u.useState(null),s=V(l,2),c=s[0],d=s[1];return u.useEffect(function(){var f=XD(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),i(e)},[e]),[c]}var Jy=(typeof navigator>"u"?"undefined":Ae(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const nx=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 JD(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=nx(t,n,r,o);function v(m,p){Rt.cancel(s.current),l.current+=p,c.current=p,!f(!1,p)&&(Jy||m.preventDefault(),s.current=Rt(function(){var C=d.current?10:1;i(l.current*C),l.current=0}))}function g(m,p){i(p,!0),Jy||m.preventDefault()}var y=u.useRef(null),b=u.useRef(null);function S(m){if(e){Rt.cancel(b.current),b.current=Rt(function(){y.current=null},2);var p=m.deltaX,C=m.deltaY,w=m.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"?v(m,E):g(m,x)}}function h(m){e&&(d.current=m.detail===c.current)}return[S,h]}function ZD(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=V(o,2),i=a[0],l=a[1],s=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,v=i.get(d),g=i.get(f);if(v===void 0||g===void 0)for(var y=e.length,b=l.length;b<y;b+=1){var S,h=e[b],m=t(h);i.set(m,b);var p=(S=n.get(m))!==null&&S!==void 0?S:r;if(l[b]=(l[b-1]||0)+p,m===d&&(v=b),m===f&&(g=b),v!==void 0&&g!==void 0)break}return{top:l[v-1]||0,bottom:l[g]}};return s}var ej=function(){function e(){gn(this,e),j(this,"maps",void 0),j(this,"id",0),this.maps=Object.create(null)}return hn(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 tj(e,t,n){var r=u.useState(0),o=V(r,2),a=o[0],i=o[1],l=u.useRef(new Map),s=u.useRef(new ej),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 m=Ml(S),p=m.offsetHeight;s.current.get(h)!==p&&s.current.set(h,m.offsetHeight)}}),i(function(S){return S+1})};g?y():c.current=Rt(y)}function v(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},[]),[v,f,s.current,a]}var Zy=14/15;function nj(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,m=Math.abs(S)>Math.abs(h);m?o.current=y:a.current=b,n(m,m?S:h)&&g.preventDefault(),clearInterval(l.current),l.current=setInterval(function(){m?S*=Zy:h*=Zy;var p=Math.floor(m?S:h);(!n(m,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))},jt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",f),s(),clearInterval(l.current)}},[e])}var rj=10;function oj(e,t,n,r,o,a,i,l){var s=u.useRef(),c=u.useState(null),d=V(c,2),f=d[0],v=d[1];return jt(function(){if(f&&f.times<rj){if(!e.current){v(function(L){return z({},L)});return}a();var g=f.targetAlign,y=f.originAlign,b=f.index,S=f.offset,h=e.current.clientHeight,m=!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 H=o(t[I]),F=n.get(H);if(F===void 0){m=!0;break}if(D-=F,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&&(m=!0)}m&&v(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&&Ae(g)==="object"){var y,b=g.align;"index"in g?y=g.index:y=t.findIndex(function(m){return o(m)===g.key});var S=g.offset,h=S===void 0?0:S;v({times:0,index:y,offset:h,originAlign:b})}}}function eb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var tb=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,v=e.style,g=e.thumbStyle,y=u.useState(!1),b=V(y,2),S=b[0],h=b[1],m=u.useState(null),p=V(m,2),C=p[0],w=p[1],x=u.useState(null),E=V(x,2),R=E[0],O=E[1],_=!r,A=u.useRef(),M=u.useRef(),D=u.useState(!1),I=V(D,2),H=I[0],F=I[1],P=u.useRef(),$=function(){clearTimeout(P.current),F(!0),P.current=setTimeout(function(){F(!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]),B=function(X){X.stopPropagation(),X.preventDefault()},k=u.useRef({top:T,dragging:S,pageY:C,startTop:R});k.current={top:T,dragging:S,pageY:C,startTop:R};var W=function(X){h(!0),w(eb(X,c)),O(k.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",W,{passive:!1}),function(){X.removeEventListener("touchstart",ne),te.removeEventListener("touchstart",W)}},[]);var K=u.useRef();K.current=L;var ee=u.useRef();ee.current=N,u.useEffect(function(){if(S){var ne,X=function(Y){var oe=k.current,fe=oe.dragging,Pe=oe.pageY,me=oe.startTop;Rt.cancel(ne);var le=A.current.getBoundingClientRect(),ve=f/(c?le.width:le.height);if(fe){var se=(eb(Y,c)-Pe)*ve,Ee=me;!_&&c?Ee-=se:Ee+=se;var Ne=K.current,Se=ee.current,Fe=Se?Ee/Se:0,pe=Math.ceil(Fe*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:H?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,j(j(j({},"".concat(Q,"-horizontal"),c),"".concat(Q,"-vertical"),!c),"".concat(Q,"-visible"),H)),style:z(z({},ae),v),onMouseDown:B,onMouseMove:$},u.createElement("div",{ref:M,className:q("".concat(Q,"-thumb"),j({},"".concat(Q,"-thumb-moving"),S)),style:z(z({},ce),g),onMouseDown:W}))}),aj=20;function nb(){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,aj),Math.floor(n)}var ij=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],lj=[],sj={overflowY:"auto",overflowAnchor:"none"};function uj(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,v=e.itemKey,g=e.virtual,y=e.direction,b=e.scrollWidth,S=e.component,h=S===void 0?"div":S,m=e.onScroll,p=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,R=it(e,ij),O=u.useCallback(function($e){return typeof v=="function"?v($e):$e==null?void 0:$e[v]},[v]),_=tj(O),A=V(_,4),M=A[0],D=A[1],I=A[2],H=A[3],F=!!(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]),$=F&&d&&(Math.max(i*d.length,P)>a||!!b),L=y==="rtl",N=q(r,j({},"".concat(r,"-rtl"),L),o),T=d||lj,B=u.useRef(),k=u.useRef(),W=u.useRef(),K=u.useState(0),ee=V(K,2),Q=ee[0],ae=ee[1],ce=u.useState(0),ne=V(ce,2),X=ne[0],te=ne[1],ie=u.useState(!1),Y=V(ie,2),oe=Y[0],fe=Y[1],Pe=function(){fe(!0)},me=function(){fe(!1)},le={getKey:O};function ve($e){ae(function(Oe){var Me;typeof $e=="function"?Me=$e(Oe):Me=$e;var It=Ft(Me);return B.current.scrollTop=It,It})}var se=u.useRef({start:0,end:T.length}),Ee=u.useRef(),Ne=YD(T,O),Se=V(Ne,1),Fe=Se[0];Ee.current=Fe;var pe=u.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!$){var $e;return{scrollHeight:(($e=k.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,on,dr=T.length,Jt=0;Jt<dr;Jt+=1){var Bn=T[Jt],fr=O(Bn),kn=I.get(fr),Yn=Oe+(kn===void 0?i:kn);Yn>=Q&&Me===void 0&&(Me=Jt,It=Oe),Yn>Q+a&&on===void 0&&(on=Jt),Oe=Yn}return Me===void 0&&(Me=0,It=0,on=Math.ceil(a/i)),on===void 0&&(on=T.length-1),on=Math.min(on+1,T.length-1),{scrollHeight:Oe,start:Me,end:on,offset:It}},[$,F,Q,T,H,a]),ot=pe.scrollHeight,ze=pe.start,xe=pe.end,Ce=pe.offset;se.current.start=ze,se.current.end=xe;var He=u.useState({width:0,height:a}),Be=V(He,2),et=Be[0],vt=Be[1],ct=function(Oe){vt({width:Oe.offsetWidth,height:Oe.offsetHeight})},qe=u.useRef(),st=u.useRef(),ut=u.useMemo(function(){return nb(et.width,b)},[et.width,b]),Nt=u.useMemo(function(){return nb(et.height,ot)},[et.height,ot]),yt=ot-a,Et=u.useRef(yt);Et.current=yt;function Ft($e){var Oe=$e;return Number.isNaN(Et.current)||(Oe=Math.min(Oe,Et.current)),Oe=Math.max(Oe,0),Oe}var bt=Q<=0,Je=Q>=yt,je=X<=0,ke=X>=b,Le=nx(bt,Je,je,ke),ge=function(){return{x:L?-X:X,y:Q}},Xe=u.useRef(ge()),tt=tn(function($e){if(p){var Oe=z(z({},ge()),$e);(Xe.current.x!==Oe.x||Xe.current.y!==Oe.y)&&(p(Oe),Xe.current=Oe)}});function de($e,Oe){var Me=$e;Oe?(Jo.flushSync(function(){te(Me)}),tt()):ve(Me)}function we($e){var Oe=$e.currentTarget.scrollTop;Oe!==Q&&ve(Oe),m==null||m($e),tt()}var he=function(Oe){var Me=Oe,It=b?b-et.width:0;return Me=Math.max(Me,0),Me=Math.min(Me,It),Me},Ie=tn(function($e,Oe){Oe?(Jo.flushSync(function(){te(function(Me){var It=Me+(L?-$e:$e);return he(It)})}),tt()):ve(function(Me){var It=Me+$e;return It})}),Ve=JD(F,bt,Je,je,ke,!!b,Ie),Ze=V(Ve,2),Pt=Ze[0],pt=Ze[1];nj(F,B,function($e,Oe,Me){return Le($e,Oe,Me)?!1:(Pt({preventDefault:function(){},deltaX:$e?Oe:0,deltaY:$e?0:Oe}),!0)}),jt(function(){function $e(Me){F&&Me.preventDefault()}var Oe=B.current;return Oe.addEventListener("wheel",Pt,{passive:!1}),Oe.addEventListener("DOMMouseScroll",pt,{passive:!0}),Oe.addEventListener("MozMousePixelScroll",$e,{passive:!1}),function(){Oe.removeEventListener("wheel",Pt),Oe.removeEventListener("DOMMouseScroll",pt),Oe.removeEventListener("MozMousePixelScroll",$e)}},[F]),jt(function(){if(b){var $e=he(X);te($e),tt({x:$e})}},[et.width,b]);var Ue=function(){var Oe,Me;(Oe=qe.current)===null||Oe===void 0||Oe.delayHidden(),(Me=st.current)===null||Me===void 0||Me.delayHidden()},Re=oj(B,T,I,i,O,function(){return D(!0)},ve,Ue);u.useImperativeHandle(t,function(){return{nativeElement:W.current,getScrollInfo:ge,scrollTo:function(Oe){function Me(It){return It&&Ae(It)==="object"&&("left"in It||"top"in It)}Me(Oe)?(Oe.left!==void 0&&te(he(Oe.left)),Re(Oe.top)):Re(Oe)}}}),jt(function(){if(C){var $e=T.slice(ze,xe+1);C($e,T)}},[ze,xe,T]);var We=ZD(T,O,I,i),xt=x==null?void 0:x({start:ze,end:xe,virtual:$,offsetX:X,offsetY:Ce,rtl:L,getSize:We}),St=QD(T,ze,xe,b,X,M,f,le),_t=null;a&&(_t=z(j({},s?"height":"maxHeight",a),sj),F&&(_t.overflowY="hidden",b&&(_t.overflowX="hidden"),oe&&(_t.pointerEvents="none")));var kt={};return L&&(kt.dir="rtl"),u.createElement("div",be({ref:W,style:z(z({},c),{},{position:"relative"}),className:N},kt,R),u.createElement(zr,{onResize:ct},u.createElement(h,{className:"".concat(r,"-holder"),style:_t,ref:B,onScroll:we,onMouseEnter:Ue},u.createElement(tx,{prefixCls:r,height:ot,offsetX:X,offsetY:Ce,scrollWidth:b,onInnerResize:D,ref:k,innerProps:w,rtl:L,extra:xt},St))),$&&ot>a&&u.createElement(tb,{ref:qe,prefixCls:r,scrollOffset:Q,scrollRange:ot,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:me,spinSize:Nt,containerSize:et.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),$&&b>et.width&&u.createElement(tb,{ref:st,prefixCls:r,scrollOffset:X,scrollRange:b,rtl:L,onScroll:de,onStartMove:Pe,onStopMove:me,spinSize:ut,containerSize:et.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var rx=u.forwardRef(uj);rx.displayName="List";function cj(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var dj=["disabled","title","children","style","className"];function rb(e){return typeof e=="string"||typeof e=="number"}var fj=function(t,n){var r=ZF(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,s=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,g=u.useContext($g),y=g.maxCount,b=g.flattenOptions,S=g.onActiveValue,h=g.defaultActiveFirstOption,m=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=Rs(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&&Am(y)&&(C==null?void 0:C.size)>=y},[l,y,C==null?void 0:C.size]),H=function(X){X.preventDefault()},F=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,me=fe.data;if(!Pe&&!(me!=null&&me.disabled)&&!I)return oe}return-1},$=u.useState(function(){return P(0)}),L=V($,2),N=L[0],T=L[1],B=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(){B(h!==!1?P(0):-1)},[M.length,c]);var k=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&&(B(ie),F(ie))}});if(i){var X;(X=D.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[i,c]);var W=function(X){X!==void 0&&m(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:cj()&&ie&&(te===re.N?Y=1:te===re.P&&(Y=-1)),Y!==0){var oe=P(N+Y,Y);F(oe),B(oe,!0)}break}case re.ENTER:{var fe,Pe=M[N];Pe&&!(Pe!=null&&(fe=Pe.data)!==null&&fe!==void 0&&fe.disabled)&&!I?W(Pe.value):W(void 0),i&&X.preventDefault();break}case re.ESC:d(!1),i&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){F(X)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(A,"-empty"),onMouseDown:H},f);var K=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":k(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(rx,{itemKey:"key",ref:D,data:M,height:R,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:v,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 me,le=(me=Y.title)!==null&&me!==void 0?me:rb(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 ve=Y.disabled,se=Y.title;Y.children;var Ee=Y.style,Ne=Y.className,Se=it(Y,dj),Fe=cr(Se,K),pe=k(fe),ot=ve||!pe&&I,ze="".concat(A,"-option"),xe=q(A,ze,Ne,j(j(j(j({},"".concat(ze,"-grouped"),ie),"".concat(ze,"-active"),N===X&&!ot),"".concat(ze,"-disabled"),ot),"".concat(ze,"-selected"),pe)),Ce=ee(ne),He=!p||typeof p=="function"||pe,Be=typeof Ce=="number"?Ce:Ce||fe,et=rb(Be)?Be.toString():void 0;return se!==void 0&&(et=se),u.createElement("div",be({},ea(Fe),x?{}:Q(ne,X),{"aria-selected":pe,className:xe,title:et,onMouseMove:function(){N===X||ot||B(X)},onClick:function(){ot||W(fe)},style:Ee}),u.createElement("div",{className:"".concat(ze,"-content")},typeof _=="function"?_(ne,{index:X}):Be),u.isValidElement(p)||pe,He&&u.createElement(yd,{className:"".concat(A,"-option-state"),customizeIcon:p,customizeIconProps:{value:fe,disabled:ot,isSelected:pe}},pe?"✓":null))}))},vj=u.forwardRef(fj);const mj=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 v;return z(z({},f),{},{label:(v=i.get(f.value))===null||v===void 0?void 0:v.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 Af(e,t){return JE(e).join("").toUpperCase().includes(t)}const pj=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?Af(y[o],d):y[a]?Af(y[i!=="children"?i:"label"],d):Af(y[l],d)},v=c?function(g){return Fm(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var y=f(n,v(g));if(y)s.push(g);else{var b=g[a].filter(function(S){return f(n,v(S))});b.length&&s.push(z(z({},g),{},j({},a,b)))}return}f(n,v(g))&&s.push(g)}),s},[e,r,o,n,t])};var ob=0,gj=Fn();function hj(){var e;return gj?(e=ob,ob+=1):e="TEST_OR_SSR",e}function yj(e){var t=u.useState(),n=V(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(hj()))},[]),e||r}var bj=["children","value"],Sj=["children"];function Cj(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=it(r,bj);return z({key:n,value:a!==void 0?a:n,children:o},i)}function ox(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,Sj);return t||!a?Cj(n):z(z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:ox(s)})}).filter(function(n){return n})}var wj=function(t,n,r,o,a){return u.useMemo(function(){var i=t,l=!t;l&&(i=ox(n));var s=new Map,c=new Map,d=function(g,y,b){b&&typeof b=="string"&&g.set(y[b],y)},f=function v(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)):v(S[r.options],!0)}};return f(i),{options:i,valueOptions:s,labelOptions:c}},[t,n,r,o,a])};function ab(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Ej=["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"],xj=["inputValue"];function Rj(e){return!e||Ae(e)!=="object"}var $j=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,v=f===void 0?!0:f,g=e.onSelect,y=e.onDeselect,b=e.dropdownMatchSelectWidth,S=b===void 0?!0:b,h=e.filterOption,m=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,H=I===void 0?20:I,F=e.labelRender,P=e.value,$=e.defaultValue,L=e.labelInValue,N=e.onChange,T=e.maxCount,B=it(e,Ej),k=yj(n),W=Dm(r),K=!!(!w&&E),ee=u.useMemo(function(){return h===void 0&&r==="combobox"?!1:h},[h,r]),Q=u.useMemo(function(){return ex(l,K)},[JSON.stringify(l),K]),ae=ar("",{value:c!==void 0?c:s,postState:function(we){return we||""}}),ce=V(ae,2),ne=ce[0],X=ce[1],te=wj(w,E,Q,p,C),ie=te.valueOptions,Y=te.labelOptions,oe=te.options,fe=u.useCallback(function(de){var we=JE(de);return we.map(function(he){var Ie,Ve,Ze,Pt,pt;if(Rj(he))Ie=he;else{var Ue;Ze=he.key,Ve=he.label,Ie=(Ue=he.value)!==null&&Ue!==void 0?Ue:Ze}var Re=ie.get(Ie);if(Re){var We;Ve===void 0&&(Ve=Re==null?void 0:Re[C||Q.label]),Ze===void 0&&(Ze=(We=Re==null?void 0:Re.key)!==null&&We!==void 0?We:Ie),Pt=Re==null?void 0:Re.disabled,pt=Re==null?void 0:Re.title}return{label:Ve,value:Ie,key:Ze,disabled:Pt,title:pt}})},[Q,C,ie]),Pe=ar($,{value:P}),me=V(Pe,2),le=me[0],ve=me[1],se=u.useMemo(function(){var de,we=W&&le===null?[]:le,he=fe(we);return r==="combobox"&&yD((de=he[0])===null||de===void 0?void 0:de.value)?[]:he},[le,fe,r,W]),Ee=mj(se,ie),Ne=V(Ee,2),Se=Ne[0],Fe=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 F=="function"?F(we):we.label)!==null&&he!==void 0?he:we.value})})},[r,Se,F]),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(hD(we)?String(we):"")}},[Se]);var ze=ab(function(de,we){var he=we??de;return j(j({},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(ze(Ie,he.label))}),de},[ze,oe,ie,Se,r]),Ce=pj(xe,Q,ne,ee,p),He=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:[ze(ne)].concat(ye(Ce))},[ze,p,r,Ce,ne,Q]),Be=u.useMemo(function(){return m?ye(He).sort(function(de,we){return m(de,we,{searchValue:ne})}):He},[He,m,ne]),et=u.useMemo(function(){return HD(Be,{fieldNames:Q,childrenAsData:K})},[Be,Q,K]),vt=function(we){var he=fe(we);if(ve(he),N&&(he.length!==Se.length||he.some(function(Ze,Pt){var pt;return((pt=Se[Pt])===null||pt===void 0?void 0:pt.value)!==(Ze==null?void 0:Ze.value)}))){var Ie=L?he:he.map(function(Ze){return Ze.value}),Ve=he.map(function(Ze){return Fm(Fe(Ze.value))});N(W?Ie:Ie[0],W?Ve:Ve[0])}},ct=u.useState(null),qe=V(ct,2),st=qe[0],ut=qe[1],Nt=u.useState(0),yt=V(Nt,2),Et=yt[0],Ft=yt[1],bt=R!==void 0?R:r!=="combobox",Je=u.useCallback(function(de,we){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ie=he.source,Ve=Ie===void 0?"keyboard":Ie;Ft(we),i&&r==="combobox"&&de!==null&&Ve==="keyboard"&&ut(String(de))},[i,r]),je=function(we,he,Ie){var Ve=function(){var kt,$e=Fe(we);return[L?{label:$e==null?void 0:$e[Q.label],value:we,key:(kt=$e==null?void 0:$e.key)!==null&&kt!==void 0?kt:we}:we,Fm($e)]};if(he&&g){var Ze=Ve(),Pt=V(Ze,2),pt=Pt[0],Ue=Pt[1];g(pt,Ue)}else if(!he&&y&&Ie!=="clear"){var Re=Ve(),We=V(Re,2),xt=We[0],St=We[1];y(xt,St)}},ke=ab(function(de,we){var he,Ie=W?we.selected:!0;Ie?he=W?[].concat(ye(Se),[de]):[de]:he=Se.filter(function(Ve){return Ve.value!==de}),vt(he),je(de,Ie),r==="combobox"?ut(""):(!Dm||v)&&(X(""),ut(""))}),Le=function(we,he){vt(we);var Ie=he.type,Ve=he.values;(Ie==="remove"||Ie==="clear")&&Ve.forEach(function(Ze){je(Ze.value,!1,Ie)})},ge=function(we,he){if(X(we),ut(null),he.source==="submit"){var Ie=(we||"").trim();if(Ie){var Ve=Array.from(new Set([].concat(ye(ot),[Ie])));vt(Ve),je(Ie,!0),X("")}return}he.source!=="blur"&&(r==="combobox"&&vt(we),d==null||d(we))},Xe=function(we){var he=we;r!=="tags"&&(he=we.map(function(Ve){var Ze=Y.get(Ve);return Ze==null?void 0:Ze.value}).filter(function(Ve){return Ve!==void 0}));var Ie=Array.from(new Set([].concat(ye(ot),ye(he))));vt(Ie),Ie.forEach(function(Ve){je(Ve,!0)})},tt=u.useMemo(function(){var de=_!==!1&&S!==!1;return z(z({},te),{},{flattenOptions:et,onActiveValue:Je,defaultActiveFirstOption:bt,onSelect:ke,menuItemSelectedIcon:O,rawValues:ot,fieldNames:Q,virtual:de,direction:A,listHeight:D,listItemHeight:H,childrenAsData:K,maxCount:T,optionRender:x})},[T,te,et,Je,bt,ke,O,ot,Q,_,S,A,D,H,K,x]);return u.createElement($g.Provider,{value:tt},u.createElement(GD,be({},B,{id:k,prefixCls:a,ref:t,omitDomProps:xj,mode:r,displayValues:pe,onDisplayValuesChange:Le,direction:A,searchValue:ne,onSearch:ge,autoClearSearchValue:v,onSearchSplit:Xe,dropdownMatchSelectWidth:S,OptionList:vj,emptyOptions:!et.length,activeValue:st,activeDescendantId:"".concat(k,"_list_").concat(Et)})))}),_g=$j;_g.Option=Pg;_g.OptGroup=Og;function Oc(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 bd=(e,t)=>t||e,Oj=()=>{const[,e]=lr(),n=new wn(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"}))))},Pj=()=>{const[,e]=lr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=u.useMemo(()=>({borderColor:new wn(t).onBackground(o).toHexShortString(),shadowColor:new wn(n).onBackground(o).toHexShortString(),contentColor:new wn(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}))))},_j=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}}}}},Ij=Pr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[_j(o)]});var Tj=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 ax=u.createElement(Oj,null),ix=u.createElement(Pj,null),ma=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ax,description:a,children:i,imageStyle:l,style:s}=e,c=Tj(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:v}=u.useContext(dt),g=d("empty",r),[y,b,S]=Ij(g),[h]=cd("Empty"),m=typeof a<"u"?a:h==null?void 0:h.description,p=typeof m=="string"?m:"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,v==null?void 0:v.className,{[`${g}-normal`]:o===ix,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),s)},c),u.createElement("div",{className:`${g}-image`,style:l},C),m&&u.createElement("div",{className:`${g}-description`},m),i&&u.createElement("div",{className:`${g}-footer`},i)))};ma.PRESENTED_IMAGE_DEFAULT=ax;ma.PRESENTED_IMAGE_SIMPLE=ix;const Mj=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return G.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return G.createElement(ma,{image:ma.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return G.createElement(ma,null)}},Ig=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(dt),l=u.useContext(_4),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=kM.includes(c);return[c,d]},Nj=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 Lj(e,t){return e||Nj(t)}const ib=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"}},Aj=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({},to(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:PE},[`
${o}${l}topLeft,
${a}${l}topLeft,
${o}${l}topRight,
${a}${l}topRight
`]:{animationName:IE},[`${i}${l}bottomLeft`]:{animationName:_E},[`
${i}${l}topLeft,
${i}${l}topRight
`]:{animationName:TE},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},ib(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({},ib(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Rc(e,"slide-up"),Rc(e,"slide-down"),Dy(e,"move-up"),Dy(e,"move-down")]},Fj=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())}},Dj=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},jj=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({},mg()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},zj=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=Dj(e),l=t?`${n}-${t}`:"",s=Fj(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},jj(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 Ff(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[zj(e,t),o]}const Bj=e=>{const{componentCls:t}=e,n=Ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ff(e),Ff(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ff(r,"lg")]};function Df(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({},to(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 kj(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Df(e),Df(Ut(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()}}}},Df(Ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Hj=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:v,controlItemBgHover:g,colorBgContainer:y,colorFillSecondary:b,colorBgContainerDisabled:S,colorTextDisabled:h}=e,m=l*2,p=r*2,C=Math.min(o-m,o-p),w=Math.min(a-m,a-p),x=Math.min(i-m,i-p);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:v,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)}},lx=(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}}}},lb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},lx(e,t))}),Vj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},lx(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),lb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),lb(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}`}})}),sx=(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}}}},sb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sx(e,t))}),Wj=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},sx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),sb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),sb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${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}`}})}),Uj=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}}}}),Kj=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Vj(e)),Wj(e)),Uj(e))}),Gj=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"}}}},qj=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"}}}},Qj=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},to(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Gj(e)),qj(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({},mg()),{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()}}}},Xj=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Qj(e),kj(e),Bj(e),Aj(e),{[`${t}-rtl`]:{direction:"rtl"}},Cg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Yj=Pr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ut(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Xj(r),Kj(r)]},Hj,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Jj={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"},Zj=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:Jj}))},ez=u.forwardRef(Zj),tz={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"},nz=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:tz}))},rz=u.forwardRef(nz),oz={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"},az=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:oz}))},ux=u.forwardRef(az);function iz(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:v}=e;const g=n??u.createElement(hg,null),y=m=>t===null&&!l&&!f?null:u.createElement(u.Fragment,null,c!==!1&&m,l&&d);let b=null;if(t!==void 0)b=y(t);else if(a)b=y(u.createElement(qw,{spin:!0}));else{const m=`${s}-suffix`;b=p=>{let{open:C,showSearch:w}=p;return y(C&&w?u.createElement(ux,{className:m}):u.createElement(rz,{className:m}))}}let S=null;r!==void 0?S=r:i?S=u.createElement(ez,null):S=null;let h=null;return o!==void 0?h=o:h=u.createElement(Os,null),{clearIcon:g,suffixIcon:b,itemIcon:S,removeIcon:h}}function lz(e,t){return t!==void 0?t:e!==null}var sz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 cx="SECRET_COMBOBOX_MODE_DO_NOT_USE",uz=(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:v,size:g,disabled:y,notFoundContent:b,status:S,builtinPlacements:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:p,direction:C,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:_,maxCount:A}=e,M=sz(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:H,direction:F,virtual:P,popupMatchSelectWidth:$,popupOverflow:L,select:N}=u.useContext(dt),[,T]=lr(),B=v??(T==null?void 0:T.controlHeight),k=I("select",r),W=I(),K=C??F,{compactSize:ee,compactItemClassnames:Q}=md(k,K),[ae,ce]=Ig("select",E,o),ne=ka(k),[X,te,ie]=Yj(k,ne),Y=u.useMemo(()=>{const{mode:st}=e;if(st!=="combobox")return st===cx?"combobox":st},[e.mode]),oe=Y==="multiple"||Y==="tags",fe=lz(e.suffixIcon,e.showArrow),Pe=(n=p??m)!==null&&n!==void 0?n:$,{status:me,hasFeedback:le,isFormItemInput:ve,feedbackIcon:se}=u.useContext(bo),Ee=bd(me,S);let Ne;b!==void 0?Ne=b:Y==="combobox"?Ne=null:Ne=(H==null?void 0:H("Select"))||u.createElement(Mj,{componentName:"Select"});const{suffixIcon:Se,itemIcon:Fe,removeIcon:pe,clearIcon:ot}=iz(Object.assign(Object.assign({},M),{multiple:oe,hasFeedback:le,feedbackIcon:se,showSuffixIcon:fe,prefixCls:k,componentName:"Select"})),ze=x===!0?{clearIcon:ot}:x,xe=cr(M,["suffixIcon","itemIcon"]),Ce=q(s||c,{[`${k}-dropdown-${K}`]:K==="rtl"},i,ie,ne,te),He=Eo(st=>{var ut;return(ut=g??ee)!==null&&ut!==void 0?ut:st}),Be=u.useContext(La),et=y??Be,vt=q({[`${k}-lg`]:He==="large",[`${k}-sm`]:He==="small",[`${k}-rtl`]:K==="rtl",[`${k}-${ae}`]:ce,[`${k}-in-form-item`]:ve},Oc(k,Ee,le),Q,N==null?void 0:N.className,a,i,ie,ne,te),ct=u.useMemo(()=>f!==void 0?f:K==="rtl"?"bottomRight":"bottomLeft",[f,K]),[qe]=Jw("SelectLike",R==null?void 0:R.zIndex);return X(u.createElement(_g,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(W,"slide-up",O),builtinPlacements:Lj(h,L),listHeight:d,listItemHeight:B,mode:Y,prefixCls:k,placement:ct,direction:K,suffixIcon:Se,menuItemSelectedIcon:Fe,removeIcon:pe,allowClear:ze,notFoundContent:Ne,className:vt,getPopupContainer:l||D,dropdownClassName:Ce,disabled:et,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:qe}),maxCount:oe?A:void 0,tagRender:oe?_:void 0})))},Wa=u.forwardRef(uz),cz=YF(Wa);Wa.SECRET_COMBOBOX_MODE_DO_NOT_USE=cx;Wa.Option=Pg;Wa.OptGroup=Og;Wa._InternalPanelDoNotUseOrYouWillBeFired=cz;var dz=re.ESC,fz=re.TAB;function vz(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,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.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 dz:l();break;case fz:{var v=!1;i.current||(v=s()),v?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 mz=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=Ur(t,a==null?void 0:a.ref);return G.createElement(G.Fragment,null,r&&G.createElement("div",{className:"".concat(o,"-arrow")}),G.cloneElement(a,{ref:aa(a)?i:void 0}))}),ei={adjustX:1,adjustY:1},ti=[0,0],pz={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}},gz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function hz(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,v=e.placements,g=v===void 0?pz:v,y=e.getPopupContainer,b=e.showAction,S=e.hideAction,h=e.overlayClassName,m=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,gz),A=G.useState(),M=V(A,2),D=M[0],I=M[1],H="visible"in e?p:D,F=G.useRef(null),P=G.useRef(null),$=G.useRef(null);G.useImperativeHandle(t,function(){return F.current});var L=function(ae){I(ae),O==null||O(ae)};vz({visible:H,triggerRef:$,onVisibleChange:L,autoFocus:x,overlayRef:P});var N=function(ae){var ce=e.onOverlayClick;I(!1),ce&&ce(ae)},T=function(){return G.createElement(mz,{ref:P,overlay:E,prefixCls:i,arrow:o})},B=function(){return typeof E=="function"?T:T()},k=function(){var ae=e.minOverlayWidthMatchTrigger,ce=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ae:!ce},W=function(){var ae=e.openClassName;return ae!==void 0?ae:"".concat(i,"-open")},K=G.cloneElement(R,{className:q((n=R.props)===null||n===void 0?void 0:n.className,H&&W()),ref:aa(R)?Ur($,R.ref):void 0}),ee=S;return!ee&&w.indexOf("contextMenu")!==-1&&(ee=["click"]),G.createElement(Rg,be({builtinPlacements:g},_,{prefixCls:i,ref:F,popupClassName:q(h,j({},"".concat(i,"-show-arrow"),o)),popupStyle:m,action:w,showAction:b,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:H,stretch:k()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:N,getPopupContainer:y}),K)}const yz=G.forwardRef(hz);var dx=u.createContext(null);function fx(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function vx(e){var t=u.useContext(dx);return fx(t,e)}var bz=["children","locked"],Wr=u.createContext(null);function Sz(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 ps(e){var t=e.children,n=e.locked,r=it(e,bz),o=u.useContext(Wr),a=Rs(function(){return Sz(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!ls(i[1],l[1],!0))});return u.createElement(Wr.Provider,{value:a},t)}var Cz=[],mx=u.createContext(null);function Sd(){return u.useContext(mx)}var px=u.createContext(Cz);function Ls(e){var t=u.useContext(px);return u.useMemo(function(){return e!==void 0?[].concat(ye(t),[e]):t},[t,e])}var gx=u.createContext(null),Tg=u.createContext({});function ub(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(yg(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 wz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ye(e.querySelectorAll("*")).filter(function(r){return ub(r,t)});return ub(e,t)&&n.unshift(e),n}var jm=re.LEFT,zm=re.RIGHT,Bm=re.UP,ju=re.DOWN,zu=re.ENTER,hx=re.ESC,fl=re.HOME,vl=re.END,cb=[Bm,ju,jm,zm];function Ez(e,t,n,r){var o,a,i,l,s="prev",c="next",d="children",f="parent";if(e==="inline"&&r===zu)return{inlineTrigger:!0};var v=(o={},j(o,Bm,s),j(o,ju,c),o),g=(a={},j(a,jm,n?c:s),j(a,zm,n?s:c),j(a,ju,d),j(a,zu,d),a),y=(i={},j(i,Bm,s),j(i,ju,c),j(i,zu,d),j(i,hx,f),j(i,jm,n?d:f),j(i,zm,n?f:d),i),b={inline:v,horizontal:g,vertical:y,inlineSub:v,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 xz(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Rz(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Mg(e,t){var n=wz(e,!0);return n.filter(function(r){return t.has(r)})}function db(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Mg(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 km=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(fx(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function $z(e,t,n,r,o,a,i,l,s,c){var d=u.useRef(),f=u.useRef();f.current=t;var v=function(){Rt.cancel(d.current)};return u.useEffect(function(){return function(){v()}},[]),function(g){var y=g.which;if([].concat(cb,[zu,hx,fl,vl]).includes(y)){var b=a(),S=km(b,r),h=S,m=h.elements,p=h.key2element,C=h.element2key,w=p.get(t),x=Rz(w,m),E=C.get(x),R=Ez(e,i(E,!0).length===1,n,y);if(!R&&y!==fl&&y!==vl)return;(cb.includes(y)||[fl,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),v(),d.current=Rt(function(){f.current===N&&$.focus()})}};if([fl,vl].includes(y)||R.sibling||!x){var _;!x||e==="inline"?_=o.current:_=xz(x);var A,M=Mg(_,m);y===fl?A=M[0]:y===vl?A=M[M.length-1]:A=db(_,m,x,R.offset),O(A)}else if(R.inlineTrigger)s(E);else if(R.offset>0)s(E,!0),v(),d.current=Rt(function(){S=km(b,r);var F=x.getAttribute("aria-controls"),P=document.getElementById(F),$=db(P,S.elements);O($)},5);else if(R.offset<0){var D=i(E,!0),I=D[D.length-2],H=p.get(I);s(I,!1),O(H)}}c==null||c(g)}}function Oz(e){Promise.resolve().then(e)}var Ng="__RC_UTIL_PATH_SPLIT__",fb=function(t){return t.join(Ng)},Pz=function(t){return t.split(Ng)},Hm="rc-menu-more";function _z(){var e=u.useState({}),t=V(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),a=u.useState([]),i=V(a,2),l=i[0],s=i[1],c=u.useRef(0),d=u.useRef(!1),f=function(){d.current||n({})},v=u.useCallback(function(p,C){var w=fb(C);o.current.set(w,p),r.current.set(p,w),c.current+=1;var x=c.current;Oz(function(){x===c.current&&f()})},[]),g=u.useCallback(function(p,C){var w=fb(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=Pz(w);return C&&l.includes(x[0])&&x.unshift(Hm),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(Hm),C},m=u.useCallback(function(p){var C="".concat(r.current.get(p)).concat(Ng),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:v,unregisterPath:g,refreshOverflowKeys:y,isSubPathKey:S,getKeyPath:b,getKeys:h,getSubPathKeys:m}}function Cl(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 Iz=Math.random().toFixed(5).toString().slice(2),vb=0;function Tz(e){var t=ar(e,{value:e}),n=V(t,2),r=n[0],o=n[1];return u.useEffect(function(){vb+=1;var a="".concat(Iz,"-").concat(vb);o("rc-menu-uuid-".concat(a))},[]),r}function yx(e,t,n,r){var o=u.useContext(Wr),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 bx(e){var t=u.useContext(Wr),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 Sx(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 Mz=["item"];function Pc(e){var t=e.item,n=it(e,Mz);return Object.defineProperty(n,"item",{get:function(){return Tn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Nz=["title","attribute","elementRef"],Lz=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Az=["active"],Fz=function(e){ia(n,e);var t=la(n);function n(){return gn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,l=o.elementRef,s=it(o,Nz),c=cr(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Tn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(eo.Item,be({},i,{title:typeof a=="string"?a:void 0},c,{ref:l}))}}]),n}(u.Component),Dz=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,v=e.onClick,g=e.onKeyDown,y=e.onFocus,b=it(e,Lz),S=vx(a),h=u.useContext(Wr),m=h.prefixCls,p=h.onItemClick,C=h.disabled,w=h.overflowDisabled,x=h.itemIcon,E=h.selectedKeys,R=h.onActive,O=u.useContext(Tg),_=O._internalRenderMenuItem,A="".concat(m,"-item"),M=u.useRef(),D=u.useRef(),I=C||i,H=Ba(t,D),F=Ls(a),P=function(ne){return{key:a,keyPath:ye(F).reverse(),item:M.current,domEvent:ne}},$=l||x,L=yx(a,I,d,f),N=L.active,T=it(L,Az),B=E.includes(a),k=bx(F.length),W=function(ne){if(!I){var X=P(ne);v==null||v(Pc(X)),p(X)}},K=function(ne){if(g==null||g(ne),ne.which===re.ENTER){var X=P(ne);v==null||v(Pc(X)),p(X)}},ee=function(ne){R(a),y==null||y(ne)},Q={};e.role==="option"&&(Q["aria-selected"]=B);var ae=u.createElement(Fz,be({ref:M,elementRef:H,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({},k),r),className:q(A,(n={},j(n,"".concat(A,"-active"),N),j(n,"".concat(A,"-selected"),B),j(n,"".concat(A,"-disabled"),I),n),o),onClick:W,onKeyDown:K,onFocus:ee}),s,u.createElement(Sx,{props:z(z({},e),{},{isSelected:B}),icon:$}));return _&&(ae=_(ae,e,{selected:B})),ae});function jz(e,t){var n=e.eventKey,r=Sd(),o=Ls(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement(Dz,be({},e,{ref:t}))}const Cd=u.forwardRef(jz);var zz=["className","children"],Bz=function(t,n){var r=t.className,o=t.children,a=it(t,zz),i=u.useContext(Wr),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)},Lg=u.forwardRef(Bz);Lg.displayName="SubMenuList";function Ag(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 _n={adjustX:1,adjustY:1},kz={topLeft:{points:["bl","tl"],overflow:_n},topRight:{points:["br","tr"],overflow:_n},bottomLeft:{points:["tl","bl"],overflow:_n},bottomRight:{points:["tr","br"],overflow:_n},leftTop:{points:["tr","tl"],overflow:_n},leftBottom:{points:["br","bl"],overflow:_n},rightTop:{points:["tl","tr"],overflow:_n},rightBottom:{points:["bl","br"],overflow:_n}},Hz={topLeft:{points:["bl","tl"],overflow:_n},topRight:{points:["br","tr"],overflow:_n},bottomLeft:{points:["tl","bl"],overflow:_n},bottomRight:{points:["tr","br"],overflow:_n},rightTop:{points:["tr","tl"],overflow:_n},rightBottom:{points:["br","bl"],overflow:_n},leftTop:{points:["tl","tr"],overflow:_n},leftBottom:{points:["bl","br"],overflow:_n}};function Cx(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Vz={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Wz(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(Wr),v=f.getPopupContainer,g=f.rtl,y=f.subMenuOpenDelay,b=f.subMenuCloseDelay,S=f.builtinPlacements,h=f.triggerSubMenuAction,m=f.forceSubMenuRender,p=f.rootClassName,C=f.motion,w=f.defaultMotions,x=u.useState(!1),E=V(x,2),R=E[0],O=E[1],_=z(g?z({},Hz):z({},kz),S),A=Vz[c],M=Cx(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}),H=u.useRef();return u.useEffect(function(){return H.current=Rt(function(){O(n)}),function(){Rt.cancel(H.current)}},[n]),u.createElement(Rg,{prefixCls:t,popupClassName:q("".concat(t,"-popup"),j({},"".concat(t,"-rtl"),g),i,p),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:_,popupPlacement:A,popupVisible:R,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:s?[]:[h],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:m,popupMotion:I,fresh:!0},r)}function Uz(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=u.useContext(Wr),l=i.prefixCls,s=i.forceSubMenuRender,c=i.motion,d=i.defaultMotions,f=i.mode,v=u.useRef(!1);v.current=f===a;var g=u.useState(!v.current),y=V(g,2),b=y[0],S=y[1],h=v.current?n:!1;u.useEffect(function(){v.current&&S(!1)},[f]);var m=z({},Cx(a,c,d));r.length>1&&(m.motionAppear=!1);var p=m.onVisibleChanged;return m.onVisibleChanged=function(C){return!v.current&&!C&&S(!0),p==null?void 0:p(C)},b?null:u.createElement(ps,{mode:a,locked:!v.current},u.createElement(wo,be({visible:h},m,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(C){var w=C.className,x=C.style;return u.createElement(Lg,{id:t,className:w,style:x},o)}))}var Kz=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Gz=["active"],qz=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,v=e.popupClassName,g=e.popupOffset,y=e.popupStyle,b=e.onClick,S=e.onMouseEnter,h=e.onMouseLeave,m=e.onTitleClick,p=e.onTitleMouseEnter,C=e.onTitleMouseLeave,w=it(e,Kz),x=vx(i),E=u.useContext(Wr),R=E.prefixCls,O=E.mode,_=E.openKeys,A=E.disabled,M=E.overflowDisabled,D=E.activeKey,I=E.selectedKeys,H=E.itemIcon,F=E.expandIcon,P=E.onItemClick,$=E.onOpenChange,L=E.onActive,N=u.useContext(Tg),T=N._internalRenderSubMenuItem,B=u.useContext(gx),k=B.isSubPathKey,W=Ls(),K="".concat(R,"-submenu"),ee=A||l,Q=u.useRef(),ae=u.useRef(),ce=d??H,ne=f??F,X=_.includes(i),te=!M&&X,ie=k(I,i),Y=yx(i,ee,p,C),oe=Y.active,fe=it(Y,Gz),Pe=u.useState(!1),me=V(Pe,2),le=me[0],ve=me[1],se=function(qe){ee||ve(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||k([D],i):!1)},[O,oe,D,le,i,k]),Fe=bx(W.length),pe=function(qe){ee||(m==null||m({key:i,domEvent:qe}),O==="inline"&&$(i,!X))},ot=Cl(function(ct){b==null||b(Pc(ct)),P(ct)}),ze=function(qe){O!=="inline"&&$(i,qe)},xe=function(){L(i)},Ce=x&&"".concat(x,"-popup"),He=u.createElement("div",be({role:"menuitem",style:Fe,className:"".concat(K,"-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(Sx,{icon:O!=="horizontal"?ne:void 0,props:z(z({},e),{},{isOpen:te,isSubMenu:!0})},u.createElement("i",{className:"".concat(K,"-arrow")}))),Be=u.useRef(O);if(O!=="inline"&&W.length>1?Be.current="vertical":Be.current=O,!M){var et=Be.current;He=u.createElement(Wz,{mode:et,prefixCls:K,visible:!s&&te&&O!=="inline",popupClassName:v,popupOffset:g,popupStyle:y,popup:u.createElement(ps,{mode:et==="horizontal"?"vertical":et},u.createElement(Lg,{id:Ce,ref:ae},c)),disabled:ee,onVisibleChange:ze},He)}var vt=u.createElement(eo.Item,be({ref:t,role:"none"},w,{component:"li",style:r,className:q(K,"".concat(K,"-").concat(O),o,(n={},j(n,"".concat(K,"-open"),te),j(n,"".concat(K,"-active"),Se),j(n,"".concat(K,"-selected"),ie),j(n,"".concat(K,"-disabled"),ee),n)),onMouseEnter:Ee,onMouseLeave:Ne}),He,!M&&u.createElement(Uz,{id:Ce,open:te,keyPath:W},c));return T&&(vt=T(vt,e,{selected:ie,active:Se,open:te,disabled:ee})),u.createElement(ps,{onItemClick:ot,mode:O==="horizontal"?"vertical":O,itemIcon:ce,expandIcon:ne},vt)}),Fg=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ls(n),a=Ag(r,o),i=Sd();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(qz,be({ref:t},e),a),u.createElement(px.Provider,{value:o},l)});function wx(e){var t=e.className,n=e.style,r=u.useContext(Wr),o=r.prefixCls,a=Sd();return a?null:u.createElement("li",{role:"separator",className:q("".concat(o,"-item-divider"),t),style:n})}var Qz=["className","title","eventKey","children"],Xz=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=it(e,Qz),i=u.useContext(Wr),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))}),Ex=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ls(n),a=Ag(r,o),i=Sd();return i?a:u.createElement(Xz,be({ref:t},cr(e,["warnKey"])),a)}),Yz=["label","children","key","type"];function Vm(e,t){var n=t.item,r=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(i,l){if(i&&Ae(i)==="object"){var s=i,c=s.label,d=s.children,f=s.key,v=s.type,g=it(s,Yz),y=f??"tmp-".concat(l);return d||v==="group"?v==="group"?u.createElement(r,be({key:y},g,{title:c}),Vm(d,t)):u.createElement(o,be({key:y},g,{title:c}),Vm(d,t)):v==="divider"?u.createElement(a,be({key:y},g)):u.createElement(n,be({key:y},g),c)}return null}).filter(function(i){return i})}function mb(e,t,n,r){var o=e,a=z({divider:wx,item:Cd,group:Ex,submenu:Fg},r);return t&&(o=Vm(t,a)),Ag(o,n)}var Jz=["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=[],Zz=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,v=o.items,g=o.children,y=o.direction,b=o.id,S=o.mode,h=S===void 0?"vertical":S,m=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,H=I===void 0?!0:I,F=o.multiple,P=F===void 0?!1:F,$=o.defaultSelectedKeys,L=o.selectedKeys,N=o.onSelect,T=o.onDeselect,B=o.inlineIndent,k=B===void 0?24:B,W=o.motion,K=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 me=o._internalRenderMenuItem,le=o._internalRenderSubMenuItem,ve=o._internalComponents,se=it(o,Jz),Ee=u.useMemo(function(){return[mb(g,v,ua,ve),mb(g,v,ua,{})]},[g,v,ve]),Ne=V(Ee,2),Se=Ne[0],Fe=Ne[1],pe=u.useState(!1),ot=V(pe,2),ze=ot[0],xe=ot[1],Ce=u.useRef(),He=Tz(b),Be=y==="rtl",et=ar(_,{value:A,postState:function(De){return De||ua}}),vt=V(et,2),ct=vt[0],qe=vt[1],st=function(De){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tt(){qe(De),fe==null||fe(De)}Ye?Jo.flushSync(Tt):Tt()},ut=u.useState(ct),Nt=V(ut,2),yt=Nt[0],Et=Nt[1],Ft=u.useRef(!1),bt=u.useMemo(function(){return(h==="inline"||h==="vertical")&&m?["vertical",m]:[h,!1]},[h,m]),Je=V(bt,2),je=Je[0],ke=Je[1],Le=je==="inline",ge=u.useState(je),Xe=V(ge,2),tt=Xe[0],de=Xe[1],we=u.useState(ke),he=V(we,2),Ie=he[0],Ve=he[1];u.useEffect(function(){de(je),Ve(ke),Ft.current&&(Le?qe(yt):st(ua))},[je,ke]);var Ze=u.useState(0),Pt=V(Ze,2),pt=Pt[0],Ue=Pt[1],Re=pt>=Se.length-1||tt!=="horizontal"||C;u.useEffect(function(){Le&&Et(ct)},[ct]),u.useEffect(function(){return Ft.current=!0,function(){Ft.current=!1}},[]);var We=_z(),xt=We.registerPath,St=We.unregisterPath,_t=We.refreshOverflowKeys,kt=We.isSubPathKey,$e=We.getKeyPath,Oe=We.getKeys,Me=We.getSubPathKeys,It=u.useMemo(function(){return{registerPath:xt,unregisterPath:St}},[xt,St]),on=u.useMemo(function(){return{isSubPathKey:kt}},[kt]);u.useEffect(function(){_t(Re?ua:Se.slice(pt+1).map(function(at){return at.key}))},[pt,Re]);var dr=ar(M||D&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:M}),Jt=V(dr,2),Bn=Jt[0],fr=Jt[1],kn=Cl(function(at){fr(at)}),Yn=Cl(function(){fr(void 0)});u.useImperativeHandle(t,function(){return{list:Ce.current,focus:function(De){var Ye,Tt=Oe(),Lt=km(Tt,He),dn=Lt.elements,Hn=Lt.key2element,$n=Lt.element2key,Vn=Mg(Ce.current,dn),Ua=Bn??(Vn[0]?$n.get(Vn[0]):(Ye=Se.find(function(_r){return!_r.props.disabled}))===null||Ye===void 0?void 0:Ye.key),fn=Hn.get(Ua);if(Ua&&fn){var $o;fn==null||($o=fn.focus)===null||$o===void 0||$o.call(fn,De)}}}});var xo=ar($||[],{value:L,postState:function(De){return Array.isArray(De)?De:De==null?ua:[De]}}),Nn=V(xo,2),yn=Nn[0],no=Nn[1],Ro=function(De){if(H){var Ye=De.key,Tt=yn.includes(Ye),Lt;P?Tt?Lt=yn.filter(function(Hn){return Hn!==Ye}):Lt=[].concat(ye(yn),[Ye]):Lt=[Ye],no(Lt);var dn=z(z({},De),{},{selectedKeys:Lt});Tt?T==null||T(dn):N==null||N(dn)}!P&&ct.length&&tt!=="inline"&&st(ua)},vr=Cl(function(at){oe==null||oe(Pc(at)),Ro(at)}),mr=Cl(function(at,De){var Ye=ct.filter(function(Lt){return Lt!==at});if(De)Ye.push(at);else if(tt!=="inline"){var Tt=Me(at);Ye=Ye.filter(function(Lt){return!Tt.has(Lt)})}ls(ct,Ye,!0)||st(Ye,!0)}),Gr=function(De,Ye){var Tt=Ye??!ct.includes(De);mr(De,Tt)},pr=$z(tt,Bn,Be,He,Ce,Oe,$e,fr,Gr,Pe);u.useEffect(function(){xe(!0)},[]);var Qe=u.useMemo(function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:le}},[me,le]),Ke=tt!=="horizontal"||C?Se:Se.map(function(at,De){return u.createElement(ps,{key:at.key,overflowDisabled:De>pt},at)}),Zt=u.createElement(eo,be({id:b,ref:Ce,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cd,className:q(i,"".concat(i,"-root"),"".concat(i,"-").concat(tt),c,(r={},j(r,"".concat(i,"-inline-collapsed"),Ie),j(r,"".concat(i,"-rtl"),Be),r),l),dir:y,style:s,role:"menu",tabIndex:f,data:Ke,renderRawItem:function(De){return De},renderRawRest:function(De){var Ye=De.length,Tt=Ye?Se.slice(-Ye):null;return u.createElement(Fg,{eventKey:Hm,title:te,disabled:Re,internalPopupClose:Ye===0,popupClassName:ie},Tt)},maxCount:tt!=="horizontal"||C?eo.INVALIDATE:eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(De){Ue(De)},onKeyDown:pr},se));return u.createElement(Tg.Provider,{value:Qe},u.createElement(dx.Provider,{value:He},u.createElement(ps,{prefixCls:i,rootClassName:l,mode:tt,openKeys:ct,rtl:Be,disabled:p,motion:ze?W:null,defaultMotions:ze?K:null,activeKey:Bn,onActive:kn,onInactive:Yn,selectedKeys:yn,inlineIndent:k,subMenuOpenDelay:x,subMenuCloseDelay:R,forceSubMenuRender:O,builtinPlacements:ae,triggerSubMenuAction:Q,getPopupContainer:Y,itemIcon:ce,expandIcon:ne,onItemClick:vr,onOpenChange:mr},u.createElement(gx.Provider,{value:on},Zt),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(mx.Provider,{value:It},Fe)))))}),As=Zz;As.Item=Cd;As.SubMenu=Fg;As.ItemGroup=Ex;As.Divider=wx;var e3={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"},t3=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:e3}))},n3=u.forwardRef(t3);function xx(e){return Ut(e,{inputAffixPadding:e.paddingXXS})}const Rx=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:v,colorPrimaryHover:g,colorPrimary:y,controlOutlineWidth:b,controlOutline:S,colorErrorOutline:h,colorWarningOutline:m,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:v,activeBorderColor:y,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${S}`,errorActiveShadow:`0 0 0 ${b}px ${h}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:p,activeBg:p,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},r3=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Dg=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({},r3(Ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$x=(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}}),pb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$x(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),o3=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$x(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dg(e))}),pb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),pb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),a3=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}}},gb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Dg(e))}})}),i3=(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)}},Ox=(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}}),hb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ox(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),l3=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ox(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Dg(e))}),hb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),hb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),yb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),s3=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}`}}}},yb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),yb(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}`}}}})}),u3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Px=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},_x=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ix=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}`},u3(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({},Px(e)),"&-sm":Object.assign({},_x(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),c3=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({},Px(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_x(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"},Gi()),{[`${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}}}})}},d3=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({},to(e)),Ix(e)),o3(e)),l3(e)),i3(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"}})}},f3=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)}`}}}},v3=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({},Ix(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}}}),f3(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},m3=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},to(e)),c3(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}}},a3(e)),s3(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}}})})}},p3=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}}}}},g3=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"}}}}}},h3=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jg=Pr("Input",e=>{const t=Ut(e,xx(e));return[d3(t),g3(t),v3(t),m3(t),p3(t),h3(t),Cg(t)]},Rx,{resetFont:!1});var y3={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"},b3=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:y3}))},S3=u.forwardRef(b3);const wd=u.createContext(null);var C3=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=V(d,2),v=f[0],g=f[1],y=u.useRef(),b=G.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 m=o?"right":"left";c==="start"&&(h[m]=n[m]),c==="center"&&(h[m]=n[m]+n.width/2,h.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(h[m]=n[m]+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:v}},bb={width:0,height:0,left:0,top:0};function w3(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)||bb,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)||bb}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 Sb(e,t){var n=u.useRef(e),r=u.useState({}),o=V(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 E3=.1,Cb=.01,Bu=20,wb=Math.pow(.995,Bu);function x3(e,t){var n=u.useState(),r=V(n,2),o=r[0],a=r[1],i=u.useState(0),l=V(i,2),s=l[0],c=l[1],d=u.useState(0),f=V(d,2),v=f[0],g=f[1],y=u.useState(),b=V(y,2),S=b[0],h=b[1],m=u.useRef();function p(O){var _=O.touches[0],A=_.screenX,M=_.screenY;a({x:A,y:M}),window.clearInterval(m.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 H=Date.now();c(H),g(H-s),h({x:D,y:I})}}function w(){if(o&&(a(null),h(null),S)){var O=S.x/v,_=S.y/v,A=Math.abs(O),M=Math.abs(_);if(Math.max(A,M)<E3)return;var D=O,I=_;m.current=window.setInterval(function(){if(Math.abs(D)<Cb&&Math.abs(I)<Cb){window.clearInterval(m.current);return}D*=wb,I*=wb,t(D*Bu,I*Bu)},Bu)}}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 Tx(e){var t=u.useState(0),n=V(t,2),r=n[0],o=n[1],a=u.useRef(0),i=u.useRef();return i.current=e,rm(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 R3(e){var t=u.useRef([]),n=u.useState({}),r=V(n,2),o=r[1],a=u.useRef(typeof e=="function"?e():e),i=Tx(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 Eb={width:0,height:0,left:0,top:0,right:0};function $3(e,t,n,r,o,a,i){var l=i.tabs,s=i.tabPosition,c=i.rtl,d,f,v;return["top","bottom"].includes(s)?(d="width",f=c?"right":"left",v=Math.abs(n)):(d="height",f="top",v=-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)||Eb;if(S[f]+S[d]>v+t){y=b-1;break}}for(var h=0,m=g-1;m>=0;m-=1){var p=e.get(l[m].key)||Eb;if(p[f]<v){h=m+1;break}}return h>=y?[0,0]:[h,y]},[e,t,r,o,a,v,s,l.map(function(g){return g.key}).join("_"),c])}function xb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var O3="TABS_DQ";function Mx(e){return String(e).replace(/"/g,O3)}function Nx(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Lx=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||"+")}),Rb=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return Ae(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}),P3=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,v=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,b=e.onTabClick,S=e.getPopupContainer,h=e.popupClassName,m=u.useState(!1),p=V(m,2),C=p[0],w=p[1],x=u.useState(null),E=V(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,H=a==null?void 0:a.dropdownAriaLabel;function F(k,W){k.preventDefault(),k.stopPropagation(),f.onEdit("remove",{key:W,event:k})}var P=u.createElement(As,{onClick:function(W){var K=W.key,ee=W.domEvent;b(K,ee),w(!1)},prefixCls:"".concat(D,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":I,selectedKeys:[R],"aria-label":H!==void 0?H:"expanded dropdown"},o.map(function(k){var W=k.closable,K=k.disabled,ee=k.closeIcon,Q=k.key,ae=k.label,ce=Nx(W,ee,f,K);return u.createElement(Cd,{key:Q,id:"".concat(M,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:K},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(),F(X,Q)}},ee||f.removeIcon||"×"))}));function $(k){for(var W=o.filter(function(ce){return!ce.disabled}),K=W.findIndex(function(ce){return ce.key===R})||0,ee=W.length,Q=0;Q<ee;Q+=1){K=(K+k+ee)%ee;var ae=W[K];if(!ae.disabled){O(ae.key);return}}}function L(k){var W=k.which;if(!C){[re.DOWN,re.SPACE,re.ENTER].includes(W)&&(w(!0),k.preventDefault());return}switch(W){case re.UP:$(-1),k.preventDefault();break;case re.DOWN:$(1),k.preventDefault();break;case re.ESC:w(!1);break;case re.SPACE:case re.ENTER:R!==null&&b(R,k);break}}u.useEffect(function(){var k=document.getElementById(I);k&&k.scrollIntoView&&k.scrollIntoView(!1)},[R]),u.useEffect(function(){C||O(null)},[C]);var N=j({},g?"marginRight":"marginLeft",v);o.length||(N.visibility="hidden",N.order=1);var T=q(j({},"".concat(D,"-rtl"),g)),B=i?null:u.createElement(yz,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},B,u.createElement(Lx,{prefixCls:n,locale:a,editable:f}))});const _3=u.memo(P3,function(e,t){return t.tabMoving});var I3=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,v=t.renderWrapper,g=t.removeAriaLabel,y=t.editable,b=t.onClick,S=t.onFocus,h=t.style,m="".concat(n,"-tab"),p=Nx(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":Mx(i),className:q(m,j(j(j({},"".concat(m,"-with-remove"),p),"".concat(m,"-active"),o),"".concat(m,"-disabled"),s)),style:h,onClick:C},u.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(m,"-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(m,"-icon")},d),l&&x),p&&u.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function(O){O.stopPropagation(),w(O)}},c||y.removeIcon||"×"));return v?v(E):E},T3=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]},pu=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,v=e.tabBarGutter,g=e.children,y=e.onTabClick,b=e.onTabScroll,S=e.indicator,h=u.useContext(wd),m=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=Sb(0,function(Ue,Re){A&&b&&b({direction:Ue>Re?"left":"right"})}),D=V(M,2),I=D[0],H=D[1],F=Sb(0,function(Ue,Re){!A&&b&&b({direction:Ue>Re?"top":"bottom"})}),P=V(F,2),$=P[0],L=P[1],N=u.useState([0,0]),T=V(N,2),B=T[0],k=T[1],W=u.useState([0,0]),K=V(W,2),ee=K[0],Q=K[1],ae=u.useState([0,0]),ce=V(ae,2),ne=ce[0],X=ce[1],te=u.useState([0,0]),ie=V(te,2),Y=ie[0],oe=ie[1],fe=R3(new Map),Pe=V(fe,2),me=Pe[0],le=Pe[1],ve=w3(p,me,ee[0]),se=pu(B,A),Ee=pu(ee,A),Ne=pu(ne,A),Se=pu(Y,A),Fe=se<Ee+Ne,pe=Fe?se-Se:se-Ne,ot="".concat(m,"-nav-operations-hidden"),ze=0,xe=0;A&&l?(ze=0,xe=Math.max(0,Ee-pe)):(ze=Math.min(0,pe-Ee),xe=0);function Ce(Ue){return Ue<ze?ze:Ue>xe?xe:Ue}var He=u.useRef(null),Be=u.useState(),et=V(Be,2),vt=et[0],ct=et[1];function qe(){ct(Date.now())}function st(){He.current&&clearTimeout(He.current)}x3(E,function(Ue,Re){function We(xt,St){xt(function(_t){var kt=Ce(_t+St);return kt})}return Fe?(A?We(H,Ue):We(L,Re),st(),qe(),!0):!1}),u.useEffect(function(){return st(),vt&&(He.current=setTimeout(function(){ct(0)},100)),st},[vt]);var ut=$3(ve,pe,A?I:$,Ee,Ne,Se,z(z({},e),{},{tabs:p})),Nt=V(ut,2),yt=Nt[0],Et=Nt[1],Ft=tn(function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,Re=ve.get(Ue)||{width:0,height:0,left:0,right:0,top:0};if(A){var We=I;l?Re.right<I?We=Re.right:Re.right+Re.width>I+pe&&(We=Re.right+Re.width-pe):Re.left<-I?We=-Re.left:Re.left+Re.width>-I+pe&&(We=-(Re.left+Re.width-pe)),L(0),H(Ce(We))}else{var xt=$;Re.top<-$?xt=-Re.top:Re.top+Re.height>-$+pe&&(xt=-(Re.top+Re.height-pe)),H(0),L(Ce(xt))}}),bt={};f==="top"||f==="bottom"?bt[l?"marginRight":"marginLeft"]=v:bt.marginTop=v;var Je=p.map(function(Ue,Re){var We=Ue.key;return u.createElement(I3,{id:o,prefixCls:m,key:We,tab:Ue,style:Re===0?void 0:bt,closable:Ue.closable,editable:c,active:We===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(St){y(We,St)},onFocus:function(){Ft(We),qe(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),je=function(){return le(function(){var Re,We=new Map,xt=(Re=R.current)===null||Re===void 0?void 0:Re.getBoundingClientRect();return p.forEach(function(St){var _t,kt=St.key,$e=(_t=R.current)===null||_t===void 0?void 0:_t.querySelector('[data-node-key="'.concat(Mx(kt),'"]'));if($e){var Oe=T3($e,xt),Me=V(Oe,4),It=Me[0],on=Me[1],dr=Me[2],Jt=Me[3];We.set(kt,{width:It,height:on,left:dr,top:Jt})}}),We})};u.useEffect(function(){je()},[p.map(function(Ue){return Ue.key}).join("_")]);var ke=Tx(function(){var Ue=ni(C),Re=ni(w),We=ni(x);k([Ue[0]-Re[0]-We[0],Ue[1]-Re[1]-We[1]]);var xt=ni(_);X(xt);var St=ni(O);oe(St);var _t=ni(R);Q([_t[0]-xt[0],_t[1]-xt[1]]),je()}),Le=p.slice(0,yt),ge=p.slice(Et+1),Xe=[].concat(ye(Le),ye(ge)),tt=ve.get(i),de=C3({activeTabOffset:tt,horizontal:A,indicator:S,rtl:l}),we=de.style;u.useEffect(function(){Ft()},[i,ze,xe,xb(tt),xb(ve),A]),u.useEffect(function(){ke()},[l]);var he=!!Xe.length,Ie="".concat(m,"-nav-wrap"),Ve,Ze,Pt,pt;return A?l?(Ze=I>0,Ve=I!==xe):(Ve=I<0,Ze=I!==ze):(Pt=$<0,pt=$!==ze),u.createElement(zr,{onResize:ke},u.createElement("div",{ref:Ba(t,C),role:"tablist",className:q("".concat(m,"-nav"),n),style:r,onKeyDown:function(){qe()}},u.createElement(Rb,{ref:w,position:"left",extra:s,prefixCls:m}),u.createElement(zr,{onResize:ke},u.createElement("div",{className:q(Ie,j(j(j(j({},"".concat(Ie,"-ping-left"),Ve),"".concat(Ie,"-ping-right"),Ze),"".concat(Ie,"-ping-top"),Pt),"".concat(Ie,"-ping-bottom"),pt)),ref:E},u.createElement(zr,{onResize:ke},u.createElement("div",{ref:R,className:"".concat(m,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat($,"px)"),transition:vt?"none":void 0}},Je,u.createElement(Lx,{ref:_,prefixCls:m,locale:d,editable:c,style:z(z({},Je.length===0?void 0:bt),{},{visibility:he?"hidden":null})}),u.createElement("div",{className:q("".concat(m,"-ink-bar"),j({},"".concat(m,"-ink-bar-animated"),a.inkBar)),style:we}))))),u.createElement(_3,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:m,tabs:Xe,className:!he&&ot,tabMoving:!!vt})),u.createElement(Rb,{ref:x,position:"right",extra:s,prefixCls:m})))}),Ax=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)}),M3=["renderTabBar"],N3=["label","key"],L3=function(t){var n=t.renderTabBar,r=it(t,M3),o=u.useContext(wd),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,N3);return u.createElement(Ax,be({tab:s,key:c,tabKey:c},d))})});return n(i,$b)}return u.createElement($b,r)},A3=["key","forceRender","style","className","destroyInactiveTabPane"],F3=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=u.useContext(wd),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),j({},"".concat(s,"-content-animated"),d))},c.map(function(v){var g=v.key,y=v.forceRender,b=v.style,S=v.className,h=v.destroyInactiveTabPane,m=it(v,A3),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(Ax,be({},m,{prefixCls:f,id:n,tabKey:g,animated:d,active:p,style:z(z({},b),x),className:q(S,E),ref:w}))})})))};function D3(){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},Ae(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var j3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ob=0,z3=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,v=e.tabPosition,g=v===void 0?"top":v,y=e.tabBarGutter,b=e.tabBarStyle,S=e.tabBarExtraContent,h=e.locale,m=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,j3),M=u.useMemo(function(){return(i||[]).filter(function(Y){return Y&&Ae(Y)==="object"&&"key"in Y})},[i]),D=l==="rtl",I=D3(f),H=u.useState(!1),F=V(H,2),P=F[0],$=F[1];u.useEffect(function(){$(xg())},[]);var L=ar(function(){var Y;return(Y=M[0])===null||Y===void 0?void 0:Y.key},{value:s,defaultValue:c}),N=V(L,2),T=N[0],B=N[1],k=u.useState(function(){return M.findIndex(function(Y){return Y.key===T})}),W=V(k,2),K=W[0],ee=W[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(K,M.length-1)),B((oe=M[Y])===null||oe===void 0?void 0:oe.key)}ee(Y)},[M.map(function(Y){return Y.key}).join("_"),T,K]);var Q=ar(null,{value:n}),ae=V(Q,2),ce=ae[0],ne=ae[1];u.useEffect(function(){n||(ne("rc-tabs-".concat(Ob)),Ob+=1)},[]);function X(Y,oe){x==null||x(Y,oe);var fe=Y!==T;B(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:m,tabBarGutter:y,onTabClick:X,onTabScroll:E,extra:S,style:b,panes:null,getPopupContainer:R,popupClassName:O,indicator:_});return u.createElement(wd.Provider,{value:{tabs:M,prefixCls:o}},u.createElement("div",be({ref:t,id:n,className:q(o,"".concat(o,"-").concat(g),j(j(j({},"".concat(o,"-mobile"),P),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),D),a)},A),u.createElement(L3,be({},ie,{renderTabBar:C})),u.createElement(F3,be({destroyInactiveTabPane:p},te,{animated:I}))))});const B3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function k3(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({},B3),{motionName:Bi(e,"switch")})),n}var H3=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 V3(e){return e.filter(t=>t)}function W3(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=H3(i,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return V3(n)}const U3=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}`}}}}},[Rc(e,"slide-up"),Rc(e,"slide-down")]]},K3=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}}}}}}},G3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},to(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"}}})}})}},q3=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}}}}}},Q3=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}}}}}},X3=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}},dd(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}}}},Y3=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"}}}}},J3=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({},to(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}},dd(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),X3(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"}}}}}},Z3=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}},e5=Pr("Tabs",e=>{const t=Ut(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[Q3(t),Y3(t),q3(t),G3(t),K3(t),J3(t),U3(t)]},Z3),t5=()=>null;var n5=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 Fx=e=>{var t,n,r,o,a,i,l,s,c,d,f;const{type:v,className:g,rootClassName:y,size:b,onEdit:S,hideAdd:h,centered:m,addIcon:p,removeIcon:C,moreIcon:w,more:x,popupClassName:E,children:R,items:O,animated:_,style:A,indicatorSize:M,indicator:D}=e,I=n5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=I,{direction:F,tabs:P,getPrefixCls:$,getPopupContainer:L}=u.useContext(dt),N=$("tabs",H),T=ka(N),[B,k,W]=e5(N,T);let K;v==="editable-card"&&(K={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(Os,null),addIcon:(p??(P==null?void 0:P.addIcon))||u.createElement(S3,null),showAdd:h!==!0});const ee=$(),Q=Eo(b),ae=W3(O,R),ce=k3(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 B(u.createElement(z3,Object.assign({direction:F,getPopupContainer:L},I,{items:ae,className:q({[`${N}-${Q}`]:Q,[`${N}-card`]:["card","editable-card"].includes(v),[`${N}-editable-card`]:v==="editable-card",[`${N}-centered`]:m},P==null?void 0:P.className,g,y,k,W,T),popupClassName:q(E,k,W,T),style:ne,editable:K,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(n3,null),transitionName:`${ee}-slide-up`},x),prefixCls:N,animated:ce,indicator:X})))};Fx.TabPane=t5;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};const Dx=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=r5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=u.useContext(dt),i=a("card",t),l=q(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return u.createElement("div",Object.assign({},o,{className:l}))},o5=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`},Gi()),{"&-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}`}}})},a5=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}}},i5=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)}`},Gi()),{"& > 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}`}}})},l5=e=>Object.assign(Object.assign({margin:`${J(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Gi()),{"&-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}}),s5=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)}`}}},u5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},c5=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({},to(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:o5(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)}`},Gi()),[`${n}-grid`]:a5(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:i5(e),[`${n}-meta`]:l5(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`]:s5(e),[`${n}-loading`]:u5(e),[`${n}-rtl`]:{direction:"rtl"}}},d5=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"}}}}},f5=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}),v5=Pr("Card",e=>{const t=Ut(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[c5(t),d5(t)]},f5);var Pb=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{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))}))},p5=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:v,type:g,cover:y,actions:b,tabList:S,children:h,activeTabKey:m,defaultActiveTabKey:p,tabBarExtraContent:C,hoverable:w,tabProps:x={},classNames:E,styles:R}=e,O=Pb(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(dt),D=me=>{var le;(le=e.onTabChange)===null||le===void 0||le.call(e,me)},I=me=>{var le;return q((le=M==null?void 0:M.classNames)===null||le===void 0?void 0:le[me],E==null?void 0:E[me])},H=me=>{var le;return Object.assign(Object.assign({},(le=M==null?void 0:M.styles)===null||le===void 0?void 0:le[me]),R==null?void 0:R[me])},F=u.useMemo(()=>{let me=!1;return u.Children.forEach(h,le=>{(le==null?void 0:le.type)===Dx&&(me=!0)}),me},[h]),P=_("card",n),[$,L,N]=v5(P),T=u.createElement(Va,{loading:!0,active:!0,paragraph:{rows:4},title:!1},h),B=m!==void 0,k=Object.assign(Object.assign({},x),{[B?"activeKey":"defaultActiveKey"]:B?m:p,tabBarExtraContent:C});let W;const K=Eo(v),ee=!K||K==="default"?"large":K,Q=S?u.createElement(Fx,Object.assign({size:ee},k,{className:`${P}-head-tabs`,onChange:D,items:S.map(me=>{var{tab:le}=me,ve=Pb(me,["tab"]);return Object.assign({label:le},ve)})})):null;if(c||i||Q){const me=q(`${P}-head`,I("header")),le=q(`${P}-head-title`,I("title")),ve=q(`${P}-extra`,I("extra")),se=Object.assign(Object.assign({},l),H("header"));W=u.createElement("div",{className:me,style:se},u.createElement("div",{className:`${P}-head-wrapper`},c&&u.createElement("div",{className:le,style:H("title")},c),i&&u.createElement("div",{className:ve,style:H("extra")},i)),Q)}const ae=q(`${P}-cover`,I("cover")),ce=y?u.createElement("div",{className:ae,style:H("cover")},y):null,ne=q(`${P}-body`,I("body")),X=Object.assign(Object.assign({},s),H("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(m5,{actionClasses:ie,actionStyle:H("actions"),actions:b}):null,oe=cr(O,["onTabChange"]),fe=q(P,M==null?void 0:M.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:w,[`${P}-contain-grid`]:F,[`${P}-contain-tabs`]:S==null?void 0:S.length,[`${P}-${K}`]:K,[`${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}),W,ce,te,Y))});var g5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 h5=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=g5(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=u.useContext(dt),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,v=a?u.createElement("div",{className:`${s}-meta-description`},a):null,g=f||v?u.createElement("div",{className:`${s}-meta-detail`},f,v):null;return u.createElement("div",Object.assign({},i,{className:c}),d,g)},gs=p5;gs.Grid=Dx;gs.Meta=h5;function y5(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,v=0;function g(){d&&clearTimeout(d)}function y(S){var h=S||{},m=h.upcomingOnly,p=m===void 0?!1:m;g(),f=!p}function b(){for(var S=arguments.length,h=new Array(S),m=0;m<S;m++)h[m]=arguments[m];var p=this,C=Date.now()-v;if(f)return;function w(){v=Date.now(),t.apply(p,h)}function x(){d=void 0}!l&&c&&!d&&w(),g(),c===void 0&&C>e?l?(v=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 b5(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return y5(e,t,{debounceMode:a!==!1})}function S5(e){return!!(e.addonBefore||e.addonAfter)}function C5(e){return!!(e.prefix||e.suffix||e.allowClear)}function _b(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 _c(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=_b(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=_b(t,e,r),n(o);return}n(o)}}function w5(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 jx=G.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,v=e.style,g=e.disabled,y=e.readOnly,b=e.focused,S=e.triggerFocus,h=e.allowClear,m=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",H=u.useRef(null),F=function(oe){var fe;(fe=H.current)!==null&&fe!==void 0&&fe.contains(oe.target)&&(S==null||S())},P=C5(e),$=u.cloneElement(_,{value:m,className:q(_.props.className,!P&&(x==null?void 0:x.variant))||null}),L=u.useRef(null);if(G.useImperativeHandle(t,function(){return{nativeElement:L.current||H.current}}),P){var N,T=null;if(h){var B,k=!g&&!y&&m,W="".concat(i,"-clear-icon"),K=Ae(h)==="object"&&h!==null&&h!==void 0&&h.clearIcon?h.clearIcon:"✖";T=G.createElement("span",{onClick:p,onMouseDown:function(oe){return oe.preventDefault()},className:q(W,(B={},j(B,"".concat(W,"-hidden"),!k),j(B,"".concat(W,"-has-suffix"),!!s),B)),role:"button",tabIndex:-1},K)}var ee="".concat(i,"-affix-wrapper"),Q=q(ee,(N={},j(N,"".concat(i,"-disabled"),g),j(N,"".concat(ee,"-disabled"),g),j(N,"".concat(ee,"-focused"),b),j(N,"".concat(ee,"-readonly"),y),j(N,"".concat(ee,"-input-with-clear-btn"),s&&h&&m),N),w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),ae=(s||h)&&G.createElement("span",{className:q("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},T,s);$=G.createElement(A,be({className:Q,style:R==null?void 0:R.affixWrapper,onClick:F},E==null?void 0:E.affixWrapper,{ref:H}),l&&G.createElement("span",{className:q("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},l),$,ae)}if(S5(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,j({},"".concat(X,"-disabled"),g),w==null?void 0:w.group,x==null?void 0:x.groupWrapper);$=G.createElement(M,{className:ie,ref:L},G.createElement(D,{className:te},c&&G.createElement(I,{className:ne},c),$,d&&G.createElement(I,{className:ne},d)))}return G.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),v),hidden:C})}),E5=["show"];function zx(e,t){return u.useMemo(function(){var n={};t&&(n.show=Ae(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,o=r.show,a=it(r,E5);return z(z({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var x5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],R5=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,v=e.className,g=e.maxLength,y=e.suffix,b=e.showCount,S=e.count,h=e.type,m=h===void 0?"text":h,p=e.classes,C=e.classNames,w=e.styles,x=e.onCompositionStart,E=e.onCompositionEnd,R=it(e,x5),O=u.useState(!1),_=V(O,2),A=_[0],M=_[1],D=u.useRef(!1),I=u.useRef(null),H=u.useRef(null),F=function(se){I.current&&w5(I.current,se)},P=ar(e.defaultValue,{value:e.value}),$=V(P,2),L=$[0],N=$[1],T=L==null?"":String(L),B=u.useState(null),k=V(B,2),W=k[0],K=k[1],ee=zx(S,b),Q=ee.max||g,ae=ee.strategy(T),ce=!!Q&&ae>Q;u.useImperativeHandle(t,function(){var ve;return{focus:F,blur:function(){var Ee;(Ee=I.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,Ne,Se){var Fe;(Fe=I.current)===null||Fe===void 0||Fe.setSelectionRange(Ee,Ne,Se)},select:function(){var Ee;(Ee=I.current)===null||Ee===void 0||Ee.select()},input:I.current,nativeElement:((ve=H.current)===null||ve===void 0?void 0:ve.nativeElement)||I.current}}),u.useEffect(function(){M(function(ve){return ve&&d?!1:ve})},[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 Fe,pe;K([((Fe=I.current)===null||Fe===void 0?void 0:Fe.selectionStart)||0,((pe=I.current)===null||pe===void 0?void 0:pe.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;N(Se),I.current&&_c(I.current,se,r,Se)};u.useEffect(function(){if(W){var ve;(ve=I.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,ye(W))}},[W]);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(""),F(),I.current&&_c(I.current,se,r)},Pe=ce&&"".concat(c,"-out-of-range"),me=function(){var se=cr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return G.createElement("input",be({autoComplete:n},se,{onChange:X,onFocus:Y,onBlur:oe,onKeyDown:ie,className:q(c,j({},"".concat(c,"-disabled"),d),C==null?void 0:C.input),style:w==null?void 0:w.input,ref:I,size:f,type:m,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 G.createElement(G.Fragment,null,ee.show&&G.createElement("span",{className:q("".concat(c,"-show-count-suffix"),j({},"".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 G.createElement(jx,be({},R,{prefixCls:c,className:q(v,Pe),handleReset:fe,value:T,focused:A,triggerFocus:F,suffix:le(),disabled:d,classes:p,classNames:C,styles:w}),me())});const $5=e=>{const{getPrefixCls:t,direction:n}=u.useContext(dt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,s]=jg(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)))},Bx=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:G.createElement(hg,null)}),t};function kx(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 O5(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var P5=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 _5(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 Ed=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:v,addonBefore:g,className:y,style:b,styles:S,rootClassName:h,onChange:m,classNames:p,variant:C}=e,w=P5(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}=G.useContext(dt),O=x("input",r),_=u.useRef(null),A=ka(O),[M,D,I]=jg(O,A),{compactSize:H,compactItemClassnames:F}=md(O,E),P=Eo(ie=>{var Y;return(Y=i??H)!==null&&Y!==void 0?Y:ie}),$=G.useContext(La),L=l??$,{status:N,hasFeedback:T,feedbackIcon:B}=u.useContext(bo),k=bd(N,a),W=O5(e)||!!T;u.useRef(W);const K=kx(_,!0),ee=ie=>{K(),s==null||s(ie)},Q=ie=>{K(),c==null||c(ie)},ae=ie=>{K(),m==null||m(ie)},ce=(T||d)&&G.createElement(G.Fragment,null,d,T&&B),ne=Bx(f??(R==null?void 0:R.allowClear)),[X,te]=Ig("input",C,o);return M(G.createElement(R5,Object.assign({ref:Ur(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,F,R==null?void 0:R.className),onChange:ae,addonBefore:g&&G.createElement(Mm,{form:!0,space:!0},g),addonAfter:v&&G.createElement(Mm,{form:!0,space:!0},v),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},Oc(O,k)),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},Oc(`${O}-group-wrapper`,k,T),D)})})))}),I5=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}}}},T5=Pr(["Input","OTP"],e=>{const t=Ut(e,xx(e));return[I5(t)]},Rx);var M5=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 N5=u.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:a,mask:i}=e,l=M5(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()})},v=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(Ed,Object.assign({},l,{ref:d,value:s,onInput:c,onFocus:f,onKeyDown:v,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var L5=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 gu(e){return(e||"").split("")}const A5=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:v,mask:g}=e,y=L5(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:S}=u.useContext(dt),h=b("otp",n),m=ea(y,{aria:!0,data:!0,attr:!0}),p=ka(h),[C,w,x]=T5(h,p),E=Eo(T=>o??T),R=u.useContext(bo),O=bd(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 B=0;B<r;B+=1)(T=M.current[B])===null||T===void 0||T.blur()},nativeElement:A.current}));const D=T=>s?s(T):T,[I,H]=u.useState(gu(D(a||"")));u.useEffect(()=>{i!==void 0&&H(gu(i))},[i]);const F=tn(T=>{H(T),l&&T.length===r&&T.every(B=>B)&&T.some((B,k)=>I[k]!==B)&&l(T.join(""))}),P=tn((T,B)=>{let k=ye(I);for(let K=0;K<T;K+=1)k[K]||(k[K]="");B.length<=1?k[T]=B:k=k.slice(0,T).concat(gu(B)),k=k.slice(0,r);for(let K=k.length-1;K>=0&&!k[K];K-=1)k.pop();const W=D(k.map(K=>K||" ").join(""));return k=gu(W).map((K,ee)=>K===" "&&!k[ee]?k[ee]:K),k}),$=(T,B)=>{var k;const W=P(T,B),K=Math.min(T+B.length,r-1);K!==T&&((k=M.current[K])===null||k===void 0||k.focus()),F(W)},L=T=>{var B;(B=M.current[T])===null||B===void 0||B.focus()},N={variant:c,disabled:d,status:O,mask:g};return C(u.createElement("div",Object.assign({},m,{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,B)=>{const k=`otp-${B}`,W=I[B]||"";return u.createElement(N5,Object.assign({ref:K=>{M.current[B]=K},key:k,index:B,size:E,htmlSize:1,className:`${h}-input`,onChange:$,value:W,onActiveChange:L,autoFocus:B===0&&v},N))}))))});var F5={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"},D5=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:F5}))},j5=u.forwardRef(D5),z5={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"},B5=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:z5}))},k5=u.forwardRef(B5),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 V5=e=>e?u.createElement(k5,null):u.createElement(j5,null),W5={click:"onClick",hover:"onMouseOver"},U5=u.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=V5}=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=kx(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,_)),_}))},v=R=>{const O=W5[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=H5(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=u.useContext(dt),p=m("input",b),C=m("input-password",y),w=o&&v(C),x=q(C,g,{[`${C}-${S}`]:!!S}),E=Object.assign(Object.assign({},cr(h,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:x,prefixCls:p,suffix:w});return S&&(E.size=S),u.createElement(Ed,Object.assign({ref:Ur(t,c)},E))});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 G5=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:v,onCompositionStart:g,onCompositionEnd:y}=e,b=K5(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:h}=u.useContext(dt),m=u.useRef(!1),p=S("input-search",n),C=S("input",r),{compactSize:w}=md(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"}),v==null||v(N)},O=N=>{var T;document.activeElement===((T=E.current)===null||T===void 0?void 0:T.input)&&N.preventDefault()},_=N=>{var T,B;f&&f((B=(T=E.current)===null||T===void 0?void 0:T.input)===null||B===void 0?void 0:B.value,N,{source:"input"})},A=N=>{m.current||c||_(N)},M=typeof l=="boolean"?u.createElement(ux,null):null,D=`${p}-button`;let I;const H=l||{},F=H.type&&H.type.__ANT_BUTTON===!0;F||H.type==="button"?I=fs(H,Object.assign({onMouseDown:O,onClick:N=>{var T,B;(B=(T=H==null?void 0:H.props)===null||T===void 0?void 0:T.onClick)===null||B===void 0||B.call(T,N),_(N)},key:"enterButton"},F?{className:D,size:x}:{})):I=u.createElement(wr,{className:D,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:O,onClick:_,loading:c,icon:M},l),s&&(I=[I,fs(s,{key:"addonAfter"})]);const P=q(p,{[`${p}-rtl`]:h==="rtl",[`${p}-${x}`]:!!x,[`${p}-with-button`]:!!l},o),$=N=>{m.current=!0,g==null||g(N)},L=N=>{m.current=!1,y==null||y(N)};return u.createElement(Ed,Object.assign({ref:Ur(E,t),onPressEnter:A},b,{size:x,onCompositionStart:$,onCompositionEnd:L,prefixCls:C,addonAfter:I,suffix:i,onChange:R,className:P,disabled:d}))});var q5=`
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;
`,Q5=["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"],jf={},hr;function X5(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&&jf[n])return jf[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=Q5.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(jf[n]=s),s}function Y5(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;hr||(hr=document.createElement("textarea"),hr.setAttribute("tab-index","-1"),hr.setAttribute("aria-hidden","true"),document.body.appendChild(hr)),e.getAttribute("wrap")?hr.setAttribute("wrap",e.getAttribute("wrap")):hr.removeAttribute("wrap");var o=X5(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,s=o.sizingStyle;hr.setAttribute("style","".concat(s,";").concat(q5)),hr.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,v=hr.scrollHeight;if(l==="border-box"?v+=i:l==="content-box"&&(v-=a),n!==null||r!==null){hr.value=" ";var g=hr.scrollHeight-a;n!==null&&(c=g*n,l==="border-box"&&(c=c+a+i),v=Math.max(c,v)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=v>d?"":"hidden",v=Math.min(d,v))}var y={height:v,overflowY:f,resize:"none"};return c&&(y.minHeight=c),d&&(y.maxHeight=d),y}var J5=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zf=0,Bf=1,kf=2,Z5=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 v=it(n,J5),g=ar(o,{value:a,postState:function(W){return W??""}}),y=V(g,2),b=y[0],S=y[1],h=function(W){S(W.target.value),f==null||f(W)},m=u.useRef();u.useImperativeHandle(t,function(){return{textArea:m.current}});var p=u.useMemo(function(){return i&&Ae(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=V(p,2),w=C[0],x=C[1],E=!!i,R=function(){try{if(document.activeElement===m.current){var W=m.current,K=W.selectionStart,ee=W.selectionEnd,Q=W.scrollTop;m.current.setSelectionRange(K,ee),m.current.scrollTop=Q}}catch{}},O=u.useState(kf),_=V(O,2),A=_[0],M=_[1],D=u.useState(),I=V(D,2),H=I[0],F=I[1],P=function(){M(zf)};jt(function(){E&&P()},[a,w,x,E]),jt(function(){if(A===zf)M(Bf);else if(A===Bf){var k=Y5(m.current,!1,w,x);M(kf),F(k)}else R()},[A]);var $=u.useRef(),L=function(){Rt.cancel($.current)},N=function(W){A===kf&&(l==null||l(W),i&&(L(),$.current=Rt(function(){P()})))};u.useEffect(function(){return L},[]);var T=E?H:null,B=z(z({},c),T);return(A===zf||A===Bf)&&(B.overflowY="hidden",B.overflowX="hidden"),u.createElement(zr,{onResize:N,disabled:!(i||l)},u.createElement("textarea",be({},v,{ref:m,style:B,className:q(r,s,j({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:h})))}),e6=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],t6=G.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,v=e.suffix,g=e.prefixCls,y=g===void 0?"rc-textarea":g,b=e.showCount,S=e.count,h=e.className,m=e.style,p=e.disabled,C=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,R=e.readOnly,O=it(e,e6),_=ar(r,{value:o,defaultValue:r}),A=V(_,2),M=A[0],D=A[1],I=M==null?"":String(M),H=G.useState(!1),F=V(H,2),P=F[0],$=F[1],L=G.useRef(!1),N=G.useState(null),T=V(N,2),B=T[0],k=T[1],W=u.useRef(null),K=u.useRef(null),ee=function(){var Ce;return(Ce=K.current)===null||Ce===void 0?void 0:Ce.textArea},Q=function(){ee().focus()};u.useImperativeHandle(t,function(){var xe;return{resizableTextArea:K.current,focus:Q,blur:function(){ee().blur()},nativeElement:((xe=W.current)===null||xe===void 0?void 0:xe.nativeElement)||ee()}}),u.useEffect(function(){$(function(xe){return!p&&xe})},[p]);var ae=G.useState(null),ce=V(ae,2),ne=ce[0],X=ce[1];G.useEffect(function(){if(ne){var xe;(xe=ee()).setSelectionRange.apply(xe,ye(ne))}},[ne]);var te=zx(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,He){var Be=He;!L.current&&te.exceedFormatter&&te.max&&te.strategy(He)>te.max&&(Be=te.exceedFormatter(He,{max:te.max}),He!==Be&&X([ee().selectionStart||0,ee().selectionEnd||0])),D(Be),_c(Ce.currentTarget,Ce,l,Be)},me=function(Ce){L.current=!0,d==null||d(Ce)},le=function(Ce){L.current=!1,Pe(Ce,Ce.currentTarget.value),f==null||f(Ce)},ve=function(Ce){Pe(Ce,Ce.target.value)},se=function(Ce){var He=O.onPressEnter,Be=O.onKeyDown;Ce.key==="Enter"&&He&&He(Ce),Be==null||Be(Ce)},Ee=function(Ce){$(!0),a==null||a(Ce)},Ne=function(Ce){$(!1),i==null||i(Ce)},Se=function(Ce){D(""),Q(),_c(ee(),Ce,l)},Fe=v,pe;te.show&&(te.showFormatter?pe=te.showFormatter({value:I,count:oe,maxLength:ie}):pe="".concat(oe).concat(Y?" / ".concat(ie):""),Fe=G.createElement(G.Fragment,null,Fe,G.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 He;E==null||E(Ce),(He=ee())!==null&&He!==void 0&&He.style.height&&k(!0)},ze=!O.autoSize&&!b&&!s;return G.createElement(jx,{ref:W,value:I,allowClear:s,handleReset:Se,suffix:Fe,prefixCls:y,classNames:z(z({},w),{},{affixWrapper:q(w==null?void 0:w.affixWrapper,j(j({},"".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({},m),B&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:C,readOnly:R},G.createElement(Z5,be({},O,{maxLength:c,onKeyDown:se,onChange:ve,onFocus:Ee,onBlur:Ne,onCompositionStart:me,onCompositionEnd:le,className:q(w==null?void 0:w.textarea),style:z(z({},x==null?void 0:x.textarea),{},{resize:m==null?void 0:m.resize}),disabled:p,prefixCls:y,onResize:ot,ref:K,readOnly:R})))}),n6=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 r6=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:v,style:g,styles:y,variant:b}=e,S=n6(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:h,direction:m,textArea:p}=u.useContext(dt),C=Eo(i),w=u.useContext(La),x=l??w,{status:E,hasFeedback:R,feedbackIcon:O}=u.useContext(bo),_=bd(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 B,k;_5((k=(B=A.current)===null||B===void 0?void 0:B.resizableTextArea)===null||k===void 0?void 0:k.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,H,F]=jg(M,D),[P,$]=Ig("textArea",b,a),L=Bx(c??(p==null?void 0:p.allowClear));return I(u.createElement(t6,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(F,D,v,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"},H,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}`]:$},Oc(M,_)),affixWrapper:q(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:m==="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)},H)}),prefixCls:M,suffix:R&&u.createElement("span",{className:`${M}-textarea-suffix`},O),ref:A})))}),Un=Ed;Un.Group=$5;Un.Search=G5;Un.TextArea=r6;Un.Password=U5;Un.OTP=A5;function Ib(e){return["small","middle","large"].includes(e)}function bk(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Hx=["wrap","nowrap","wrap-reverse"],Vx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Wx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],o6=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&Hx.includes(n)}},a6=(e,t)=>{const n={};return Wx.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},i6=(e,t)=>{const n={};return Vx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function l6(e,t){return q(Object.assign(Object.assign(Object.assign({},o6(e,t)),a6(e,t)),i6(e,t)))}const s6=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},u6=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},c6=e=>{const{componentCls:t}=e,n={};return Hx.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},d6=e=>{const{componentCls:t}=e,n={};return Wx.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},f6=e=>{const{componentCls:t}=e,n={};return Vx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},v6=()=>({}),m6=Pr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Ut(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[s6(o),u6(o),c6(o),d6(o),f6(o)]},v6,{resetStyle:!1});var p6=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 g6=G.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=p6(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:v,direction:g,getPrefixCls:y}=G.useContext(dt),b=y("flex",n),[S,h,m]=m6(b),p=c??(v==null?void 0:v.vertical),C=q(o,r,v==null?void 0:v.className,b,h,m,l6(b,e),{[`${b}-rtl`]:g==="rtl",[`${b}-gap-${l}`]:Ib(l),[`${b}-vertical`]:p}),w=Object.assign(Object.assign({},v==null?void 0:v.style),a);return i&&(w.flex=i),l&&!Ib(l)&&(w.gap=l),S(G.createElement(d,Object.assign({ref:t,className:C,style:w},cr(f,["justify","wrap","align"])),s))});function h6(e){let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,a=`${o}-hidden`,[i,l]=u.useState(!1);jt(()=>{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,v=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:`${v*s/100} ${v*(100-s)/100}`,strokeDashoffset:`${v/4}`}))):null}function y6(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(h6,{prefixCls:t,percent:n}))}function b6(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&u.isValidElement(n)?fs(n,{className:q(n.props.className,o),percent:r}):u.createElement(y6,{prefixCls:t,percent:r})}const S6=new ht("antSpinMove",{to:{opacity:1}}),C6=new ht("antRotate",{to:{transform:"rotate(405deg)"}}),w6=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},to(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:S6,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:C6,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"}})}},E6=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},x6=Pr("Spin",e=>{const t=Ut(e,{spinDotDefault:e.colorTextDescription});return[w6(t)]},E6),R6=200,Tb=[[30,.05],[70,.03],[96,.01]];function $6(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<Tb.length;s+=1){const[c,d]=Tb[s];if(i<=c)return i+l*d}return i})},R6)),()=>{clearInterval(o.current)}),[a,e]),a?n:t}var O6=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 Ux;function P6(e,t){return!!e&&!!t&&!isNaN(Number(t))}const Kx=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:v,percent:g}=e,y=O6(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b}=u.useContext(dt),S=b("spin",t),[h,m,p]=x6(S),[C,w]=u.useState(()=>n&&!P6(n,r)),x=$6(C,g);u.useEffect(()=>{if(n){const I=b5(r,()=>{w(!0)});return I(),()=>{var H;(H=I==null?void 0:I.cancel)===null||H===void 0||H.call(I)}}w(!1)},[r,n]);const E=u.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:R,spin:O}=u.useContext(dt),_=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,m,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(b6,{prefixCls:S,indicator:v??Ux,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,m,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,m,p)},D):D)};Kx.setDefaultIndicator=e=>{Ux=e};var _6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 I6=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:l,footer:s}=e,c=_6(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=u.useContext(dt),f=d(),v=t||d("modal"),g=ka(f),[y,b,S]=LE(v,g),h=`${v}-confirm`;let m={};return a?m={closable:o??!1,title:"",footer:"",children:u.createElement(FE,Object.assign({},e,{prefixCls:v,confirmPrefixCls:h,rootPrefixCls:f,content:l}))}:m={closable:o??!0,title:i,footer:s!==null&&u.createElement(OE,Object.assign({},e)),children:l},y(u.createElement(gE,Object.assign({prefixCls:v,className:q(b,`${v}-pure-panel`,a&&h,a&&`${h}-${a}`,n,S,g)},c,{closeIcon:$E(v,r),closable:o},m)))},T6=UE(I6);function Gx(e){return Ms(BE(e))}const Cn=AE;Cn.useModal=XF;Cn.info=function(t){return Ms(kE(t))};Cn.success=function(t){return Ms(HE(t))};Cn.error=function(t){return Ms(VE(t))};Cn.warning=Gx;Cn.warn=Gx;Cn.confirm=function(t){return Ms(WE(t))};Cn.destroyAll=function(){for(;Sa.length;){const t=Sa.pop();t&&t()}};Cn.config=UF;Cn._InternalPanelDoNotUseOrYouWillBeFired=T6;function qx(e,t){return function(){return e.apply(t,arguments)}}const{toString:M6}=Object.prototype,{getPrototypeOf:zg}=Object,xd=(e=>t=>{const n=M6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kr=e=>(e=e.toLowerCase(),t=>xd(t)===e),Rd=e=>t=>typeof t===e,{isArray:Yi}=Array,hs=Rd("undefined");function N6(e){return e!==null&&!hs(e)&&e.constructor!==null&&!hs(e.constructor)&&Er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qx=Kr("ArrayBuffer");function L6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qx(e.buffer),t}const A6=Rd("string"),Er=Rd("function"),Xx=Rd("number"),$d=e=>e!==null&&typeof e=="object",F6=e=>e===!0||e===!1,ku=e=>{if(xd(e)!=="object")return!1;const t=zg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D6=Kr("Date"),j6=Kr("File"),z6=Kr("Blob"),B6=Kr("FileList"),k6=e=>$d(e)&&Er(e.pipe),H6=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Er(e.append)&&((t=xd(e))==="formdata"||t==="object"&&Er(e.toString)&&e.toString()==="[object FormData]"))},V6=Kr("URLSearchParams"),[W6,U6,K6,G6]=["ReadableStream","Request","Response","Headers"].map(Kr),q6=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]),Yi(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 Yx(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 Jx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zx=e=>!hs(e)&&e!==Jx;function Wm(){const{caseless:e}=Zx(this)&&this||{},t={},n=(r,o)=>{const a=e&&Yx(t,o)||o;ku(t[a])&&ku(r)?t[a]=Wm(t[a],r):ku(r)?t[a]=Wm({},r):Yi(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 Q6=(e,t,n,{allOwnKeys:r}={})=>(Fs(t,(o,a)=>{n&&Er(o)?e[a]=qx(o,n):e[a]=o},{allOwnKeys:r}),e),X6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Y6=(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)},J6=(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&&zg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Z6=(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},eB=e=>{if(!e)return null;if(Yi(e))return e;let t=e.length;if(!Xx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zg(Uint8Array)),nB=(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])}},rB=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oB=Kr("HTMLFormElement"),aB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Mb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),iB=Kr("RegExp"),eR=(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)},lB=e=>{eR(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+"'")})}})},sB=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return Yi(e)?r(e):r(String(e).split(t)),n},uB=()=>{},cB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Hf="abcdefghijklmnopqrstuvwxyz",Nb="0123456789",tR={DIGIT:Nb,ALPHA:Hf,ALPHA_DIGIT:Hf+Hf.toUpperCase()+Nb},dB=(e=16,t=tR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function fB(e){return!!(e&&Er(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vB=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=Yi(r)?[]:{};return Fs(r,(i,l)=>{const s=n(i,o+1);!hs(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},mB=Kr("AsyncFunction"),pB=e=>e&&($d(e)||Er(e))&&Er(e.then)&&Er(e.catch),Z={isArray:Yi,isArrayBuffer:Qx,isBuffer:N6,isFormData:H6,isArrayBufferView:L6,isString:A6,isNumber:Xx,isBoolean:F6,isObject:$d,isPlainObject:ku,isReadableStream:W6,isRequest:U6,isResponse:K6,isHeaders:G6,isUndefined:hs,isDate:D6,isFile:j6,isBlob:z6,isRegExp:iB,isFunction:Er,isStream:k6,isURLSearchParams:V6,isTypedArray:tB,isFileList:B6,forEach:Fs,merge:Wm,extend:Q6,trim:q6,stripBOM:X6,inherits:Y6,toFlatObject:J6,kindOf:xd,kindOfTest:Kr,endsWith:Z6,toArray:eB,forEachEntry:nB,matchAll:rB,isHTMLForm:oB,hasOwnProperty:Mb,hasOwnProp:Mb,reduceDescriptors:eR,freezeMethods:lB,toObjectSet:sB,toCamelCase:aB,noop:uB,toFiniteNumber:cB,findKey:Yx,global:Jx,isContextDefined:Zx,ALPHABET:tR,generateString:dB,isSpecCompliantForm:fB,toJSONObject:vB,isAsyncFn:mB,isThenable:pB};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 nR=rt.prototype,rR={};["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=>{rR[e]={value:e}});Object.defineProperties(rt,rR);Object.defineProperty(nR,"isAxiosError",{value:!0});rt.from=(e,t,n,r,o,a)=>{const i=Object.create(nR);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 gB=null;function Um(e){return Z.isPlainObject(e)||Z.isArray(e)}function oR(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Lb(e,t,n){return e?e.concat(t).map(function(o,a){return o=oR(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function hB(e){return Z.isArray(e)&&!e.some(Um)}const yB=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Od(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)&&hB(y)||(Z.isFileList(y)||Z.endsWith(b,"[]"))&&(h=Z.toArray(y)))return b=oR(b),h.forEach(function(p,C){!(Z.isUndefined(p)||p===null)&&t.append(i===!0?Lb([b],C,a):i===null?b:b+"[]",c(p))}),!1}return Um(y)?!0:(t.append(Lb(S,b,a),c(y)),!1)}const f=[],v=Object.assign(yB,{defaultVisitor:d,convertValue:c,isVisitable:Um});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,m){(!(Z.isUndefined(h)||h===null)&&o.call(t,h,Z.isString(m)?m.trim():m,b,v))===!0&&g(h,b?b.concat(m):[m])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ab(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bg(e,t){this._pairs=[],e&&Od(e,this,t)}const aR=Bg.prototype;aR.append=function(t,n){this._pairs.push([t,n])};aR.toString=function(t){const n=t?function(r){return t.call(this,r,Ab)}:Ab;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iR(e,t,n){if(!t)return e;const r=n&&n.encode||bB,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Bg(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Fb{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 lR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SB=typeof URLSearchParams<"u"?URLSearchParams:Bg,CB=typeof FormData<"u"?FormData:null,wB=typeof Blob<"u"?Blob:null,EB={isBrowser:!0,classes:{URLSearchParams:SB,FormData:CB,Blob:wB},protocols:["http","https","file","blob","url","data"]},kg=typeof window<"u"&&typeof document<"u",xB=(e=>kg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),RB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$B=kg&&window.location.href||"http://localhost",OB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kg,hasStandardBrowserEnv:xB,hasStandardBrowserWebWorkerEnv:RB,origin:$B},Symbol.toStringTag,{value:"Module"})),Hr={...OB,...EB};function PB(e,t){return Od(e,new Hr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Hr.isNode&&Z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function _B(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function IB(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 sR(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]=IB(o[i])),!l)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(r,o)=>{t(_B(r),o,n,0)}),n}return null}function TB(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 Ds={transitional:lR,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(sR(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 PB(t,this.formSerializer).toString();if((l=Z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Od(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),TB(t)):t}],transformResponse:[function(t){const n=this.transitional||Ds.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:Hr.classes.FormData,Blob:Hr.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=>{Ds.headers[e]={}});const MB=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"]),NB=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]&&MB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Db=Symbol("internals");function ml(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Hu):String(e)}function LB(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 AB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vf(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 FB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function DB(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 Xn{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,c){const d=ml(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]=Hu(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())&&!AB(t))i(NB(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=ml(t),t){const r=Z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return LB(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=ml(t),t){const r=Z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=ml(i),i){const l=Z.findKey(r,i);l&&(!n||Vf(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||Vf(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]=Hu(o),delete n[a];return}const l=t?FB(a):String(a).trim();l!==a&&delete n[a],n[l]=Hu(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[Db]=this[Db]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=ml(i);r[l]||(DB(o,i),r[l]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Xn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Z.freezeMethods(Xn);function Wf(e,t){const n=this||Ds,r=t||n,o=Xn.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 uR(e){return!!(e&&e.__CANCEL__)}function Ji(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(Ji,rt,{__CANCEL__:!0});function cR(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 jB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zB(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,v=0;for(;f!==o;)v+=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(v*1e3/g):void 0}}function BB(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 Ic=(e,t,n=3)=>{let r=0;const o=zB(50,250);return BB(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)},kB=Hr.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}}(),HB=Hr.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 VB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dR(e,t){return e&&!VB(t)?WB(e,t):t}const jb=e=>e instanceof Xn?{...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(jb(c),jb(d),!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=s[d]||o,v=f(e[d],t[d],d);Z.isUndefined(v)&&f!==l||(n[d]=v)}),n}const fR=e=>{const t=Aa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Xn.from(i),t.url=iR(dR(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(Hr.hasStandardBrowserEnv||Hr.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(Hr.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&kB(t.url))){const c=o&&a&&HB.read(a);c&&i.set(o,c)}return t},UB=typeof XMLHttpRequest<"u",KB=UB&&function(e){return new Promise(function(n,r){const o=fR(e);let a=o.data;const i=Xn.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=Xn.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};cR(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||lR;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",Ic(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ic(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=g=>{d&&(r(!g||g.type?new Ji(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 v=jB(o.url);if(v&&Hr.protocols.indexOf(v)===-1){r(new rt("Unsupported protocol "+v+":",rt.ERR_BAD_REQUEST,e));return}d.send(a||null)})},GB=(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 Ji(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}]},qB=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},QB=async function*(e,t,n){for await(const r of e)yield*qB(ArrayBuffer.isView(r)?r:await n(String(r)),t)},zb=(e,t,n,r,o)=>{const a=QB(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})},Bb=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Pd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vR=Pd&&typeof ReadableStream=="function",Km=Pd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XB=vR&&(()=>{let e=!1;const t=new Request(Hr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),kb=64*1024,Gm=vR&&!!(()=>{try{return Z.isReadableStream(new Response("").body)}catch{}})(),Tc={stream:Gm&&(e=>e.body)};Pd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Tc[t]&&(Tc[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 YB=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 Km(e)).byteLength},JB=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??YB(t)},ZB=Pd&&(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:v}=fR(e);c=c?(c+"").toLowerCase():"text";let[g,y]=o||a||i?GB([o,a],i):[],b,S;const h=()=>{!b&&setTimeout(()=>{g&&g.unsubscribe()}),b=!0};let m;try{if(s&&XB&&n!=="get"&&n!=="head"&&(m=await JB(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=zb(x.body,kb,Bb(m,Ic(s)),null,Km))}Z.isString(f)||(f=f?"cors":"omit"),S=new Request(t,{...v,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let p=await fetch(S);const C=Gm&&(c==="stream"||c==="response");if(Gm&&(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(zb(p.body,kb,l&&Bb(E,Ic(l,!0)),C&&h,Km),x)}c=c||"text";let w=await Tc[Z.findKey(Tc,c)||"text"](p,e);return!C&&h(),y&&y(),await new Promise((x,E)=>{cR(x,E,{data:w,headers:Xn.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)}}),qm={http:gB,xhr:KB,fetch:ZB};Z.forEach(qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hb=e=>`- ${e}`,e8=e=>Z.isFunction(e)||e===null||e===!1,mR={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,!e8(n)&&(r=qm[(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(Hb).join(`
`):" "+Hb(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:qm};function Uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function Vb(e){return Uf(e),e.headers=Xn.from(e.headers),e.data=Wf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mR.getAdapter(e.adapter||Ds.adapter)(e).then(function(r){return Uf(e),r.data=Wf.call(e,e.transformResponse,r),r.headers=Xn.from(r.headers),r},function(r){return uR(r)||(Uf(e),r&&r.response&&(r.response.data=Wf.call(e,e.transformResponse,r.response),r.response.headers=Xn.from(r.response.headers))),Promise.reject(r)})}const pR="1.7.2",Hg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wb={};Hg.transitional=function(t,n,r){function o(a,i){return"[Axios v"+pR+"] 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&&!Wb[i]&&(Wb[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 t8(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 Qm={assertOptions:t8,validators:Hg},_o=Qm.validators;class Ra{constructor(t){this.defaults=t,this.interceptors={request:new Fb,response:new Fb}}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&&Qm.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}:Qm.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=Xn.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,v;if(!s){const y=[Vb.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),v=y.length,d=Promise.resolve(n);f<v;)d=d.then(y[f++],y[f++]);return d}v=l.length;let g=n;for(f=0;f<v;){const y=l[f++],b=l[f++];try{g=y(g)}catch(S){b.call(this,S);break}}try{d=Vb.call(this,g)}catch(y){return Promise.reject(y)}for(f=0,v=c.length;f<v;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Aa(this.defaults,t);const n=dR(t.baseURL,t.url);return iR(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 Vg{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 Ji(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 Vg(function(o){t=o}),cancel:t}}}function n8(e){return function(n){return e.apply(null,n)}}function r8(e){return Z.isObject(e)&&e.isAxiosError===!0}const Xm={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(Xm).forEach(([e,t])=>{Xm[t]=e});function gR(e){const t=new Ra(e),n=qx(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 gR(Aa(e,o))},n}const rn=gR(Ds);rn.Axios=Ra;rn.CanceledError=Ji;rn.CancelToken=Vg;rn.isCancel=uR;rn.VERSION=pR;rn.toFormData=Od;rn.AxiosError=rt;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=n8;rn.isAxiosError=r8;rn.mergeConfig=Aa;rn.AxiosHeaders=Xn;rn.formToJSON=e=>sR(Z.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=mR.getAdapter;rn.HttpStatusCode=Xm;rn.default=rn;const hR=window.location.protocol+"//universitysolutions.in/collportal";console.log(hR);const vo=rn.create({baseURL:hR,headers:{"X-Auth-Origin":"UNICLARE"}});vo.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 mn=(e,t)=>{console.log(e),e.toLowerCase()=="error"?Cn.error({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#FF4D4F",borderColor:"#FF4D4F"}}}):e.toLowerCase()=="success"?Cn.success({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#52c41a",borderColor:"#52c41a"}}}):e.toLowerCase()=="info"?Cn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}}):e.toLowerCase()=="warning"?Cn.warning({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#faad14",borderColor:"#faad14"}}}):Cn.info({title:e.toUpperCase(),content:t,centered:!0,okButtonProps:{style:{backgroundColor:"#8231d3",borderColor:"#8231d3"}}})},o8=()=>async(e,t)=>{try{const n=await vo.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){mn("error",n.message)}},a8=(e,t)=>async(n,r)=>{try{const o=r();let a=localStorage.getItem("dbname"),i=localStorage.getItem("type");n({type:"SET_BTN_LOADER"});const l=await vo.post("/app.php?a=uniclareLogin&db="+a+"&type="+i,t);n({type:"UNSET_BTN_LOADER"}),l.data.error_code===0?(l.data.data.users.length===1&&l.data.data.users[0].fusertype!=="A"&&(localStorage.setItem("uniclare-token",l.data.data.token),localStorage.setItem("userInfo",JSON.stringify(l.data.data.userInfo)),n({type:"USER_INFO",payload:l.data.data.userInfo})),n({type:"USERS",payload:l.data.data.users}),n({type:"SET_ERROR_MSG",payload:""})):(mn("info",l.data.data.msg),n({type:"SET_ERROR_MSG",payload:l.data.data.msg}))}catch(o){mn("error",o.message)}},Sk=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:[]})},i8=e=>async(t,n)=>{try{const r=localStorage.getItem("uniclare-rootpath");t({type:"SET_LOADER"});const o=await vo.get("app.php?a=isLoggedIn");if(t({type:"UNSET_LOADER"}),typeof o.data!="object"){localStorage.removeItem("uniclare-token"),localStorage.removeItem("userInfo"),mn("error","Token Expired ! Please Login Again"),e(r);return}}catch(r){mn("error",r.message);return}},l8=(e,t)=>async(n,r)=>{try{const o=r();let a=localStorage.getItem("dbname"),i=localStorage.getItem("type");n({type:"SET_LOADER"});const l=await vo.post("/app.php?a=uniclareAdminLogin&db="+a+"&type="+i,t);n({type:"UNSET_LOADER"}),l.data.error_code===0?(l.data.data.users.length===1&&(localStorage.setItem("uniclare-token",l.data.data.token),localStorage.setItem("userInfo",JSON.stringify(l.data.data.userInfo)),n({type:"USER_INFO",payload:l.data.data.userInfo})),n({type:"USERS",payload:l.data.data.users}),n({type:"SET_ERROR_MSG",payload:""})):(mn("info",l.data.data.msg),n({type:"SET_ERROR_MSG",payload:l.data.data.msg}))}catch(o){mn("error",o.message)}};var s8={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"},u8=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:s8}))},c8=u.forwardRef(u8),d8={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"},f8=function(t,n){return u.createElement(cn,be({},t,{ref:n,icon:d8}))},Ub=u.forwardRef(f8);const v8="/assets/098_logo-Cc_avybB.jpg",m8="/assets/Logisys-CUGyUsc1.png",p8=e=>{const t=u.useRef(null),n=u.useRef(null),[r,o]=u.useState({mobileno:"7353604921",password:"7353604921",usertype:"",otp:""}),[a,i]=u.useState([]),[l,s]=u.useState(!1),c=Es(),d=za(),f=WP();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",v8):localStorage.setItem("univlogo",m8),v()},[]),u.useEffect(()=>{var m;i(e.loginfo.users),((m=e.loginfo.users)==null?void 0:m.length)===1&&(o({...r,usertype:e.loginfo.users[0].fusertype}),e.loginfo.users[0].fusertype==="A"&&b())},[e.loginfo.users]);const v=async()=>{e.getUnivDetails()},g=async(m,p)=>{o(p==="usertype"?{...r,[p]:m}:{...r,[m.target.name]:m.target.value})},y=async(m,p)=>{if(e.loginfo.users!==void 0&&e.loginfo.users.length>1&&r.usertype===""||r.mobileno===""||r.password===""){mn("Warning","Please fill all the fields");return}r.usertype==="A"?await b():await e.handleLogin(c,r)},b=async()=>{try{f({type:"SET_BTN_LOADER"});const m=localStorage.getItem("dbname");let p=localStorage.getItem("type");const C=await vo.post("app.php?a=getAdminOTP&db="+m+"&type="+p,r);f({type:"UNSET_BTN_LOADER"}),C.data.error_code===0?s(!0):mn("error",C.data.data.msg)}catch(m){mn("error",m.message);return}},S=async()=>{if(r.otp===""){mn("warning","Please Enter OTP ");return}await e.handleAdminLogin(c,r)},h=(m,p)=>{p!=="continue"&&m.key==="Enter"?t.current.click():p==="continue"&&m.key==="Enter"&&n.current.click()};return U.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:[U.jsx(Cn,{title:"Enter OTP",open:l,width:400,footer:[U.jsx(wr,{size:"medium",type:"primary",danger:!0,onClick:()=>s(!1),children:"Cancel"},2),U.jsx(wr,{size:"medium",type:"primary",onClick:()=>S(),ref:n,children:"Continue"},1)],closable:!1,children:U.jsx(Un,{size:"large",style:{marginBottom:"10px"},prefix:U.jsx(Ub,{}),name:"otp",value:r.otp,maxLength:6,onChange:g,onKeyDown:m=>h(m,"continue")})}),U.jsxs(gs,{style:{width:400},children:[U.jsx("h2",{children:"Login"}),U.jsx("p",{children:"Sign in to your account"}),U.jsx("label",{children:"Mobile Number"}),U.jsx(Un,{size:"large",style:{marginBottom:"10px"},prefix:U.jsx(Ub,{}),name:"mobileno",value:r.mobileno,maxLength:10,onChange:g,onKeyDown:h}),U.jsx("label",{children:"Password"}),U.jsx(Un.Password,{size:"large",style:{marginBottom:"20px"},prefix:U.jsx(c8,{}),name:"password",value:r.password,onChange:g,onKeyDown:h}),(a==null?void 0:a.length)>1&&U.jsxs("div",{children:[U.jsx("label",{children:"Select Role"}),U.jsx(Wa,{placeholder:"Login as",value:r.usertype,options:e.loginfo.users.map((m,p)=>({key:p,value:m.fusertype,label:m.fdescpn})),style:{width:"100%",marginBottom:"20px"},onChange:m=>g(m,"usertype"),onKeyDown:h})]}),U.jsx(wr,{ref:t,type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:e.loader,onClick:()=>y(),children:(a==null?void 0:a.length)>1?"OK":"Login"}),U.jsx(hC,{to:"/register",children:"Click here to Register"})]})]})},g8=e=>({loginfo:e.loginfo,loader:e.loader.btnLoading}),Kf=Zp(g8,{handleLogin:a8,getUnivDetails:o8,handleAdminLogin:l8})(p8),h8=()=>U.jsx("div",{children:"NoPageFound"}),y8=()=>{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),v=localStorage.getItem("uniclare-rootpath"),g=localStorage.getItem("dbname"),y=Es(),b=(p,C)=>{C=="usertype"?t({...e,[C]:p}):t({...e,[p.target.name]:p.target.value})},S=async()=>{a(!0),await vo.get("/app.php?a=validateRegno&db="+g+"&usertype="+e.usertype+"®no="+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)):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))},h=async()=>{a(!0),await vo.post("/app.php?a=sendOtp&db="+g,e).then(p=>{p.data.error_code===0?(c(!1),f(!0)):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))},m=async()=>{a(!0),await vo.post("/app.php?a=registerUser&db="+g,e).then(p=>{p.data.error_code===0?(mn("success",p.data.data.msg),y(localStorage.getItem("uniclare-rootpath"))):mn("info",p.data.data.msg),a(!1)}).catch(p=>mn("error",p))};return U.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:[U.jsxs(Cn,{title:"OTP Verification",centered:!0,open:d,footer:[U.jsx(wr,{onClick:()=>m(),loading:o,children:"Register"},"ok")],children:[U.jsx("label",{children:"Enter OTP"}),U.jsx(Un,{name:"otp",style:{marginBottom:"20px"},value:e.otp,maxLength:4,onChange:b})]}),U.jsxs(gs,{style:{width:400},children:[U.jsx("h4",{children:"Registration"}),U.jsx("p",{children:"Create your account"}),U.jsx("label",{children:"User Type"}),U.jsx(Wa,{disabled:!i&&!0,defaultValue:"teacher",name:"usertype",style:{width:"100%",marginBottom:"20px"},value:e.usertype,options:n,onChange:p=>b(p,"usertype")}),U.jsx("label",{children:"Teacher Code"}),U.jsx(Un,{disabled:!i&&!0,name:"regno",style:{marginBottom:"20px"},value:e.regno,maxLength:20,onChange:b}),i?U.jsx(wr,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>S(),children:"Validate"}):U.jsxs("div",{children:[U.jsxs(gs,{style:{marginBottom:"20px"},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},children:[U.jsx("span",{children:U.jsx("b",{children:"Name"})}),U.jsx("span",{children:e.name})]}),U.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[U.jsx("span",{children:U.jsx("b",{children:"Date of Birth"})}),U.jsx("span",{children:e.dob})]})]}),U.jsx("label",{children:"Mobile Number"}),U.jsx(Un,{name:"mobileNo",disabled:!0,style:{marginBottom:"20px"},value:e.mobileNo,maxLength:10}),U.jsx("label",{children:"Email ID"}),U.jsx(Un,{name:"emailId",disabled:!0,style:{marginBottom:"20px"},value:e.emailId}),U.jsx("label",{children:"Password"}),U.jsx(Un.Password,{name:"password",style:{marginBottom:"20px"},value:e.password,maxLength:32,onChange:b}),U.jsx("label",{children:"Confirm Password"}),U.jsx(Un.Password,{name:"confirmPassword",style:{marginBottom:"20px"},value:e.confirmPassword,maxLength:32,onChange:b}),s&&U.jsx(wr,{type:"primary",style:{width:"100%",color:"#fff",marginBottom:"20px"},loading:o,onClick:()=>h(),children:"Send OTP"})]}),"Already Registered ?",U.jsx(hC,{to:v,children:U.jsx("a",{children:"Click here"})})]})]})},b8=()=>U.jsxs(gC,{children:[U.jsx(nt,{path:"/dypatil",element:U.jsx(Kf,{})}),U.jsx(nt,{path:"/demo",element:U.jsx(Kf,{})}),U.jsx(nt,{path:"/acu",element:U.jsx(Kf,{})}),U.jsx(nt,{path:"/",element:U.jsx(Hv,{to:"404"})}),U.jsx(nt,{path:"404",element:U.jsx(h8,{})}),U.jsx(nt,{path:"*",element:U.jsx(Hv,{to:"404"})}),U.jsx(nt,{path:"register",element:U.jsx(y8,{})})]}),S8="modulepreload",C8=function(e){return"/"+e},Kb={},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=C8(l),l in Kb)return;Kb[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":S8,s||(d.as="script",d.crossOrigin=""),d.href=l,i&&d.setAttribute("nonce",i),document.head.appendChild(d),s)return new Promise((f,v)=>{d.addEventListener("load",f),d.addEventListener("error",()=>v(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})},w8={padding:50,background:"rgba(0, 0, 0, 0.05)",borderRadius:4},E8=U.jsx("div",{style:w8}),x8=()=>U.jsx($s,{theme:{components:{Spin:{colorPrimary:"#8231d3"}}},children:U.jsx(g6,{style:{height:"100vh",justifyContent:"center",alignItems:"center",position:"fixed",zIndex:1,backgroundColor:"#000",opacity:.8,width:"100%",textShadow:"none"},children:U.jsx(Kx,{tip:"Loading...",size:"large",children:E8})})}),R8=u.lazy(()=>Ct(()=>import("./Header-Dz_TKOcE.js"),__vite__mapDeps([0,1]))),$8=u.lazy(()=>Ct(()=>import("./Dashboard-DAWU3CsT.js"),[])),O8=u.lazy(()=>Ct(()=>import("./GuideLines-C7f-pcP8.js"),__vite__mapDeps([2,3,4]))),P8=u.lazy(()=>Ct(()=>import("./BankDetails-BXhX5Z12.js"),__vite__mapDeps([5,3,4,6,7]))),_8=u.lazy(()=>Ct(()=>import("./QpPattern-CbGJI_fa.js"),__vite__mapDeps([8,9,10,11,3,12,13,14,15,4,6,7,16,17]))),I8=u.lazy(()=>Ct(()=>import("./AvailableQp-CUU-ezAs.js"),__vite__mapDeps([18,9,10,11,3,19,16,17,14,13,7,20,4,6]))),T8=u.lazy(()=>Ct(()=>import("./EligibleQpSetter-YCVkahhE.js"),__vite__mapDeps([21,9,10,11,3,20,4,6,7,16,17,14,13]))),M8=u.lazy(()=>Ct(()=>import("./SelectQpSetter-gRR3JPXp.js"),__vite__mapDeps([22,23,10,9,11,3,20,4,6,7,16,17,14,13]))),N8=u.lazy(()=>Ct(()=>import("./AcceptQpRequest-CodLqWU9.js"),__vite__mapDeps([24,3,4,16,17,14,13,7]))),L8=u.lazy(()=>Ct(()=>import("./UploadQuestionPaper-BnIfO7TV.js"),__vite__mapDeps([25,12,13,14,15,3,4,16,17,7]))),A8=u.lazy(()=>Ct(()=>import("./PrepareQuestionPaper-Bz-uC7mg.js"),__vite__mapDeps([26,27,3,4,16,17,14,13,7,28,29]))),F8=u.lazy(()=>Ct(()=>import("./PrepareThQp-qsJJ8k63.js"),__vite__mapDeps([30,31,32,27,9,3,19,29,4,13,14,6,7,12,15,33]))),D8=u.lazy(()=>Ct(()=>import("./AssignModerator-DG0MQ7xG.js"),__vite__mapDeps([34,23,9,10,3,20,4,6,7,16,17,14,13]))),j8=u.lazy(()=>Ct(()=>import("./DisplayTempCode-CD9w1c1d.js"),__vite__mapDeps([35,36,11,3,4,16,17,14,13,7,28,29,15]))),z8=u.lazy(()=>Ct(()=>import("./CreateTempCode-BrGuDMDH.js"),__vite__mapDeps([37,36,16,17,14,13,3,7,15,19,4,6]))),B8=u.lazy(()=>Ct(()=>import("./QpSummary-B21-SMTB.js"),__vite__mapDeps([38,10,9,11,3,29,4,6,7,16,17,14,13]))),k8=u.lazy(()=>Ct(()=>import("./SelectFinalQp-CTEivKHV.js"),__vite__mapDeps([39,10,9,40,11,3,20,4,6,7,16,17,14,13]))),H8=u.lazy(()=>Ct(()=>import("./SelectFinalMCQQp-DbGnIN43.js"),__vite__mapDeps([41,9,10,40,11,3,20,4,6,7,16,17,14,13,29]))),V8=u.lazy(()=>Ct(()=>import("./ModQpDetailsOnline-h3CqbEaP.js"),__vite__mapDeps([42,43,3,4,16,17,14,13,7,28,29]))),W8=u.lazy(()=>Ct(()=>import("./ModQpDetailsOffline-CU_Gdz7J.js"),__vite__mapDeps([44,43,12,13,14,15,16,17,3,7,19,4]))),U8=u.lazy(()=>Ct(()=>import("./ViewMcqFinalPaper-D9KQENtr.js"),__vite__mapDeps([45,9,10,27,3,6,7,16,17,14,13]))),K8=u.lazy(()=>Ct(()=>import("./GenerateBill-BhnonOeZ.js"),__vite__mapDeps([46,10,9,3,6,7]))),G8=u.lazy(()=>Ct(()=>import("./ChangePassword-DLIr4jOD.js"),__vite__mapDeps([47,3,6,7]))),q8=u.lazy(()=>Ct(()=>import("./ViewQPScr-WDlalJ93.js"),__vite__mapDeps([48,49,11,3,10,50,4,6,7,16,17,14,13]))),Q8=u.lazy(()=>Ct(()=>import("./ViewFinalQP-CLSS9AGP.js"),__vite__mapDeps([51,49,11,3,10,50,4,6,7,16,17,14,13,12,15,20]))),X8=u.lazy(()=>Ct(()=>import("./AssignUserMenus-C7aJCzjf.js"),__vite__mapDeps([52,53,3,50,20,4,6,7,17,14]))),Y8=u.lazy(()=>Ct(()=>import("./Usertype-Ckr0GHBs.js"),__vite__mapDeps([54,53,3,50,4,16,17,14,13,7,6,20,28]))),J8=u.lazy(()=>Ct(()=>import("./CreateUser-D2oGzVfo.js"),__vite__mapDeps([55,23,9,53,3,50,4,16,17,14,13,7,6,28]))),Gb=u.lazy(()=>Ct(()=>import("./TeacherEntry-DhR2yFtA.js"),__vite__mapDeps([56,23,9,57,3,50,4,6,7]))),Z8=u.lazy(()=>Ct(()=>import("./ViewTeacherList-Bbu3jvRF.js"),__vite__mapDeps([58,57,11,3,19,4,16,17,14,13,7,28]))),ek=u.lazy(()=>Ct(()=>import("./PrepareQuestionPaper-CGCNvbvD.js"),__vite__mapDeps([59,31,32,60,9,3,19,4,13,14,6,7,12,15,61]))),qb=u.lazy(()=>Ct(()=>import("./ViewPrepareQp-8EypCn3q.js"),__vite__mapDeps([62,60,3,4,16,17,14,13,7,28,29]))),tk=e=>U.jsx("div",{children:U.jsxs(u.Suspense,{fallback:U.jsx("h2",{children:"Loading..."}),children:[U.jsx(R8,{}),e.loader&&U.jsx(x8,{}),U.jsxs(gC,{children:[U.jsx(nt,{path:"*",element:U.jsx(Hv,{to:"/dashboard",replace:!0})}),U.jsx(nt,{path:"dashboard",element:U.jsx($8,{})}),U.jsx(nt,{path:"/qpsettings/guidelines",element:U.jsx(O8,{})}),U.jsx(nt,{path:"/qpsettings/bank-details",element:U.jsx(P8,{})}),U.jsx(nt,{path:"/qpsettings/upload-qp-pattern",element:U.jsx(_8,{})}),U.jsx(nt,{path:"/qpsettings/available-qp",element:U.jsx(I8,{})}),U.jsx(nt,{path:"/qpsettings/eligible-qp-setter",element:U.jsx(T8,{})}),U.jsx(nt,{path:"/qpsettings/select-qp-setter",element:U.jsx(M8,{})}),U.jsx(nt,{path:"/qpsettings/accept-qp-request",element:U.jsx(N8,{})}),U.jsx(nt,{path:"/qpsettings/upload-qp",element:U.jsx(L8,{})}),U.jsx(nt,{path:"/qpsettings/prepare-qp",element:U.jsx(A8,{})}),U.jsx(nt,{path:"/qpsettings/prepare-thqp/:qpcode/:year/:mode/:teachcode/:set/:tempcode/:type/:disabled",element:U.jsx(F8,{})}),U.jsx(nt,{path:"/qpsettings/assign-moderator",element:U.jsx(D8,{})}),U.jsx(nt,{path:"/qpsettings/qpsummary",element:U.jsx(B8,{})}),U.jsx(nt,{path:"/qpsettings/crttemp",element:U.jsx(j8,{})}),U.jsx(nt,{path:"/qpsettings/edit/:type/:ftempcode",element:U.jsx(z8,{})}),U.jsx(nt,{path:"/qpsettings/select-final-qp",element:U.jsx(k8,{})}),U.jsx(nt,{path:"/qpsettings/select-final-mcq-qp",element:U.jsx(H8,{})}),U.jsx(nt,{path:"/qpsettings/mod-qp-det-online",element:U.jsx(V8,{})}),U.jsx(nt,{path:"/qpsettings/mod-qp-det-offline",element:U.jsx(W8,{})}),U.jsx(nt,{path:"/qpsettings/mcq-final-paper",element:U.jsx(U8,{})}),U.jsx(nt,{path:"/qpsettings/generatebill",element:U.jsx(K8,{})}),U.jsx(nt,{path:"/qpsettings/changepwd",element:U.jsx(G8,{})}),U.jsx(nt,{path:"/viewQPscr",element:U.jsx(q8,{})}),U.jsx(nt,{path:"/viewFinalQPScr",element:U.jsx(Q8,{})}),U.jsx(nt,{path:"/qpsetting/assign-user-menus",element:U.jsx(X8,{})}),U.jsx(nt,{path:"/qpsetting/create-usertype",element:U.jsx(Y8,{})}),U.jsx(nt,{path:"/qpsettings/create-user",element:U.jsx(J8,{})}),U.jsx(nt,{path:"/qpsettings/teacher-entry/:type",element:U.jsx(Gb,{})}),U.jsx(nt,{path:"/qpsettings/view-teacher-list",element:U.jsx(Z8,{})}),U.jsx(nt,{path:"/qpsettings/teacher-entry/:teachcode/:mobileno/:type",element:U.jsx(Gb,{})}),U.jsx(nt,{path:"/qpsettings/prepare-qn-paper/:qpcode/:year/:mode/:teachcode/:set/:tempcode/:type/:disabled",element:U.jsx(ek,{})}),U.jsx(nt,{path:"/qpsettings/prepare-qp-2",element:U.jsx(qb,{})}),U.jsx(nt,{path:"/qpsettings/mod-qp-online-2",element:U.jsx(qb,{})})]})]})}),nk=e=>({loader:e.loader.appLoading}),rk=Zp(nk)(tk),pl={borderRadius:6,colorPrimary:"#8231d3",Button:{colorPrimary:"#8231d3"},borderColor:"#d9d9d9"},ok=e=>{var c,d;const[t,n]=u.useState(["demo","acu","dypatil"]),r=localStorage.getItem("uniclare-token"),o=Es(),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 U.jsx($s,{theme:{token:{colorPrimary:pl.colorPrimary,borderRadius:pl.borderRadius,colorBorder:pl.borderColor},components:{Button:{colorPrimary:(c=pl.Button)==null?void 0:c.colorPrimary,algorithm:(d=pl.Button)==null?void 0:d.algorithm},Table:{borderColor:"#cedce5"}}},componentSize:"large",children:U.jsx("div",{children:r===null?U.jsx(b8,{}):U.jsx(rk,{})})})},ak=e=>({token:e.loginfo.userData}),ik=Zp(ak,{isUserLoggedIn:i8})(ok);Gf.createRoot(document.getElementById("root")).render(U.jsx(D2,{children:U.jsx(kP,{store:lI,children:U.jsx(ik,{})})}));export{dk as $,Sk as A,wr as B,wo as C,gs as D,mn as E,Un as F,Wa as G,WP as H,cn as I,ez as J,re as K,hC as L,Cn as M,Os as N,hR as O,wg as P,sk as Q,k5 as R,Va as S,S3 as T,to as U,EF as V,yk as W,ka as X,fk as Y,ye as Z,it as _,be as a,bk as a$,xE as a0,hI as a1,La as a2,Eo as a3,uM as a4,_4 as a5,Sw as a6,Di as a7,hk as a8,pk as a9,c8 as aA,r6 as aB,Jo as aC,Ym as aD,ux as aE,lk as aF,Fn as aG,Ae as aH,ck as aI,ht as aJ,wn as aK,ia as aL,la as aM,gn as aN,lt as aO,hn as aP,G as aQ,Ha as aR,Dn as aS,Gi as aT,zi as aU,sF as aV,dm as aW,ar as aX,vk as aY,VL as aZ,Ib as a_,Ts as aa,Zo as ab,bo as ac,Rt as ad,Ur as ae,_w as af,cd as ag,Na as ah,ZN as ai,iL as aj,hg as ak,qw as al,yg as am,cr as an,gk as ao,ki as ap,xc as aq,ji as ar,wE as as,aa as at,fs as au,sM as av,S4 as aw,$4 as ax,Fx as ay,Ub as az,V as b,lr as b0,wx as b1,Cd as b2,uk as b3,nN as b4,Rc as b5,LF as b6,mg as b7,Ls as b8,Fg as b9,EA as bA,rx as bB,rz as bC,ma as bD,Mj as bE,Kx as bF,tE as bG,zL as bH,Rg as bI,pL as bJ,tn as ba,As as bb,n3 as bc,Ex as bd,PE as be,IE as bf,_E as bg,TE as bh,Dy as bi,yz as bj,YF as bk,md as bl,Bv as bm,Rx as bn,xx as bo,_x as bp,Ix as bq,$x as br,Dg as bs,cM as bt,ls as bu,Rs as bv,Yr as bw,zr as bx,ng as by,mk as bz,q as c,z as d,j as e,jt as f,dt as g,T4 as h,Iy as i,Pr as j,J as k,dd as l,Ut as m,rF as n,Jw as o,ea as p,Mm as q,u as r,Bi as s,U as t,Ba as u,vo as v,Tn as w,Zp as x,Es as y,Qw as z};
|