Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
front_back
/
assets
:
index-jFqhleCm.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
function dS(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(n,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(i){if(i.ep)return;i.ep=!0;const l=r(i);fetch(i.href,l)}})();function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hp={exports:{}},ns={},mp={exports:{}},gt={};/** * @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 ay;function O2(){if(ay)return gt;ay=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function y(A){return A===null||typeof A!="object"?null:(A=g&&A[g]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function S(A,D,ie){this.props=A,this.context=D,this.refs=C,this.updater=ie||x}S.prototype.isReactComponent={},S.prototype.setState=function(A,D){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,D,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function E(){}E.prototype=S.prototype;function T(A,D,ie){this.props=A,this.context=D,this.refs=C,this.updater=ie||x}var O=T.prototype=new E;O.constructor=T,w(O,S.prototype),O.isPureReactComponent=!0;var _=Array.isArray,R=Object.prototype.hasOwnProperty,$={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function I(A,D,ie){var Q,ae={},ue=null,se=null;if(D!=null)for(Q in D.ref!==void 0&&(se=D.ref),D.key!==void 0&&(ue=""+D.key),D)R.call(D,Q)&&!M.hasOwnProperty(Q)&&(ae[Q]=D[Q]);var ce=arguments.length-2;if(ce===1)ae.children=ie;else if(1<ce){for(var fe=Array(ce),Se=0;Se<ce;Se++)fe[Se]=arguments[Se+2];ae.children=fe}if(A&&A.defaultProps)for(Q in ce=A.defaultProps,ce)ae[Q]===void 0&&(ae[Q]=ce[Q]);return{$$typeof:e,type:A,key:ue,ref:se,props:ae,_owner:$.current}}function L(A,D){return{$$typeof:e,type:A.type,key:D,ref:A.ref,props:A.props,_owner:A._owner}}function V(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function X(A){var D={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ie){return D[ie]})}var ee=/\/+/g;function K(A,D){return typeof A=="object"&&A!==null&&A.key!=null?X(""+A.key):D.toString(36)}function W(A,D,ie,Q,ae){var ue=typeof A;(ue==="undefined"||ue==="boolean")&&(A=null);var se=!1;if(A===null)se=!0;else switch(ue){case"string":case"number":se=!0;break;case"object":switch(A.$$typeof){case e:case t:se=!0}}if(se)return se=A,ae=ae(se),A=Q===""?"."+K(se,0):Q,_(ae)?(ie="",A!=null&&(ie=A.replace(ee,"$&/")+"/"),W(ae,D,ie,"",function(Se){return Se})):ae!=null&&(V(ae)&&(ae=L(ae,ie+(!ae.key||se&&se.key===ae.key?"":(""+ae.key).replace(ee,"$&/")+"/")+A)),D.push(ae)),1;if(se=0,Q=Q===""?".":Q+":",_(A))for(var ce=0;ce<A.length;ce++){ue=A[ce];var fe=Q+K(ue,ce);se+=W(ue,D,ie,fe,ae)}else if(fe=y(A),typeof fe=="function")for(A=fe.call(A),ce=0;!(ue=A.next()).done;)ue=ue.value,fe=Q+K(ue,ce++),se+=W(ue,D,ie,fe,ae);else if(ue==="object")throw D=String(A),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return se}function J(A,D,ie){if(A==null)return A;var Q=[],ae=0;return W(A,Q,"","",function(ue){return D.call(ie,ue,ae++)}),Q}function z(A){if(A._status===-1){var D=A._result;D=D(),D.then(function(ie){(A._status===0||A._status===-1)&&(A._status=1,A._result=ie)},function(ie){(A._status===0||A._status===-1)&&(A._status=2,A._result=ie)}),A._status===-1&&(A._status=0,A._result=D)}if(A._status===1)return A._result.default;throw A._result}var k={current:null},F={transition:null},H={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:F,ReactCurrentOwner:$};function j(){throw Error("act(...) is not supported in production builds of React.")}return gt.Children={map:J,forEach:function(A,D,ie){J(A,function(){D.apply(this,arguments)},ie)},count:function(A){var D=0;return J(A,function(){D++}),D},toArray:function(A){return J(A,function(D){return D})||[]},only:function(A){if(!V(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},gt.Component=S,gt.Fragment=r,gt.Profiler=i,gt.PureComponent=T,gt.StrictMode=n,gt.Suspense=f,gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,gt.act=j,gt.cloneElement=function(A,D,ie){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var Q=w({},A.props),ae=A.key,ue=A.ref,se=A._owner;if(D!=null){if(D.ref!==void 0&&(ue=D.ref,se=$.current),D.key!==void 0&&(ae=""+D.key),A.type&&A.type.defaultProps)var ce=A.type.defaultProps;for(fe in D)R.call(D,fe)&&!M.hasOwnProperty(fe)&&(Q[fe]=D[fe]===void 0&&ce!==void 0?ce[fe]:D[fe])}var fe=arguments.length-2;if(fe===1)Q.children=ie;else if(1<fe){ce=Array(fe);for(var Se=0;Se<fe;Se++)ce[Se]=arguments[Se+2];Q.children=ce}return{$$typeof:e,type:A.type,key:ae,ref:ue,props:Q,_owner:se}},gt.createContext=function(A){return A={$$typeof:s,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},gt.createElement=I,gt.createFactory=function(A){var D=I.bind(null,A);return D.type=A,D},gt.createRef=function(){return{current:null}},gt.forwardRef=function(A){return{$$typeof:c,render:A}},gt.isValidElement=V,gt.lazy=function(A){return{$$typeof:h,_payload:{_status:-1,_result:A},_init:z}},gt.memo=function(A,D){return{$$typeof:p,type:A,compare:D===void 0?null:D}},gt.startTransition=function(A){var D=F.transition;F.transition={};try{A()}finally{F.transition=D}},gt.unstable_act=j,gt.useCallback=function(A,D){return k.current.useCallback(A,D)},gt.useContext=function(A){return k.current.useContext(A)},gt.useDebugValue=function(){},gt.useDeferredValue=function(A){return k.current.useDeferredValue(A)},gt.useEffect=function(A,D){return k.current.useEffect(A,D)},gt.useId=function(){return k.current.useId()},gt.useImperativeHandle=function(A,D,ie){return k.current.useImperativeHandle(A,D,ie)},gt.useInsertionEffect=function(A,D){return k.current.useInsertionEffect(A,D)},gt.useLayoutEffect=function(A,D){return k.current.useLayoutEffect(A,D)},gt.useMemo=function(A,D){return k.current.useMemo(A,D)},gt.useReducer=function(A,D,ie){return k.current.useReducer(A,D,ie)},gt.useRef=function(A){return k.current.useRef(A)},gt.useState=function(A){return k.current.useState(A)},gt.useSyncExternalStore=function(A,D,ie){return k.current.useSyncExternalStore(A,D,ie)},gt.useTransition=function(){return k.current.useTransition()},gt.version="18.3.1",gt}var ly;function dl(){return ly||(ly=1,mp.exports=O2()),mp.exports}/** * @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 sy;function T2(){if(sy)return ns;sy=1;var e=dl(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(c,f,p){var h,g={},y=null,x=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(x=f.ref);for(h in f)n.call(f,h)&&!l.hasOwnProperty(h)&&(g[h]=f[h]);if(c&&c.defaultProps)for(h in f=c.defaultProps,f)g[h]===void 0&&(g[h]=f[h]);return{$$typeof:t,type:c,key:y,ref:x,props:g,_owner:i.current}}return ns.Fragment=r,ns.jsx=s,ns.jsxs=s,ns}var uy;function P2(){return uy||(uy=1,hp.exports=T2()),hp.exports}var We=P2(),m=dl();const ve=Bo(m),ff=dS({__proto__:null,default:ve},[m]);var oc={},vp={exports:{}},on={},gp={exports:{}},yp={};/** * @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. */var cy;function $2(){return cy||(cy=1,function(e){function t(F,H){var j=F.length;F.push(H);e:for(;0<j;){var A=j-1>>>1,D=F[A];if(0<i(D,H))F[A]=H,F[j]=D,j=A;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var H=F[0],j=F.pop();if(j!==H){F[0]=j;e:for(var A=0,D=F.length,ie=D>>>1;A<ie;){var Q=2*(A+1)-1,ae=F[Q],ue=Q+1,se=F[ue];if(0>i(ae,j))ue<D&&0>i(se,ae)?(F[A]=se,F[ue]=j,A=ue):(F[A]=ae,F[Q]=j,A=Q);else if(ue<D&&0>i(se,j))F[A]=se,F[ue]=j,A=ue;else break e}}return H}function i(F,H){var j=F.sortIndex-H.sortIndex;return j!==0?j:F.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],p=[],h=1,g=null,y=3,x=!1,w=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(F){for(var H=r(p);H!==null;){if(H.callback===null)n(p);else if(H.startTime<=F)n(p),H.sortIndex=H.expirationTime,t(f,H);else break;H=r(p)}}function _(F){if(C=!1,O(F),!w)if(r(f)!==null)w=!0,z(R);else{var H=r(p);H!==null&&k(_,H.startTime-F)}}function R(F,H){w=!1,C&&(C=!1,E(I),I=-1),x=!0;var j=y;try{for(O(H),g=r(f);g!==null&&(!(g.expirationTime>H)||F&&!X());){var A=g.callback;if(typeof A=="function"){g.callback=null,y=g.priorityLevel;var D=A(g.expirationTime<=H);H=e.unstable_now(),typeof D=="function"?g.callback=D:g===r(f)&&n(f),O(H)}else n(f);g=r(f)}if(g!==null)var ie=!0;else{var Q=r(p);Q!==null&&k(_,Q.startTime-H),ie=!1}return ie}finally{g=null,y=j,x=!1}}var $=!1,M=null,I=-1,L=5,V=-1;function X(){return!(e.unstable_now()-V<L)}function ee(){if(M!==null){var F=e.unstable_now();V=F;var H=!0;try{H=M(!0,F)}finally{H?K():($=!1,M=null)}}else $=!1}var K;if(typeof T=="function")K=function(){T(ee)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,J=W.port2;W.port1.onmessage=ee,K=function(){J.postMessage(null)}}else K=function(){S(ee,0)};function z(F){M=F,$||($=!0,K())}function k(F,H){I=S(function(){F(e.unstable_now())},H)}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(F){F.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,z(R))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(F){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var j=y;y=H;try{return F()}finally{y=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,H){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var j=y;y=F;try{return H()}finally{y=j}},e.unstable_scheduleCallback=function(F,H,j){var A=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?A+j:A):j=A,F){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=j+D,F={id:h++,callback:H,priorityLevel:F,startTime:j,expirationTime:D,sortIndex:-1},j>A?(F.sortIndex=j,t(p,F),r(f)===null&&F===r(p)&&(C?(E(I),I=-1):C=!0,k(_,j-A))):(F.sortIndex=D,t(f,F),w||x||(w=!0,z(R))),F},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(F){var H=y;return function(){var j=y;y=H;try{return F.apply(this,arguments)}finally{y=j}}}}(yp)),yp}var fy;function _2(){return fy||(fy=1,gp.exports=$2()),gp.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 dy;function M2(){if(dy)return on;dy=1;var e=dl(),t=_2();function r(o){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+o,u=1;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function l(o,a){s(o,a),s(o+"Capture",a)}function s(o,a){for(i[o]=a,o=0;o<a.length;o++)n.add(a[o])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},g={};function y(o){return f.call(g,o)?!0:f.call(h,o)?!1:p.test(o)?g[o]=!0:(h[o]=!0,!1)}function x(o,a,u,d){if(u!==null&&u.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return d?!1:u!==null?!u.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,a,u,d){if(a===null||typeof a>"u"||x(o,a,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(o,a,u,d,v,b,P){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=d,this.attributeNamespace=v,this.mustUseProperty=u,this.propertyName=o,this.type=a,this.sanitizeURL=b,this.removeEmptyString=P}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){S[o]=new C(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var a=o[0];S[a]=new C(a,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){S[o]=new C(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){S[o]=new C(o,2,!1,o,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(o){S[o]=new C(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){S[o]=new C(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){S[o]=new C(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){S[o]=new C(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){S[o]=new C(o,5,!1,o.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function T(o){return o[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(o){var a=o.replace(E,T);S[a]=new C(a,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var a=o.replace(E,T);S[a]=new C(a,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var a=o.replace(E,T);S[a]=new C(a,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){S[o]=new C(o,1,!1,o.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){S[o]=new C(o,1,!1,o.toLowerCase(),null,!0,!0)});function O(o,a,u,d){var v=S.hasOwnProperty(a)?S[a]:null;(v!==null?v.type!==0:d||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(w(a,u,v,d)&&(u=null),d||v===null?y(a)&&(u===null?o.removeAttribute(a):o.setAttribute(a,""+u)):v.mustUseProperty?o[v.propertyName]=u===null?v.type===3?!1:"":u:(a=v.attributeName,d=v.attributeNamespace,u===null?o.removeAttribute(a):(v=v.type,u=v===3||v===4&&u===!0?"":""+u,d?o.setAttributeNS(d,a,u):o.setAttribute(a,u))))}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),$=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),X=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),F=Symbol.iterator;function H(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var j=Object.assign,A;function D(o){if(A===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);A=a&&a[1]||""}return` `+A+o}var ie=!1;function Q(o,a){if(!o||ie)return"";ie=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(ne){var d=ne}Reflect.construct(o,[],a)}else{try{a.call()}catch(ne){d=ne}o.call(a.prototype)}else{try{throw Error()}catch(ne){d=ne}o()}}catch(ne){if(ne&&d&&typeof ne.stack=="string"){for(var v=ne.stack.split(` `),b=d.stack.split(` `),P=v.length-1,N=b.length-1;1<=P&&0<=N&&v[P]!==b[N];)N--;for(;1<=P&&0<=N;P--,N--)if(v[P]!==b[N]){if(P!==1||N!==1)do if(P--,N--,0>N||v[P]!==b[N]){var U=` `+v[P].replace(" at new "," at ");return o.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",o.displayName)),U}while(1<=P&&0<=N);break}}}finally{ie=!1,Error.prepareStackTrace=u}return(o=o?o.displayName||o.name:"")?D(o):""}function ae(o){switch(o.tag){case 5:return D(o.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return o=Q(o.type,!1),o;case 11:return o=Q(o.type.render,!1),o;case 1:return o=Q(o.type,!0),o;default:return""}}function ue(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case $:return"Portal";case L:return"Profiler";case I:return"StrictMode";case K:return"Suspense";case W:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case X:return(o.displayName||"Context")+".Consumer";case V:return(o._context.displayName||"Context")+".Provider";case ee:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case J:return a=o.displayName||null,a!==null?a:ue(o.type)||"Memo";case z:a=o._payload,o=o._init;try{return ue(o(a))}catch{}}return null}function se(o){var a=o.type;switch(o.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=a.render,o=o.displayName||o.name||"",a.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(a);case 8:return a===I?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function ce(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function fe(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Se(o){var a=fe(o)?"checked":"value",u=Object.getOwnPropertyDescriptor(o.constructor.prototype,a),d=""+o[a];if(!o.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var v=u.get,b=u.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return v.call(this)},set:function(P){d=""+P,b.call(this,P)}}),Object.defineProperty(o,a,{enumerable:u.enumerable}),{getValue:function(){return d},setValue:function(P){d=""+P},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function De(o){o._valueTracker||(o._valueTracker=Se(o))}function Pe(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),d="";return o&&(d=fe(o)?o.checked?"true":"false":o.value),o=d,o!==u?(a.setValue(o),!0):!1}function $e(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ve(o,a){var u=a.checked;return j({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??o._wrapperState.initialChecked})}function Te(o,a){var u=a.defaultValue==null?"":a.defaultValue,d=a.checked!=null?a.checked:a.defaultChecked;u=ce(a.value!=null?a.value:u),o._wrapperState={initialChecked:d,initialValue:u,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Be(o,a){a=a.checked,a!=null&&O(o,"checked",a,!1)}function pt(o,a){Be(o,a);var u=ce(a.value),d=a.type;if(u!=null)d==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+u):o.value!==""+u&&(o.value=""+u);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?ht(o,a.type,u):a.hasOwnProperty("defaultValue")&&ht(o,a.type,ce(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function Ze(o,a,u){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var d=a.type;if(!(d!=="submit"&&d!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+o._wrapperState.initialValue,u||a===o.value||(o.value=a),o.defaultValue=a}u=o.name,u!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,u!==""&&(o.name=u)}function ht(o,a,u){(a!=="number"||$e(o.ownerDocument)!==o)&&(u==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+u&&(o.defaultValue=""+u))}var it=Array.isArray;function Le(o,a,u,d){if(o=o.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<o.length;u++)v=a.hasOwnProperty("$"+o[u].value),o[u].selected!==v&&(o[u].selected=v),v&&d&&(o[u].defaultSelected=!0)}else{for(u=""+ce(u),a=null,v=0;v<o.length;v++){if(o[v].value===u){o[v].selected=!0,d&&(o[v].defaultSelected=!0);return}a!==null||o[v].disabled||(a=o[v])}a!==null&&(a.selected=!0)}}function ut(o,a){if(a.dangerouslySetInnerHTML!=null)throw Error(r(91));return j({},a,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function ye(o,a){var u=a.value;if(u==null){if(u=a.children,a=a.defaultValue,u!=null){if(a!=null)throw Error(r(92));if(it(u)){if(1<u.length)throw Error(r(93));u=u[0]}a=u}a==null&&(a=""),u=a}o._wrapperState={initialValue:ce(u)}}function Ae(o,a){var u=ce(a.value),d=ce(a.defaultValue);u!=null&&(u=""+u,u!==o.value&&(o.value=u),a.defaultValue==null&&o.defaultValue!==u&&(o.defaultValue=u)),d!=null&&(o.defaultValue=""+d)}function Ue(o){var a=o.textContent;a===o._wrapperState.initialValue&&a!==""&&a!==null&&(o.value=a)}function tt(o){switch(o){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 Pt(o,a){return o==null||o==="http://www.w3.org/1999/xhtml"?tt(a):o==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var St,Ht=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,d,v){MSApp.execUnsafeLocalFunction(function(){return o(a,u,d,v)})}:o}(function(o,a){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=a;else{for(St=St||document.createElement("div"),St.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=St.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;a.firstChild;)o.appendChild(a.firstChild)}});function wt(o,a){if(a){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=a;return}}o.textContent=a}var Zt={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},mt=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(o){mt.forEach(function(a){a=a+o.charAt(0).toUpperCase()+o.substring(1),Zt[a]=Zt[o]})});function Je(o,a,u){return a==null||typeof a=="boolean"||a===""?"":u||typeof a!="number"||a===0||Zt.hasOwnProperty(o)&&Zt[o]?(""+a).trim():a+"px"}function Ge(o,a){o=o.style;for(var u in a)if(a.hasOwnProperty(u)){var d=u.indexOf("--")===0,v=Je(u,a[u],d);u==="float"&&(u="cssFloat"),d?o.setProperty(u,v):o[u]=v}}var ir=j({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 Ie(o,a){if(a){if(ir[o]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(r(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(r(61))}if(a.style!=null&&typeof a.style!="object")throw Error(r(62))}}function qe(o,a){if(o.indexOf("-")===-1)return typeof a.is=="string";switch(o){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 _t=null;function jr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Dr=null,zr=null,pr=null;function qt(o){if(o=Bl(o)){if(typeof Dr!="function")throw Error(r(280));var a=o.stateNode;a&&(a=bu(a),Dr(o.stateNode,o.type,a))}}function Bt(o){zr?pr?pr.push(o):pr=[o]:zr=o}function Yr(){if(zr){var o=zr,a=pr;if(pr=zr=null,qt(o),a)for(o=0;o<a.length;o++)qt(a[o])}}function Nt(o,a){return o(a)}function B(){}var q=!1;function Y(o,a,u){if(q)return o(a,u);q=!0;try{return Nt(o,a,u)}finally{q=!1,(zr!==null||pr!==null)&&(B(),Yr())}}function de(o,a){var u=o.stateNode;if(u===null)return null;var d=bu(u);if(d===null)return null;u=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var Oe=!1;if(c)try{var we={};Object.defineProperty(we,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",we,we),window.removeEventListener("test",we,we)}catch{Oe=!1}function Re(o,a,u,d,v,b,P,N,U){var ne=Array.prototype.slice.call(arguments,3);try{a.apply(u,ne)}catch(he){this.onError(he)}}var Ce=!1,Ee=null,ge=!1,Ke=null,nt={onError:function(o){Ce=!0,Ee=o}};function yt(o,a,u,d,v,b,P,N,U){Ce=!1,Ee=null,Re.apply(nt,arguments)}function Mt(o,a,u,d,v,b,P,N,U){if(yt.apply(this,arguments),Ce){if(Ce){var ne=Ee;Ce=!1,Ee=null}else throw Error(r(198));ge||(ge=!0,Ke=ne)}}function ct(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,a.flags&4098&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function vt(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function Ot(o){if(ct(o)!==o)throw Error(r(188))}function Ft(o){var a=o.alternate;if(!a){if(a=ct(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,d=a;;){var v=u.return;if(v===null)break;var b=v.alternate;if(b===null){if(d=v.return,d!==null){u=d;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===u)return Ot(v),o;if(b===d)return Ot(v),a;b=b.sibling}throw Error(r(188))}if(u.return!==d.return)u=v,d=b;else{for(var P=!1,N=v.child;N;){if(N===u){P=!0,u=v,d=b;break}if(N===d){P=!0,d=v,u=b;break}N=N.sibling}if(!P){for(N=b.child;N;){if(N===u){P=!0,u=b,d=v;break}if(N===d){P=!0,d=b,u=v;break}N=N.sibling}if(!P)throw Error(r(189))}}if(u.alternate!==d)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function Hr(o){return o=Ft(o),o!==null?sr(o):null}function sr(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var a=sr(o);if(a!==null)return a;o=o.sibling}return null}var gr=t.unstable_scheduleCallback,Gt=t.unstable_cancelCallback,Tn=t.unstable_shouldYield,un=t.unstable_requestPaint,Ct=t.unstable_now,Gn=t.unstable_getCurrentPriorityLevel,xt=t.unstable_ImmediatePriority,Kt=t.unstable_UserBlockingPriority,Jr=t.unstable_NormalPriority,Br=t.unstable_LowPriority,Lt=t.unstable_IdlePriority,yr=null,er=null;function Wo(o){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(yr,o,void 0,(o.current.flags&128)===128)}catch{}}var $r=Math.clz32?Math.clz32:qo,Pn=Math.log,cn=Math.LN2;function qo(o){return o>>>=0,o===0?32:31-(Pn(o)/cn|0)|0}var Kn=64,Vr=4194304;function Oo(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function To(o,a){var u=o.pendingLanes;if(u===0)return 0;var d=0,v=o.suspendedLanes,b=o.pingedLanes,P=u&268435455;if(P!==0){var N=P&~v;N!==0?d=Oo(N):(b&=P,b!==0&&(d=Oo(b)))}else P=u&~v,P!==0?d=Oo(P):b!==0&&(d=Oo(b));if(d===0)return 0;if(a!==0&&a!==d&&!(a&v)&&(v=d&-d,b=a&-a,v>=b||v===16&&(b&4194240)!==0))return a;if(d&4&&(d|=u&16),a=o.entangledLanes,a!==0)for(o=o.entanglements,a&=d;0<a;)u=31-$r(a),v=1<<u,d|=o[u],a&=~v;return d}function Ol(o,a){switch(o){case 1:case 2:case 4:return a+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 a+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 Oi(o,a){for(var u=o.suspendedLanes,d=o.pingedLanes,v=o.expirationTimes,b=o.pendingLanes;0<b;){var P=31-$r(b),N=1<<P,U=v[P];U===-1?(!(N&u)||N&d)&&(v[P]=Ol(N,a)):U<=a&&(o.expiredLanes|=N),b&=~N}}function Ti(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function pa(){var o=Kn;return Kn<<=1,!(Kn&4194240)&&(Kn=64),o}function Pi(o){for(var a=[],u=0;31>u;u++)a.push(o);return a}function ho(o,a,u){o.pendingLanes|=a,a!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,a=31-$r(a),o[a]=u}function Tl(o,a){var u=o.pendingLanes&~a;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=a,o.mutableReadLanes&=a,o.entangledLanes&=a,a=o.entanglements;var d=o.eventTimes;for(o=o.expirationTimes;0<u;){var v=31-$r(u),b=1<<v;a[v]=0,d[v]=-1,o[v]=-1,u&=~b}}function $i(o,a){var u=o.entangledLanes|=a;for(o=o.entanglements;u;){var d=31-$r(u),v=1<<d;v&a|o[d]&a&&(o[d]|=a),u&=~v}}var Et=0;function ha(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var ma,Po,fn,va,Pl,ga=!1,ur=[],Ur=null,Wr=null,Rr=null,$n=new Map,mo=new Map,dn=[],$l="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 Fe(o,a){switch(o){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":$n.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(a.pointerId)}}function Xe(o,a,u,d,v,b){return o===null||o.nativeEvent!==b?(o={blockedOn:a,domEventName:u,eventSystemFlags:d,nativeEvent:b,targetContainers:[v]},a!==null&&(a=Bl(a),a!==null&&Po(a)),o):(o.eventSystemFlags|=d,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function jt(o,a,u,d,v){switch(a){case"focusin":return Ur=Xe(Ur,o,a,u,d,v),!0;case"dragenter":return Wr=Xe(Wr,o,a,u,d,v),!0;case"mouseover":return Rr=Xe(Rr,o,a,u,d,v),!0;case"pointerover":var b=v.pointerId;return $n.set(b,Xe($n.get(b)||null,o,a,u,d,v)),!0;case"gotpointercapture":return b=v.pointerId,mo.set(b,Xe(mo.get(b)||null,o,a,u,d,v)),!0}return!1}function Xt(o){var a=Mi(o.target);if(a!==null){var u=ct(a);if(u!==null){if(a=u.tag,a===13){if(a=vt(u),a!==null){o.blockedOn=a,Pl(o.priority,function(){fn(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function At(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Hf(o.domEventName,o.eventSystemFlags,a[0],o.nativeEvent);if(u===null){u=o.nativeEvent;var d=new u.constructor(u.type,u);_t=d,u.target.dispatchEvent(d),_t=null}else return a=Bl(u),a!==null&&Po(a),o.blockedOn=u,!1;a.shift()}return!0}function _i(o,a,u){At(o)&&u.delete(a)}function _l(){ga=!1,Ur!==null&&At(Ur)&&(Ur=null),Wr!==null&&At(Wr)&&(Wr=null),Rr!==null&&At(Rr)&&(Rr=null),$n.forEach(_i),mo.forEach(_i)}function Go(o,a){o.blockedOn===a&&(o.blockedOn=null,ga||(ga=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_l)))}function vo(o){function a(v){return Go(v,o)}if(0<ur.length){Go(ur[0],o);for(var u=1;u<ur.length;u++){var d=ur[u];d.blockedOn===o&&(d.blockedOn=null)}}for(Ur!==null&&Go(Ur,o),Wr!==null&&Go(Wr,o),Rr!==null&&Go(Rr,o),$n.forEach(a),mo.forEach(a),u=0;u<dn.length;u++)d=dn[u],d.blockedOn===o&&(d.blockedOn=null);for(;0<dn.length&&(u=dn[0],u.blockedOn===null);)Xt(u),u.blockedOn===null&&dn.shift()}var ya=_.ReactCurrentBatchConfig,au=!0;function Yx(o,a,u,d){var v=Et,b=ya.transition;ya.transition=null;try{Et=1,zf(o,a,u,d)}finally{Et=v,ya.transition=b}}function Jx(o,a,u,d){var v=Et,b=ya.transition;ya.transition=null;try{Et=4,zf(o,a,u,d)}finally{Et=v,ya.transition=b}}function zf(o,a,u,d){if(au){var v=Hf(o,a,u,d);if(v===null)od(o,a,d,lu,u),Fe(o,d);else if(jt(v,o,a,u,d))d.stopPropagation();else if(Fe(o,d),a&4&&-1<$l.indexOf(o)){for(;v!==null;){var b=Bl(v);if(b!==null&&ma(b),b=Hf(o,a,u,d),b===null&&od(o,a,d,lu,u),b===v)break;v=b}v!==null&&d.stopPropagation()}else od(o,a,d,null,u)}}var lu=null;function Hf(o,a,u,d){if(lu=null,o=jr(d),o=Mi(o),o!==null)if(a=ct(o),a===null)o=null;else if(u=a.tag,u===13){if(o=vt(a),o!==null)return o;o=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null);return lu=o,null}function qv(o){switch(o){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(Gn()){case xt:return 1;case Kt:return 4;case Jr:case Br:return 16;case Lt:return 536870912;default:return 16}default:return 16}}var Ko=null,Bf=null,su=null;function Gv(){if(su)return su;var o,a=Bf,u=a.length,d,v="value"in Ko?Ko.value:Ko.textContent,b=v.length;for(o=0;o<u&&a[o]===v[o];o++);var P=u-o;for(d=1;d<=P&&a[u-d]===v[b-d];d++);return su=v.slice(o,1<d?1-d:void 0)}function uu(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function cu(){return!0}function Kv(){return!1}function pn(o){function a(u,d,v,b,P){this._reactName=u,this._targetInst=v,this.type=d,this.nativeEvent=b,this.target=P,this.currentTarget=null;for(var N in o)o.hasOwnProperty(N)&&(u=o[N],this[N]=u?u(b):b[N]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?cu:Kv,this.isPropagationStopped=Kv,this}return j(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=cu)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),a}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vf=pn(ba),Ml=j({},ba,{view:0,detail:0}),Zx=pn(Ml),Uf,Wf,Al,fu=j({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Al&&(Al&&o.type==="mousemove"?(Uf=o.screenX-Al.screenX,Wf=o.screenY-Al.screenY):Wf=Uf=0,Al=o),Uf)},movementY:function(o){return"movementY"in o?o.movementY:Wf}}),Xv=pn(fu),eE=j({},fu,{dataTransfer:0}),tE=pn(eE),rE=j({},Ml,{relatedTarget:0}),qf=pn(rE),nE=j({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),oE=pn(nE),iE=j({},ba,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),aE=pn(iE),lE=j({},ba,{data:0}),Qv=pn(lE),sE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uE={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"},cE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fE(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=cE[o])?!!a[o]:!1}function Gf(){return fE}var dE=j({},Ml,{key:function(o){if(o.key){var a=sE[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=uu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?uE[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(o){return o.type==="keypress"?uu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?uu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),pE=pn(dE),hE=j({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yv=pn(hE),mE=j({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),vE=pn(mE),gE=j({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),yE=pn(gE),bE=j({},fu,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),SE=pn(bE),wE=[9,13,27,32],Kf=c&&"CompositionEvent"in window,Il=null;c&&"documentMode"in document&&(Il=document.documentMode);var CE=c&&"TextEvent"in window&&!Il,Jv=c&&(!Kf||Il&&8<Il&&11>=Il),Zv=" ",eg=!1;function tg(o,a){switch(o){case"keyup":return wE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rg(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Sa=!1;function xE(o,a){switch(o){case"compositionend":return rg(a);case"keypress":return a.which!==32?null:(eg=!0,Zv);case"textInput":return o=a.data,o===Zv&&eg?null:o;default:return null}}function EE(o,a){if(Sa)return o==="compositionend"||!Kf&&tg(o,a)?(o=Gv(),su=Bf=Ko=null,Sa=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Jv&&a.locale!=="ko"?null:a.data;default:return null}}var RE={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 ng(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!RE[o.type]:a==="textarea"}function og(o,a,u,d){Bt(d),a=vu(a,"onChange"),0<a.length&&(u=new Vf("onChange","change",null,u,d),o.push({event:u,listeners:a}))}var Fl=null,Ll=null;function OE(o){Cg(o,0)}function du(o){var a=Ra(o);if(Pe(a))return o}function TE(o,a){if(o==="change")return a}var ig=!1;if(c){var Xf;if(c){var Qf="oninput"in document;if(!Qf){var ag=document.createElement("div");ag.setAttribute("oninput","return;"),Qf=typeof ag.oninput=="function"}Xf=Qf}else Xf=!1;ig=Xf&&(!document.documentMode||9<document.documentMode)}function lg(){Fl&&(Fl.detachEvent("onpropertychange",sg),Ll=Fl=null)}function sg(o){if(o.propertyName==="value"&&du(Ll)){var a=[];og(a,Ll,o,jr(o)),Y(OE,a)}}function PE(o,a,u){o==="focusin"?(lg(),Fl=a,Ll=u,Fl.attachEvent("onpropertychange",sg)):o==="focusout"&&lg()}function $E(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return du(Ll)}function _E(o,a){if(o==="click")return du(a)}function ME(o,a){if(o==="input"||o==="change")return du(a)}function AE(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Xn=typeof Object.is=="function"?Object.is:AE;function kl(o,a){if(Xn(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var u=Object.keys(o),d=Object.keys(a);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var v=u[d];if(!f.call(a,v)||!Xn(o[v],a[v]))return!1}return!0}function ug(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function cg(o,a){var u=ug(o);o=0;for(var d;u;){if(u.nodeType===3){if(d=o+u.textContent.length,o<=a&&d>=a)return{node:u,offset:a-o};o=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ug(u)}}function fg(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?fg(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function dg(){for(var o=window,a=$e();a instanceof o.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)o=a.contentWindow;else break;a=$e(o.document)}return a}function Yf(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}function IE(o){var a=dg(),u=o.focusedElem,d=o.selectionRange;if(a!==u&&u&&u.ownerDocument&&fg(u.ownerDocument.documentElement,u)){if(d!==null&&Yf(u)){if(a=d.start,o=d.end,o===void 0&&(o=a),"selectionStart"in u)u.selectionStart=a,u.selectionEnd=Math.min(o,u.value.length);else if(o=(a=u.ownerDocument||document)&&a.defaultView||window,o.getSelection){o=o.getSelection();var v=u.textContent.length,b=Math.min(d.start,v);d=d.end===void 0?b:Math.min(d.end,v),!o.extend&&b>d&&(v=d,d=b,b=v),v=cg(u,b);var P=cg(u,d);v&&P&&(o.rangeCount!==1||o.anchorNode!==v.node||o.anchorOffset!==v.offset||o.focusNode!==P.node||o.focusOffset!==P.offset)&&(a=a.createRange(),a.setStart(v.node,v.offset),o.removeAllRanges(),b>d?(o.addRange(a),o.extend(P.node,P.offset)):(a.setEnd(P.node,P.offset),o.addRange(a)))}}for(a=[],o=u;o=o.parentNode;)o.nodeType===1&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<a.length;u++)o=a[u],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var FE=c&&"documentMode"in document&&11>=document.documentMode,wa=null,Jf=null,Nl=null,Zf=!1;function pg(o,a,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Zf||wa==null||wa!==$e(d)||(d=wa,"selectionStart"in d&&Yf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Nl&&kl(Nl,d)||(Nl=d,d=vu(Jf,"onSelect"),0<d.length&&(a=new Vf("onSelect","select",null,a,u),o.push({event:a,listeners:d}),a.target=wa)))}function pu(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var Ca={animationend:pu("Animation","AnimationEnd"),animationiteration:pu("Animation","AnimationIteration"),animationstart:pu("Animation","AnimationStart"),transitionend:pu("Transition","TransitionEnd")},ed={},hg={};c&&(hg=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function hu(o){if(ed[o])return ed[o];if(!Ca[o])return o;var a=Ca[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in hg)return ed[o]=a[u];return o}var mg=hu("animationend"),vg=hu("animationiteration"),gg=hu("animationstart"),yg=hu("transitionend"),bg=new Map,Sg="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 Xo(o,a){bg.set(o,a),l(a,[o])}for(var td=0;td<Sg.length;td++){var rd=Sg[td],LE=rd.toLowerCase(),kE=rd[0].toUpperCase()+rd.slice(1);Xo(LE,"on"+kE)}Xo(mg,"onAnimationEnd"),Xo(vg,"onAnimationIteration"),Xo(gg,"onAnimationStart"),Xo("dblclick","onDoubleClick"),Xo("focusin","onFocus"),Xo("focusout","onBlur"),Xo(yg,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jl="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(" "),NE=new Set("cancel close invalid load scroll toggle".split(" ").concat(jl));function wg(o,a,u){var d=o.type||"unknown-event";o.currentTarget=u,Mt(d,a,void 0,o),o.currentTarget=null}function Cg(o,a){a=(a&4)!==0;for(var u=0;u<o.length;u++){var d=o[u],v=d.event;d=d.listeners;e:{var b=void 0;if(a)for(var P=d.length-1;0<=P;P--){var N=d[P],U=N.instance,ne=N.currentTarget;if(N=N.listener,U!==b&&v.isPropagationStopped())break e;wg(v,N,ne),b=U}else for(P=0;P<d.length;P++){if(N=d[P],U=N.instance,ne=N.currentTarget,N=N.listener,U!==b&&v.isPropagationStopped())break e;wg(v,N,ne),b=U}}}if(ge)throw o=Ke,ge=!1,Ke=null,o}function Vt(o,a){var u=a[cd];u===void 0&&(u=a[cd]=new Set);var d=o+"__bubble";u.has(d)||(xg(a,o,2,!1),u.add(d))}function nd(o,a,u){var d=0;a&&(d|=4),xg(u,o,d,a)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Dl(o){if(!o[mu]){o[mu]=!0,n.forEach(function(u){u!=="selectionchange"&&(NE.has(u)||nd(u,!1,o),nd(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[mu]||(a[mu]=!0,nd("selectionchange",!1,a))}}function xg(o,a,u,d){switch(qv(a)){case 1:var v=Yx;break;case 4:v=Jx;break;default:v=zf}u=v.bind(null,a,u,o),v=void 0,!Oe||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),d?v!==void 0?o.addEventListener(a,u,{capture:!0,passive:v}):o.addEventListener(a,u,!0):v!==void 0?o.addEventListener(a,u,{passive:v}):o.addEventListener(a,u,!1)}function od(o,a,u,d,v){var b=d;if(!(a&1)&&!(a&2)&&d!==null)e:for(;;){if(d===null)return;var P=d.tag;if(P===3||P===4){var N=d.stateNode.containerInfo;if(N===v||N.nodeType===8&&N.parentNode===v)break;if(P===4)for(P=d.return;P!==null;){var U=P.tag;if((U===3||U===4)&&(U=P.stateNode.containerInfo,U===v||U.nodeType===8&&U.parentNode===v))return;P=P.return}for(;N!==null;){if(P=Mi(N),P===null)return;if(U=P.tag,U===5||U===6){d=b=P;continue e}N=N.parentNode}}d=d.return}Y(function(){var ne=b,he=jr(u),me=[];e:{var pe=bg.get(o);if(pe!==void 0){var _e=Vf,je=o;switch(o){case"keypress":if(uu(u)===0)break e;case"keydown":case"keyup":_e=pE;break;case"focusin":je="focus",_e=qf;break;case"focusout":je="blur",_e=qf;break;case"beforeblur":case"afterblur":_e=qf;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_e=Xv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_e=tE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_e=vE;break;case mg:case vg:case gg:_e=oE;break;case yg:_e=yE;break;case"scroll":_e=Zx;break;case"wheel":_e=SE;break;case"copy":case"cut":case"paste":_e=aE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_e=Yv}var ze=(a&4)!==0,ar=!ze&&o==="scroll",te=ze?pe!==null?pe+"Capture":null:pe;ze=[];for(var G=ne,re;G!==null;){re=G;var be=re.stateNode;if(re.tag===5&&be!==null&&(re=be,te!==null&&(be=de(G,te),be!=null&&ze.push(zl(G,be,re)))),ar)break;G=G.return}0<ze.length&&(pe=new _e(pe,je,null,u,he),me.push({event:pe,listeners:ze}))}}if(!(a&7)){e:{if(pe=o==="mouseover"||o==="pointerover",_e=o==="mouseout"||o==="pointerout",pe&&u!==_t&&(je=u.relatedTarget||u.fromElement)&&(Mi(je)||je[$o]))break e;if((_e||pe)&&(pe=he.window===he?he:(pe=he.ownerDocument)?pe.defaultView||pe.parentWindow:window,_e?(je=u.relatedTarget||u.toElement,_e=ne,je=je?Mi(je):null,je!==null&&(ar=ct(je),je!==ar||je.tag!==5&&je.tag!==6)&&(je=null)):(_e=null,je=ne),_e!==je)){if(ze=Xv,be="onMouseLeave",te="onMouseEnter",G="mouse",(o==="pointerout"||o==="pointerover")&&(ze=Yv,be="onPointerLeave",te="onPointerEnter",G="pointer"),ar=_e==null?pe:Ra(_e),re=je==null?pe:Ra(je),pe=new ze(be,G+"leave",_e,u,he),pe.target=ar,pe.relatedTarget=re,be=null,Mi(he)===ne&&(ze=new ze(te,G+"enter",je,u,he),ze.target=re,ze.relatedTarget=ar,be=ze),ar=be,_e&&je)t:{for(ze=_e,te=je,G=0,re=ze;re;re=xa(re))G++;for(re=0,be=te;be;be=xa(be))re++;for(;0<G-re;)ze=xa(ze),G--;for(;0<re-G;)te=xa(te),re--;for(;G--;){if(ze===te||te!==null&&ze===te.alternate)break t;ze=xa(ze),te=xa(te)}ze=null}else ze=null;_e!==null&&Eg(me,pe,_e,ze,!1),je!==null&&ar!==null&&Eg(me,ar,je,ze,!0)}}e:{if(pe=ne?Ra(ne):window,_e=pe.nodeName&&pe.nodeName.toLowerCase(),_e==="select"||_e==="input"&&pe.type==="file")var He=TE;else if(ng(pe))if(ig)He=ME;else{He=$E;var Qe=PE}else(_e=pe.nodeName)&&_e.toLowerCase()==="input"&&(pe.type==="checkbox"||pe.type==="radio")&&(He=_E);if(He&&(He=He(o,ne))){og(me,He,u,he);break e}Qe&&Qe(o,pe,ne),o==="focusout"&&(Qe=pe._wrapperState)&&Qe.controlled&&pe.type==="number"&&ht(pe,"number",pe.value)}switch(Qe=ne?Ra(ne):window,o){case"focusin":(ng(Qe)||Qe.contentEditable==="true")&&(wa=Qe,Jf=ne,Nl=null);break;case"focusout":Nl=Jf=wa=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,pg(me,u,he);break;case"selectionchange":if(FE)break;case"keydown":case"keyup":pg(me,u,he)}var Ye;if(Kf)e:{switch(o){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else Sa?tg(o,u)&&(ot="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(ot="onCompositionStart");ot&&(Jv&&u.locale!=="ko"&&(Sa||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Sa&&(Ye=Gv()):(Ko=he,Bf="value"in Ko?Ko.value:Ko.textContent,Sa=!0)),Qe=vu(ne,ot),0<Qe.length&&(ot=new Qv(ot,o,null,u,he),me.push({event:ot,listeners:Qe}),Ye?ot.data=Ye:(Ye=rg(u),Ye!==null&&(ot.data=Ye)))),(Ye=CE?xE(o,u):EE(o,u))&&(ne=vu(ne,"onBeforeInput"),0<ne.length&&(he=new Qv("onBeforeInput","beforeinput",null,u,he),me.push({event:he,listeners:ne}),he.data=Ye))}Cg(me,a)})}function zl(o,a,u){return{instance:o,listener:a,currentTarget:u}}function vu(o,a){for(var u=a+"Capture",d=[];o!==null;){var v=o,b=v.stateNode;v.tag===5&&b!==null&&(v=b,b=de(o,u),b!=null&&d.unshift(zl(o,b,v)),b=de(o,a),b!=null&&d.push(zl(o,b,v))),o=o.return}return d}function xa(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function Eg(o,a,u,d,v){for(var b=a._reactName,P=[];u!==null&&u!==d;){var N=u,U=N.alternate,ne=N.stateNode;if(U!==null&&U===d)break;N.tag===5&&ne!==null&&(N=ne,v?(U=de(u,b),U!=null&&P.unshift(zl(u,U,N))):v||(U=de(u,b),U!=null&&P.push(zl(u,U,N)))),u=u.return}P.length!==0&&o.push({event:a,listeners:P})}var jE=/\r\n?/g,DE=/\u0000|\uFFFD/g;function Rg(o){return(typeof o=="string"?o:""+o).replace(jE,` `).replace(DE,"")}function gu(o,a,u){if(a=Rg(a),Rg(o)!==a&&u)throw Error(r(425))}function yu(){}var id=null,ad=null;function ld(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var sd=typeof setTimeout=="function"?setTimeout:void 0,zE=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,HE=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(o){return Og.resolve(null).then(o).catch(BE)}:sd;function BE(o){setTimeout(function(){throw o})}function ud(o,a){var u=a,d=0;do{var v=u.nextSibling;if(o.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(d===0){o.removeChild(v),vo(a);return}d--}else u!=="$"&&u!=="$?"&&u!=="$!"||d++;u=v}while(u);vo(a)}function Qo(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return o}function Tg(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return o;a--}else u==="/$"&&a++}o=o.previousSibling}return null}var Ea=Math.random().toString(36).slice(2),go="__reactFiber$"+Ea,Hl="__reactProps$"+Ea,$o="__reactContainer$"+Ea,cd="__reactEvents$"+Ea,VE="__reactListeners$"+Ea,UE="__reactHandles$"+Ea;function Mi(o){var a=o[go];if(a)return a;for(var u=o.parentNode;u;){if(a=u[$o]||u[go]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(o=Tg(o);o!==null;){if(u=o[go])return u;o=Tg(o)}return a}o=u,u=o.parentNode}return null}function Bl(o){return o=o[go]||o[$o],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Ra(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function bu(o){return o[Hl]||null}var fd=[],Oa=-1;function Yo(o){return{current:o}}function Ut(o){0>Oa||(o.current=fd[Oa],fd[Oa]=null,Oa--)}function Dt(o,a){Oa++,fd[Oa]=o.current,o.current=a}var Jo={},_r=Yo(Jo),Zr=Yo(!1),Ai=Jo;function Ta(o,a){var u=o.type.contextTypes;if(!u)return Jo;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===a)return d.__reactInternalMemoizedMaskedChildContext;var v={},b;for(b in u)v[b]=a[b];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=a,o.__reactInternalMemoizedMaskedChildContext=v),v}function en(o){return o=o.childContextTypes,o!=null}function Su(){Ut(Zr),Ut(_r)}function Pg(o,a,u){if(_r.current!==Jo)throw Error(r(168));Dt(_r,a),Dt(Zr,u)}function $g(o,a,u){var d=o.stateNode;if(a=a.childContextTypes,typeof d.getChildContext!="function")return u;d=d.getChildContext();for(var v in d)if(!(v in a))throw Error(r(108,se(o)||"Unknown",v));return j({},u,d)}function wu(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Jo,Ai=_r.current,Dt(_r,o),Dt(Zr,Zr.current),!0}function _g(o,a,u){var d=o.stateNode;if(!d)throw Error(r(169));u?(o=$g(o,a,Ai),d.__reactInternalMemoizedMergedChildContext=o,Ut(Zr),Ut(_r),Dt(_r,o)):Ut(Zr),Dt(Zr,u)}var _o=null,Cu=!1,dd=!1;function Mg(o){_o===null?_o=[o]:_o.push(o)}function WE(o){Cu=!0,Mg(o)}function Zo(){if(!dd&&_o!==null){dd=!0;var o=0,a=Et;try{var u=_o;for(Et=1;o<u.length;o++){var d=u[o];do d=d(!0);while(d!==null)}_o=null,Cu=!1}catch(v){throw _o!==null&&(_o=_o.slice(o+1)),gr(xt,Zo),v}finally{Et=a,dd=!1}}return null}var Pa=[],$a=0,xu=null,Eu=0,_n=[],Mn=0,Ii=null,Mo=1,Ao="";function Fi(o,a){Pa[$a++]=Eu,Pa[$a++]=xu,xu=o,Eu=a}function Ag(o,a,u){_n[Mn++]=Mo,_n[Mn++]=Ao,_n[Mn++]=Ii,Ii=o;var d=Mo;o=Ao;var v=32-$r(d)-1;d&=~(1<<v),u+=1;var b=32-$r(a)+v;if(30<b){var P=v-v%5;b=(d&(1<<P)-1).toString(32),d>>=P,v-=P,Mo=1<<32-$r(a)+v|u<<v|d,Ao=b+o}else Mo=1<<b|u<<v|d,Ao=o}function pd(o){o.return!==null&&(Fi(o,1),Ag(o,1,0))}function hd(o){for(;o===xu;)xu=Pa[--$a],Pa[$a]=null,Eu=Pa[--$a],Pa[$a]=null;for(;o===Ii;)Ii=_n[--Mn],_n[Mn]=null,Ao=_n[--Mn],_n[Mn]=null,Mo=_n[--Mn],_n[Mn]=null}var hn=null,mn=null,Qt=!1,Qn=null;function Ig(o,a){var u=Ln(5,null,null,0);u.elementType="DELETED",u.stateNode=a,u.return=o,a=o.deletions,a===null?(o.deletions=[u],o.flags|=16):a.push(u)}function Fg(o,a){switch(o.tag){case 5:var u=o.type;return a=a.nodeType!==1||u.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(o.stateNode=a,hn=o,mn=Qo(a.firstChild),!0):!1;case 6:return a=o.pendingProps===""||a.nodeType!==3?null:a,a!==null?(o.stateNode=a,hn=o,mn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(u=Ii!==null?{id:Mo,overflow:Ao}:null,o.memoizedState={dehydrated:a,treeContext:u,retryLane:1073741824},u=Ln(18,null,null,0),u.stateNode=a,u.return=o,o.child=u,hn=o,mn=null,!0):!1;default:return!1}}function md(o){return(o.mode&1)!==0&&(o.flags&128)===0}function vd(o){if(Qt){var a=mn;if(a){var u=a;if(!Fg(o,a)){if(md(o))throw Error(r(418));a=Qo(u.nextSibling);var d=hn;a&&Fg(o,a)?Ig(d,u):(o.flags=o.flags&-4097|2,Qt=!1,hn=o)}}else{if(md(o))throw Error(r(418));o.flags=o.flags&-4097|2,Qt=!1,hn=o}}}function Lg(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;hn=o}function Ru(o){if(o!==hn)return!1;if(!Qt)return Lg(o),Qt=!0,!1;var a;if((a=o.tag!==3)&&!(a=o.tag!==5)&&(a=o.type,a=a!=="head"&&a!=="body"&&!ld(o.type,o.memoizedProps)),a&&(a=mn)){if(md(o))throw kg(),Error(r(418));for(;a;)Ig(o,a),a=Qo(a.nextSibling)}if(Lg(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"){if(a===0){mn=Qo(o.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++}o=o.nextSibling}mn=null}}else mn=hn?Qo(o.stateNode.nextSibling):null;return!0}function kg(){for(var o=mn;o;)o=Qo(o.nextSibling)}function _a(){mn=hn=null,Qt=!1}function gd(o){Qn===null?Qn=[o]:Qn.push(o)}var qE=_.ReactCurrentBatchConfig;function Vl(o,a,u){if(o=u.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(r(309));var d=u.stateNode}if(!d)throw Error(r(147,o));var v=d,b=""+o;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===b?a.ref:(a=function(P){var N=v.refs;P===null?delete N[b]:N[b]=P},a._stringRef=b,a)}if(typeof o!="string")throw Error(r(284));if(!u._owner)throw Error(r(290,o))}return o}function Ou(o,a){throw o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o))}function Ng(o){var a=o._init;return a(o._payload)}function jg(o){function a(te,G){if(o){var re=te.deletions;re===null?(te.deletions=[G],te.flags|=16):re.push(G)}}function u(te,G){if(!o)return null;for(;G!==null;)a(te,G),G=G.sibling;return null}function d(te,G){for(te=new Map;G!==null;)G.key!==null?te.set(G.key,G):te.set(G.index,G),G=G.sibling;return te}function v(te,G){return te=li(te,G),te.index=0,te.sibling=null,te}function b(te,G,re){return te.index=re,o?(re=te.alternate,re!==null?(re=re.index,re<G?(te.flags|=2,G):re):(te.flags|=2,G)):(te.flags|=1048576,G)}function P(te){return o&&te.alternate===null&&(te.flags|=2),te}function N(te,G,re,be){return G===null||G.tag!==6?(G=sp(re,te.mode,be),G.return=te,G):(G=v(G,re),G.return=te,G)}function U(te,G,re,be){var He=re.type;return He===M?he(te,G,re.props.children,be,re.key):G!==null&&(G.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===z&&Ng(He)===G.type)?(be=v(G,re.props),be.ref=Vl(te,G,re),be.return=te,be):(be=Qu(re.type,re.key,re.props,null,te.mode,be),be.ref=Vl(te,G,re),be.return=te,be)}function ne(te,G,re,be){return G===null||G.tag!==4||G.stateNode.containerInfo!==re.containerInfo||G.stateNode.implementation!==re.implementation?(G=up(re,te.mode,be),G.return=te,G):(G=v(G,re.children||[]),G.return=te,G)}function he(te,G,re,be,He){return G===null||G.tag!==7?(G=Bi(re,te.mode,be,He),G.return=te,G):(G=v(G,re),G.return=te,G)}function me(te,G,re){if(typeof G=="string"&&G!==""||typeof G=="number")return G=sp(""+G,te.mode,re),G.return=te,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case R:return re=Qu(G.type,G.key,G.props,null,te.mode,re),re.ref=Vl(te,null,G),re.return=te,re;case $:return G=up(G,te.mode,re),G.return=te,G;case z:var be=G._init;return me(te,be(G._payload),re)}if(it(G)||H(G))return G=Bi(G,te.mode,re,null),G.return=te,G;Ou(te,G)}return null}function pe(te,G,re,be){var He=G!==null?G.key:null;if(typeof re=="string"&&re!==""||typeof re=="number")return He!==null?null:N(te,G,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case R:return re.key===He?U(te,G,re,be):null;case $:return re.key===He?ne(te,G,re,be):null;case z:return He=re._init,pe(te,G,He(re._payload),be)}if(it(re)||H(re))return He!==null?null:he(te,G,re,be,null);Ou(te,re)}return null}function _e(te,G,re,be,He){if(typeof be=="string"&&be!==""||typeof be=="number")return te=te.get(re)||null,N(G,te,""+be,He);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case R:return te=te.get(be.key===null?re:be.key)||null,U(G,te,be,He);case $:return te=te.get(be.key===null?re:be.key)||null,ne(G,te,be,He);case z:var Qe=be._init;return _e(te,G,re,Qe(be._payload),He)}if(it(be)||H(be))return te=te.get(re)||null,he(G,te,be,He,null);Ou(G,be)}return null}function je(te,G,re,be){for(var He=null,Qe=null,Ye=G,ot=G=0,wr=null;Ye!==null&&ot<re.length;ot++){Ye.index>ot?(wr=Ye,Ye=null):wr=Ye.sibling;var Tt=pe(te,Ye,re[ot],be);if(Tt===null){Ye===null&&(Ye=wr);break}o&&Ye&&Tt.alternate===null&&a(te,Ye),G=b(Tt,G,ot),Qe===null?He=Tt:Qe.sibling=Tt,Qe=Tt,Ye=wr}if(ot===re.length)return u(te,Ye),Qt&&Fi(te,ot),He;if(Ye===null){for(;ot<re.length;ot++)Ye=me(te,re[ot],be),Ye!==null&&(G=b(Ye,G,ot),Qe===null?He=Ye:Qe.sibling=Ye,Qe=Ye);return Qt&&Fi(te,ot),He}for(Ye=d(te,Ye);ot<re.length;ot++)wr=_e(Ye,te,ot,re[ot],be),wr!==null&&(o&&wr.alternate!==null&&Ye.delete(wr.key===null?ot:wr.key),G=b(wr,G,ot),Qe===null?He=wr:Qe.sibling=wr,Qe=wr);return o&&Ye.forEach(function(si){return a(te,si)}),Qt&&Fi(te,ot),He}function ze(te,G,re,be){var He=H(re);if(typeof He!="function")throw Error(r(150));if(re=He.call(re),re==null)throw Error(r(151));for(var Qe=He=null,Ye=G,ot=G=0,wr=null,Tt=re.next();Ye!==null&&!Tt.done;ot++,Tt=re.next()){Ye.index>ot?(wr=Ye,Ye=null):wr=Ye.sibling;var si=pe(te,Ye,Tt.value,be);if(si===null){Ye===null&&(Ye=wr);break}o&&Ye&&si.alternate===null&&a(te,Ye),G=b(si,G,ot),Qe===null?He=si:Qe.sibling=si,Qe=si,Ye=wr}if(Tt.done)return u(te,Ye),Qt&&Fi(te,ot),He;if(Ye===null){for(;!Tt.done;ot++,Tt=re.next())Tt=me(te,Tt.value,be),Tt!==null&&(G=b(Tt,G,ot),Qe===null?He=Tt:Qe.sibling=Tt,Qe=Tt);return Qt&&Fi(te,ot),He}for(Ye=d(te,Ye);!Tt.done;ot++,Tt=re.next())Tt=_e(Ye,te,ot,Tt.value,be),Tt!==null&&(o&&Tt.alternate!==null&&Ye.delete(Tt.key===null?ot:Tt.key),G=b(Tt,G,ot),Qe===null?He=Tt:Qe.sibling=Tt,Qe=Tt);return o&&Ye.forEach(function(R2){return a(te,R2)}),Qt&&Fi(te,ot),He}function ar(te,G,re,be){if(typeof re=="object"&&re!==null&&re.type===M&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case R:e:{for(var He=re.key,Qe=G;Qe!==null;){if(Qe.key===He){if(He=re.type,He===M){if(Qe.tag===7){u(te,Qe.sibling),G=v(Qe,re.props.children),G.return=te,te=G;break e}}else if(Qe.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===z&&Ng(He)===Qe.type){u(te,Qe.sibling),G=v(Qe,re.props),G.ref=Vl(te,Qe,re),G.return=te,te=G;break e}u(te,Qe);break}else a(te,Qe);Qe=Qe.sibling}re.type===M?(G=Bi(re.props.children,te.mode,be,re.key),G.return=te,te=G):(be=Qu(re.type,re.key,re.props,null,te.mode,be),be.ref=Vl(te,G,re),be.return=te,te=be)}return P(te);case $:e:{for(Qe=re.key;G!==null;){if(G.key===Qe)if(G.tag===4&&G.stateNode.containerInfo===re.containerInfo&&G.stateNode.implementation===re.implementation){u(te,G.sibling),G=v(G,re.children||[]),G.return=te,te=G;break e}else{u(te,G);break}else a(te,G);G=G.sibling}G=up(re,te.mode,be),G.return=te,te=G}return P(te);case z:return Qe=re._init,ar(te,G,Qe(re._payload),be)}if(it(re))return je(te,G,re,be);if(H(re))return ze(te,G,re,be);Ou(te,re)}return typeof re=="string"&&re!==""||typeof re=="number"?(re=""+re,G!==null&&G.tag===6?(u(te,G.sibling),G=v(G,re),G.return=te,te=G):(u(te,G),G=sp(re,te.mode,be),G.return=te,te=G),P(te)):u(te,G)}return ar}var Ma=jg(!0),Dg=jg(!1),Tu=Yo(null),Pu=null,Aa=null,yd=null;function bd(){yd=Aa=Pu=null}function Sd(o){var a=Tu.current;Ut(Tu),o._currentValue=a}function wd(o,a,u){for(;o!==null;){var d=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),o===u)break;o=o.return}}function Ia(o,a){Pu=o,yd=Aa=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&a&&(tn=!0),o.firstContext=null)}function An(o){var a=o._currentValue;if(yd!==o)if(o={context:o,memoizedValue:a,next:null},Aa===null){if(Pu===null)throw Error(r(308));Aa=o,Pu.dependencies={lanes:0,firstContext:o}}else Aa=Aa.next=o;return a}var Li=null;function Cd(o){Li===null?Li=[o]:Li.push(o)}function zg(o,a,u,d){var v=a.interleaved;return v===null?(u.next=u,Cd(a)):(u.next=v.next,v.next=u),a.interleaved=u,Io(o,d)}function Io(o,a){o.lanes|=a;var u=o.alternate;for(u!==null&&(u.lanes|=a),u=o,o=o.return;o!==null;)o.childLanes|=a,u=o.alternate,u!==null&&(u.childLanes|=a),u=o,o=o.return;return u.tag===3?u.stateNode:null}var ei=!1;function xd(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hg(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Fo(o,a){return{eventTime:o,lane:a,tag:0,payload:null,callback:null,next:null}}function ti(o,a,u){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,Rt&2){var v=d.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a,Io(o,u)}return v=d.interleaved,v===null?(a.next=a,Cd(d)):(a.next=v.next,v.next=a),d.interleaved=a,Io(o,u)}function $u(o,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194240)!==0)){var d=a.lanes;d&=o.pendingLanes,u|=d,a.lanes=u,$i(o,u)}}function Bg(o,a){var u=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var v=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var P={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};b===null?v=b=P:b=b.next=P,u=u.next}while(u!==null);b===null?v=b=a:b=b.next=a}else v=b=a;u={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:d.shared,effects:d.effects},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=a:o.next=a,u.lastBaseUpdate=a}function _u(o,a,u,d){var v=o.updateQueue;ei=!1;var b=v.firstBaseUpdate,P=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var U=N,ne=U.next;U.next=null,P===null?b=ne:P.next=ne,P=U;var he=o.alternate;he!==null&&(he=he.updateQueue,N=he.lastBaseUpdate,N!==P&&(N===null?he.firstBaseUpdate=ne:N.next=ne,he.lastBaseUpdate=U))}if(b!==null){var me=v.baseState;P=0,he=ne=U=null,N=b;do{var pe=N.lane,_e=N.eventTime;if((d&pe)===pe){he!==null&&(he=he.next={eventTime:_e,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var je=o,ze=N;switch(pe=a,_e=u,ze.tag){case 1:if(je=ze.payload,typeof je=="function"){me=je.call(_e,me,pe);break e}me=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=ze.payload,pe=typeof je=="function"?je.call(_e,me,pe):je,pe==null)break e;me=j({},me,pe);break e;case 2:ei=!0}}N.callback!==null&&N.lane!==0&&(o.flags|=64,pe=v.effects,pe===null?v.effects=[N]:pe.push(N))}else _e={eventTime:_e,lane:pe,tag:N.tag,payload:N.payload,callback:N.callback,next:null},he===null?(ne=he=_e,U=me):he=he.next=_e,P|=pe;if(N=N.next,N===null){if(N=v.shared.pending,N===null)break;pe=N,N=pe.next,pe.next=null,v.lastBaseUpdate=pe,v.shared.pending=null}}while(!0);if(he===null&&(U=me),v.baseState=U,v.firstBaseUpdate=ne,v.lastBaseUpdate=he,a=v.shared.interleaved,a!==null){v=a;do P|=v.lane,v=v.next;while(v!==a)}else b===null&&(v.shared.lanes=0);ji|=P,o.lanes=P,o.memoizedState=me}}function Vg(o,a,u){if(o=a.effects,a.effects=null,o!==null)for(a=0;a<o.length;a++){var d=o[a],v=d.callback;if(v!==null){if(d.callback=null,d=u,typeof v!="function")throw Error(r(191,v));v.call(d)}}}var Ul={},yo=Yo(Ul),Wl=Yo(Ul),ql=Yo(Ul);function ki(o){if(o===Ul)throw Error(r(174));return o}function Ed(o,a){switch(Dt(ql,a),Dt(Wl,o),Dt(yo,Ul),o=a.nodeType,o){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Pt(null,"");break;default:o=o===8?a.parentNode:a,a=o.namespaceURI||null,o=o.tagName,a=Pt(a,o)}Ut(yo),Dt(yo,a)}function Fa(){Ut(yo),Ut(Wl),Ut(ql)}function Ug(o){ki(ql.current);var a=ki(yo.current),u=Pt(a,o.type);a!==u&&(Dt(Wl,o),Dt(yo,u))}function Rd(o){Wl.current===o&&(Ut(yo),Ut(Wl))}var tr=Yo(0);function Mu(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Od=[];function Td(){for(var o=0;o<Od.length;o++)Od[o]._workInProgressVersionPrimary=null;Od.length=0}var Au=_.ReactCurrentDispatcher,Pd=_.ReactCurrentBatchConfig,Ni=0,rr=null,hr=null,br=null,Iu=!1,Gl=!1,Kl=0,GE=0;function Mr(){throw Error(r(321))}function $d(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!Xn(o[u],a[u]))return!1;return!0}function _d(o,a,u,d,v,b){if(Ni=b,rr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Au.current=o===null||o.memoizedState===null?YE:JE,o=u(d,v),Gl){b=0;do{if(Gl=!1,Kl=0,25<=b)throw Error(r(301));b+=1,br=hr=null,a.updateQueue=null,Au.current=ZE,o=u(d,v)}while(Gl)}if(Au.current=ku,a=hr!==null&&hr.next!==null,Ni=0,br=hr=rr=null,Iu=!1,a)throw Error(r(300));return o}function Md(){var o=Kl!==0;return Kl=0,o}function bo(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return br===null?rr.memoizedState=br=o:br=br.next=o,br}function In(){if(hr===null){var o=rr.alternate;o=o!==null?o.memoizedState:null}else o=hr.next;var a=br===null?rr.memoizedState:br.next;if(a!==null)br=a,hr=o;else{if(o===null)throw Error(r(310));hr=o,o={memoizedState:hr.memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},br===null?rr.memoizedState=br=o:br=br.next=o}return br}function Xl(o,a){return typeof a=="function"?a(o):a}function Ad(o){var a=In(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var d=hr,v=d.baseQueue,b=u.pending;if(b!==null){if(v!==null){var P=v.next;v.next=b.next,b.next=P}d.baseQueue=v=b,u.pending=null}if(v!==null){b=v.next,d=d.baseState;var N=P=null,U=null,ne=b;do{var he=ne.lane;if((Ni&he)===he)U!==null&&(U=U.next={lane:0,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),d=ne.hasEagerState?ne.eagerState:o(d,ne.action);else{var me={lane:he,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null};U===null?(N=U=me,P=d):U=U.next=me,rr.lanes|=he,ji|=he}ne=ne.next}while(ne!==null&&ne!==b);U===null?P=d:U.next=N,Xn(d,a.memoizedState)||(tn=!0),a.memoizedState=d,a.baseState=P,a.baseQueue=U,u.lastRenderedState=d}if(o=u.interleaved,o!==null){v=o;do b=v.lane,rr.lanes|=b,ji|=b,v=v.next;while(v!==o)}else v===null&&(u.lanes=0);return[a.memoizedState,u.dispatch]}function Id(o){var a=In(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var d=u.dispatch,v=u.pending,b=a.memoizedState;if(v!==null){u.pending=null;var P=v=v.next;do b=o(b,P.action),P=P.next;while(P!==v);Xn(b,a.memoizedState)||(tn=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),u.lastRenderedState=b}return[b,d]}function Wg(){}function qg(o,a){var u=rr,d=In(),v=a(),b=!Xn(d.memoizedState,v);if(b&&(d.memoizedState=v,tn=!0),d=d.queue,Fd(Xg.bind(null,u,d,o),[o]),d.getSnapshot!==a||b||br!==null&&br.memoizedState.tag&1){if(u.flags|=2048,Ql(9,Kg.bind(null,u,d,v,a),void 0,null),Sr===null)throw Error(r(349));Ni&30||Gg(u,a,v)}return v}function Gg(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=rr.updateQueue,a===null?(a={lastEffect:null,stores:null},rr.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function Kg(o,a,u,d){a.value=u,a.getSnapshot=d,Qg(a)&&Yg(o)}function Xg(o,a,u){return u(function(){Qg(a)&&Yg(o)})}function Qg(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!Xn(o,u)}catch{return!0}}function Yg(o){var a=Io(o,1);a!==null&&eo(a,o,1,-1)}function Jg(o){var a=bo();return typeof o=="function"&&(o=o()),a.memoizedState=a.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:o},a.queue=o,o=o.dispatch=QE.bind(null,rr,o),[a.memoizedState,o]}function Ql(o,a,u,d){return o={tag:o,create:a,destroy:u,deps:d,next:null},a=rr.updateQueue,a===null?(a={lastEffect:null,stores:null},rr.updateQueue=a,a.lastEffect=o.next=o):(u=a.lastEffect,u===null?a.lastEffect=o.next=o:(d=u.next,u.next=o,o.next=d,a.lastEffect=o)),o}function Zg(){return In().memoizedState}function Fu(o,a,u,d){var v=bo();rr.flags|=o,v.memoizedState=Ql(1|a,u,void 0,d===void 0?null:d)}function Lu(o,a,u,d){var v=In();d=d===void 0?null:d;var b=void 0;if(hr!==null){var P=hr.memoizedState;if(b=P.destroy,d!==null&&$d(d,P.deps)){v.memoizedState=Ql(a,u,b,d);return}}rr.flags|=o,v.memoizedState=Ql(1|a,u,b,d)}function e0(o,a){return Fu(8390656,8,o,a)}function Fd(o,a){return Lu(2048,8,o,a)}function t0(o,a){return Lu(4,2,o,a)}function r0(o,a){return Lu(4,4,o,a)}function n0(o,a){if(typeof a=="function")return o=o(),a(o),function(){a(null)};if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function o0(o,a,u){return u=u!=null?u.concat([o]):null,Lu(4,4,n0.bind(null,a,o),u)}function Ld(){}function i0(o,a){var u=In();a=a===void 0?null:a;var d=u.memoizedState;return d!==null&&a!==null&&$d(a,d[1])?d[0]:(u.memoizedState=[o,a],o)}function a0(o,a){var u=In();a=a===void 0?null:a;var d=u.memoizedState;return d!==null&&a!==null&&$d(a,d[1])?d[0]:(o=o(),u.memoizedState=[o,a],o)}function l0(o,a,u){return Ni&21?(Xn(u,a)||(u=pa(),rr.lanes|=u,ji|=u,o.baseState=!0),a):(o.baseState&&(o.baseState=!1,tn=!0),o.memoizedState=u)}function KE(o,a){var u=Et;Et=u!==0&&4>u?u:4,o(!0);var d=Pd.transition;Pd.transition={};try{o(!1),a()}finally{Et=u,Pd.transition=d}}function s0(){return In().memoizedState}function XE(o,a,u){var d=ii(o);if(u={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null},u0(o))c0(a,u);else if(u=zg(o,a,u,d),u!==null){var v=Gr();eo(u,o,d,v),f0(u,a,d)}}function QE(o,a,u){var d=ii(o),v={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(u0(o))c0(a,v);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var P=a.lastRenderedState,N=b(P,u);if(v.hasEagerState=!0,v.eagerState=N,Xn(N,P)){var U=a.interleaved;U===null?(v.next=v,Cd(a)):(v.next=U.next,U.next=v),a.interleaved=v;return}}catch{}finally{}u=zg(o,a,v,d),u!==null&&(v=Gr(),eo(u,o,d,v),f0(u,a,d))}}function u0(o){var a=o.alternate;return o===rr||a!==null&&a===rr}function c0(o,a){Gl=Iu=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function f0(o,a,u){if(u&4194240){var d=a.lanes;d&=o.pendingLanes,u|=d,a.lanes=u,$i(o,u)}}var ku={readContext:An,useCallback:Mr,useContext:Mr,useEffect:Mr,useImperativeHandle:Mr,useInsertionEffect:Mr,useLayoutEffect:Mr,useMemo:Mr,useReducer:Mr,useRef:Mr,useState:Mr,useDebugValue:Mr,useDeferredValue:Mr,useTransition:Mr,useMutableSource:Mr,useSyncExternalStore:Mr,useId:Mr,unstable_isNewReconciler:!1},YE={readContext:An,useCallback:function(o,a){return bo().memoizedState=[o,a===void 0?null:a],o},useContext:An,useEffect:e0,useImperativeHandle:function(o,a,u){return u=u!=null?u.concat([o]):null,Fu(4194308,4,n0.bind(null,a,o),u)},useLayoutEffect:function(o,a){return Fu(4194308,4,o,a)},useInsertionEffect:function(o,a){return Fu(4,2,o,a)},useMemo:function(o,a){var u=bo();return a=a===void 0?null:a,o=o(),u.memoizedState=[o,a],o},useReducer:function(o,a,u){var d=bo();return a=u!==void 0?u(a):a,d.memoizedState=d.baseState=a,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:a},d.queue=o,o=o.dispatch=XE.bind(null,rr,o),[d.memoizedState,o]},useRef:function(o){var a=bo();return o={current:o},a.memoizedState=o},useState:Jg,useDebugValue:Ld,useDeferredValue:function(o){return bo().memoizedState=o},useTransition:function(){var o=Jg(!1),a=o[0];return o=KE.bind(null,o[1]),bo().memoizedState=o,[a,o]},useMutableSource:function(){},useSyncExternalStore:function(o,a,u){var d=rr,v=bo();if(Qt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),Sr===null)throw Error(r(349));Ni&30||Gg(d,a,u)}v.memoizedState=u;var b={value:u,getSnapshot:a};return v.queue=b,e0(Xg.bind(null,d,b,o),[o]),d.flags|=2048,Ql(9,Kg.bind(null,d,b,u,a),void 0,null),u},useId:function(){var o=bo(),a=Sr.identifierPrefix;if(Qt){var u=Ao,d=Mo;u=(d&~(1<<32-$r(d)-1)).toString(32)+u,a=":"+a+"R"+u,u=Kl++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=GE++,a=":"+a+"r"+u.toString(32)+":";return o.memoizedState=a},unstable_isNewReconciler:!1},JE={readContext:An,useCallback:i0,useContext:An,useEffect:Fd,useImperativeHandle:o0,useInsertionEffect:t0,useLayoutEffect:r0,useMemo:a0,useReducer:Ad,useRef:Zg,useState:function(){return Ad(Xl)},useDebugValue:Ld,useDeferredValue:function(o){var a=In();return l0(a,hr.memoizedState,o)},useTransition:function(){var o=Ad(Xl)[0],a=In().memoizedState;return[o,a]},useMutableSource:Wg,useSyncExternalStore:qg,useId:s0,unstable_isNewReconciler:!1},ZE={readContext:An,useCallback:i0,useContext:An,useEffect:Fd,useImperativeHandle:o0,useInsertionEffect:t0,useLayoutEffect:r0,useMemo:a0,useReducer:Id,useRef:Zg,useState:function(){return Id(Xl)},useDebugValue:Ld,useDeferredValue:function(o){var a=In();return hr===null?a.memoizedState=o:l0(a,hr.memoizedState,o)},useTransition:function(){var o=Id(Xl)[0],a=In().memoizedState;return[o,a]},useMutableSource:Wg,useSyncExternalStore:qg,useId:s0,unstable_isNewReconciler:!1};function Yn(o,a){if(o&&o.defaultProps){a=j({},a),o=o.defaultProps;for(var u in o)a[u]===void 0&&(a[u]=o[u]);return a}return a}function kd(o,a,u,d){a=o.memoizedState,u=u(d,a),u=u==null?a:j({},a,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var Nu={isMounted:function(o){return(o=o._reactInternals)?ct(o)===o:!1},enqueueSetState:function(o,a,u){o=o._reactInternals;var d=Gr(),v=ii(o),b=Fo(d,v);b.payload=a,u!=null&&(b.callback=u),a=ti(o,b,v),a!==null&&(eo(a,o,v,d),$u(a,o,v))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var d=Gr(),v=ii(o),b=Fo(d,v);b.tag=1,b.payload=a,u!=null&&(b.callback=u),a=ti(o,b,v),a!==null&&(eo(a,o,v,d),$u(a,o,v))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=Gr(),d=ii(o),v=Fo(u,d);v.tag=2,a!=null&&(v.callback=a),a=ti(o,v,d),a!==null&&(eo(a,o,d,u),$u(a,o,d))}};function d0(o,a,u,d,v,b,P){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,b,P):a.prototype&&a.prototype.isPureReactComponent?!kl(u,d)||!kl(v,b):!0}function p0(o,a,u){var d=!1,v=Jo,b=a.contextType;return typeof b=="object"&&b!==null?b=An(b):(v=en(a)?Ai:_r.current,d=a.contextTypes,b=(d=d!=null)?Ta(o,v):Jo),a=new a(u,b),o.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Nu,o.stateNode=a,a._reactInternals=o,d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=v,o.__reactInternalMemoizedMaskedChildContext=b),a}function h0(o,a,u,d){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,d),a.state!==o&&Nu.enqueueReplaceState(a,a.state,null)}function Nd(o,a,u,d){var v=o.stateNode;v.props=u,v.state=o.memoizedState,v.refs={},xd(o);var b=a.contextType;typeof b=="object"&&b!==null?v.context=An(b):(b=en(a)?Ai:_r.current,v.context=Ta(o,b)),v.state=o.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(kd(o,a,b,u),v.state=o.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(a=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),a!==v.state&&Nu.enqueueReplaceState(v,v.state,null),_u(o,u,v,d),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308)}function La(o,a){try{var u="",d=a;do u+=ae(d),d=d.return;while(d);var v=u}catch(b){v=` Error generating stack: `+b.message+` `+b.stack}return{value:o,source:a,stack:v,digest:null}}function jd(o,a,u){return{value:o,source:null,stack:u??null,digest:a??null}}function Dd(o,a){try{console.error(a.value)}catch(u){setTimeout(function(){throw u})}}var e2=typeof WeakMap=="function"?WeakMap:Map;function m0(o,a,u){u=Fo(-1,u),u.tag=3,u.payload={element:null};var d=a.value;return u.callback=function(){Uu||(Uu=!0,ep=d),Dd(o,a)},u}function v0(o,a,u){u=Fo(-1,u),u.tag=3;var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var v=a.value;u.payload=function(){return d(v)},u.callback=function(){Dd(o,a)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(u.callback=function(){Dd(o,a),typeof d!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var P=a.stack;this.componentDidCatch(a.value,{componentStack:P!==null?P:""})}),u}function g0(o,a,u){var d=o.pingCache;if(d===null){d=o.pingCache=new e2;var v=new Set;d.set(a,v)}else v=d.get(a),v===void 0&&(v=new Set,d.set(a,v));v.has(u)||(v.add(u),o=h2.bind(null,o,a,u),a.then(o,o))}function y0(o){do{var a;if((a=o.tag===13)&&(a=o.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return o;o=o.return}while(o!==null);return null}function b0(o,a,u,d,v){return o.mode&1?(o.flags|=65536,o.lanes=v,o):(o===a?o.flags|=65536:(o.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(a=Fo(-1,1),a.tag=2,ti(u,a,1))),u.lanes|=1),o)}var t2=_.ReactCurrentOwner,tn=!1;function qr(o,a,u,d){a.child=o===null?Dg(a,null,u,d):Ma(a,o.child,u,d)}function S0(o,a,u,d,v){u=u.render;var b=a.ref;return Ia(a,v),d=_d(o,a,u,d,b,v),u=Md(),o!==null&&!tn?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~v,Lo(o,a,v)):(Qt&&u&&pd(a),a.flags|=1,qr(o,a,d,v),a.child)}function w0(o,a,u,d,v){if(o===null){var b=u.type;return typeof b=="function"&&!lp(b)&&b.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(a.tag=15,a.type=b,C0(o,a,b,d,v)):(o=Qu(u.type,null,d,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(b=o.child,!(o.lanes&v)){var P=b.memoizedProps;if(u=u.compare,u=u!==null?u:kl,u(P,d)&&o.ref===a.ref)return Lo(o,a,v)}return a.flags|=1,o=li(b,d),o.ref=a.ref,o.return=a,a.child=o}function C0(o,a,u,d,v){if(o!==null){var b=o.memoizedProps;if(kl(b,d)&&o.ref===a.ref)if(tn=!1,a.pendingProps=d=b,(o.lanes&v)!==0)o.flags&131072&&(tn=!0);else return a.lanes=o.lanes,Lo(o,a,v)}return zd(o,a,u,d,v)}function x0(o,a,u){var d=a.pendingProps,v=d.children,b=o!==null?o.memoizedState:null;if(d.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(Na,vn),vn|=u;else{if(!(u&1073741824))return o=b!==null?b.baseLanes|u:u,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:o,cachePool:null,transitions:null},a.updateQueue=null,Dt(Na,vn),vn|=o,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=b!==null?b.baseLanes:u,Dt(Na,vn),vn|=d}else b!==null?(d=b.baseLanes|u,a.memoizedState=null):d=u,Dt(Na,vn),vn|=d;return qr(o,a,v,u),a.child}function E0(o,a){var u=a.ref;(o===null&&u!==null||o!==null&&o.ref!==u)&&(a.flags|=512,a.flags|=2097152)}function zd(o,a,u,d,v){var b=en(u)?Ai:_r.current;return b=Ta(a,b),Ia(a,v),u=_d(o,a,u,d,b,v),d=Md(),o!==null&&!tn?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~v,Lo(o,a,v)):(Qt&&d&&pd(a),a.flags|=1,qr(o,a,u,v),a.child)}function R0(o,a,u,d,v){if(en(u)){var b=!0;wu(a)}else b=!1;if(Ia(a,v),a.stateNode===null)Du(o,a),p0(a,u,d),Nd(a,u,d,v),d=!0;else if(o===null){var P=a.stateNode,N=a.memoizedProps;P.props=N;var U=P.context,ne=u.contextType;typeof ne=="object"&&ne!==null?ne=An(ne):(ne=en(u)?Ai:_r.current,ne=Ta(a,ne));var he=u.getDerivedStateFromProps,me=typeof he=="function"||typeof P.getSnapshotBeforeUpdate=="function";me||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(N!==d||U!==ne)&&h0(a,P,d,ne),ei=!1;var pe=a.memoizedState;P.state=pe,_u(a,d,P,v),U=a.memoizedState,N!==d||pe!==U||Zr.current||ei?(typeof he=="function"&&(kd(a,u,he,d),U=a.memoizedState),(N=ei||d0(a,u,N,d,pe,U,ne))?(me||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(a.flags|=4194308)):(typeof P.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=U),P.props=d,P.state=U,P.context=ne,d=N):(typeof P.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{P=a.stateNode,Hg(o,a),N=a.memoizedProps,ne=a.type===a.elementType?N:Yn(a.type,N),P.props=ne,me=a.pendingProps,pe=P.context,U=u.contextType,typeof U=="object"&&U!==null?U=An(U):(U=en(u)?Ai:_r.current,U=Ta(a,U));var _e=u.getDerivedStateFromProps;(he=typeof _e=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(N!==me||pe!==U)&&h0(a,P,d,U),ei=!1,pe=a.memoizedState,P.state=pe,_u(a,d,P,v);var je=a.memoizedState;N!==me||pe!==je||Zr.current||ei?(typeof _e=="function"&&(kd(a,u,_e,d),je=a.memoizedState),(ne=ei||d0(a,u,ne,d,pe,je,U)||!1)?(he||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(d,je,U),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(d,je,U)),typeof P.componentDidUpdate=="function"&&(a.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof P.componentDidUpdate!="function"||N===o.memoizedProps&&pe===o.memoizedState||(a.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||N===o.memoizedProps&&pe===o.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=je),P.props=d,P.state=je,P.context=U,d=ne):(typeof P.componentDidUpdate!="function"||N===o.memoizedProps&&pe===o.memoizedState||(a.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||N===o.memoizedProps&&pe===o.memoizedState||(a.flags|=1024),d=!1)}return Hd(o,a,u,d,b,v)}function Hd(o,a,u,d,v,b){E0(o,a);var P=(a.flags&128)!==0;if(!d&&!P)return v&&_g(a,u,!1),Lo(o,a,b);d=a.stateNode,t2.current=a;var N=P&&typeof u.getDerivedStateFromError!="function"?null:d.render();return a.flags|=1,o!==null&&P?(a.child=Ma(a,o.child,null,b),a.child=Ma(a,null,N,b)):qr(o,a,N,b),a.memoizedState=d.state,v&&_g(a,u,!0),a.child}function O0(o){var a=o.stateNode;a.pendingContext?Pg(o,a.pendingContext,a.pendingContext!==a.context):a.context&&Pg(o,a.context,!1),Ed(o,a.containerInfo)}function T0(o,a,u,d,v){return _a(),gd(v),a.flags|=256,qr(o,a,u,d),a.child}var Bd={dehydrated:null,treeContext:null,retryLane:0};function Vd(o){return{baseLanes:o,cachePool:null,transitions:null}}function P0(o,a,u){var d=a.pendingProps,v=tr.current,b=!1,P=(a.flags&128)!==0,N;if((N=P)||(N=o!==null&&o.memoizedState===null?!1:(v&2)!==0),N?(b=!0,a.flags&=-129):(o===null||o.memoizedState!==null)&&(v|=1),Dt(tr,v&1),o===null)return vd(a),o=a.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(a.mode&1?o.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(P=d.children,o=d.fallback,b?(d=a.mode,b=a.child,P={mode:"hidden",children:P},!(d&1)&&b!==null?(b.childLanes=0,b.pendingProps=P):b=Yu(P,d,0,null),o=Bi(o,d,u,null),b.return=a,o.return=a,b.sibling=o,a.child=b,a.child.memoizedState=Vd(u),a.memoizedState=Bd,o):Ud(a,P));if(v=o.memoizedState,v!==null&&(N=v.dehydrated,N!==null))return r2(o,a,P,d,N,v,u);if(b){b=d.fallback,P=a.mode,v=o.child,N=v.sibling;var U={mode:"hidden",children:d.children};return!(P&1)&&a.child!==v?(d=a.child,d.childLanes=0,d.pendingProps=U,a.deletions=null):(d=li(v,U),d.subtreeFlags=v.subtreeFlags&14680064),N!==null?b=li(N,b):(b=Bi(b,P,u,null),b.flags|=2),b.return=a,d.return=a,d.sibling=b,a.child=d,d=b,b=a.child,P=o.child.memoizedState,P=P===null?Vd(u):{baseLanes:P.baseLanes|u,cachePool:null,transitions:P.transitions},b.memoizedState=P,b.childLanes=o.childLanes&~u,a.memoizedState=Bd,d}return b=o.child,o=b.sibling,d=li(b,{mode:"visible",children:d.children}),!(a.mode&1)&&(d.lanes=u),d.return=a,d.sibling=null,o!==null&&(u=a.deletions,u===null?(a.deletions=[o],a.flags|=16):u.push(o)),a.child=d,a.memoizedState=null,d}function Ud(o,a){return a=Yu({mode:"visible",children:a},o.mode,0,null),a.return=o,o.child=a}function ju(o,a,u,d){return d!==null&&gd(d),Ma(a,o.child,null,u),o=Ud(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function r2(o,a,u,d,v,b,P){if(u)return a.flags&256?(a.flags&=-257,d=jd(Error(r(422))),ju(o,a,P,d)):a.memoizedState!==null?(a.child=o.child,a.flags|=128,null):(b=d.fallback,v=a.mode,d=Yu({mode:"visible",children:d.children},v,0,null),b=Bi(b,v,P,null),b.flags|=2,d.return=a,b.return=a,d.sibling=b,a.child=d,a.mode&1&&Ma(a,o.child,null,P),a.child.memoizedState=Vd(P),a.memoizedState=Bd,b);if(!(a.mode&1))return ju(o,a,P,null);if(v.data==="$!"){if(d=v.nextSibling&&v.nextSibling.dataset,d)var N=d.dgst;return d=N,b=Error(r(419)),d=jd(b,d,void 0),ju(o,a,P,d)}if(N=(P&o.childLanes)!==0,tn||N){if(d=Sr,d!==null){switch(P&-P){case 4:v=2;break;case 16:v=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:v=32;break;case 536870912:v=268435456;break;default:v=0}v=v&(d.suspendedLanes|P)?0:v,v!==0&&v!==b.retryLane&&(b.retryLane=v,Io(o,v),eo(d,o,v,-1))}return ap(),d=jd(Error(r(421))),ju(o,a,P,d)}return v.data==="$?"?(a.flags|=128,a.child=o.child,a=m2.bind(null,o),v._reactRetry=a,null):(o=b.treeContext,mn=Qo(v.nextSibling),hn=a,Qt=!0,Qn=null,o!==null&&(_n[Mn++]=Mo,_n[Mn++]=Ao,_n[Mn++]=Ii,Mo=o.id,Ao=o.overflow,Ii=a),a=Ud(a,d.children),a.flags|=4096,a)}function $0(o,a,u){o.lanes|=a;var d=o.alternate;d!==null&&(d.lanes|=a),wd(o.return,a,u)}function Wd(o,a,u,d,v){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:v}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=u,b.tailMode=v)}function _0(o,a,u){var d=a.pendingProps,v=d.revealOrder,b=d.tail;if(qr(o,a,d.children,u),d=tr.current,d&2)d=d&1|2,a.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&$0(o,u,a);else if(o.tag===19)$0(o,u,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}d&=1}if(Dt(tr,d),!(a.mode&1))a.memoizedState=null;else switch(v){case"forwards":for(u=a.child,v=null;u!==null;)o=u.alternate,o!==null&&Mu(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),Wd(a,!1,v,u,b);break;case"backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(o=v.alternate,o!==null&&Mu(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}Wd(a,!0,u,null,b);break;case"together":Wd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Du(o,a){!(a.mode&1)&&o!==null&&(o.alternate=null,a.alternate=null,a.flags|=2)}function Lo(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),ji|=a.lanes,!(u&a.childLanes))return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,u=li(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=li(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function n2(o,a,u){switch(a.tag){case 3:O0(a),_a();break;case 5:Ug(a);break;case 1:en(a.type)&&wu(a);break;case 4:Ed(a,a.stateNode.containerInfo);break;case 10:var d=a.type._context,v=a.memoizedProps.value;Dt(Tu,d._currentValue),d._currentValue=v;break;case 13:if(d=a.memoizedState,d!==null)return d.dehydrated!==null?(Dt(tr,tr.current&1),a.flags|=128,null):u&a.child.childLanes?P0(o,a,u):(Dt(tr,tr.current&1),o=Lo(o,a,u),o!==null?o.sibling:null);Dt(tr,tr.current&1);break;case 19:if(d=(u&a.childLanes)!==0,o.flags&128){if(d)return _0(o,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Dt(tr,tr.current),d)break;return null;case 22:case 23:return a.lanes=0,x0(o,a,u)}return Lo(o,a,u)}var M0,qd,A0,I0;M0=function(o,a){for(var u=a.child;u!==null;){if(u.tag===5||u.tag===6)o.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},qd=function(){},A0=function(o,a,u,d){var v=o.memoizedProps;if(v!==d){o=a.stateNode,ki(yo.current);var b=null;switch(u){case"input":v=Ve(o,v),d=Ve(o,d),b=[];break;case"select":v=j({},v,{value:void 0}),d=j({},d,{value:void 0}),b=[];break;case"textarea":v=ut(o,v),d=ut(o,d),b=[];break;default:typeof v.onClick!="function"&&typeof d.onClick=="function"&&(o.onclick=yu)}Ie(u,d);var P;u=null;for(ne in v)if(!d.hasOwnProperty(ne)&&v.hasOwnProperty(ne)&&v[ne]!=null)if(ne==="style"){var N=v[ne];for(P in N)N.hasOwnProperty(P)&&(u||(u={}),u[P]="")}else ne!=="dangerouslySetInnerHTML"&&ne!=="children"&&ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&ne!=="autoFocus"&&(i.hasOwnProperty(ne)?b||(b=[]):(b=b||[]).push(ne,null));for(ne in d){var U=d[ne];if(N=v!=null?v[ne]:void 0,d.hasOwnProperty(ne)&&U!==N&&(U!=null||N!=null))if(ne==="style")if(N){for(P in N)!N.hasOwnProperty(P)||U&&U.hasOwnProperty(P)||(u||(u={}),u[P]="");for(P in U)U.hasOwnProperty(P)&&N[P]!==U[P]&&(u||(u={}),u[P]=U[P])}else u||(b||(b=[]),b.push(ne,u)),u=U;else ne==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,N=N?N.__html:void 0,U!=null&&N!==U&&(b=b||[]).push(ne,U)):ne==="children"?typeof U!="string"&&typeof U!="number"||(b=b||[]).push(ne,""+U):ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&(i.hasOwnProperty(ne)?(U!=null&&ne==="onScroll"&&Vt("scroll",o),b||N===U||(b=[])):(b=b||[]).push(ne,U))}u&&(b=b||[]).push("style",u);var ne=b;(a.updateQueue=ne)&&(a.flags|=4)}},I0=function(o,a,u,d){u!==d&&(a.flags|=4)};function Yl(o,a){if(!Qt)switch(o.tailMode){case"hidden":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function Ar(o){var a=o.alternate!==null&&o.alternate.child===o.child,u=0,d=0;if(a)for(var v=o.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags&14680064,d|=v.flags&14680064,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)u|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=d,o.childLanes=u,a}function o2(o,a,u){var d=a.pendingProps;switch(hd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ar(a),null;case 1:return en(a.type)&&Su(),Ar(a),null;case 3:return d=a.stateNode,Fa(),Ut(Zr),Ut(_r),Td(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Ru(a)?a.flags|=4:o===null||o.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Qn!==null&&(np(Qn),Qn=null))),qd(o,a),Ar(a),null;case 5:Rd(a);var v=ki(ql.current);if(u=a.type,o!==null&&a.stateNode!=null)A0(o,a,u,d,v),o.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!d){if(a.stateNode===null)throw Error(r(166));return Ar(a),null}if(o=ki(yo.current),Ru(a)){d=a.stateNode,u=a.type;var b=a.memoizedProps;switch(d[go]=a,d[Hl]=b,o=(a.mode&1)!==0,u){case"dialog":Vt("cancel",d),Vt("close",d);break;case"iframe":case"object":case"embed":Vt("load",d);break;case"video":case"audio":for(v=0;v<jl.length;v++)Vt(jl[v],d);break;case"source":Vt("error",d);break;case"img":case"image":case"link":Vt("error",d),Vt("load",d);break;case"details":Vt("toggle",d);break;case"input":Te(d,b),Vt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!b.multiple},Vt("invalid",d);break;case"textarea":ye(d,b),Vt("invalid",d)}Ie(u,b),v=null;for(var P in b)if(b.hasOwnProperty(P)){var N=b[P];P==="children"?typeof N=="string"?d.textContent!==N&&(b.suppressHydrationWarning!==!0&&gu(d.textContent,N,o),v=["children",N]):typeof N=="number"&&d.textContent!==""+N&&(b.suppressHydrationWarning!==!0&&gu(d.textContent,N,o),v=["children",""+N]):i.hasOwnProperty(P)&&N!=null&&P==="onScroll"&&Vt("scroll",d)}switch(u){case"input":De(d),Ze(d,b,!0);break;case"textarea":De(d),Ue(d);break;case"select":case"option":break;default:typeof b.onClick=="function"&&(d.onclick=yu)}d=v,a.updateQueue=d,d!==null&&(a.flags|=4)}else{P=v.nodeType===9?v:v.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=tt(u)),o==="http://www.w3.org/1999/xhtml"?u==="script"?(o=P.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=P.createElement(u,{is:d.is}):(o=P.createElement(u),u==="select"&&(P=o,d.multiple?P.multiple=!0:d.size&&(P.size=d.size))):o=P.createElementNS(o,u),o[go]=a,o[Hl]=d,M0(o,a,!1,!1),a.stateNode=o;e:{switch(P=qe(u,d),u){case"dialog":Vt("cancel",o),Vt("close",o),v=d;break;case"iframe":case"object":case"embed":Vt("load",o),v=d;break;case"video":case"audio":for(v=0;v<jl.length;v++)Vt(jl[v],o);v=d;break;case"source":Vt("error",o),v=d;break;case"img":case"image":case"link":Vt("error",o),Vt("load",o),v=d;break;case"details":Vt("toggle",o),v=d;break;case"input":Te(o,d),v=Ve(o,d),Vt("invalid",o);break;case"option":v=d;break;case"select":o._wrapperState={wasMultiple:!!d.multiple},v=j({},d,{value:void 0}),Vt("invalid",o);break;case"textarea":ye(o,d),v=ut(o,d),Vt("invalid",o);break;default:v=d}Ie(u,v),N=v;for(b in N)if(N.hasOwnProperty(b)){var U=N[b];b==="style"?Ge(o,U):b==="dangerouslySetInnerHTML"?(U=U?U.__html:void 0,U!=null&&Ht(o,U)):b==="children"?typeof U=="string"?(u!=="textarea"||U!=="")&&wt(o,U):typeof U=="number"&&wt(o,""+U):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(i.hasOwnProperty(b)?U!=null&&b==="onScroll"&&Vt("scroll",o):U!=null&&O(o,b,U,P))}switch(u){case"input":De(o),Ze(o,d,!1);break;case"textarea":De(o),Ue(o);break;case"option":d.value!=null&&o.setAttribute("value",""+ce(d.value));break;case"select":o.multiple=!!d.multiple,b=d.value,b!=null?Le(o,!!d.multiple,b,!1):d.defaultValue!=null&&Le(o,!!d.multiple,d.defaultValue,!0);break;default:typeof v.onClick=="function"&&(o.onclick=yu)}switch(u){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Ar(a),null;case 6:if(o&&a.stateNode!=null)I0(o,a,o.memoizedProps,d);else{if(typeof d!="string"&&a.stateNode===null)throw Error(r(166));if(u=ki(ql.current),ki(yo.current),Ru(a)){if(d=a.stateNode,u=a.memoizedProps,d[go]=a,(b=d.nodeValue!==u)&&(o=hn,o!==null))switch(o.tag){case 3:gu(d.nodeValue,u,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&gu(d.nodeValue,u,(o.mode&1)!==0)}b&&(a.flags|=4)}else d=(u.nodeType===9?u:u.ownerDocument).createTextNode(d),d[go]=a,a.stateNode=d}return Ar(a),null;case 13:if(Ut(tr),d=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Qt&&mn!==null&&a.mode&1&&!(a.flags&128))kg(),_a(),a.flags|=98560,b=!1;else if(b=Ru(a),d!==null&&d.dehydrated!==null){if(o===null){if(!b)throw Error(r(318));if(b=a.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[go]=a}else _a(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ar(a),b=!1}else Qn!==null&&(np(Qn),Qn=null),b=!0;if(!b)return a.flags&65536?a:null}return a.flags&128?(a.lanes=u,a):(d=d!==null,d!==(o!==null&&o.memoizedState!==null)&&d&&(a.child.flags|=8192,a.mode&1&&(o===null||tr.current&1?mr===0&&(mr=3):ap())),a.updateQueue!==null&&(a.flags|=4),Ar(a),null);case 4:return Fa(),qd(o,a),o===null&&Dl(a.stateNode.containerInfo),Ar(a),null;case 10:return Sd(a.type._context),Ar(a),null;case 17:return en(a.type)&&Su(),Ar(a),null;case 19:if(Ut(tr),b=a.memoizedState,b===null)return Ar(a),null;if(d=(a.flags&128)!==0,P=b.rendering,P===null)if(d)Yl(b,!1);else{if(mr!==0||o!==null&&o.flags&128)for(o=a.child;o!==null;){if(P=Mu(o),P!==null){for(a.flags|=128,Yl(b,!1),d=P.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),a.subtreeFlags=0,d=u,u=a.child;u!==null;)b=u,o=d,b.flags&=14680066,P=b.alternate,P===null?(b.childLanes=0,b.lanes=o,b.child=null,b.subtreeFlags=0,b.memoizedProps=null,b.memoizedState=null,b.updateQueue=null,b.dependencies=null,b.stateNode=null):(b.childLanes=P.childLanes,b.lanes=P.lanes,b.child=P.child,b.subtreeFlags=0,b.deletions=null,b.memoizedProps=P.memoizedProps,b.memoizedState=P.memoizedState,b.updateQueue=P.updateQueue,b.type=P.type,o=P.dependencies,b.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),u=u.sibling;return Dt(tr,tr.current&1|2),a.child}o=o.sibling}b.tail!==null&&Ct()>ja&&(a.flags|=128,d=!0,Yl(b,!1),a.lanes=4194304)}else{if(!d)if(o=Mu(P),o!==null){if(a.flags|=128,d=!0,u=o.updateQueue,u!==null&&(a.updateQueue=u,a.flags|=4),Yl(b,!0),b.tail===null&&b.tailMode==="hidden"&&!P.alternate&&!Qt)return Ar(a),null}else 2*Ct()-b.renderingStartTime>ja&&u!==1073741824&&(a.flags|=128,d=!0,Yl(b,!1),a.lanes=4194304);b.isBackwards?(P.sibling=a.child,a.child=P):(u=b.last,u!==null?u.sibling=P:a.child=P,b.last=P)}return b.tail!==null?(a=b.tail,b.rendering=a,b.tail=a.sibling,b.renderingStartTime=Ct(),a.sibling=null,u=tr.current,Dt(tr,d?u&1|2:u&1),a):(Ar(a),null);case 22:case 23:return ip(),d=a.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(a.flags|=8192),d&&a.mode&1?vn&1073741824&&(Ar(a),a.subtreeFlags&6&&(a.flags|=8192)):Ar(a),null;case 24:return null;case 25:return null}throw Error(r(156,a.tag))}function i2(o,a){switch(hd(a),a.tag){case 1:return en(a.type)&&Su(),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return Fa(),Ut(Zr),Ut(_r),Td(),o=a.flags,o&65536&&!(o&128)?(a.flags=o&-65537|128,a):null;case 5:return Rd(a),null;case 13:if(Ut(tr),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));_a()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return Ut(tr),null;case 4:return Fa(),null;case 10:return Sd(a.type._context),null;case 22:case 23:return ip(),null;case 24:return null;default:return null}}var zu=!1,Ir=!1,a2=typeof WeakSet=="function"?WeakSet:Set,ke=null;function ka(o,a){var u=o.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(d){or(o,a,d)}else u.current=null}function Gd(o,a,u){try{u()}catch(d){or(o,a,d)}}var F0=!1;function l2(o,a){if(id=au,o=dg(),Yf(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var v=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var P=0,N=-1,U=-1,ne=0,he=0,me=o,pe=null;t:for(;;){for(var _e;me!==u||v!==0&&me.nodeType!==3||(N=P+v),me!==b||d!==0&&me.nodeType!==3||(U=P+d),me.nodeType===3&&(P+=me.nodeValue.length),(_e=me.firstChild)!==null;)pe=me,me=_e;for(;;){if(me===o)break t;if(pe===u&&++ne===v&&(N=P),pe===b&&++he===d&&(U=P),(_e=me.nextSibling)!==null)break;me=pe,pe=me.parentNode}me=_e}u=N===-1||U===-1?null:{start:N,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(ad={focusedElem:o,selectionRange:u},au=!1,ke=a;ke!==null;)if(a=ke,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ke=o;else for(;ke!==null;){a=ke;try{var je=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var ze=je.memoizedProps,ar=je.memoizedState,te=a.stateNode,G=te.getSnapshotBeforeUpdate(a.elementType===a.type?ze:Yn(a.type,ze),ar);te.__reactInternalSnapshotBeforeUpdate=G}break;case 3:var re=a.stateNode.containerInfo;re.nodeType===1?re.textContent="":re.nodeType===9&&re.documentElement&&re.removeChild(re.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){or(a,a.return,be)}if(o=a.sibling,o!==null){o.return=a.return,ke=o;break}ke=a.return}return je=F0,F0=!1,je}function Jl(o,a,u){var d=a.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var v=d=d.next;do{if((v.tag&o)===o){var b=v.destroy;v.destroy=void 0,b!==void 0&&Gd(a,u,b)}v=v.next}while(v!==d)}}function Hu(o,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&o)===o){var d=u.create;u.destroy=d()}u=u.next}while(u!==a)}}function Kd(o){var a=o.ref;if(a!==null){var u=o.stateNode;switch(o.tag){case 5:o=u;break;default:o=u}typeof a=="function"?a(o):a.current=o}}function L0(o){var a=o.alternate;a!==null&&(o.alternate=null,L0(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&(delete a[go],delete a[Hl],delete a[cd],delete a[VE],delete a[UE])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function k0(o){return o.tag===5||o.tag===3||o.tag===4}function N0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||k0(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Xd(o,a,u){var d=o.tag;if(d===5||d===6)o=o.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(o,a):u.insertBefore(o,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(o,u)):(a=u,a.appendChild(o)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=yu));else if(d!==4&&(o=o.child,o!==null))for(Xd(o,a,u),o=o.sibling;o!==null;)Xd(o,a,u),o=o.sibling}function Qd(o,a,u){var d=o.tag;if(d===5||d===6)o=o.stateNode,a?u.insertBefore(o,a):u.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for(Qd(o,a,u),o=o.sibling;o!==null;)Qd(o,a,u),o=o.sibling}var Or=null,Jn=!1;function ri(o,a,u){for(u=u.child;u!==null;)j0(o,a,u),u=u.sibling}function j0(o,a,u){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(yr,u)}catch{}switch(u.tag){case 5:Ir||ka(u,a);case 6:var d=Or,v=Jn;Or=null,ri(o,a,u),Or=d,Jn=v,Or!==null&&(Jn?(o=Or,u=u.stateNode,o.nodeType===8?o.parentNode.removeChild(u):o.removeChild(u)):Or.removeChild(u.stateNode));break;case 18:Or!==null&&(Jn?(o=Or,u=u.stateNode,o.nodeType===8?ud(o.parentNode,u):o.nodeType===1&&ud(o,u),vo(o)):ud(Or,u.stateNode));break;case 4:d=Or,v=Jn,Or=u.stateNode.containerInfo,Jn=!0,ri(o,a,u),Or=d,Jn=v;break;case 0:case 11:case 14:case 15:if(!Ir&&(d=u.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){v=d=d.next;do{var b=v,P=b.destroy;b=b.tag,P!==void 0&&(b&2||b&4)&&Gd(u,a,P),v=v.next}while(v!==d)}ri(o,a,u);break;case 1:if(!Ir&&(ka(u,a),d=u.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=u.memoizedProps,d.state=u.memoizedState,d.componentWillUnmount()}catch(N){or(u,a,N)}ri(o,a,u);break;case 21:ri(o,a,u);break;case 22:u.mode&1?(Ir=(d=Ir)||u.memoizedState!==null,ri(o,a,u),Ir=d):ri(o,a,u);break;default:ri(o,a,u)}}function D0(o){var a=o.updateQueue;if(a!==null){o.updateQueue=null;var u=o.stateNode;u===null&&(u=o.stateNode=new a2),a.forEach(function(d){var v=v2.bind(null,o,d);u.has(d)||(u.add(d),d.then(v,v))})}}function Zn(o,a){var u=a.deletions;if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];try{var b=o,P=a,N=P;e:for(;N!==null;){switch(N.tag){case 5:Or=N.stateNode,Jn=!1;break e;case 3:Or=N.stateNode.containerInfo,Jn=!0;break e;case 4:Or=N.stateNode.containerInfo,Jn=!0;break e}N=N.return}if(Or===null)throw Error(r(160));j0(b,P,v),Or=null,Jn=!1;var U=v.alternate;U!==null&&(U.return=null),v.return=null}catch(ne){or(v,a,ne)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)z0(a,o),a=a.sibling}function z0(o,a){var u=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Zn(a,o),So(o),d&4){try{Jl(3,o,o.return),Hu(3,o)}catch(ze){or(o,o.return,ze)}try{Jl(5,o,o.return)}catch(ze){or(o,o.return,ze)}}break;case 1:Zn(a,o),So(o),d&512&&u!==null&&ka(u,u.return);break;case 5:if(Zn(a,o),So(o),d&512&&u!==null&&ka(u,u.return),o.flags&32){var v=o.stateNode;try{wt(v,"")}catch(ze){or(o,o.return,ze)}}if(d&4&&(v=o.stateNode,v!=null)){var b=o.memoizedProps,P=u!==null?u.memoizedProps:b,N=o.type,U=o.updateQueue;if(o.updateQueue=null,U!==null)try{N==="input"&&b.type==="radio"&&b.name!=null&&Be(v,b),qe(N,P);var ne=qe(N,b);for(P=0;P<U.length;P+=2){var he=U[P],me=U[P+1];he==="style"?Ge(v,me):he==="dangerouslySetInnerHTML"?Ht(v,me):he==="children"?wt(v,me):O(v,he,me,ne)}switch(N){case"input":pt(v,b);break;case"textarea":Ae(v,b);break;case"select":var pe=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!b.multiple;var _e=b.value;_e!=null?Le(v,!!b.multiple,_e,!1):pe!==!!b.multiple&&(b.defaultValue!=null?Le(v,!!b.multiple,b.defaultValue,!0):Le(v,!!b.multiple,b.multiple?[]:"",!1))}v[Hl]=b}catch(ze){or(o,o.return,ze)}}break;case 6:if(Zn(a,o),So(o),d&4){if(o.stateNode===null)throw Error(r(162));v=o.stateNode,b=o.memoizedProps;try{v.nodeValue=b}catch(ze){or(o,o.return,ze)}}break;case 3:if(Zn(a,o),So(o),d&4&&u!==null&&u.memoizedState.isDehydrated)try{vo(a.containerInfo)}catch(ze){or(o,o.return,ze)}break;case 4:Zn(a,o),So(o);break;case 13:Zn(a,o),So(o),v=o.child,v.flags&8192&&(b=v.memoizedState!==null,v.stateNode.isHidden=b,!b||v.alternate!==null&&v.alternate.memoizedState!==null||(Zd=Ct())),d&4&&D0(o);break;case 22:if(he=u!==null&&u.memoizedState!==null,o.mode&1?(Ir=(ne=Ir)||he,Zn(a,o),Ir=ne):Zn(a,o),So(o),d&8192){if(ne=o.memoizedState!==null,(o.stateNode.isHidden=ne)&&!he&&o.mode&1)for(ke=o,he=o.child;he!==null;){for(me=ke=he;ke!==null;){switch(pe=ke,_e=pe.child,pe.tag){case 0:case 11:case 14:case 15:Jl(4,pe,pe.return);break;case 1:ka(pe,pe.return);var je=pe.stateNode;if(typeof je.componentWillUnmount=="function"){d=pe,u=pe.return;try{a=d,je.props=a.memoizedProps,je.state=a.memoizedState,je.componentWillUnmount()}catch(ze){or(d,u,ze)}}break;case 5:ka(pe,pe.return);break;case 22:if(pe.memoizedState!==null){V0(me);continue}}_e!==null?(_e.return=pe,ke=_e):V0(me)}he=he.sibling}e:for(he=null,me=o;;){if(me.tag===5){if(he===null){he=me;try{v=me.stateNode,ne?(b=v.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(N=me.stateNode,U=me.memoizedProps.style,P=U!=null&&U.hasOwnProperty("display")?U.display:null,N.style.display=Je("display",P))}catch(ze){or(o,o.return,ze)}}}else if(me.tag===6){if(he===null)try{me.stateNode.nodeValue=ne?"":me.memoizedProps}catch(ze){or(o,o.return,ze)}}else if((me.tag!==22&&me.tag!==23||me.memoizedState===null||me===o)&&me.child!==null){me.child.return=me,me=me.child;continue}if(me===o)break e;for(;me.sibling===null;){if(me.return===null||me.return===o)break e;he===me&&(he=null),me=me.return}he===me&&(he=null),me.sibling.return=me.return,me=me.sibling}}break;case 19:Zn(a,o),So(o),d&4&&D0(o);break;case 21:break;default:Zn(a,o),So(o)}}function So(o){var a=o.flags;if(a&2){try{e:{for(var u=o.return;u!==null;){if(k0(u)){var d=u;break e}u=u.return}throw Error(r(160))}switch(d.tag){case 5:var v=d.stateNode;d.flags&32&&(wt(v,""),d.flags&=-33);var b=N0(o);Qd(o,b,v);break;case 3:case 4:var P=d.stateNode.containerInfo,N=N0(o);Xd(o,N,P);break;default:throw Error(r(161))}}catch(U){or(o,o.return,U)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function s2(o,a,u){ke=o,H0(o)}function H0(o,a,u){for(var d=(o.mode&1)!==0;ke!==null;){var v=ke,b=v.child;if(v.tag===22&&d){var P=v.memoizedState!==null||zu;if(!P){var N=v.alternate,U=N!==null&&N.memoizedState!==null||Ir;N=zu;var ne=Ir;if(zu=P,(Ir=U)&&!ne)for(ke=v;ke!==null;)P=ke,U=P.child,P.tag===22&&P.memoizedState!==null?U0(v):U!==null?(U.return=P,ke=U):U0(v);for(;b!==null;)ke=b,H0(b),b=b.sibling;ke=v,zu=N,Ir=ne}B0(o)}else v.subtreeFlags&8772&&b!==null?(b.return=v,ke=b):B0(o)}}function B0(o){for(;ke!==null;){var a=ke;if(a.flags&8772){var u=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:Ir||Hu(5,a);break;case 1:var d=a.stateNode;if(a.flags&4&&!Ir)if(u===null)d.componentDidMount();else{var v=a.elementType===a.type?u.memoizedProps:Yn(a.type,u.memoizedProps);d.componentDidUpdate(v,u.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var b=a.updateQueue;b!==null&&Vg(a,b,d);break;case 3:var P=a.updateQueue;if(P!==null){if(u=null,a.child!==null)switch(a.child.tag){case 5:u=a.child.stateNode;break;case 1:u=a.child.stateNode}Vg(a,P,u)}break;case 5:var N=a.stateNode;if(u===null&&a.flags&4){u=N;var U=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":U.autoFocus&&u.focus();break;case"img":U.src&&(u.src=U.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ne=a.alternate;if(ne!==null){var he=ne.memoizedState;if(he!==null){var me=he.dehydrated;me!==null&&vo(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Ir||a.flags&512&&Kd(a)}catch(pe){or(a,a.return,pe)}}if(a===o){ke=null;break}if(u=a.sibling,u!==null){u.return=a.return,ke=u;break}ke=a.return}}function V0(o){for(;ke!==null;){var a=ke;if(a===o){ke=null;break}var u=a.sibling;if(u!==null){u.return=a.return,ke=u;break}ke=a.return}}function U0(o){for(;ke!==null;){var a=ke;try{switch(a.tag){case 0:case 11:case 15:var u=a.return;try{Hu(4,a)}catch(U){or(a,u,U)}break;case 1:var d=a.stateNode;if(typeof d.componentDidMount=="function"){var v=a.return;try{d.componentDidMount()}catch(U){or(a,v,U)}}var b=a.return;try{Kd(a)}catch(U){or(a,b,U)}break;case 5:var P=a.return;try{Kd(a)}catch(U){or(a,P,U)}}}catch(U){or(a,a.return,U)}if(a===o){ke=null;break}var N=a.sibling;if(N!==null){N.return=a.return,ke=N;break}ke=a.return}}var u2=Math.ceil,Bu=_.ReactCurrentDispatcher,Yd=_.ReactCurrentOwner,Fn=_.ReactCurrentBatchConfig,Rt=0,Sr=null,cr=null,Tr=0,vn=0,Na=Yo(0),mr=0,Zl=null,ji=0,Vu=0,Jd=0,es=null,rn=null,Zd=0,ja=1/0,ko=null,Uu=!1,ep=null,ni=null,Wu=!1,oi=null,qu=0,ts=0,tp=null,Gu=-1,Ku=0;function Gr(){return Rt&6?Ct():Gu!==-1?Gu:Gu=Ct()}function ii(o){return o.mode&1?Rt&2&&Tr!==0?Tr&-Tr:qE.transition!==null?(Ku===0&&(Ku=pa()),Ku):(o=Et,o!==0||(o=window.event,o=o===void 0?16:qv(o.type)),o):1}function eo(o,a,u,d){if(50<ts)throw ts=0,tp=null,Error(r(185));ho(o,u,d),(!(Rt&2)||o!==Sr)&&(o===Sr&&(!(Rt&2)&&(Vu|=u),mr===4&&ai(o,Tr)),nn(o,d),u===1&&Rt===0&&!(a.mode&1)&&(ja=Ct()+500,Cu&&Zo()))}function nn(o,a){var u=o.callbackNode;Oi(o,a);var d=To(o,o===Sr?Tr:0);if(d===0)u!==null&&Gt(u),o.callbackNode=null,o.callbackPriority=0;else if(a=d&-d,o.callbackPriority!==a){if(u!=null&&Gt(u),a===1)o.tag===0?WE(q0.bind(null,o)):Mg(q0.bind(null,o)),HE(function(){!(Rt&6)&&Zo()}),u=null;else{switch(ha(d)){case 1:u=xt;break;case 4:u=Kt;break;case 16:u=Jr;break;case 536870912:u=Lt;break;default:u=Jr}u=ey(u,W0.bind(null,o))}o.callbackPriority=a,o.callbackNode=u}}function W0(o,a){if(Gu=-1,Ku=0,Rt&6)throw Error(r(327));var u=o.callbackNode;if(Da()&&o.callbackNode!==u)return null;var d=To(o,o===Sr?Tr:0);if(d===0)return null;if(d&30||d&o.expiredLanes||a)a=Xu(o,d);else{a=d;var v=Rt;Rt|=2;var b=K0();(Sr!==o||Tr!==a)&&(ko=null,ja=Ct()+500,zi(o,a));do try{d2();break}catch(N){G0(o,N)}while(!0);bd(),Bu.current=b,Rt=v,cr!==null?a=0:(Sr=null,Tr=0,a=mr)}if(a!==0){if(a===2&&(v=Ti(o),v!==0&&(d=v,a=rp(o,v))),a===1)throw u=Zl,zi(o,0),ai(o,d),nn(o,Ct()),u;if(a===6)ai(o,d);else{if(v=o.current.alternate,!(d&30)&&!c2(v)&&(a=Xu(o,d),a===2&&(b=Ti(o),b!==0&&(d=b,a=rp(o,b))),a===1))throw u=Zl,zi(o,0),ai(o,d),nn(o,Ct()),u;switch(o.finishedWork=v,o.finishedLanes=d,a){case 0:case 1:throw Error(r(345));case 2:Hi(o,rn,ko);break;case 3:if(ai(o,d),(d&130023424)===d&&(a=Zd+500-Ct(),10<a)){if(To(o,0)!==0)break;if(v=o.suspendedLanes,(v&d)!==d){Gr(),o.pingedLanes|=o.suspendedLanes&v;break}o.timeoutHandle=sd(Hi.bind(null,o,rn,ko),a);break}Hi(o,rn,ko);break;case 4:if(ai(o,d),(d&4194240)===d)break;for(a=o.eventTimes,v=-1;0<d;){var P=31-$r(d);b=1<<P,P=a[P],P>v&&(v=P),d&=~b}if(d=v,d=Ct()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*u2(d/1960))-d,10<d){o.timeoutHandle=sd(Hi.bind(null,o,rn,ko),d);break}Hi(o,rn,ko);break;case 5:Hi(o,rn,ko);break;default:throw Error(r(329))}}}return nn(o,Ct()),o.callbackNode===u?W0.bind(null,o):null}function rp(o,a){var u=es;return o.current.memoizedState.isDehydrated&&(zi(o,a).flags|=256),o=Xu(o,a),o!==2&&(a=rn,rn=u,a!==null&&np(a)),o}function np(o){rn===null?rn=o:rn.push.apply(rn,o)}function c2(o){for(var a=o;;){if(a.flags&16384){var u=a.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var d=0;d<u.length;d++){var v=u[d],b=v.getSnapshot;v=v.value;try{if(!Xn(b(),v))return!1}catch{return!1}}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ai(o,a){for(a&=~Jd,a&=~Vu,o.suspendedLanes|=a,o.pingedLanes&=~a,o=o.expirationTimes;0<a;){var u=31-$r(a),d=1<<u;o[u]=-1,a&=~d}}function q0(o){if(Rt&6)throw Error(r(327));Da();var a=To(o,0);if(!(a&1))return nn(o,Ct()),null;var u=Xu(o,a);if(o.tag!==0&&u===2){var d=Ti(o);d!==0&&(a=d,u=rp(o,d))}if(u===1)throw u=Zl,zi(o,0),ai(o,a),nn(o,Ct()),u;if(u===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=a,Hi(o,rn,ko),nn(o,Ct()),null}function op(o,a){var u=Rt;Rt|=1;try{return o(a)}finally{Rt=u,Rt===0&&(ja=Ct()+500,Cu&&Zo())}}function Di(o){oi!==null&&oi.tag===0&&!(Rt&6)&&Da();var a=Rt;Rt|=1;var u=Fn.transition,d=Et;try{if(Fn.transition=null,Et=1,o)return o()}finally{Et=d,Fn.transition=u,Rt=a,!(Rt&6)&&Zo()}}function ip(){vn=Na.current,Ut(Na)}function zi(o,a){o.finishedWork=null,o.finishedLanes=0;var u=o.timeoutHandle;if(u!==-1&&(o.timeoutHandle=-1,zE(u)),cr!==null)for(u=cr.return;u!==null;){var d=u;switch(hd(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Su();break;case 3:Fa(),Ut(Zr),Ut(_r),Td();break;case 5:Rd(d);break;case 4:Fa();break;case 13:Ut(tr);break;case 19:Ut(tr);break;case 10:Sd(d.type._context);break;case 22:case 23:ip()}u=u.return}if(Sr=o,cr=o=li(o.current,null),Tr=vn=a,mr=0,Zl=null,Jd=Vu=ji=0,rn=es=null,Li!==null){for(a=0;a<Li.length;a++)if(u=Li[a],d=u.interleaved,d!==null){u.interleaved=null;var v=d.next,b=u.pending;if(b!==null){var P=b.next;b.next=v,d.next=P}u.pending=d}Li=null}return o}function G0(o,a){do{var u=cr;try{if(bd(),Au.current=ku,Iu){for(var d=rr.memoizedState;d!==null;){var v=d.queue;v!==null&&(v.pending=null),d=d.next}Iu=!1}if(Ni=0,br=hr=rr=null,Gl=!1,Kl=0,Yd.current=null,u===null||u.return===null){mr=1,Zl=a,cr=null;break}e:{var b=o,P=u.return,N=u,U=a;if(a=Tr,N.flags|=32768,U!==null&&typeof U=="object"&&typeof U.then=="function"){var ne=U,he=N,me=he.tag;if(!(he.mode&1)&&(me===0||me===11||me===15)){var pe=he.alternate;pe?(he.updateQueue=pe.updateQueue,he.memoizedState=pe.memoizedState,he.lanes=pe.lanes):(he.updateQueue=null,he.memoizedState=null)}var _e=y0(P);if(_e!==null){_e.flags&=-257,b0(_e,P,N,b,a),_e.mode&1&&g0(b,ne,a),a=_e,U=ne;var je=a.updateQueue;if(je===null){var ze=new Set;ze.add(U),a.updateQueue=ze}else je.add(U);break e}else{if(!(a&1)){g0(b,ne,a),ap();break e}U=Error(r(426))}}else if(Qt&&N.mode&1){var ar=y0(P);if(ar!==null){!(ar.flags&65536)&&(ar.flags|=256),b0(ar,P,N,b,a),gd(La(U,N));break e}}b=U=La(U,N),mr!==4&&(mr=2),es===null?es=[b]:es.push(b),b=P;do{switch(b.tag){case 3:b.flags|=65536,a&=-a,b.lanes|=a;var te=m0(b,U,a);Bg(b,te);break e;case 1:N=U;var G=b.type,re=b.stateNode;if(!(b.flags&128)&&(typeof G.getDerivedStateFromError=="function"||re!==null&&typeof re.componentDidCatch=="function"&&(ni===null||!ni.has(re)))){b.flags|=65536,a&=-a,b.lanes|=a;var be=v0(b,N,a);Bg(b,be);break e}}b=b.return}while(b!==null)}Q0(u)}catch(He){a=He,cr===u&&u!==null&&(cr=u=u.return);continue}break}while(!0)}function K0(){var o=Bu.current;return Bu.current=ku,o===null?ku:o}function ap(){(mr===0||mr===3||mr===2)&&(mr=4),Sr===null||!(ji&268435455)&&!(Vu&268435455)||ai(Sr,Tr)}function Xu(o,a){var u=Rt;Rt|=2;var d=K0();(Sr!==o||Tr!==a)&&(ko=null,zi(o,a));do try{f2();break}catch(v){G0(o,v)}while(!0);if(bd(),Rt=u,Bu.current=d,cr!==null)throw Error(r(261));return Sr=null,Tr=0,mr}function f2(){for(;cr!==null;)X0(cr)}function d2(){for(;cr!==null&&!Tn();)X0(cr)}function X0(o){var a=Z0(o.alternate,o,vn);o.memoizedProps=o.pendingProps,a===null?Q0(o):cr=a,Yd.current=null}function Q0(o){var a=o;do{var u=a.alternate;if(o=a.return,a.flags&32768){if(u=i2(u,a),u!==null){u.flags&=32767,cr=u;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{mr=6,cr=null;return}}else if(u=o2(u,a,vn),u!==null){cr=u;return}if(a=a.sibling,a!==null){cr=a;return}cr=a=o}while(a!==null);mr===0&&(mr=5)}function Hi(o,a,u){var d=Et,v=Fn.transition;try{Fn.transition=null,Et=1,p2(o,a,u,d)}finally{Fn.transition=v,Et=d}return null}function p2(o,a,u,d){do Da();while(oi!==null);if(Rt&6)throw Error(r(327));u=o.finishedWork;var v=o.finishedLanes;if(u===null)return null;if(o.finishedWork=null,o.finishedLanes=0,u===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var b=u.lanes|u.childLanes;if(Tl(o,b),o===Sr&&(cr=Sr=null,Tr=0),!(u.subtreeFlags&2064)&&!(u.flags&2064)||Wu||(Wu=!0,ey(Jr,function(){return Da(),null})),b=(u.flags&15990)!==0,u.subtreeFlags&15990||b){b=Fn.transition,Fn.transition=null;var P=Et;Et=1;var N=Rt;Rt|=4,Yd.current=null,l2(o,u),z0(u,o),IE(ad),au=!!id,ad=id=null,o.current=u,s2(u),un(),Rt=N,Et=P,Fn.transition=b}else o.current=u;if(Wu&&(Wu=!1,oi=o,qu=v),b=o.pendingLanes,b===0&&(ni=null),Wo(u.stateNode),nn(o,Ct()),a!==null)for(d=o.onRecoverableError,u=0;u<a.length;u++)v=a[u],d(v.value,{componentStack:v.stack,digest:v.digest});if(Uu)throw Uu=!1,o=ep,ep=null,o;return qu&1&&o.tag!==0&&Da(),b=o.pendingLanes,b&1?o===tp?ts++:(ts=0,tp=o):ts=0,Zo(),null}function Da(){if(oi!==null){var o=ha(qu),a=Fn.transition,u=Et;try{if(Fn.transition=null,Et=16>o?16:o,oi===null)var d=!1;else{if(o=oi,oi=null,qu=0,Rt&6)throw Error(r(331));var v=Rt;for(Rt|=4,ke=o.current;ke!==null;){var b=ke,P=b.child;if(ke.flags&16){var N=b.deletions;if(N!==null){for(var U=0;U<N.length;U++){var ne=N[U];for(ke=ne;ke!==null;){var he=ke;switch(he.tag){case 0:case 11:case 15:Jl(8,he,b)}var me=he.child;if(me!==null)me.return=he,ke=me;else for(;ke!==null;){he=ke;var pe=he.sibling,_e=he.return;if(L0(he),he===ne){ke=null;break}if(pe!==null){pe.return=_e,ke=pe;break}ke=_e}}}var je=b.alternate;if(je!==null){var ze=je.child;if(ze!==null){je.child=null;do{var ar=ze.sibling;ze.sibling=null,ze=ar}while(ze!==null)}}ke=b}}if(b.subtreeFlags&2064&&P!==null)P.return=b,ke=P;else e:for(;ke!==null;){if(b=ke,b.flags&2048)switch(b.tag){case 0:case 11:case 15:Jl(9,b,b.return)}var te=b.sibling;if(te!==null){te.return=b.return,ke=te;break e}ke=b.return}}var G=o.current;for(ke=G;ke!==null;){P=ke;var re=P.child;if(P.subtreeFlags&2064&&re!==null)re.return=P,ke=re;else e:for(P=G;ke!==null;){if(N=ke,N.flags&2048)try{switch(N.tag){case 0:case 11:case 15:Hu(9,N)}}catch(He){or(N,N.return,He)}if(N===P){ke=null;break e}var be=N.sibling;if(be!==null){be.return=N.return,ke=be;break e}ke=N.return}}if(Rt=v,Zo(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(yr,o)}catch{}d=!0}return d}finally{Et=u,Fn.transition=a}}return!1}function Y0(o,a,u){a=La(u,a),a=m0(o,a,1),o=ti(o,a,1),a=Gr(),o!==null&&(ho(o,1,a),nn(o,a))}function or(o,a,u){if(o.tag===3)Y0(o,o,u);else for(;a!==null;){if(a.tag===3){Y0(a,o,u);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ni===null||!ni.has(d))){o=La(u,o),o=v0(a,o,1),a=ti(a,o,1),o=Gr(),a!==null&&(ho(a,1,o),nn(a,o));break}}a=a.return}}function h2(o,a,u){var d=o.pingCache;d!==null&&d.delete(a),a=Gr(),o.pingedLanes|=o.suspendedLanes&u,Sr===o&&(Tr&u)===u&&(mr===4||mr===3&&(Tr&130023424)===Tr&&500>Ct()-Zd?zi(o,0):Jd|=u),nn(o,a)}function J0(o,a){a===0&&(o.mode&1?(a=Vr,Vr<<=1,!(Vr&130023424)&&(Vr=4194304)):a=1);var u=Gr();o=Io(o,a),o!==null&&(ho(o,a,u),nn(o,u))}function m2(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),J0(o,u)}function v2(o,a){var u=0;switch(o.tag){case 13:var d=o.stateNode,v=o.memoizedState;v!==null&&(u=v.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(r(314))}d!==null&&d.delete(a),J0(o,u)}var Z0;Z0=function(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps||Zr.current)tn=!0;else{if(!(o.lanes&u)&&!(a.flags&128))return tn=!1,n2(o,a,u);tn=!!(o.flags&131072)}else tn=!1,Qt&&a.flags&1048576&&Ag(a,Eu,a.index);switch(a.lanes=0,a.tag){case 2:var d=a.type;Du(o,a),o=a.pendingProps;var v=Ta(a,_r.current);Ia(a,u),v=_d(null,a,d,o,v,u);var b=Md();return a.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,en(d)?(b=!0,wu(a)):b=!1,a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,xd(a),v.updater=Nu,a.stateNode=v,v._reactInternals=a,Nd(a,d,o,u),a=Hd(null,a,d,!0,b,u)):(a.tag=0,Qt&&b&&pd(a),qr(null,a,v,u),a=a.child),a;case 16:d=a.elementType;e:{switch(Du(o,a),o=a.pendingProps,v=d._init,d=v(d._payload),a.type=d,v=a.tag=y2(d),o=Yn(d,o),v){case 0:a=zd(null,a,d,o,u);break e;case 1:a=R0(null,a,d,o,u);break e;case 11:a=S0(null,a,d,o,u);break e;case 14:a=w0(null,a,d,Yn(d.type,o),u);break e}throw Error(r(306,d,""))}return a;case 0:return d=a.type,v=a.pendingProps,v=a.elementType===d?v:Yn(d,v),zd(o,a,d,v,u);case 1:return d=a.type,v=a.pendingProps,v=a.elementType===d?v:Yn(d,v),R0(o,a,d,v,u);case 3:e:{if(O0(a),o===null)throw Error(r(387));d=a.pendingProps,b=a.memoizedState,v=b.element,Hg(o,a),_u(a,d,null,u);var P=a.memoizedState;if(d=P.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:P.cache,pendingSuspenseBoundaries:P.pendingSuspenseBoundaries,transitions:P.transitions},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){v=La(Error(r(423)),a),a=T0(o,a,d,u,v);break e}else if(d!==v){v=La(Error(r(424)),a),a=T0(o,a,d,u,v);break e}else for(mn=Qo(a.stateNode.containerInfo.firstChild),hn=a,Qt=!0,Qn=null,u=Dg(a,null,d,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(_a(),d===v){a=Lo(o,a,u);break e}qr(o,a,d,u)}a=a.child}return a;case 5:return Ug(a),o===null&&vd(a),d=a.type,v=a.pendingProps,b=o!==null?o.memoizedProps:null,P=v.children,ld(d,v)?P=null:b!==null&&ld(d,b)&&(a.flags|=32),E0(o,a),qr(o,a,P,u),a.child;case 6:return o===null&&vd(a),null;case 13:return P0(o,a,u);case 4:return Ed(a,a.stateNode.containerInfo),d=a.pendingProps,o===null?a.child=Ma(a,null,d,u):qr(o,a,d,u),a.child;case 11:return d=a.type,v=a.pendingProps,v=a.elementType===d?v:Yn(d,v),S0(o,a,d,v,u);case 7:return qr(o,a,a.pendingProps,u),a.child;case 8:return qr(o,a,a.pendingProps.children,u),a.child;case 12:return qr(o,a,a.pendingProps.children,u),a.child;case 10:e:{if(d=a.type._context,v=a.pendingProps,b=a.memoizedProps,P=v.value,Dt(Tu,d._currentValue),d._currentValue=P,b!==null)if(Xn(b.value,P)){if(b.children===v.children&&!Zr.current){a=Lo(o,a,u);break e}}else for(b=a.child,b!==null&&(b.return=a);b!==null;){var N=b.dependencies;if(N!==null){P=b.child;for(var U=N.firstContext;U!==null;){if(U.context===d){if(b.tag===1){U=Fo(-1,u&-u),U.tag=2;var ne=b.updateQueue;if(ne!==null){ne=ne.shared;var he=ne.pending;he===null?U.next=U:(U.next=he.next,he.next=U),ne.pending=U}}b.lanes|=u,U=b.alternate,U!==null&&(U.lanes|=u),wd(b.return,u,a),N.lanes|=u;break}U=U.next}}else if(b.tag===10)P=b.type===a.type?null:b.child;else if(b.tag===18){if(P=b.return,P===null)throw Error(r(341));P.lanes|=u,N=P.alternate,N!==null&&(N.lanes|=u),wd(P,u,a),P=b.sibling}else P=b.child;if(P!==null)P.return=b;else for(P=b;P!==null;){if(P===a){P=null;break}if(b=P.sibling,b!==null){b.return=P.return,P=b;break}P=P.return}b=P}qr(o,a,v.children,u),a=a.child}return a;case 9:return v=a.type,d=a.pendingProps.children,Ia(a,u),v=An(v),d=d(v),a.flags|=1,qr(o,a,d,u),a.child;case 14:return d=a.type,v=Yn(d,a.pendingProps),v=Yn(d.type,v),w0(o,a,d,v,u);case 15:return C0(o,a,a.type,a.pendingProps,u);case 17:return d=a.type,v=a.pendingProps,v=a.elementType===d?v:Yn(d,v),Du(o,a),a.tag=1,en(d)?(o=!0,wu(a)):o=!1,Ia(a,u),p0(a,d,v),Nd(a,d,v,u),Hd(null,a,d,!0,o,u);case 19:return _0(o,a,u);case 22:return x0(o,a,u)}throw Error(r(156,a.tag))};function ey(o,a){return gr(o,a)}function g2(o,a,u,d){this.tag=o,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(o,a,u,d){return new g2(o,a,u,d)}function lp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function y2(o){if(typeof o=="function")return lp(o)?1:0;if(o!=null){if(o=o.$$typeof,o===ee)return 11;if(o===J)return 14}return 2}function li(o,a){var u=o.alternate;return u===null?(u=Ln(o.tag,a,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=a,u.type=o.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=o.flags&14680064,u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,a=o.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u}function Qu(o,a,u,d,v,b){var P=2;if(d=o,typeof o=="function")lp(o)&&(P=1);else if(typeof o=="string")P=5;else e:switch(o){case M:return Bi(u.children,v,b,a);case I:P=8,v|=8;break;case L:return o=Ln(12,u,a,v|2),o.elementType=L,o.lanes=b,o;case K:return o=Ln(13,u,a,v),o.elementType=K,o.lanes=b,o;case W:return o=Ln(19,u,a,v),o.elementType=W,o.lanes=b,o;case k:return Yu(u,v,b,a);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case V:P=10;break e;case X:P=9;break e;case ee:P=11;break e;case J:P=14;break e;case z:P=16,d=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return a=Ln(P,u,a,v),a.elementType=o,a.type=d,a.lanes=b,a}function Bi(o,a,u,d){return o=Ln(7,o,d,a),o.lanes=u,o}function Yu(o,a,u,d){return o=Ln(22,o,d,a),o.elementType=k,o.lanes=u,o.stateNode={isHidden:!1},o}function sp(o,a,u){return o=Ln(6,o,null,a),o.lanes=u,o}function up(o,a,u){return a=Ln(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}function b2(o,a,u,d,v){this.tag=a,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pi(0),this.expirationTimes=Pi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pi(0),this.identifierPrefix=d,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function cp(o,a,u,d,v,b,P,N,U){return o=new b2(o,a,u,N,U),a===1?(a=1,b===!0&&(a|=8)):a=0,b=Ln(3,null,null,a),o.current=b,b.stateNode=o,b.memoizedState={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},xd(b),o}function S2(o,a,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:d==null?null:""+d,children:o,containerInfo:a,implementation:u}}function ty(o){if(!o)return Jo;o=o._reactInternals;e:{if(ct(o)!==o||o.tag!==1)throw Error(r(170));var a=o;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(en(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(r(171))}if(o.tag===1){var u=o.type;if(en(u))return $g(o,u,a)}return a}function ry(o,a,u,d,v,b,P,N,U){return o=cp(u,d,!0,o,v,b,P,N,U),o.context=ty(null),u=o.current,d=Gr(),v=ii(u),b=Fo(d,v),b.callback=a??null,ti(u,b,v),o.current.lanes=v,ho(o,v,d),nn(o,d),o}function Ju(o,a,u,d){var v=a.current,b=Gr(),P=ii(v);return u=ty(u),a.context===null?a.context=u:a.pendingContext=u,a=Fo(b,P),a.payload={element:o},d=d===void 0?null:d,d!==null&&(a.callback=d),o=ti(v,a,P),o!==null&&(eo(o,v,P,b),$u(o,v,P)),P}function Zu(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function ny(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function fp(o,a){ny(o,a),(o=o.alternate)&&ny(o,a)}function w2(){return null}var oy=typeof reportError=="function"?reportError:function(o){console.error(o)};function dp(o){this._internalRoot=o}ec.prototype.render=dp.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));Ju(o,a,null,null)},ec.prototype.unmount=dp.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;Di(function(){Ju(null,o,null,null)}),a[$o]=null}};function ec(o){this._internalRoot=o}ec.prototype.unstable_scheduleHydration=function(o){if(o){var a=va();o={blockedOn:null,target:o,priority:a};for(var u=0;u<dn.length&&a!==0&&a<dn[u].priority;u++);dn.splice(u,0,o),u===0&&Xt(o)}};function pp(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function tc(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function iy(){}function C2(o,a,u,d,v){if(v){if(typeof d=="function"){var b=d;d=function(){var ne=Zu(P);b.call(ne)}}var P=ry(a,d,o,0,null,!1,!1,"",iy);return o._reactRootContainer=P,o[$o]=P.current,Dl(o.nodeType===8?o.parentNode:o),Di(),P}for(;v=o.lastChild;)o.removeChild(v);if(typeof d=="function"){var N=d;d=function(){var ne=Zu(U);N.call(ne)}}var U=cp(o,0,!1,null,null,!1,!1,"",iy);return o._reactRootContainer=U,o[$o]=U.current,Dl(o.nodeType===8?o.parentNode:o),Di(function(){Ju(a,U,u,d)}),U}function rc(o,a,u,d,v){var b=u._reactRootContainer;if(b){var P=b;if(typeof v=="function"){var N=v;v=function(){var U=Zu(P);N.call(U)}}Ju(a,P,o,v)}else P=C2(u,a,o,v,d);return Zu(P)}ma=function(o){switch(o.tag){case 3:var a=o.stateNode;if(a.current.memoizedState.isDehydrated){var u=Oo(a.pendingLanes);u!==0&&($i(a,u|1),nn(a,Ct()),!(Rt&6)&&(ja=Ct()+500,Zo()))}break;case 13:Di(function(){var d=Io(o,1);if(d!==null){var v=Gr();eo(d,o,1,v)}}),fp(o,1)}},Po=function(o){if(o.tag===13){var a=Io(o,134217728);if(a!==null){var u=Gr();eo(a,o,134217728,u)}fp(o,134217728)}},fn=function(o){if(o.tag===13){var a=ii(o),u=Io(o,a);if(u!==null){var d=Gr();eo(u,o,a,d)}fp(o,a)}},va=function(){return Et},Pl=function(o,a){var u=Et;try{return Et=o,a()}finally{Et=u}},Dr=function(o,a,u){switch(a){case"input":if(pt(o,u),a=u.name,u.type==="radio"&&a!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<u.length;a++){var d=u[a];if(d!==o&&d.form===o.form){var v=bu(d);if(!v)throw Error(r(90));Pe(d),pt(d,v)}}}break;case"textarea":Ae(o,u);break;case"select":a=u.value,a!=null&&Le(o,!!u.multiple,a,!1)}},Nt=op,B=Di;var x2={usingClientEntryPoint:!1,Events:[Bl,Ra,bu,Bt,Yr,op]},rs={findFiberByHostInstance:Mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},E2={bundleType:rs.bundleType,version:rs.version,rendererPackageName:rs.rendererPackageName,rendererConfig:rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Hr(o),o===null?null:o.stateNode},findFiberByHostInstance:rs.findFiberByHostInstance||w2,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 nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{yr=nc.inject(E2),er=nc}catch{}}return on.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x2,on.createPortal=function(o,a){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pp(a))throw Error(r(200));return S2(o,a,null,u)},on.createRoot=function(o,a){if(!pp(o))throw Error(r(299));var u=!1,d="",v=oy;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=cp(o,1,!1,null,null,u,!1,d,v),o[$o]=a.current,Dl(o.nodeType===8?o.parentNode:o),new dp(a)},on.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=Hr(a),o=o===null?null:o.stateNode,o},on.flushSync=function(o){return Di(o)},on.hydrate=function(o,a,u){if(!tc(a))throw Error(r(200));return rc(null,o,a,!0,u)},on.hydrateRoot=function(o,a,u){if(!pp(o))throw Error(r(405));var d=u!=null&&u.hydratedSources||null,v=!1,b="",P=oy;if(u!=null&&(u.unstable_strictMode===!0&&(v=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),a=ry(a,null,o,1,u??null,v,!1,b,P),o[$o]=a.current,Dl(o),d)for(o=0;o<d.length;o++)u=d[o],v=u._getVersion,v=v(u._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[u,v]:a.mutableSourceEagerHydrationData.push(u,v);return new ec(a)},on.render=function(o,a,u){if(!tc(a))throw Error(r(200));return rc(null,o,a,!1,u)},on.unmountComponentAtNode=function(o){if(!tc(o))throw Error(r(40));return o._reactRootContainer?(Di(function(){rc(null,null,o,!1,function(){o._reactRootContainer=null,o[$o]=null})}),!0):!1},on.unstable_batchedUpdates=op,on.unstable_renderSubtreeIntoContainer=function(o,a,u,d){if(!tc(u))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return rc(o,a,u,!1,d)},on.version="18.3.1-next-f1338f8080-20240426",on}var py;function pS(){if(py)return vp.exports;py=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vp.exports=M2(),vp.exports}var hy;function A2(){if(hy)return oc;hy=1;var e=pS();return oc.createRoot=e.createRoot,oc.hydrateRoot=e.hydrateRoot,oc}var I2=A2(),os={},my;function F2(){if(my)return os;my=1,Object.defineProperty(os,"__esModule",{value:!0}),os.parse=s,os.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,l=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function s(y,x){const w=new l,C=y.length;if(C<2)return w;const S=(x==null?void 0:x.decode)||h;let E=0;do{const T=y.indexOf("=",E);if(T===-1)break;const O=y.indexOf(";",E),_=O===-1?C:O;if(T>_){E=y.lastIndexOf(";",T-1)+1;continue}const R=c(y,E,T),$=f(y,T,R),M=y.slice(R,$);if(w[M]===void 0){let I=c(y,T+1,_),L=f(y,_,I);const V=S(y.slice(I,L));w[M]=V}E=_+1}while(E<C);return w}function c(y,x,w){do{const C=y.charCodeAt(x);if(C!==32&&C!==9)return x}while(++x<w);return w}function f(y,x,w){for(;x>w;){const C=y.charCodeAt(--x);if(C!==32&&C!==9)return x+1}return w}function p(y,x,w){const C=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=C(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let E=y+"="+S;if(!w)return E;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);E+="; Max-Age="+w.maxAge}if(w.domain){if(!r.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);E+="; Domain="+w.domain}if(w.path){if(!n.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);E+="; Path="+w.path}if(w.expires){if(!g(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);E+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(E+="; HttpOnly"),w.secure&&(E+="; Secure"),w.partitioned&&(E+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return E}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function g(y){return i.call(y)==="[object Date]"}return os}F2();/** * react-router v7.0.1 * * 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 */var vy="popstate";function L2(e={}){function t(n,i){let{pathname:l,search:s,hash:c}=n.location;return Ts("",{pathname:l,search:s,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:bi(i)}return N2(t,r,null,e)}function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function On(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k2(){return Math.random().toString(36).substring(2,10)}function gy(e,t){return{usr:e.state,key:e.key,idx:t}}function Ts(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?wi(t):t,state:r,key:t&&t.key||n||k2()}}function bi({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function wi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function N2(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:l=!1}=n,s=i.history,c="POP",f=null,p=h();p==null&&(p=0,s.replaceState({...s.state,idx:p},""));function h(){return(s.state||{idx:null}).idx}function g(){c="POP";let S=h(),E=S==null?null:S-p;p=S,f&&f({action:c,location:C.location,delta:E})}function y(S,E){c="PUSH";let T=Ts(C.location,S,E);p=h()+1;let O=gy(T,p),_=C.createHref(T);try{s.pushState(O,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(_)}l&&f&&f({action:c,location:C.location,delta:1})}function x(S,E){c="REPLACE";let T=Ts(C.location,S,E);p=h();let O=gy(T,p),_=C.createHref(T);s.replaceState(O,"",_),l&&f&&f({action:c,location:C.location,delta:0})}function w(S){let E=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof S=="string"?S:bi(S);return T=T.replace(/ $/,"%20"),dt(E,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,E)}let C={get action(){return c},get location(){return e(i,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(vy,g),f=S,()=>{i.removeEventListener(vy,g),f=null}},createHref(S){return t(i,S)},createURL:w,encodeLocation(S){let E=w(S);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:x,go(S){return s.go(S)}};return C}var j2=new Set(["lazy","caseSensitive","path","id","index","children"]);function D2(e){return e.index===!0}function Uc(e,t,r=[],n={}){return e.map((i,l)=>{let s=[...r,String(l)],c=typeof i.id=="string"?i.id:s.join("-");if(dt(i.index!==!0||!i.children,"Cannot specify children on an index route"),dt(!n[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),D2(i)){let f={...i,...t(i),id:c};return n[c]=f,f}else{let f={...i,...t(i),id:c,children:void 0};return n[c]=f,i.children&&(f.children=Uc(i.children,t,s,n)),f}})}function pi(e,t,r="/"){return Pc(e,t,r,!1)}function Pc(e,t,r,n){let i=typeof t=="string"?wi(t):t,l=uo(i.pathname||"/",r);if(l==null)return null;let s=hS(e);H2(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let p=J2(l);c=Q2(s[f],p,n)}return c}function z2(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function hS(e,t=[],r=[],n=""){let i=(l,s,c)=>{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};f.relativePath.startsWith("/")&&(dt(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length));let p=Eo([n,f.relativePath]),h=r.concat(f);l.children&&l.children.length>0&&(dt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),hS(l.children,t,h,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:K2(p,l.index),routesMeta:h})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))i(l,s);else for(let f of mS(l.path))i(l,s,f)}),t}function mS(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return i?[l,""]:[l];let s=mS(n.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),i&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function H2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:X2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var B2=/^:[\w-]+$/,V2=3,U2=2,W2=1,q2=10,G2=-2,yy=e=>e==="*";function K2(e,t){let r=e.split("/"),n=r.length;return r.some(yy)&&(n+=G2),t&&(n+=U2),r.filter(i=>!yy(i)).reduce((i,l)=>i+(B2.test(l)?V2:l===""?W2:q2),n)}function X2(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Q2(e,t,r=!1){let{routesMeta:n}=e,i={},l="/",s=[];for(let c=0;c<n.length;++c){let f=n[c],p=c===n.length-1,h=l==="/"?t:t.slice(l.length)||"/",g=Wc({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},h),y=f.route;if(!g&&p&&r&&!n[n.length-1].route.index&&(g=Wc({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!g)return null;Object.assign(i,g.params),s.push({params:i,pathname:Eo([l,g.pathname]),pathnameBase:tR(Eo([l,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(l=Eo([l,g.pathnameBase]))}return s}function Wc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Y2(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],s=l.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:n.reduce((p,{paramName:h,isOptional:g},y)=>{if(h==="*"){let w=c[y]||"";s=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const x=c[y];return g&&!x?p[h]=void 0:p[h]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:s,pattern:e}}function Y2(e,t=!1,r=!0){On(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(n.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function J2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return On(!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 uo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Z2(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?wi(e):e;return{pathname:r?r.startsWith("/")?r:eR(r,t):t,search:rR(n),hash:nR(i)}}function eR(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function bp(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vS(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function df(e){let t=vS(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function pf(e,t,r,n=!1){let i;typeof e=="string"?i=wi(e):(i={...e},dt(!i.pathname||!i.pathname.includes("?"),bp("?","pathname","search",i)),dt(!i.pathname||!i.pathname.includes("#"),bp("#","pathname","hash",i)),dt(!i.search||!i.search.includes("#"),bp("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,c;if(s==null)c=r;else{let g=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;i.pathname=y.join("/")}c=g>=0?t[g]:"/"}let f=Z2(i,c),p=s&&s!=="/"&&s.endsWith("/"),h=(l||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}var Eo=e=>e.join("/").replace(/\/\/+/g,"/"),tR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qc=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function hf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var gS=["POST","PUT","PATCH","DELETE"],oR=new Set(gS),iR=["GET",...gS],aR=new Set(iR),lR=new Set([301,302,303,307,308]),sR=new Set([307,308]),Sp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uR={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},is={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cR=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),yS="remix-router-transitions",bS=Symbol("ResetLoaderData");function fR(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.mapRouteProperties||cR,i={},l=Uc(e.routes,n,void 0,i),s,c=e.basename||"/",f=e.dataStrategy||vR,p=e.patchRoutesOnNavigation,h={...e.future},g=null,y=new Set,x=null,w=null,C=null,S=e.hydrationData!=null,E=pi(l,e.history.location,c),T=null;if(E==null&&!p){let B=Dn(404,{pathname:e.history.location.pathname}),{matches:q,route:Y}=$y(l);E=q,T={[Y.id]:B}}E&&!e.hydrationData&&qt(E,l,e.history.location.pathname).active&&(E=null);let O;if(E)if(E.some(B=>B.route.lazy))O=!1;else if(!E.some(B=>B.route.loader))O=!0;else{let B=e.hydrationData?e.hydrationData.loaderData:null,q=e.hydrationData?e.hydrationData.errors:null;if(q){let Y=E.findIndex(de=>q[de.route.id]!==void 0);O=E.slice(0,Y+1).every(de=>!_h(de.route,B,q))}else O=E.every(Y=>!_h(Y.route,B,q))}else{O=!1,E=[];let B=qt(null,l,e.history.location.pathname);B.active&&B.matches&&(E=B.matches)}let _,R={historyAction:e.history.action,location:e.history.location,matches:E,initialized:O,navigation:Sp,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||T,fetchers:new Map,blockers:new Map},$="POP",M=!1,I,L=!1,V=new Map,X=null,ee=!1,K=!1,W=new Set,J=new Map,z=0,k=-1,F=new Map,H=new Set,j=new Map,A=new Map,D=new Set,ie=new Map,Q,ae=null;function ue(){if(g=e.history.listen(({action:B,location:q,delta:Y})=>{if(Q){Q(),Q=void 0;return}On(ie.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let de=qe({currentLocation:R.location,nextLocation:q,historyAction:B});if(de&&Y!=null){let Oe=new Promise(we=>{Q=we});e.history.go(Y*-1),Ie(de,{state:"blocked",location:q,proceed(){Ie(de,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),Oe.then(()=>e.history.go(Y))},reset(){let we=new Map(R.blockers);we.set(de,is),fe({blockers:we})}});return}return $e(B,q)}),r){TR(t,V);let B=()=>PR(t,V);t.addEventListener("pagehide",B),X=()=>t.removeEventListener("pagehide",B)}return R.initialized||$e("POP",R.location,{initialHydration:!0}),_}function se(){g&&g(),X&&X(),y.clear(),I&&I.abort(),R.fetchers.forEach((B,q)=>St(q)),R.blockers.forEach((B,q)=>ir(q))}function ce(B){return y.add(B),()=>y.delete(B)}function fe(B,q={}){R={...R,...B};let Y=[],de=[];R.fetchers.forEach((Oe,we)=>{Oe.state==="idle"&&(D.has(we)?Y.push(we):de.push(we))}),[...y].forEach(Oe=>Oe(R,{deletedFetchers:Y,viewTransitionOpts:q.viewTransitionOpts,flushSync:q.flushSync===!0})),Y.forEach(Oe=>St(Oe)),de.forEach(Oe=>R.fetchers.delete(Oe))}function Se(B,q,{flushSync:Y}={}){var ge,Ke;let de=R.actionData!=null&&R.navigation.formMethod!=null&&ro(R.navigation.formMethod)&&R.navigation.state==="loading"&&((ge=B.state)==null?void 0:ge._isRedirect)!==!0,Oe;q.actionData?Object.keys(q.actionData).length>0?Oe=q.actionData:Oe=null:de?Oe=R.actionData:Oe=null;let we=q.loaderData?Ty(R.loaderData,q.loaderData,q.matches||[],q.errors):R.loaderData,Re=R.blockers;Re.size>0&&(Re=new Map(Re),Re.forEach((nt,yt)=>Re.set(yt,is)));let Ce=M===!0||R.navigation.formMethod!=null&&ro(R.navigation.formMethod)&&((Ke=B.state)==null?void 0:Ke._isRedirect)!==!0;s&&(l=s,s=void 0),ee||$==="POP"||($==="PUSH"?e.history.push(B,B.state):$==="REPLACE"&&e.history.replace(B,B.state));let Ee;if($==="POP"){let nt=V.get(R.location.pathname);nt&&nt.has(B.pathname)?Ee={currentLocation:R.location,nextLocation:B}:V.has(B.pathname)&&(Ee={currentLocation:B,nextLocation:R.location})}else if(L){let nt=V.get(R.location.pathname);nt?nt.add(B.pathname):(nt=new Set([B.pathname]),V.set(R.location.pathname,nt)),Ee={currentLocation:R.location,nextLocation:B}}fe({...q,actionData:Oe,loaderData:we,historyAction:$,location:B,initialized:!0,navigation:Sp,revalidation:"idle",restoreScrollPosition:pr(B,q.matches||R.matches),preventScrollReset:Ce,blockers:Re},{viewTransitionOpts:Ee,flushSync:Y===!0}),$="POP",M=!1,L=!1,ee=!1,K=!1,ae==null||ae.resolve(),ae=null}async function De(B,q){if(typeof B=="number"){e.history.go(B);return}let Y=$h(R.location,R.matches,c,B,q==null?void 0:q.fromRouteId,q==null?void 0:q.relative),{path:de,submission:Oe,error:we}=by(!1,Y,q),Re=R.location,Ce=Ts(R.location,de,q&&q.state);Ce={...Ce,...e.history.encodeLocation(Ce)};let Ee=q&&q.replace!=null?q.replace:void 0,ge="PUSH";Ee===!0?ge="REPLACE":Ee===!1||Oe!=null&&ro(Oe.formMethod)&&Oe.formAction===R.location.pathname+R.location.search&&(ge="REPLACE");let Ke=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,nt=(q&&q.flushSync)===!0,yt=qe({currentLocation:Re,nextLocation:Ce,historyAction:ge});if(yt){Ie(yt,{state:"blocked",location:Ce,proceed(){Ie(yt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),De(B,q)},reset(){let Mt=new Map(R.blockers);Mt.set(yt,is),fe({blockers:Mt})}});return}await $e(ge,Ce,{submission:Oe,pendingError:we,preventScrollReset:Ke,replace:q&&q.replace,enableViewTransition:q&&q.viewTransition,flushSync:nt})}function Pe(){ae||(ae=$R()),Ae(),fe({revalidation:"loading"});let B=ae.promise;return R.navigation.state==="submitting"?B:R.navigation.state==="idle"?($e(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),B):($e($||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:L===!0}),B)}async function $e(B,q,Y){I&&I.abort(),I=null,$=B,ee=(Y&&Y.startUninterruptedRevalidation)===!0,zr(R.location,R.matches),M=(Y&&Y.preventScrollReset)===!0,L=(Y&&Y.enableViewTransition)===!0;let de=s||l,Oe=Y&&Y.overrideNavigation,we=pi(de,q,c),Re=(Y&&Y.flushSync)===!0,Ce=qt(we,de,q.pathname);if(Ce.active&&Ce.matches&&(we=Ce.matches),!we){let{error:ct,notFoundMatches:vt,route:Ot}=_t(q.pathname);Se(q,{matches:vt,loaderData:{},errors:{[Ot.id]:ct}},{flushSync:Re});return}if(R.initialized&&!K&&CR(R.location,q)&&!(Y&&Y.submission&&ro(Y.submission.formMethod))){Se(q,{matches:we},{flushSync:Re});return}I=new AbortController;let Ee=za(e.history,q,I.signal,Y&&Y.submission),ge;if(Y&&Y.pendingError)ge=[Wi(we).route.id,{type:"error",error:Y.pendingError}];else if(Y&&Y.submission&&ro(Y.submission.formMethod)){let ct=await Ve(Ee,q,Y.submission,we,Ce.active,{replace:Y.replace,flushSync:Re});if(ct.shortCircuited)return;if(ct.pendingActionResult){let[vt,Ot]=ct.pendingActionResult;if(wn(Ot)&&hf(Ot.error)&&Ot.error.status===404){I=null,Se(q,{matches:ct.matches,loaderData:{},errors:{[vt]:Ot.error}});return}}we=ct.matches||we,ge=ct.pendingActionResult,Oe=wp(q,Y.submission),Re=!1,Ce.active=!1,Ee=za(e.history,Ee.url,Ee.signal)}let{shortCircuited:Ke,matches:nt,loaderData:yt,errors:Mt}=await Te(Ee,q,we,Ce.active,Oe,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,Y&&Y.initialHydration===!0,Re,ge);Ke||(I=null,Se(q,{matches:nt||we,...Py(ge),loaderData:yt,errors:Mt}))}async function Ve(B,q,Y,de,Oe,we={}){Ae();let Re=RR(q,Y);if(fe({navigation:Re},{flushSync:we.flushSync===!0}),Oe){let ge=await Bt(de,q.pathname,B.signal);if(ge.type==="aborted")return{shortCircuited:!0};if(ge.type==="error"){let Ke=Wi(ge.partialMatches).route.id;return{matches:ge.partialMatches,pendingActionResult:[Ke,{type:"error",error:ge.error}]}}else if(ge.matches)de=ge.matches;else{let{notFoundMatches:Ke,error:nt,route:yt}=_t(q.pathname);return{matches:Ke,pendingActionResult:[yt.id,{type:"error",error:nt}]}}}let Ce,Ee=vs(de,q);if(!Ee.route.action&&!Ee.route.lazy)Ce={type:"error",error:Dn(405,{method:B.method,pathname:q.pathname,routeId:Ee.route.id})};else if(Ce=(await ut("action",R,B,[Ee],de,null))[Ee.route.id],B.signal.aborted)return{shortCircuited:!0};if(Gi(Ce)){let ge;return we&&we.replace!=null?ge=we.replace:ge=Ey(Ce.response.headers.get("Location"),new URL(B.url),c)===R.location.pathname+R.location.search,await Le(B,Ce,!0,{submission:Y,replace:ge}),{shortCircuited:!0}}if(wn(Ce)){let ge=Wi(de,Ee.route.id);return(we&&we.replace)!==!0&&($="PUSH"),{matches:de,pendingActionResult:[ge.route.id,Ce]}}return{matches:de,pendingActionResult:[Ee.route.id,Ce]}}async function Te(B,q,Y,de,Oe,we,Re,Ce,Ee,ge,Ke){let nt=Oe||wp(q,we),yt=we||Re||My(nt),Mt=!ee&&!Ee;if(de){if(Mt){let Kt=Be(Ke);fe({navigation:nt,...Kt!==void 0?{actionData:Kt}:{}},{flushSync:ge})}let xt=await Bt(Y,q.pathname,B.signal);if(xt.type==="aborted")return{shortCircuited:!0};if(xt.type==="error"){let Kt=Wi(xt.partialMatches).route.id;return{matches:xt.partialMatches,loaderData:{},errors:{[Kt]:xt.error}}}else if(xt.matches)Y=xt.matches;else{let{error:Kt,notFoundMatches:Jr,route:Br}=_t(q.pathname);return{matches:Jr,loaderData:{},errors:{[Br.id]:Kt}}}}let ct=s||l,[vt,Ot]=wy(e.history,R,Y,yt,q,Ee===!0,K,W,D,j,H,ct,c,Ke);if(k=++z,vt.length===0&&Ot.length===0){let xt=mt();return Se(q,{matches:Y,loaderData:{},errors:Ke&&wn(Ke[1])?{[Ke[0]]:Ke[1].error}:null,...Py(Ke),...xt?{fetchers:new Map(R.fetchers)}:{}},{flushSync:ge}),{shortCircuited:!0}}if(Mt){let xt={};if(!de){xt.navigation=nt;let Kt=Be(Ke);Kt!==void 0&&(xt.actionData=Kt)}Ot.length>0&&(xt.fetchers=pt(Ot)),fe(xt,{flushSync:ge})}Ot.forEach(xt=>{wt(xt.key),xt.controller&&J.set(xt.key,xt.controller)});let Ft=()=>Ot.forEach(xt=>wt(xt.key));I&&I.signal.addEventListener("abort",Ft);let{loaderResults:Hr,fetcherResults:sr}=await ye(R,Y,vt,Ot,B);if(B.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ft),Ot.forEach(xt=>J.delete(xt.key));let gr=ic(Hr);if(gr)return await Le(B,gr.result,!0,{replace:Ce}),{shortCircuited:!0};if(gr=ic(sr),gr)return H.add(gr.key),await Le(B,gr.result,!0,{replace:Ce}),{shortCircuited:!0};let{loaderData:Gt,errors:Tn}=Oy(R,Y,Hr,Ke,Ot,sr);Ee&&R.errors&&(Tn={...R.errors,...Tn});let un=mt(),Ct=Je(k),Gn=un||Ct||Ot.length>0;return{matches:Y,loaderData:Gt,errors:Tn,...Gn?{fetchers:new Map(R.fetchers)}:{}}}function Be(B){if(B&&!wn(B[1]))return{[B[0]]:B[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function pt(B){return B.forEach(q=>{let Y=R.fetchers.get(q.key),de=as(void 0,Y?Y.data:void 0);R.fetchers.set(q.key,de)}),new Map(R.fetchers)}async function Ze(B,q,Y,de){wt(B);let Oe=(de&&de.flushSync)===!0,we=s||l,Re=$h(R.location,R.matches,c,Y,q,de==null?void 0:de.relative),Ce=pi(we,Re,c),Ee=qt(Ce,we,Re);if(Ee.active&&Ee.matches&&(Ce=Ee.matches),!Ce){tt(B,q,Dn(404,{pathname:Re}),{flushSync:Oe});return}let{path:ge,submission:Ke,error:nt}=by(!0,Re,de);if(nt){tt(B,q,nt,{flushSync:Oe});return}let yt=vs(Ce,ge),Mt=(de&&de.preventScrollReset)===!0;if(Ke&&ro(Ke.formMethod)){await ht(B,q,ge,yt,Ce,Ee.active,Oe,Mt,Ke);return}j.set(B,{routeId:q,path:ge}),await it(B,q,ge,yt,Ce,Ee.active,Oe,Mt,Ke)}async function ht(B,q,Y,de,Oe,we,Re,Ce,Ee){Ae(),j.delete(B);function ge(Lt){if(!Lt.route.action&&!Lt.route.lazy){let yr=Dn(405,{method:Ee.formMethod,pathname:Y,routeId:q});return tt(B,q,yr,{flushSync:Re}),!0}return!1}if(!we&&ge(de))return;let Ke=R.fetchers.get(B);Ue(B,OR(Ee,Ke),{flushSync:Re});let nt=new AbortController,yt=za(e.history,Y,nt.signal,Ee);if(we){let Lt=await Bt(Oe,Y,yt.signal);if(Lt.type==="aborted")return;if(Lt.type==="error"){tt(B,q,Lt.error,{flushSync:Re});return}else if(Lt.matches){if(Oe=Lt.matches,de=vs(Oe,Y),ge(de))return}else{tt(B,q,Dn(404,{pathname:Y}),{flushSync:Re});return}}J.set(B,nt);let Mt=z,vt=(await ut("action",R,yt,[de],Oe,B))[de.route.id];if(yt.signal.aborted){J.get(B)===nt&&J.delete(B);return}if(D.has(B)){if(Gi(vt)||wn(vt)){Ue(B,ci(void 0));return}}else{if(Gi(vt))if(J.delete(B),k>Mt){Ue(B,ci(void 0));return}else return H.add(B),Ue(B,as(Ee)),Le(yt,vt,!1,{fetcherSubmission:Ee,preventScrollReset:Ce});if(wn(vt)){tt(B,q,vt.error);return}}let Ot=R.navigation.location||R.location,Ft=za(e.history,Ot,nt.signal),Hr=s||l,sr=R.navigation.state!=="idle"?pi(Hr,R.navigation.location,c):R.matches;dt(sr,"Didn't find any matches after fetcher action");let gr=++z;F.set(B,gr);let Gt=as(Ee,vt.data);R.fetchers.set(B,Gt);let[Tn,un]=wy(e.history,R,sr,Ee,Ot,!1,K,W,D,j,H,Hr,c,[de.route.id,vt]);un.filter(Lt=>Lt.key!==B).forEach(Lt=>{let yr=Lt.key,er=R.fetchers.get(yr),Wo=as(void 0,er?er.data:void 0);R.fetchers.set(yr,Wo),wt(yr),Lt.controller&&J.set(yr,Lt.controller)}),fe({fetchers:new Map(R.fetchers)});let Ct=()=>un.forEach(Lt=>wt(Lt.key));nt.signal.addEventListener("abort",Ct);let{loaderResults:Gn,fetcherResults:xt}=await ye(R,sr,Tn,un,Ft);if(nt.signal.aborted)return;nt.signal.removeEventListener("abort",Ct),F.delete(B),J.delete(B),un.forEach(Lt=>J.delete(Lt.key));let Kt=ic(Gn);if(Kt)return Le(Ft,Kt.result,!1,{preventScrollReset:Ce});if(Kt=ic(xt),Kt)return H.add(Kt.key),Le(Ft,Kt.result,!1,{preventScrollReset:Ce});let{loaderData:Jr,errors:Br}=Oy(R,sr,Gn,void 0,un,xt);if(R.fetchers.has(B)){let Lt=ci(vt.data);R.fetchers.set(B,Lt)}Je(gr),R.navigation.state==="loading"&&gr>k?(dt($,"Expected pending action"),I&&I.abort(),Se(R.navigation.location,{matches:sr,loaderData:Jr,errors:Br,fetchers:new Map(R.fetchers)})):(fe({errors:Br,loaderData:Ty(R.loaderData,Jr,sr,Br),fetchers:new Map(R.fetchers)}),K=!1)}async function it(B,q,Y,de,Oe,we,Re,Ce,Ee){let ge=R.fetchers.get(B);Ue(B,as(Ee,ge?ge.data:void 0),{flushSync:Re});let Ke=new AbortController,nt=za(e.history,Y,Ke.signal);if(we){let vt=await Bt(Oe,Y,nt.signal);if(vt.type==="aborted")return;if(vt.type==="error"){tt(B,q,vt.error,{flushSync:Re});return}else if(vt.matches)Oe=vt.matches,de=vs(Oe,Y);else{tt(B,q,Dn(404,{pathname:Y}),{flushSync:Re});return}}J.set(B,Ke);let yt=z,ct=(await ut("loader",R,nt,[de],Oe,B))[de.route.id];if(J.get(B)===Ke&&J.delete(B),!nt.signal.aborted){if(D.has(B)){Ue(B,ci(void 0));return}if(Gi(ct))if(k>yt){Ue(B,ci(void 0));return}else{H.add(B),await Le(nt,ct,!1,{preventScrollReset:Ce});return}if(wn(ct)){tt(B,q,ct.error);return}Ue(B,ci(ct.data))}}async function Le(B,q,Y,{submission:de,fetcherSubmission:Oe,preventScrollReset:we,replace:Re}={}){q.response.headers.has("X-Remix-Revalidate")&&(K=!0);let Ce=q.response.headers.get("Location");dt(Ce,"Expected a Location header on the redirect Response"),Ce=Ey(Ce,new URL(B.url),c);let Ee=Ts(R.location,Ce,{_isRedirect:!0});if(r){let ct=!1;if(q.response.headers.has("X-Remix-Reload-Document"))ct=!0;else if(qm.test(Ce)){const vt=e.history.createURL(Ce);ct=vt.origin!==t.location.origin||uo(vt.pathname,c)==null}if(ct){Re?t.location.replace(Ce):t.location.assign(Ce);return}}I=null;let ge=Re===!0||q.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ke,formAction:nt,formEncType:yt}=R.navigation;!de&&!Oe&&Ke&&nt&&yt&&(de=My(R.navigation));let Mt=de||Oe;if(sR.has(q.response.status)&&Mt&&ro(Mt.formMethod))await $e(ge,Ee,{submission:{...Mt,formAction:Ce},preventScrollReset:we||M,enableViewTransition:Y?L:void 0});else{let ct=wp(Ee,de);await $e(ge,Ee,{overrideNavigation:ct,fetcherSubmission:Oe,preventScrollReset:we||M,enableViewTransition:Y?L:void 0})}}async function ut(B,q,Y,de,Oe,we){let Re,Ce={};try{Re=await gR(f,B,q,Y,de,Oe,we,i,n)}catch(Ee){return de.forEach(ge=>{Ce[ge.route.id]={type:"error",error:Ee}}),Ce}for(let[Ee,ge]of Object.entries(Re))if(xR(ge)){let Ke=ge.result;Ce[Ee]={type:"redirect",response:SR(Ke,Y,Ee,Oe,c)}}else Ce[Ee]=await bR(ge);return Ce}async function ye(B,q,Y,de,Oe){let we=ut("loader",B,Oe,Y,q,null),Re=Promise.all(de.map(async ge=>{if(ge.matches&&ge.match&&ge.controller){let nt=(await ut("loader",B,za(e.history,ge.path,ge.controller.signal),[ge.match],ge.matches,ge.key))[ge.match.route.id];return{[ge.key]:nt}}else return Promise.resolve({[ge.key]:{type:"error",error:Dn(404,{pathname:ge.path})}})})),Ce=await we,Ee=(await Re).reduce((ge,Ke)=>Object.assign(ge,Ke),{});return{loaderResults:Ce,fetcherResults:Ee}}function Ae(){K=!0,j.forEach((B,q)=>{J.has(q)&&W.add(q),wt(q)})}function Ue(B,q,Y={}){R.fetchers.set(B,q),fe({fetchers:new Map(R.fetchers)},{flushSync:(Y&&Y.flushSync)===!0})}function tt(B,q,Y,de={}){let Oe=Wi(R.matches,q);St(B),fe({errors:{[Oe.route.id]:Y},fetchers:new Map(R.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function Pt(B){return A.set(B,(A.get(B)||0)+1),D.has(B)&&D.delete(B),R.fetchers.get(B)||uR}function St(B){let q=R.fetchers.get(B);J.has(B)&&!(q&&q.state==="loading"&&F.has(B))&&wt(B),j.delete(B),F.delete(B),H.delete(B),D.delete(B),W.delete(B),R.fetchers.delete(B)}function Ht(B){let q=(A.get(B)||0)-1;q<=0?(A.delete(B),D.add(B)):A.set(B,q),fe({fetchers:new Map(R.fetchers)})}function wt(B){let q=J.get(B);q&&(q.abort(),J.delete(B))}function Zt(B){for(let q of B){let Y=Pt(q),de=ci(Y.data);R.fetchers.set(q,de)}}function mt(){let B=[],q=!1;for(let Y of H){let de=R.fetchers.get(Y);dt(de,`Expected fetcher: ${Y}`),de.state==="loading"&&(H.delete(Y),B.push(Y),q=!0)}return Zt(B),q}function Je(B){let q=[];for(let[Y,de]of F)if(de<B){let Oe=R.fetchers.get(Y);dt(Oe,`Expected fetcher: ${Y}`),Oe.state==="loading"&&(wt(Y),F.delete(Y),q.push(Y))}return Zt(q),q.length>0}function Ge(B,q){let Y=R.blockers.get(B)||is;return ie.get(B)!==q&&ie.set(B,q),Y}function ir(B){R.blockers.delete(B),ie.delete(B)}function Ie(B,q){let Y=R.blockers.get(B)||is;dt(Y.state==="unblocked"&&q.state==="blocked"||Y.state==="blocked"&&q.state==="blocked"||Y.state==="blocked"&&q.state==="proceeding"||Y.state==="blocked"&&q.state==="unblocked"||Y.state==="proceeding"&&q.state==="unblocked",`Invalid blocker state transition: ${Y.state} -> ${q.state}`);let de=new Map(R.blockers);de.set(B,q),fe({blockers:de})}function qe({currentLocation:B,nextLocation:q,historyAction:Y}){if(ie.size===0)return;ie.size>1&&On(!1,"A router only supports one blocker at a time");let de=Array.from(ie.entries()),[Oe,we]=de[de.length-1],Re=R.blockers.get(Oe);if(!(Re&&Re.state==="proceeding")&&we({currentLocation:B,nextLocation:q,historyAction:Y}))return Oe}function _t(B){let q=Dn(404,{pathname:B}),Y=s||l,{matches:de,route:Oe}=$y(Y);return{notFoundMatches:de,route:Oe,error:q}}function jr(B,q,Y){if(x=B,C=q,w=Y||null,!S&&R.navigation===Sp){S=!0;let de=pr(R.location,R.matches);de!=null&&fe({restoreScrollPosition:de})}return()=>{x=null,C=null,w=null}}function Dr(B,q){return w&&w(B,q.map(de=>z2(de,R.loaderData)))||B.key}function zr(B,q){if(x&&C){let Y=Dr(B,q);x[Y]=C()}}function pr(B,q){if(x){let Y=Dr(B,q),de=x[Y];if(typeof de=="number")return de}return null}function qt(B,q,Y){if(p)if(B){if(Object.keys(B[0].params).length>0)return{active:!0,matches:Pc(q,Y,c,!0)}}else return{active:!0,matches:Pc(q,Y,c,!0)||[]};return{active:!1,matches:null}}async function Bt(B,q,Y){if(!p)return{type:"success",matches:B};let de=B;for(;;){let Oe=s==null,we=s||l,Re=i;try{await p({path:q,matches:de,patch:(ge,Ke)=>{Y.aborted||xy(ge,Ke,we,Re,n)}})}catch(ge){return{type:"error",error:ge,partialMatches:de}}finally{Oe&&!Y.aborted&&(l=[...l])}if(Y.aborted)return{type:"aborted"};let Ce=pi(we,q,c);if(Ce)return{type:"success",matches:Ce};let Ee=Pc(we,q,c,!0);if(!Ee||de.length===Ee.length&&de.every((ge,Ke)=>ge.route.id===Ee[Ke].route.id))return{type:"success",matches:null};de=Ee}}function Yr(B){i={},s=Uc(B,n,void 0,i)}function Nt(B,q){let Y=s==null;xy(B,q,s||l,i,n),Y&&(l=[...l],fe({}))}return _={get basename(){return c},get future(){return h},get state(){return R},get routes(){return l},get window(){return t},initialize:ue,subscribe:ce,enableScrollRestoration:jr,navigate:De,fetch:Ze,revalidate:Pe,createHref:B=>e.history.createHref(B),encodeLocation:B=>e.history.encodeLocation(B),getFetcher:Pt,deleteFetcher:Ht,dispose:se,getBlocker:Ge,deleteBlocker:ir,patchRoutes:Nt,_internalFetchControllers:J,_internalSetRoutes:Yr},_}function dR(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $h(e,t,r,n,i,l){let s,c;if(i){s=[];for(let p of t)if(s.push(p),p.route.id===i){c=p;break}}else s=t,c=t[t.length-1];let f=pf(n||".",df(s),uo(e.pathname,r)||e.pathname,l==="path");if(n==null&&(f.search=e.search,f.hash=e.hash),(n==null||n===""||n===".")&&c){let p=Gm(f.search);if(c.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&p){let h=new URLSearchParams(f.search),g=h.getAll("index");h.delete("index"),g.filter(x=>x).forEach(x=>h.append("index",x));let y=h.toString();f.search=y?`?${y}`:""}}return r!=="/"&&(f.pathname=f.pathname==="/"?r:Eo([r,f.pathname])),bi(f)}function by(e,t,r){if(!r||!dR(r))return{path:t};if(r.formMethod&&!ER(r.formMethod))return{path:t,error:Dn(405,{method:r.formMethod})};let n=()=>({path:t,error:Dn(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),s=wS(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ro(l))return n();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,[x,w])=>`${y}${x}=${w} `,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!ro(l))return n();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:s,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return n()}}}dt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=Mh(r.formData),f=r.formData;else if(r.body instanceof FormData)c=Mh(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=Ry(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=Ry(c)}catch{return n()}let p={formMethod:l,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(ro(p.formMethod))return{path:t,submission:p};let h=wi(t);return e&&h.search&&Gm(h.search)&&c.append("index",""),h.search=`?${c}`,{path:bi(h),submission:p}}function Sy(e,t,r=!1){let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function wy(e,t,r,n,i,l,s,c,f,p,h,g,y,x){let w=x?wn(x[1])?x[1].error:x[1].data:void 0,C=e.createURL(t.location),S=e.createURL(i),E=r;l&&t.errors?E=Sy(r,Object.keys(t.errors)[0],!0):x&&wn(x[1])&&(E=Sy(r,x[0]));let T=x?x[1].statusCode:void 0,O=T&&T>=400,_=E.filter(($,M)=>{let{route:I}=$;if(I.lazy)return!0;if(I.loader==null)return!1;if(l)return _h(I,t.loaderData,t.errors);if(pR(t.loaderData,t.matches[M],$))return!0;let L=t.matches[M],V=$;return Cy($,{currentUrl:C,currentParams:L.params,nextUrl:S,nextParams:V.params,...n,actionResult:w,actionStatus:T,defaultShouldRevalidate:O?!1:s||C.pathname+C.search===S.pathname+S.search||C.search!==S.search||hR(L,V)})}),R=[];return p.forEach(($,M)=>{if(l||!r.some(ee=>ee.route.id===$.routeId)||f.has(M))return;let I=pi(g,$.path,y);if(!I){R.push({key:M,routeId:$.routeId,path:$.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(M),V=vs(I,$.path),X=!1;h.has(M)?X=!1:c.has(M)?(c.delete(M),X=!0):L&&L.state!=="idle"&&L.data===void 0?X=s:X=Cy(V,{currentUrl:C,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params,...n,actionResult:w,actionStatus:T,defaultShouldRevalidate:O?!1:s}),X&&R.push({key:M,routeId:$.routeId,path:$.path,matches:I,match:V,controller:new AbortController})}),[_,R]}function _h(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function pR(e,t,r){let n=!t||r.route.id!==t.route.id,i=!e.hasOwnProperty(r.route.id);return n||i}function hR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Cy(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function xy(e,t,r,n,i){let l;if(e){let f=n[e];dt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=r;let s=t.filter(f=>!l.some(p=>SS(f,p))),c=Uc(s,i,[e||"_","patch",String((l==null?void 0:l.length)||"0")],n);l.push(...c)}function SS(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(l=>SS(r,l))}):!1}async function mR(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];dt(i,"No route found in manifest");let l={};for(let s in n){let f=i[s]!==void 0&&s!=="hasErrorBoundary";On(!f,`Route "${i.id}" has a static property "${s}" defined but its lazy function is also returning a value for this property. The lazy route property "${s}" will be ignored.`),!f&&!j2.has(s)&&(l[s]=n[s])}Object.assign(i,l),Object.assign(i,{...t(i),lazy:void 0})}async function vR({matches:e}){let t=e.filter(n=>n.shouldLoad);return(await Promise.all(t.map(n=>n.resolve()))).reduce((n,i,l)=>Object.assign(n,{[t[l].route.id]:i}),{})}async function gR(e,t,r,n,i,l,s,c,f,p){let h=l.map(x=>x.route.lazy?mR(x.route,f,c):void 0),g=l.map((x,w)=>{let C=h[w],S=i.some(T=>T.route.id===x.route.id);return{...x,shouldLoad:S,resolve:async T=>(T&&n.method==="GET"&&(x.route.lazy||x.route.loader)&&(S=!0),S?yR(t,n,x,C,T,p):Promise.resolve({type:"data",result:void 0}))}}),y=await e({matches:g,request:n,params:l[0].params,fetcherKey:s,context:p});try{await Promise.all(h)}catch{}return y}async function yR(e,t,r,n,i,l){let s,c,f=p=>{let h,g=new Promise((w,C)=>h=C);c=()=>h(),t.signal.addEventListener("abort",c);let y=w=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${r.route.id}]`)):p({request:t,params:r.params,context:l},...w!==void 0?[w]:[]),x=(async()=>{try{return{type:"data",result:await(i?i(C=>y(C)):y())}}catch(w){return{type:"error",result:w}}})();return Promise.race([x,g])};try{let p=r.route[e];if(n)if(p){let h,[g]=await Promise.all([f(p).catch(y=>{h=y}),n]);if(h!==void 0)throw h;s=g}else if(await n,p=r.route[e],p)s=await f(p);else if(e==="action"){let h=new URL(t.url),g=h.pathname+h.search;throw Dn(405,{method:t.method,pathname:g,routeId:r.route.id})}else return{type:"data",result:void 0};else if(p)s=await f(p);else{let h=new URL(t.url),g=h.pathname+h.search;throw Dn(404,{pathname:g})}}catch(p){return{type:"error",result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return s}async function bR(e){var n,i,l,s;let{result:t,type:r}=e;if(CS(t)){let c;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(f){return{type:"error",error:f}}return r==="error"?{type:"error",error:new qc(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:"data",data:c,statusCode:t.status,headers:t.headers}}if(r==="error"){if(_y(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(n=t.init)==null?void 0:n.status};t=new qc(((i=t.init)==null?void 0:i.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:hf(t)?t.status:void 0}}return _y(t)?{type:"data",data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function SR(e,t,r,n,i){let l=e.headers.get("Location");if(dt(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!qm.test(l)){let s=n.slice(0,n.findIndex(c=>c.route.id===r)+1);l=$h(new URL(t.url),s,i,l),e.headers.set("Location",l)}return e}function Ey(e,t,r){if(qm.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),l=uo(i.pathname,r)!=null;if(i.origin===t.origin&&l)return i.pathname+i.search+i.hash}return e}function za(e,t,r,n){let i=e.createURL(wS(t)).toString(),l={signal:r};if(n&&ro(n.formMethod)){let{formMethod:s,formEncType:c}=n;l.method=s.toUpperCase(),c==="application/json"?(l.headers=new Headers({"Content-Type":c}),l.body=JSON.stringify(n.json)):c==="text/plain"?l.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?l.body=Mh(n.formData):l.body=n.formData}return new Request(i,l)}function Mh(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ry(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function wR(e,t,r,n=!1,i=!1){let l={},s=null,c,f=!1,p={},h=r&&wn(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let y=g.route.id,x=t[y];if(dt(!Gi(x),"Cannot handle redirect results in processLoaderData"),wn(x)){let w=x.error;if(h!==void 0&&(w=h,h=void 0),s=s||{},i)s[y]=w;else{let C=Wi(e,y);s[C.route.id]==null&&(s[C.route.id]=w)}n||(l[y]=bS),f||(f=!0,c=hf(x.error)?x.error.status:500),x.headers&&(p[y]=x.headers)}else l[y]=x.data,x.statusCode&&x.statusCode!==200&&!f&&(c=x.statusCode),x.headers&&(p[y]=x.headers)}),h!==void 0&&r&&(s={[r[0]]:h},l[r[0]]=void 0),{loaderData:l,errors:s,statusCode:c||200,loaderHeaders:p}}function Oy(e,t,r,n,i,l){let{loaderData:s,errors:c}=wR(t,r,n);return i.forEach(f=>{let{key:p,match:h,controller:g}=f,y=l[p];if(dt(y,"Did not find corresponding fetcher result"),!(g&&g.signal.aborted))if(wn(y)){let x=Wi(e.matches,h==null?void 0:h.route.id);c&&c[x.route.id]||(c={...c,[x.route.id]:y.error}),e.fetchers.delete(p)}else if(Gi(y))dt(!1,"Unhandled fetcher revalidation redirect");else{let x=ci(y.data);e.fetchers.set(p,x)}}),{loaderData:s,errors:c}}function Ty(e,t,r,n){let i=Object.entries(t).filter(([,l])=>l!==bS).reduce((l,[s,c])=>(l[s]=c,l),{});for(let l of r){let s=l.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&l.route.loader&&(i[s]=e[s]),n&&n.hasOwnProperty(s))break}return i}function Py(e){return e?wn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Wi(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function $y(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Dn(e,{pathname:t,routeId:r,method:n,type:i,message:l}={}){let s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",n&&t&&r?c=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:i==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c=`Route "${r}" does not match URL "${t}"`):e===404?(s="Not Found",c=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",n&&t&&r?c=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(c=`Invalid request method "${n.toUpperCase()}"`)),new qc(e||500,s,new Error(c),!0)}function ic(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if(Gi(i))return{key:n,result:i}}}function wS(e){let t=typeof e=="string"?wi(e):e;return bi({...t,hash:""})}function CR(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xR(e){return CS(e.result)&&lR.has(e.result.status)}function wn(e){return e.type==="error"}function Gi(e){return(e&&e.type)==="redirect"}function _y(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function CS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ER(e){return aR.has(e.toUpperCase())}function ro(e){return oR.has(e.toUpperCase())}function Gm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vs(e,t){let r=typeof t=="string"?wi(t).search:t.search;if(e[e.length-1].route.index&&Gm(r||""))return e[e.length-1];let n=vS(e);return n[n.length-1]}function My(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:l,json:s}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(l!=null)return{formMethod:t,formAction:r,formEncType:n,formData:l,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function wp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function RR(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function as(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function OR(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ci(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function TR(e,t){try{let r=e.sessionStorage.getItem(yS);if(r){let n=JSON.parse(r);for(let[i,l]of Object.entries(n||{}))l&&Array.isArray(l)&&t.set(i,new Set(l||[]))}}catch{}}function PR(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(yS,JSON.stringify(r))}catch(n){On(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function $R(){let e,t,r=new Promise((n,i)=>{e=async l=>{n(l);try{await r}catch{}},t=async l=>{i(l);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var ua=m.createContext(null);ua.displayName="DataRouter";var Gs=m.createContext(null);Gs.displayName="DataRouterState";var Km=m.createContext({isTransitioning:!1});Km.displayName="ViewTransition";var xS=m.createContext(new Map);xS.displayName="Fetchers";var _R=m.createContext(null);_R.displayName="Await";var co=m.createContext(null);co.displayName="Navigation";var mf=m.createContext(null);mf.displayName="Location";var fo=m.createContext({outlet:null,matches:[],isDataRoute:!1});fo.displayName="Route";var Xm=m.createContext(null);Xm.displayName="RouteError";function MR(e,{relative:t}={}){dt(pl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=m.useContext(co),{hash:i,pathname:l,search:s}=Ks(e,{relative:t}),c=l;return r!=="/"&&(c=l==="/"?r:Eo([r,l])),n.createHref({pathname:c,search:s,hash:i})}function pl(){return m.useContext(mf)!=null}function Ci(){return dt(pl(),"useLocation() may be used only in the context of a <Router> component."),m.useContext(mf).location}var ES="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function RS(e){m.useContext(co).static||m.useLayoutEffect(e)}function OS(){let{isDataRoute:e}=m.useContext(fo);return e?qR():AR()}function AR(){dt(pl(),"useNavigate() may be used only in the context of a <Router> component.");let e=m.useContext(ua),{basename:t,navigator:r}=m.useContext(co),{matches:n}=m.useContext(fo),{pathname:i}=Ci(),l=JSON.stringify(df(n)),s=m.useRef(!1);return RS(()=>{s.current=!0}),m.useCallback((f,p={})=>{if(On(s.current,ES),!s.current)return;if(typeof f=="number"){r.go(f);return}let h=pf(f,JSON.parse(l),i,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Eo([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,l,i,e])}var IR=m.createContext(null);function FR(e){let t=m.useContext(fo).outlet;return t&&m.createElement(IR.Provider,{value:e},t)}function Ks(e,{relative:t}={}){let{matches:r}=m.useContext(fo),{pathname:n}=Ci(),i=JSON.stringify(df(r));return m.useMemo(()=>pf(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function LR(e,t,r,n){dt(pl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=m.useContext(co),{matches:l}=m.useContext(fo),s=l[l.length-1],c=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let p=Ci(),h;h=p;let g=h.pathname||"/",y=g;if(f!=="/"){let C=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=pi(e,{pathname:y});return zR(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Eo([f,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:Eo([f,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),l,r,n)}function kR(){let e=WR(),t=hf(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),r?m.createElement("pre",{style:i},r):null,null)}var NR=m.createElement(kR,null),jR=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?m.createElement(fo.Provider,{value:this.props.routeContext},m.createElement(Xm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function DR({routeContext:e,match:t,children:r}){let n=m.useContext(ua);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(fo.Provider,{value:e},r)}function zR(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r==null?void 0:r.errors;if(l!=null){let f=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);dt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let s=!1,c=-1;if(r)for(let f=0;f<i.length;f++){let p=i[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=f),p.route.id){let{loaderData:h,errors:g}=r,y=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||y){s=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((f,p,h)=>{let g,y=!1,x=null,w=null;r&&(g=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||NR,s&&(c<0&&h===0?(GR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):c===h&&(y=!0,w=p.route.hydrateFallbackElement||null)));let C=t.concat(i.slice(0,h+1)),S=()=>{let E;return g?E=x:y?E=w:p.route.Component?E=m.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=f,m.createElement(DR,{match:p,routeContext:{outlet:f,matches:C,isDataRoute:r!=null},children:E})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?m.createElement(jR,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:S(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):S()},null)}function Qm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HR(e){let t=m.useContext(ua);return dt(t,Qm(e)),t}function BR(e){let t=m.useContext(Gs);return dt(t,Qm(e)),t}function VR(e){let t=m.useContext(fo);return dt(t,Qm(e)),t}function Ym(e){let t=VR(e),r=t.matches[t.matches.length-1];return dt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function UR(){return Ym("useRouteId")}function WR(){var n;let e=m.useContext(Xm),t=BR("useRouteError"),r=Ym("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function qR(){let{router:e}=HR("useNavigate"),t=Ym("useNavigate"),r=m.useRef(!1);return RS(()=>{r.current=!0}),m.useCallback(async(i,l={})=>{On(r.current,ES),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Ay={};function GR(e,t,r){Ay[e]||(Ay[e]=!0,On(!1,r))}var Iy={};function Fy(e,t){!e&&!Iy[t]&&(Iy[t]=!0,console.warn(t))}function KR(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var XR=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function QR({router:e,flushSync:t}){let[r,n]=m.useState(e.state),[i,l]=m.useState(),[s,c]=m.useState({isTransitioning:!1}),[f,p]=m.useState(),[h,g]=m.useState(),[y,x]=m.useState(),w=m.useRef(new Map),C=m.useCallback((O,{deletedFetchers:_,flushSync:R,viewTransitionOpts:$})=>{_.forEach(I=>w.current.delete(I)),O.fetchers.forEach((I,L)=>{I.data!==void 0&&w.current.set(L,I.data)}),Fy(R===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let M=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Fy($==null||M,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!$||!M){t&&R?t(()=>n(O)):m.startTransition(()=>n(O));return}if(t&&R){t(()=>{h&&(f&&f.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let I=e.window.document.startViewTransition(()=>{t(()=>n(O))});I.finished.finally(()=>{t(()=>{p(void 0),g(void 0),l(void 0),c({isTransitioning:!1})})}),t(()=>g(I));return}h?(f&&f.resolve(),h.skipTransition(),x({state:O,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(l(O),c({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[e.window,t,h,f]);m.useLayoutEffect(()=>e.subscribe(C),[e,C]),m.useEffect(()=>{s.isTransitioning&&!s.flushSync&&p(new XR)},[s]),m.useEffect(()=>{if(f&&i&&e.window){let O=i,_=f.promise,R=e.window.document.startViewTransition(async()=>{m.startTransition(()=>n(O)),await _});R.finished.finally(()=>{p(void 0),g(void 0),l(void 0),c({isTransitioning:!1})}),g(R)}},[i,f,e.window]),m.useEffect(()=>{f&&i&&r.location.key===i.location.key&&f.resolve()},[f,h,r.location,i]),m.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),x(void 0))},[s.isTransitioning,y]);let S=m.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:O=>e.navigate(O),push:(O,_,R)=>e.navigate(O,{state:_,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(O,_,R)=>e.navigate(O,{replace:!0,state:_,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[e]),E=e.basename||"/",T=m.useMemo(()=>({router:e,navigator:S,static:!1,basename:E}),[e,S,E]);return m.createElement(m.Fragment,null,m.createElement(ua.Provider,{value:T},m.createElement(Gs.Provider,{value:r},m.createElement(xS.Provider,{value:w.current},m.createElement(Km.Provider,{value:s},m.createElement(ZR,{basename:E,location:r.location,navigationType:r.historyAction,navigator:S},m.createElement(YR,{routes:e.routes,future:e.future,state:r})))))),null)}var YR=m.memo(JR);function JR({routes:e,future:t,state:r}){return LR(e,void 0,r,t)}function TS({to:e,replace:t,state:r,relative:n}){dt(pl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=m.useContext(co);On(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=m.useContext(fo),{pathname:s}=Ci(),c=OS(),f=pf(e,df(l),s,n==="path"),p=JSON.stringify(f);return m.useEffect(()=>{c(JSON.parse(p),{replace:t,state:r,relative:n})},[c,p,n,t,r]),null}function Xs(e){return FR(e.context)}function fi(e){dt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ZR({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:l=!1}){dt(!pl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:l,future:{}}),[s,i,l]);typeof r=="string"&&(r=wi(r));let{pathname:f="/",search:p="",hash:h="",state:g=null,key:y="default"}=r,x=m.useMemo(()=>{let w=uo(f,s);return w==null?null:{location:{pathname:w,search:p,hash:h,state:g,key:y},navigationType:n}},[s,f,p,h,g,y,n]);return On(x!=null,`<Router basename="${s}"> is not able to match the URL "${f}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:m.createElement(co.Provider,{value:c},m.createElement(mf.Provider,{children:t,value:x}))}function Ah(e,t=[]){let r=[];return m.Children.forEach(e,(n,i)=>{if(!m.isValidElement(n))return;let l=[...t,i];if(n.type===m.Fragment){r.push.apply(r,Ah(n.props.children,l));return}dt(n.type===fi,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||l.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=Ah(n.props.children,l)),r.push(s)}),r}var $c="get",_c="application/x-www-form-urlencoded";function vf(e){return e!=null&&typeof e.tagName=="string"}function eO(e){return vf(e)&&e.tagName.toLowerCase()==="button"}function tO(e){return vf(e)&&e.tagName.toLowerCase()==="form"}function rO(e){return vf(e)&&e.tagName.toLowerCase()==="input"}function nO(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oO(e,t){return e.button===0&&(!t||t==="_self")&&!nO(e)}var ac=null;function iO(){if(ac===null)try{new FormData(document.createElement("form"),0),ac=!1}catch{ac=!0}return ac}var aO=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cp(e){return e!=null&&!aO.has(e)?(On(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_c}"`),null):e}function lO(e,t){let r,n,i,l,s;if(tO(e)){let c=e.getAttribute("action");n=c?uo(c,t):null,r=e.getAttribute("method")||$c,i=Cp(e.getAttribute("enctype"))||_c,l=new FormData(e)}else if(eO(e)||rO(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(n=f?uo(f,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||$c,i=Cp(e.getAttribute("formenctype"))||Cp(c.getAttribute("enctype"))||_c,l=new FormData(c,e),!iO()){let{name:p,type:h,value:g}=e;if(h==="image"){let y=p?`${p}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else p&&l.append(p,g)}}else{if(vf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=$c,n=null,i=_c,s=e}return l&&i==="text/plain"&&(s=l,l=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:l,body:s}}function Jm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function sO(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function uO(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function cO(e,t,r){let n=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await sO(l,r);return s.links?s.links():[]}return[]}));return hO(n.flat(1).filter(uO).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ly(e,t,r,n,i,l){let s=(f,p)=>r[p]?f.route.id!==r[p].route.id:!0,c=(f,p)=>{var h;return r[p].pathname!==f.pathname||((h=r[p].route.path)==null?void 0:h.endsWith("*"))&&r[p].params["*"]!==f.params["*"]};return l==="assets"?t.filter((f,p)=>s(f,p)||c(f,p)):l==="data"?t.filter((f,p)=>{var g;let h=n.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(s(f,p)||c(f,p))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function fO(e,t){return dO(e.map(r=>{let n=t.routes[r.route.id];if(!n)return[];let i=[n.module];return n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function dO(e){return[...new Set(e)]}function pO(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function hO(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let l=JSON.stringify(pO(i));return r.has(l)||(r.add(l),n.push({key:l,link:i})),n},[])}function mO(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function vO(){let e=m.useContext(ua);return Jm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function gO(){let e=m.useContext(Gs);return Jm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zm=m.createContext(void 0);Zm.displayName="FrameworkContext";function PS(){let e=m.useContext(Zm);return Jm(e,"You must render this element inside a <HydratedRouter> element"),e}function yO(e,t){let r=m.useContext(Zm),[n,i]=m.useState(!1),[l,s]=m.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:p,onMouseLeave:h,onTouchStart:g}=t,y=m.useRef(null);m.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let C=E=>{E.forEach(T=>{s(T.isIntersecting)})},S=new IntersectionObserver(C,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),m.useEffect(()=>{if(n){let C=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(C)}}},[n]);let x=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[l,y,{}]:[l,y,{onFocus:ls(c,x),onBlur:ls(f,w),onMouseEnter:ls(p,x),onMouseLeave:ls(h,w),onTouchStart:ls(g,x)}]:[!1,y,{}]}function ls(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function bO({page:e,...t}){let{router:r}=vO(),n=m.useMemo(()=>pi(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?m.createElement(wO,{page:e,matches:n,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function SO(e){let{manifest:t,routeModules:r}=PS(),[n,i]=m.useState([]);return m.useEffect(()=>{let l=!1;return cO(e,t,r).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,r]),n}function wO({page:e,matches:t,...r}){let n=Ci(),{manifest:i,routeModules:l}=PS(),{loaderData:s,matches:c}=gO(),f=m.useMemo(()=>Ly(e,t,c,i,n,"data"),[e,t,c,i,n]),p=m.useMemo(()=>Ly(e,t,c,i,n,"assets"),[e,t,c,i,n]),h=m.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let x=new Set,w=!1;if(t.forEach(S=>{var T;let E=i.routes[S.route.id];!E||!E.hasLoader||(!f.some(O=>O.route.id===S.route.id)&&S.route.id in s&&((T=l[S.route.id])!=null&&T.shouldRevalidate)||E.hasClientLoader?w=!0:x.add(S.route.id))}),x.size===0)return[];let C=mO(e);return w&&x.size>0&&C.searchParams.set("_routes",t.filter(S=>x.has(S.route.id)).map(S=>S.route.id).join(",")),[C.pathname+C.search]},[s,n,i,f,t,e,l]),g=m.useMemo(()=>fO(p,i),[p,i]),y=SO(p);return m.createElement(m.Fragment,null,h.map(x=>m.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})),g.map(x=>m.createElement("link",{key:x,rel:"modulepreload",href:x,...r})),y.map(({key:x,link:w})=>m.createElement("link",{key:x,...w})))}function CO(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var $S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$S&&(window.__reactRouterVersion="7.0.1")}catch{}function xO(e,t){return fR({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:L2({window:t==null?void 0:t.window}),hydrationData:EO(),routes:e,mapRouteProperties:KR,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function EO(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:RO(e.errors)}),e}function RO(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new qc(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let l=window[i.__subType];if(typeof l=="function")try{let s=new l(i.message);s.stack="",r[n]=s}catch{}}if(r[n]==null){let l=new Error(i.message);l.stack="",r[n]=l}}else r[n]=i;return r}var _S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MS=m.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:l,replace:s,state:c,target:f,to:p,preventScrollReset:h,viewTransition:g,...y},x){let{basename:w}=m.useContext(co),C=typeof p=="string"&&_S.test(p),S,E=!1;if(typeof p=="string"&&C&&(S=p,$S))try{let L=new URL(window.location.href),V=p.startsWith("//")?new URL(L.protocol+p):new URL(p),X=uo(V.pathname,w);V.origin===L.origin&&X!=null?p=X+V.search+V.hash:E=!0}catch{On(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=MR(p,{relative:i}),[O,_,R]=yO(n,y),$=$O(p,{replace:s,state:c,target:f,preventScrollReset:h,relative:i,viewTransition:g});function M(L){t&&t(L),L.defaultPrevented||$(L)}let I=m.createElement("a",{...y,...R,href:S||T,onClick:E||l?t:M,ref:CO(x,_),target:f,"data-discover":!C&&r==="render"?"true":void 0});return O&&!C?m.createElement(m.Fragment,null,I,m.createElement(bO,{page:T})):I});MS.displayName="Link";var OO=m.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:l,to:s,viewTransition:c,children:f,...p},h){let g=Ks(s,{relative:p.relative}),y=Ci(),x=m.useContext(Gs),{navigator:w,basename:C}=m.useContext(co),S=x!=null&&FO(g)&&c===!0,E=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,T=y.pathname,O=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(T=T.toLowerCase(),O=O?O.toLowerCase():null,E=E.toLowerCase()),O&&C&&(O=uo(O,C)||O);const _=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let R=T===E||!i&&T.startsWith(E)&&T.charAt(_)==="/",$=O!=null&&(O===E||!i&&O.startsWith(E)&&O.charAt(E.length)==="/"),M={isActive:R,isPending:$,isTransitioning:S},I=R?t:void 0,L;typeof n=="function"?L=n(M):L=[n,R?"active":null,$?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let V=typeof l=="function"?l(M):l;return m.createElement(MS,{...p,"aria-current":I,className:L,ref:h,style:V,to:s,viewTransition:c},typeof f=="function"?f(M):f)});OO.displayName="NavLink";var TO=m.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:l,method:s=$c,action:c,onSubmit:f,relative:p,preventScrollReset:h,viewTransition:g,...y},x)=>{let w=AO(),C=IO(c,{relative:p}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&_S.test(c),T=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let _=O.nativeEvent.submitter,R=(_==null?void 0:_.getAttribute("formmethod"))||s;w(_||O.currentTarget,{fetcherKey:t,method:R,navigate:r,replace:i,state:l,relative:p,preventScrollReset:h,viewTransition:g})};return m.createElement("form",{ref:x,method:S,action:C,onSubmit:n?f:T,...y,"data-discover":!E&&e==="render"?"true":void 0})});TO.displayName="Form";function PO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AS(e){let t=m.useContext(ua);return dt(t,PO(e)),t}function $O(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=OS(),f=Ci(),p=Ks(e,{relative:l});return m.useCallback(h=>{if(oO(h,t)){h.preventDefault();let g=r!==void 0?r:bi(f)===bi(p);c(e,{replace:g,state:n,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,p,r,n,t,e,i,l,s])}var _O=0,MO=()=>`__${String(++_O)}__`;function AO(){let{router:e}=AS("useSubmit"),{basename:t}=m.useContext(co),r=UR();return m.useCallback(async(n,i={})=>{let{action:l,method:s,encType:c,formData:f,body:p}=lO(n,t);if(i.navigate===!1){let h=i.fetcherKey||MO();await e.fetch(h,r,i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||s,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||s,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function IO(e,{relative:t}={}){let{basename:r}=m.useContext(co),n=m.useContext(fo);dt(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),l={...Ks(e||".",{relative:t})},s=Ci();if(e==null){l.search=s.search;let c=new URLSearchParams(l.search),f=c.getAll("index");if(f.some(h=>h==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let h=c.toString();l.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Eo([r,l.pathname])),bi(l)}function FO(e,t={}){let r=m.useContext(Km);dt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=AS("useViewTransitionState"),i=Ks(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=uo(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=uo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Wc(i.pathname,s)!=null||Wc(i.pathname,l)!=null}new TextEncoder;var xp={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var ky;function LO(){return ky||(ky=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(l=i(l,n(c)))}return l}function n(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var c in l)t.call(l,c)&&l[c]&&(s=i(s,c));return s}function i(l,s){return s?l?l+" "+s:l+s:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(xp)),xp.exports}var kO=LO();const Me=Bo(kO);function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},It.apply(null,arguments)}var Ep={exports:{}},$t={};/** * @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 Ny;function NO(){if(Ny)return $t;Ny=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function C(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case r:case i:case n:case p:case h:return S;default:switch(S=S&&S.$$typeof,S){case c:case s:case f:case y:case g:case l:return S;default:return E}}case t:return E}}}return $t.ContextConsumer=s,$t.ContextProvider=l,$t.Element=e,$t.ForwardRef=f,$t.Fragment=r,$t.Lazy=y,$t.Memo=g,$t.Portal=t,$t.Profiler=i,$t.StrictMode=n,$t.Suspense=p,$t.SuspenseList=h,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(S){return C(S)===s},$t.isContextProvider=function(S){return C(S)===l},$t.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},$t.isForwardRef=function(S){return C(S)===f},$t.isFragment=function(S){return C(S)===r},$t.isLazy=function(S){return C(S)===y},$t.isMemo=function(S){return C(S)===g},$t.isPortal=function(S){return C(S)===t},$t.isProfiler=function(S){return C(S)===i},$t.isStrictMode=function(S){return C(S)===n},$t.isSuspense=function(S){return C(S)===p},$t.isSuspenseList=function(S){return C(S)===h},$t.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===i||S===n||S===p||S===h||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===g||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===w||S.getModuleId!==void 0)},$t.typeOf=C,$t}var jy;function jO(){return jy||(jy=1,Ep.exports=NO()),Ep.exports}var bs=jO();function ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ve.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(ea(n)):bs.isFragment(n)&&n.props?r=r.concat(ea(n.props.children,t)):r.push(n))}),r}var Ih={},DO=function(t){};function zO(e,t){}function HO(e,t){}function BO(){Ih={}}function IS(e,t,r){!t&&!Ih[r]&&(e(!1,r),Ih[r]=!0)}function En(e,t){IS(zO,e,t)}function VO(e,t){IS(HO,e,t)}En.preMessage=DO;En.resetWarned=BO;En.noteOnce=VO;function rt(e){"@babel/helpers - typeof";return rt=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},rt(e)}function UO(e,t){if(rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FS(e){var t=UO(e,"string");return rt(t)=="symbol"?t:t+""}function Z(e,t,r){return(t=FS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dy(Object(r),!0).forEach(function(n){Z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ev=pS();const Fh=Bo(ev),WO=dS({__proto__:null,default:Fh},[ev]);function Ps(e){return e instanceof HTMLElement||e instanceof SVGElement}function LS(e){return e&&rt(e)==="object"&&Ps(e.nativeElement)?e.nativeElement:Ps(e)?e:null}function Mc(e){var t=LS(e);if(t)return t;if(e instanceof ve.Component){var r;return(r=Fh.findDOMNode)===null||r===void 0?void 0:r.call(Fh,e)}return null}function tv(e,t,r){var n=m.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var rv=function(t,r){typeof t=="function"?t(r):rt(t)==="object"&&t&&"current"in t&&(t.current=r)},Ro=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(l){r.forEach(function(s){rv(s,l)})}},gf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return tv(function(){return Ro.apply(void 0,r)},r,function(i,l){return i.length!==l.length||i.every(function(s,c){return s!==l[c]})})},hl=function(t){var r,n,i=bs.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==bs.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==bs.ForwardRef)};function zy(e){return m.isValidElement(e)&&!bs.isFragment(e)}Number(m.version.split(".")[0])>=19;var Lh=m.createContext(null);function qO(e){var t=e.children,r=e.onBatchResize,n=m.useRef(0),i=m.useRef([]),l=m.useContext(Lh),s=m.useCallback(function(c,f,p){n.current+=1;var h=n.current;i.current.push({size:c,element:f,data:p}),Promise.resolve().then(function(){h===n.current&&(r==null||r(i.current),i.current=[])}),l==null||l(c,f,p)},[r,l]);return m.createElement(Lh.Provider,{value:s},t)}var kS=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,l){return i[0]===r?(n=l,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,l=this.__entries__;i<l.length;i++){var s=l[i];r.call(n,s[1],s[0])}},t}()}(),kh=typeof window<"u"&&typeof document<"u"&&window.document===document,Gc=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")()}(),GO=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Gc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),KO=2;function XO(e,t){var r=!1,n=!1,i=0;function l(){r&&(r=!1,e()),n&&c()}function s(){GO(l)}function c(){var f=Date.now();if(r){if(f-i<KO)return;n=!0}else r=!0,n=!1,setTimeout(s,t);i=f}return c}var QO=20,YO=["top","right","bottom","left","width","height","size","weight"],JO=typeof MutationObserver<"u",ZO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=XO(this.refresh.bind(this),QO)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.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(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!kh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),JO?(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(){!kh||!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 r=t.propertyName,n=r===void 0?"":r,i=YO.some(function(l){return!!~n.indexOf(l)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),NS=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ol=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Gc},jS=yf(0,0,0,0);function Kc(e){return parseFloat(e)||0}function Hy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var l=e["border-"+i+"-width"];return n+Kc(l)},0)}function eT(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var l=i[n],s=e["padding-"+l];r[l]=Kc(s)}return r}function tT(e){var t=e.getBBox();return yf(0,0,t.width,t.height)}function rT(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return jS;var n=ol(e).getComputedStyle(e),i=eT(n),l=i.left+i.right,s=i.top+i.bottom,c=Kc(n.width),f=Kc(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+l)!==t&&(c-=Hy(n,"left","right")+l),Math.round(f+s)!==r&&(f-=Hy(n,"top","bottom")+s)),!oT(e)){var p=Math.round(c+l)-t,h=Math.round(f+s)-r;Math.abs(p)!==1&&(c-=p),Math.abs(h)!==1&&(f-=h)}return yf(i.left,i.top,c,f)}var nT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ol(e).SVGGraphicsElement}:function(e){return e instanceof ol(e).SVGElement&&typeof e.getBBox=="function"}}();function oT(e){return e===ol(e).document.documentElement}function iT(e){return kh?nT(e)?tT(e):rT(e):jS}function aT(e){var t=e.x,r=e.y,n=e.width,i=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return NS(s,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),s}function yf(e,t,r,n){return{x:e,y:t,width:r,height:n}}var lT=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yf(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=iT(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}(),sT=function(){function e(t,r){var n=aT(r);NS(this,{target:t,contentRect:n})}return e}(),uT=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new kS,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}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 ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new lT(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 ol(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new sT(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),DS=typeof WeakMap<"u"?new WeakMap:new kS,zS=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 r=ZO.getInstance(),n=new uT(t,r,this);DS.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){zS.prototype[e]=function(){var t;return(t=DS.get(this))[e].apply(t,arguments)}});var cT=function(){return typeof Gc.ResizeObserver<"u"?Gc.ResizeObserver:zS}(),hi=new Map;function fT(e){e.forEach(function(t){var r,n=t.target;(r=hi.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var HS=new cT(fT);function dT(e,t){hi.has(e)||(hi.set(e,new Set),HS.observe(e)),hi.get(e).add(t)}function pT(e,t){hi.has(e)&&(hi.get(e).delete(t),hi.get(e).size||(HS.unobserve(e),hi.delete(e)))}function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function By(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FS(n.key),n)}}function Er(e,t,r){return t&&By(e.prototype,t),r&&By(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},$s(e,t)}function xi(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&&$s(e,t)}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_s(e)}function nv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nv=function(){return!!e})()}function ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hT(e,t){if(t&&(rt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ft(e)}function Ei(e){var t=nv();return function(){var r,n=_s(e);if(t){var i=_s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hT(this,r)}}var mT=function(e){xi(r,e);var t=Ei(r);function r(){return xr(this,r),t.apply(this,arguments)}return Er(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function vT(e,t){var r=e.children,n=e.disabled,i=m.useRef(null),l=m.useRef(null),s=m.useContext(Lh),c=typeof r=="function",f=c?r(i):r,p=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!c&&m.isValidElement(f)&&hl(f),g=h?f.ref:null,y=gf(g,i),x=function(){var E;return Mc(i.current)||(i.current&&rt(i.current)==="object"?Mc((E=i.current)===null||E===void 0?void 0:E.nativeElement):null)||Mc(l.current)};m.useImperativeHandle(t,function(){return x()});var w=m.useRef(e);w.current=e;var C=m.useCallback(function(S){var E=w.current,T=E.onResize,O=E.data,_=S.getBoundingClientRect(),R=_.width,$=_.height,M=S.offsetWidth,I=S.offsetHeight,L=Math.floor(R),V=Math.floor($);if(p.current.width!==L||p.current.height!==V||p.current.offsetWidth!==M||p.current.offsetHeight!==I){var X={width:L,height:V,offsetWidth:M,offsetHeight:I};p.current=X;var ee=M===Math.round(R)?R:M,K=I===Math.round($)?$:I,W=oe(oe({},X),{},{offsetWidth:ee,offsetHeight:K});s==null||s(W,S,O),T&&Promise.resolve().then(function(){T(W,S)})}},[]);return m.useEffect(function(){var S=x();return S&&!n&&dT(S,C),function(){return pT(S,C)}},[i.current,n]),m.createElement(mT,{ref:l},h?m.cloneElement(f,{ref:y}):f)}var gT=m.forwardRef(vT),yT="rc-observer-key";function bT(e,t){var r=e.children,n=typeof r=="function"?[r]:ea(r);return n.map(function(i,l){var s=(i==null?void 0:i.key)||"".concat(yT,"-").concat(l);return m.createElement(gT,It({},e,{key:s,ref:l===0?t:void 0}),i)})}var Qs=m.forwardRef(bT);Qs.Collection=qO;function Ri(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ST(e){if(Array.isArray(e))return Nh(e)}function BS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ov(e,t){if(e){if(typeof e=="string")return Nh(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nh(e,t):void 0}}function wT(){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 Ne(e){return ST(e)||BS(e)||ov(e)||wT()}var VS=function(t){return+setTimeout(t,16)},US=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(VS=function(t){return window.requestAnimationFrame(t)},US=function(t){return window.cancelAnimationFrame(t)});var Vy=0,iv=new Map;function WS(e){iv.delete(e)}var Vn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vy+=1;var n=Vy;function i(l){if(l===0)WS(n),t();else{var s=VS(function(){i(l-1)});iv.set(n,s)}}return i(r),n};Vn.cancel=function(e){var t=iv.get(e);return WS(e),US(t)};function qS(e){if(Array.isArray(e))return e}function CT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,l,s,c=[],f=!0,p=!1;try{if(l=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(h){p=!0,i=h}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function GS(){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 xe(e,t){return qS(e)||CT(e,t)||ov(e,t)||GS()}function Ms(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 sn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xT(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Uy="data-rc-order",Wy="data-rc-priority",ET="rc-util-key",jh=new Map;function KS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ET}function bf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function av(e){return Array.from((jh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function XS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sn())return null;var r=t.csp,n=t.prepend,i=t.priority,l=i===void 0?0:i,s=RT(n),c=s==="prependQueue",f=document.createElement("style");f.setAttribute(Uy,s),c&&l&&f.setAttribute(Wy,"".concat(l)),r!=null&&r.nonce&&(f.nonce=r==null?void 0:r.nonce),f.innerHTML=e;var p=bf(t),h=p.firstChild;if(n){if(c){var g=(t.styles||av(p)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(Uy)))return!1;var x=Number(y.getAttribute(Wy)||0);return l>=x});if(g.length)return p.insertBefore(f,g[g.length-1].nextSibling),f}p.insertBefore(f,h)}else p.appendChild(f);return f}function QS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=bf(t);return(t.styles||av(r)).find(function(n){return n.getAttribute(KS(t))===e})}function As(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=QS(e,t);if(r){var n=bf(t);n.removeChild(r)}}function OT(e,t){var r=jh.get(e);if(!r||!xT(document,r)){var n=XS("",t),i=n.parentNode;jh.set(e,i),e.removeChild(n)}}function Do(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=bf(r),i=av(n),l=oe(oe({},r),{},{styles:i});OT(n,l);var s=QS(t,l);if(s){var c,f;if((c=l.csp)!==null&&c!==void 0&&c.nonce&&s.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var p;s.nonce=(p=l.csp)===null||p===void 0?void 0:p.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var h=XS(e,l);return h.setAttribute(KS(l),t),h}function TT(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function kr(e,t){if(e==null)return{};var r,n,i=TT(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Dh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=n.has(l);if(En(!f,"Warning: There may be circular references"),f)return!1;if(l===s)return!0;if(r&&c>1)return!1;n.add(l);var p=c+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var h=0;h<l.length;h++)if(!i(l[h],s[h],p))return!1;return!0}if(l&&s&&rt(l)==="object"&&rt(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(y){return i(l[y],s[y],p)})}return!1}return i(e,t)}var PT="%";function zh(e){return e.join(PT)}var $T=function(){function e(t){xr(this,e),Z(this,"instanceId",void 0),Z(this,"cache",new Map),this.instanceId=t}return Er(e,[{key:"get",value:function(r){return this.opGet(zh(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(zh(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),l=n(i);l===null?this.cache.delete(r):this.cache.set(r,l)}}]),e}(),il="data-token-hash",lo="data-css-hash",mi="__cssinjs_instance__";function _T(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(lo,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[mi]=i[mi]||e,i[mi]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(lo,"]"))).forEach(function(i){var l=i.getAttribute(lo);if(n[l]){if(i[mi]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else n[l]=!0})}return new $T(e)}var Sf=m.createContext({hashPriority:"low",cache:_T(),defaultCache:!0});function MT(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var lv=function(){function e(){xr(this,e),Z(this,"cache",void 0),Z(this,"keys",void 0),Z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Er(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(c){if(!s)s=void 0;else{var f;s=(f=s)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(c)}}),(n=s)!==null&&n!==void 0&&n.value&&l&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(p,h){var g=xe(p,2),y=g[1];return i.internalGet(h)[1]<y?[h,i.internalGet(h)[1]]:p},[this.keys[0],this.cacheCallTimes]),s=xe(l,1),c=s[0];this.delete(c)}this.keys.push(r)}var f=this.cache;r.forEach(function(p,h){if(h===r.length-1)f.set(p,{value:[n,i.cacheCallTimes++]});else{var g=f.get(p);g?g.map||(g.map=new Map):f.set(p,{map:new Map}),f=f.get(p).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var l;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(l=i.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!MT(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();Z(lv,"MAX_CACHE_SIZE",20);Z(lv,"MAX_CACHE_OFFSET",5);var qy=0,YS=function(){function e(t){xr(this,e),Z(this,"derivatives",void 0),Z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=qy,t.length===0&&(t.length>0,void 0),qy+=1}return Er(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),Rp=new lv;function Hh(e){var t=Array.isArray(e)?e:[e];return Rp.has(t)||Rp.set(t,new YS(t)),Rp.get(t)}var AT=new WeakMap,Op={};function IT(e,t){for(var r=AT,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Op)||r.set(Op,e()),r.get(Op)}var Gy=new WeakMap;function Ss(e){var t=Gy.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof YS?t+=n.id:n&&rt(n)==="object"?t+=Ss(n):t+=n}),t=Ms(t),Gy.set(e,t)),t}function Ky(e,t){return Ms("".concat(t,"_").concat(Ss(e)))}var Bh=sn();function at(e){return typeof e=="number"?"".concat(e,"px"):e}function Xc(e,t,r){var n,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(l)return e;var s=oe(oe({},i),{},(n={},Z(n,il,t),Z(n,lo,r),n)),c=Object.keys(s).map(function(f){var p=s[f];return p?"".concat(f,'="').concat(p,'"'):null}).filter(function(f){return f}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var Ac=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").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()},FT=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(i){var l=xe(i,2),s=l[0],c=l[1];return"".concat(s,":").concat(c,";")}).join(""),"}"):""},JS=function(t,r,n){var i={},l={};return Object.entries(t).forEach(function(s){var c,f,p=xe(s,2),h=p[0],g=p[1];if(n!=null&&(c=n.preserve)!==null&&c!==void 0&&c[h])l[h]=g;else if((typeof g=="string"||typeof g=="number")&&!(n!=null&&(f=n.ignore)!==null&&f!==void 0&&f[h])){var y,x=Ac(h,n==null?void 0:n.prefix);i[x]=typeof g=="number"&&!(n!=null&&(y=n.unitless)!==null&&y!==void 0&&y[h])?"".concat(g,"px"):String(g),l[h]="var(".concat(x,")")}}),[l,FT(i,r,{scope:n==null?void 0:n.scope})]},Xy=sn()?m.useLayoutEffect:m.useEffect,Wt=function(t,r){var n=m.useRef(!0);Xy(function(){return t(n.current)},r),Xy(function(){return n.current=!1,function(){n.current=!0}},[])},Qy=function(t,r){Wt(function(n){if(!n)return t()},r)},LT=oe({},ff),Yy=LT.useInsertionEffect,kT=function(t,r,n){m.useMemo(t,n),Wt(function(){return r(!0)},n)},NT=Yy?function(e,t,r){return Yy(function(){return e(),t()},r)}:kT,jT=oe({},ff),DT=jT.useInsertionEffect,zT=function(t){var r=[],n=!1;function i(l){n||r.push(l)}return m.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(l){return l()})}},t),i},HT=function(){return function(t){t()}},BT=typeof DT<"u"?zT:HT;function sv(e,t,r,n,i){var l=m.useContext(Sf),s=l.cache,c=[e].concat(Ne(t)),f=zh(c),p=BT([f]),h=function(w){s.opUpdate(f,function(C){var S=C||[void 0,void 0],E=xe(S,2),T=E[0],O=T===void 0?0:T,_=E[1],R=_,$=R||r(),M=[O,$];return w?w(M):M})};m.useMemo(function(){h()},[f]);var g=s.opGet(f),y=g[1];return NT(function(){i==null||i(y)},function(x){return h(function(w){var C=xe(w,2),S=C[0],E=C[1];return x&&S===0&&(i==null||i(y)),[S+1,E]}),function(){s.opUpdate(f,function(w){var C=w||[],S=xe(C,2),E=S[0],T=E===void 0?0:E,O=S[1],_=T-1;return _===0?(p(function(){(x||!s.opGet(f))&&(n==null||n(O,!1))}),null):[T-1,O]})}},[f]),y}var VT={},UT="css",qi=new Map;function WT(e){qi.set(e,(qi.get(e)||0)+1)}function qT(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(il,'="').concat(e,'"]'));r.forEach(function(n){if(n[mi]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var GT=0;function KT(e,t){qi.set(e,(qi.get(e)||0)-1);var r=Array.from(qi.keys()),n=r.filter(function(i){var l=qi.get(i)||0;return l<=0});r.length-n.length>GT&&n.forEach(function(i){qT(i,t),qi.delete(i)})}var XT=function(t,r,n,i){var l=n.getDerivativeToken(t),s=oe(oe({},l),r);return i&&(s=i(s)),s},ZS="token";function QT(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=m.useContext(Sf),i=n.cache.instanceId,l=n.container,s=r.salt,c=s===void 0?"":s,f=r.override,p=f===void 0?VT:f,h=r.formatToken,g=r.getComputedToken,y=r.cssVar,x=IT(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),w=Ss(x),C=Ss(p),S=y?Ss(y):"",E=sv(ZS,[c,e.id,w,C,S],function(){var T,O=g?g(x,p,e):XT(x,p,e,h),_=oe({},O),R="";if(y){var $=JS(O,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),M=xe($,2);O=M[0],R=M[1]}var I=Ky(O,c);O._tokenKey=I,_._tokenKey=Ky(_,c);var L=(T=y==null?void 0:y.key)!==null&&T!==void 0?T:I;O._themeKey=L,WT(L);var V="".concat(UT,"-").concat(Ms(I));return O._hashId=V,[O,V,_,R,(y==null?void 0:y.key)||""]},function(T){KT(T[0]._themeKey,i)},function(T){var O=xe(T,4),_=O[0],R=O[3];if(y&&R){var $=Do(R,Ms("css-variables-".concat(_._themeKey)),{mark:lo,prepend:"queue",attachTo:l,priority:-999});$[mi]=i,$.setAttribute(il,_._themeKey)}});return E}var YT=function(t,r,n){var i=xe(t,5),l=i[2],s=i[3],c=i[4],f=n||{},p=f.plain;if(!s)return null;var h=l._tokenKey,g=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},x=Xc(s,c,h,y,p);return[g,h,x]},JT={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},ew="comm",tw="rule",rw="decl",ZT="@import",eP="@keyframes",tP="@layer",nw=Math.abs,uv=String.fromCharCode;function ow(e){return e.trim()}function Ic(e,t,r){return e.replace(t,r)}function rP(e,t,r){return e.indexOf(t,r)}function Is(e,t){return e.charCodeAt(t)|0}function al(e,t,r){return e.slice(t,r)}function Co(e){return e.length}function nP(e){return e.length}function lc(e,t){return t.push(e),e}var wf=1,ll=1,iw=0,Un=0,fr=0,ml="";function cv(e,t,r,n,i,l,s,c){return{value:e,root:t,parent:r,type:n,props:i,children:l,line:wf,column:ll,length:s,return:"",siblings:c}}function oP(){return fr}function iP(){return fr=Un>0?Is(ml,--Un):0,ll--,fr===10&&(ll=1,wf--),fr}function so(){return fr=Un<iw?Is(ml,Un++):0,ll++,fr===10&&(ll=1,wf++),fr}function vi(){return Is(ml,Un)}function Fc(){return Un}function Cf(e,t){return al(ml,e,t)}function Fs(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 aP(e){return wf=ll=1,iw=Co(ml=e),Un=0,[]}function lP(e){return ml="",e}function Tp(e){return ow(Cf(Un-1,Vh(e===91?e+2:e===40?e+1:e)))}function sP(e){for(;(fr=vi())&&fr<33;)so();return Fs(e)>2||Fs(fr)>3?"":" "}function uP(e,t){for(;--t&&so()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return Cf(e,Fc()+(t<6&&vi()==32&&so()==32))}function Vh(e){for(;so();)switch(fr){case e:return Un;case 34:case 39:e!==34&&e!==39&&Vh(fr);break;case 40:e===41&&Vh(e);break;case 92:so();break}return Un}function cP(e,t){for(;so()&&e+fr!==57;)if(e+fr===84&&vi()===47)break;return"/*"+Cf(t,Un-1)+"*"+uv(e===47?e:so())}function fP(e){for(;!Fs(vi());)so();return Cf(e,Un)}function dP(e){return lP(Lc("",null,null,null,[""],e=aP(e),0,[0],e))}function Lc(e,t,r,n,i,l,s,c,f){for(var p=0,h=0,g=s,y=0,x=0,w=0,C=1,S=1,E=1,T=0,O="",_=i,R=l,$=n,M=O;S;)switch(w=T,T=so()){case 40:if(w!=108&&Is(M,g-1)==58){rP(M+=Ic(Tp(T),"&","&\f"),"&\f",nw(p?c[p-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:M+=Tp(T);break;case 9:case 10:case 13:case 32:M+=sP(w);break;case 92:M+=uP(Fc()-1,7);continue;case 47:switch(vi()){case 42:case 47:lc(pP(cP(so(),Fc()),t,r,f),f),(Fs(w||1)==5||Fs(vi()||1)==5)&&Co(M)&&al(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*C:c[p++]=Co(M)*E;case 125*C:case 59:case 0:switch(T){case 0:case 125:S=0;case 59+h:E==-1&&(M=Ic(M,/\f/g,"")),x>0&&(Co(M)-g||C===0&&w===47)&&lc(x>32?Zy(M+";",n,r,g-1,f):Zy(Ic(M," ","")+";",n,r,g-2,f),f);break;case 59:M+=";";default:if(lc($=Jy(M,t,r,p,h,i,c,O,_=[],R=[],g,l),l),T===123)if(h===0)Lc(M,t,$,$,_,l,g,c,R);else switch(y===99&&Is(M,3)===110?100:y){case 100:case 108:case 109:case 115:Lc(e,$,$,n&&lc(Jy(e,$,$,0,0,i,c,O,i,_=[],g,R),R),i,R,g,c,n?_:R);break;default:Lc(M,$,$,$,[""],R,0,c,R)}}p=h=x=0,C=E=1,O=M="",g=s;break;case 58:g=1+Co(M),x=w;default:if(C<1){if(T==123)--C;else if(T==125&&C++==0&&iP()==125)continue}switch(M+=uv(T),T*C){case 38:E=h>0?1:(M+="\f",-1);break;case 44:c[p++]=(Co(M)-1)*E,E=1;break;case 64:vi()===45&&(M+=Tp(so())),y=vi(),h=g=Co(O=M+=fP(Fc())),T++;break;case 45:w===45&&Co(M)==2&&(C=0)}}return l}function Jy(e,t,r,n,i,l,s,c,f,p,h,g){for(var y=i-1,x=i===0?l:[""],w=nP(x),C=0,S=0,E=0;C<n;++C)for(var T=0,O=al(e,y+1,y=nw(S=s[C])),_=e;T<w;++T)(_=ow(S>0?x[T]+" "+O:Ic(O,/&\f/g,x[T])))&&(f[E++]=_);return cv(e,t,r,i===0?tw:c,f,p,h,g)}function pP(e,t,r,n){return cv(e,t,r,ew,uv(oP()),al(e,2,-2),0,n)}function Zy(e,t,r,n,i){return cv(e,t,r,rw,al(e,0,n),al(e,n+1,-1),n,i)}function Uh(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function hP(e,t,r,n){switch(e.type){case tP:if(e.children.length)break;case ZT:case rw:return e.return=e.return||e.value;case ew:return"";case eP:return e.return=e.value+"{"+Uh(e.children,n)+"}";case tw:if(!Co(e.value=e.props.join(",")))return""}return Co(r=Uh(e.children,n))?e.return=e.value+"{"+r+"}":""}var e1="data-ant-cssinjs-cache-path",aw="_FILE_STYLE__",Yi,lw=!0;function mP(){if(!Yi&&(Yi={},sn())){var e=document.createElement("div");e.className=e1,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(i){var l=i.split(":"),s=xe(l,2),c=s[0],f=s[1];Yi[c]=f});var r=document.querySelector("style[".concat(e1,"]"));if(r){var n;lw=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function vP(e){return mP(),!!Yi[e]}function gP(e){var t=Yi[e],r=null;if(t&&sn())if(lw)r=aw;else{var n=document.querySelector("style[".concat(lo,'="').concat(Yi[e],'"]'));n?r=n.innerHTML:delete Yi[e]}return[r,t]}var yP="_skip_check_",sw="_multi_value_";function kc(e){var t=Uh(dP(e),hP);return t.replace(/\{%%%\:[^;];}/g,";")}function bP(e){return rt(e)==="object"&&e&&(yP in e||sw in e)}function t1(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,l=e.split(",").map(function(s){var c,f=s.trim().split(/\s+/),p=f[0]||"",h=((c=p.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return p="".concat(h).concat(i).concat(p.slice(h.length)),[p].concat(Ne(f.slice(1))).join(" ")});return l.join(",")}var SP=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,f=r.layer;r.path;var p=r.hashPriority,h=r.transformers,g=h===void 0?[]:h;r.linters;var y="",x={};function w(E){var T=E.getName(c);if(!x[T]){var O=e(E.style,r,{root:!1,parentSelectors:s}),_=xe(O,1),R=_[0];x[T]="@keyframes ".concat(E.getName(c)).concat(R)}}function C(E){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(O){Array.isArray(O)?C(O,T):O&&T.push(O)}),T}var S=C(Array.isArray(t)?t:[t]);return S.forEach(function(E){var T=typeof E=="string"&&!i?{}:E;if(typeof T=="string")y+="".concat(T,` `);else if(T._keyframe)w(T);else{var O=g.reduce(function(_,R){var $;return(R==null||($=R.visit)===null||$===void 0?void 0:$.call(R,_))||_},T);Object.keys(O).forEach(function(_){var R=O[_];if(rt(R)==="object"&&R&&(_!=="animationName"||!R._keyframe)&&!bP(R)){var $=!1,M=_.trim(),I=!1;(i||l)&&c?M.startsWith("@")?$=!0:M==="&"?M=t1("",c,p):M=t1(_,c,p):i&&!c&&(M==="&"||M==="")&&(M="",I=!0);var L=e(R,r,{root:I,injectHash:$,parentSelectors:[].concat(Ne(s),[M])}),V=xe(L,2),X=V[0],ee=V[1];x=oe(oe({},x),ee),y+="".concat(M).concat(X)}else{let J=function(z,k){var F=z.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),H=k;!JT[z]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),z==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(w(k),H=k.getName(c)),y+="".concat(F,":").concat(H,";")};var K,W=(K=R==null?void 0:R.value)!==null&&K!==void 0?K:R;rt(R)==="object"&&R!==null&&R!==void 0&&R[sw]&&Array.isArray(W)?W.forEach(function(z){J(_,z)}):J(_,W)}})}}),i?f&&(y="@layer ".concat(f.name," {").concat(y,"}"),f.dependencies&&(x["@layer ".concat(f.name)]=f.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(f.name,";")}).join(` `))):y="{".concat(y,"}"),[y,x]};function uw(e,t){return Ms("".concat(e.join("%")).concat(t))}function wP(){return null}var cw="style";function Wh(e,t){var r=e.token,n=e.path,i=e.hashId,l=e.layer,s=e.nonce,c=e.clientOnly,f=e.order,p=f===void 0?0:f,h=m.useContext(Sf),g=h.autoClear;h.mock;var y=h.defaultCache,x=h.hashPriority,w=h.container,C=h.ssrInline,S=h.transformers,E=h.linters,T=h.cache,O=h.layer,_=r._tokenKey,R=[_];O&&R.push("layer"),R.push.apply(R,Ne(n));var $=Bh,M=sv(cw,R,function(){var ee=R.join("|");if(vP(ee)){var K=gP(ee),W=xe(K,2),J=W[0],z=W[1];if(J)return[J,_,z,{},c,p]}var k=t(),F=SP(k,{hashId:i,hashPriority:x,layer:O?l:void 0,path:n.join("-"),transformers:S,linters:E}),H=xe(F,2),j=H[0],A=H[1],D=kc(j),ie=uw(R,D);return[D,_,ie,A,c,p]},function(ee,K){var W=xe(ee,3),J=W[2];(K||g)&&Bh&&As(J,{mark:lo})},function(ee){var K=xe(ee,4),W=K[0];K[1];var J=K[2],z=K[3];if($&&W!==aw){var k={mark:lo,prepend:O?!1:"queue",attachTo:w,priority:p},F=typeof s=="function"?s():s;F&&(k.csp={nonce:F});var H=[],j=[];Object.keys(z).forEach(function(D){D.startsWith("@layer")?H.push(D):j.push(D)}),H.forEach(function(D){Do(kc(z[D]),"_layer-".concat(D),oe(oe({},k),{},{prepend:!0}))});var A=Do(W,J,k);A[mi]=T.instanceId,A.setAttribute(il,_),j.forEach(function(D){Do(kc(z[D]),"_effect-".concat(D),k)})}}),I=xe(M,3),L=I[0],V=I[1],X=I[2];return function(ee){var K;if(!C||$||!y)K=m.createElement(wP,null);else{var W;K=m.createElement("style",It({},(W={},Z(W,il,V),Z(W,lo,X),W),{dangerouslySetInnerHTML:{__html:L}}))}return m.createElement(m.Fragment,null,K,ee)}}var CP=function(t,r,n){var i=xe(t,6),l=i[0],s=i[1],c=i[2],f=i[3],p=i[4],h=i[5],g=n||{},y=g.plain;if(p)return null;var x=l,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return x=Xc(l,s,c,w,y),f&&Object.keys(f).forEach(function(C){if(!r[C]){r[C]=!0;var S=kc(f[C]),E=Xc(S,s,"_effect-".concat(C),w,y);C.startsWith("@layer")?x=E+x:x+=E}}),[h,c,x]},fw="cssVar",xP=function(t,r){var n=t.key,i=t.prefix,l=t.unitless,s=t.ignore,c=t.token,f=t.scope,p=f===void 0?"":f,h=m.useContext(Sf),g=h.cache.instanceId,y=h.container,x=c._tokenKey,w=[].concat(Ne(t.path),[n,p,x]),C=sv(fw,w,function(){var S=r(),E=JS(S,n,{prefix:i,unitless:l,ignore:s,scope:p}),T=xe(E,2),O=T[0],_=T[1],R=uw(w,_);return[O,_,R,n]},function(S){var E=xe(S,3),T=E[2];Bh&&As(T,{mark:lo})},function(S){var E=xe(S,3),T=E[1],O=E[2];if(T){var _=Do(T,O,{mark:lo,prepend:"queue",attachTo:y,priority:-999});_[mi]=g,_.setAttribute(il,n)}});return C},EP=function(t,r,n){var i=xe(t,4),l=i[1],s=i[2],c=i[3],f=n||{},p=f.plain;if(!l)return null;var h=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},y=Xc(l,c,s,g,p);return[h,s,y]},ss;ss={},Z(ss,cw,CP),Z(ss,ZS,YT),Z(ss,fw,EP);var qn=function(){function e(t,r){xr(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=r}return Er(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Ha(e){return e.notSplit=!0,e}Ha(["borderTop","borderBottom"]),Ha(["borderTop"]),Ha(["borderBottom"]),Ha(["borderLeft","borderRight"]),Ha(["borderLeft"]),Ha(["borderRight"]);var fv=m.createContext({});function RP(e){return qS(e)||BS(e)||ov(e)||GS()}function Hn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function dw(e,t,r,n){if(!t.length)return r;var i=RP(t),l=i[0],s=i.slice(1),c;return!e&&typeof l=="number"?c=[]:Array.isArray(e)?c=Ne(e):c=oe({},e),n&&r===void 0&&s.length===1?delete c[l][s[0]]:c[l]=dw(c[l],s,r,n),c}function zn(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Hn(e,t.slice(0,-1))?e:dw(e,t,r,n)}function OP(e){return rt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function r1(e){return Array.isArray(e)?[]:{}}var TP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=r1(t[0]);return t.forEach(function(i){function l(s,c){var f=new Set(c),p=Hn(i,s),h=Array.isArray(p);if(h||OP(p)){if(!f.has(p)){f.add(p);var g=Hn(n,s);h?n=zn(n,s,[]):(!g||rt(g)!=="object")&&(n=zn(n,s,r1(p))),TP(p).forEach(function(y){l([].concat(Ne(s),[y]),f)})}}else n=zn(n,s,p)}l([])}),n}function PP(){}const $P=m.createContext({}),dv=()=>{const e=()=>{};return e.deprecated=PP,e},pw=m.createContext(void 0);var _P={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"},MP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},AP=oe(oe({},MP),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const hw={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},n1={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"]},AP),timePickerLocale:Object.assign({},hw)},gn="${label} is not a valid ${type}",ta={locale:"en",Pagination:_P,DatePicker:n1,TimePicker:hw,Calendar:n1,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:gn,method:gn,array:gn,object:gn,number:gn,date:gn,boolean:gn,integer:gn,float:gn,regexp:gn,email:gn,url:gn,hex:gn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},ta.Modal);let Nc=[];const o1=()=>Nc.reduce((e,t)=>Object.assign(Object.assign({},e),t),ta.Modal);function IP(e){if(e){const t=Object.assign({},e);return Nc.push(t),o1(),()=>{Nc=Nc.filter(r=>r!==t),o1()}}Object.assign({},ta.Modal)}const pv=m.createContext(void 0),mw=(e,t)=>{const r=m.useContext(pv),n=m.useMemo(()=>{var l;const s=ta[e],c=(l=r==null?void 0:r[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),c||{})},[e,t,r]),i=m.useMemo(()=>{const l=r==null?void 0:r.locale;return r!=null&&r.exist&&!l?ta.locale:l},[r]);return[n,i]},FP="internalMark",LP=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;m.useEffect(()=>IP(t==null?void 0:t.Modal),[t]);const i=m.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m.createElement(pv.Provider,{value:i},r)};function Pr(e,t){kP(e)&&(e="100%");var r=NP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 sc(e){return Math.min(1,Math.max(0,e))}function kP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function NP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function vw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ki(e){return e.length===1?"0"+e:String(e)}function jP(e,t,r){return{r:Pr(e,255)*255,g:Pr(t,255)*255,b:Pr(r,255)*255}}function i1(e,t,r){e=Pr(e,255),t=Pr(t,255),r=Pr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),l=0,s=0,c=(n+i)/2;if(n===i)s=0,l=0;else{var f=n-i;switch(s=c>.5?f/(2-n-i):f/(n+i),n){case e:l=(t-r)/f+(t<r?6:0);break;case t:l=(r-e)/f+2;break;case r:l=(e-t)/f+4;break}l/=6}return{h:l,s,l:c}}function Pp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function DP(e,t,r){var n,i,l;if(e=Pr(e,360),t=Pr(t,100),r=Pr(r,100),t===0)i=r,l=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=Pp(c,s,e+1/3),i=Pp(c,s,e),l=Pp(c,s,e-1/3)}return{r:n*255,g:i*255,b:l*255}}function qh(e,t,r){e=Pr(e,255),t=Pr(t,255),r=Pr(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),l=0,s=n,c=n-i,f=n===0?0:c/n;if(n===i)l=0;else{switch(n){case e:l=(t-r)/c+(t<r?6:0);break;case t:l=(r-e)/c+2;break;case r:l=(e-t)/c+4;break}l/=6}return{h:l,s:f,v:s}}function zP(e,t,r){e=Pr(e,360)*6,t=Pr(t,100),r=Pr(r,100);var n=Math.floor(e),i=e-n,l=r*(1-t),s=r*(1-i*t),c=r*(1-(1-i)*t),f=n%6,p=[r,s,l,l,c,r][f],h=[c,r,r,s,l,l][f],g=[l,l,c,r,r,s][f];return{r:p*255,g:h*255,b:g*255}}function Gh(e,t,r,n){var i=[Ki(Math.round(e).toString(16)),Ki(Math.round(t).toString(16)),Ki(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function HP(e,t,r,n,i){var l=[Ki(Math.round(e).toString(16)),Ki(Math.round(t).toString(16)),Ki(Math.round(r).toString(16)),Ki(BP(n))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function BP(e){return Math.round(parseFloat(e)*255).toString(16)}function a1(e){return Sn(e)/255}function Sn(e){return parseInt(e,16)}function VP(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Kh={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 Ka(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,l=null,s=!1,c=!1;return typeof e=="string"&&(e=qP(e)),typeof e=="object"&&(No(e.r)&&No(e.g)&&No(e.b)?(t=jP(e.r,e.g,e.b),s=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):No(e.h)&&No(e.s)&&No(e.v)?(n=uc(e.s),i=uc(e.v),t=zP(e.h,n,i),s=!0,c="hsv"):No(e.h)&&No(e.s)&&No(e.l)&&(n=uc(e.s),l=uc(e.l),t=DP(e.h,n,l),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=vw(r),{ok:s,format:e.format||c,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:r}}var UP="[-\\+]?\\d+%?",WP="[-\\+]?\\d*\\.\\d+%?",gi="(?:".concat(WP,")|(?:").concat(UP,")"),$p="[\\s|\\(]+(".concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")\\s*\\)?"),_p="[\\s|\\(]+(".concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")\\s*\\)?"),to={CSS_UNIT:new RegExp(gi),rgb:new RegExp("rgb"+$p),rgba:new RegExp("rgba"+_p),hsl:new RegExp("hsl"+$p),hsla:new RegExp("hsla"+_p),hsv:new RegExp("hsv"+$p),hsva:new RegExp("hsva"+_p),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 qP(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Kh[e])e=Kh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=to.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=to.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=to.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=to.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=to.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=to.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=to.hex8.exec(e),r?{r:Sn(r[1]),g:Sn(r[2]),b:Sn(r[3]),a:a1(r[4]),format:t?"name":"hex8"}:(r=to.hex6.exec(e),r?{r:Sn(r[1]),g:Sn(r[2]),b:Sn(r[3]),format:t?"name":"hex"}:(r=to.hex4.exec(e),r?{r:Sn(r[1]+r[1]),g:Sn(r[2]+r[2]),b:Sn(r[3]+r[3]),a:a1(r[4]+r[4]),format:t?"name":"hex8"}:(r=to.hex3.exec(e),r?{r:Sn(r[1]+r[1]),g:Sn(r[2]+r[2]),b:Sn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function No(e){return!!to.CSS_UNIT.exec(String(e))}var Kr=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=VP(t)),this.originalInput=t;var i=Ka(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,l=t.r/255,s=t.g/255,c=t.b/255;return l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=vw(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=qh(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=qh(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=i1(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=i1(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Gh(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),HP(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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Pr(r,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(r){return Math.round(Pr(r,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="#"+Gh(this.r,this.g,this.b,!1),r=0,n=Object.entries(Kh);r<n.length;r++){var i=n[r],l=i[0],s=i[1];if(t===s)return l}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,l=!r&&i&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=sc(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=sc(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=sc(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=sc(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),l=r/100,s={r:(i.r-n.r)*l+n.r,g:(i.g-n.g)*l+n.g,b:(i.b-n.b)*l+n.b,a:(i.a-n.a)*l+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,l=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,l.push(new e(n));return l},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 r=this.toHsv(),n=r.h,i=r.s,l=r.v,s=[],c=1/t;t--;)s.push(new e({h:n,s:i,v:l})),l=(l+c)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],l=360/t,s=1;s<t;s++)i.push(new e({h:(n+s*l)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),cc=2,l1=.16,GP=.05,KP=.05,XP=.15,gw=5,yw=4,QP=[{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 s1(e){var t=e.r,r=e.g,n=e.b,i=qh(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function fc(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Gh(t,r,n,!1))}function YP(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function u1(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-cc*t:Math.round(e.h)+cc*t:n=r?Math.round(e.h)+cc*t:Math.round(e.h)-cc*t,n<0?n+=360:n>=360&&(n-=360),n}function c1(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-l1*t:t===yw?n=e.s+l1:n=e.s+GP*t,n>1&&(n=1),r&&t===gw&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function f1(e,t,r){var n;return r?n=e.v+KP*t:n=e.v-XP*t,n>1&&(n=1),Number(n.toFixed(2))}function Ls(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Ka(e),i=gw;i>0;i-=1){var l=s1(n),s=fc(Ka({h:u1(l,i,!0),s:c1(l,i,!0),v:f1(l,i,!0)}));r.push(s)}r.push(fc(n));for(var c=1;c<=yw;c+=1){var f=s1(n),p=fc(Ka({h:u1(f,c),s:c1(f,c),v:f1(f,c)}));r.push(p)}return t.theme==="dark"?QP.map(function(h){var g=h.index,y=h.opacity,x=fc(YP(Ka(t.backgroundColor||"#141414"),Ka(r[g]),y*100));return x}):r}var Mp={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"},Xh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Xh.primary=Xh[5];var Qh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Qh.primary=Qh[5];var Yh=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Yh.primary=Yh[5];var Qc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qc.primary=Qc[5];var Jh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jh.primary=Jh[5];var Zh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Zh.primary=Zh[5];var em=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];em.primary=em[5];var tm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];tm.primary=tm[5];var Yc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Yc.primary=Yc[5];var rm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];rm.primary=rm[5];var nm=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];nm.primary=nm[5];var om=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];om.primary=om[5];var im=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];im.primary=im[5];var Ap={red:Xh,volcano:Qh,orange:Yh,gold:Qc,yellow:Jh,lime:Zh,green:em,cyan:tm,blue:Yc,geekblue:rm,purple:nm,magenta:om,grey:im};const bw={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"},ks=Object.assign(Object.assign({},bw),{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 JP(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:l,colorError:s,colorInfo:c,colorPrimary:f,colorBgBase:p,colorTextBase:h}=e,g=r(f),y=r(i),x=r(l),w=r(s),C=r(c),S=n(p,h),E=e.colorLink||e.colorInfo,T=r(E),O=new Kr(w[1]).mix(new Kr(w[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:w[1],colorErrorBgHover:w[2],colorErrorBgFilledHover:O,colorErrorBgActive:w[3],colorErrorBorder:w[3],colorErrorBorderHover:w[4],colorErrorHover:w[5],colorError:w[6],colorErrorActive:w[7],colorErrorTextHover:w[8],colorErrorText:w[9],colorErrorTextActive:w[10],colorWarningBg:x[1],colorWarningBgHover:x[2],colorWarningBorder:x[3],colorWarningBorderHover:x[4],colorWarningHover:x[4],colorWarning:x[6],colorWarningActive:x[7],colorWarningTextHover:x[8],colorWarningText:x[9],colorWarningTextActive:x[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:T[4],colorLink:T[6],colorLinkActive:T[7],colorBgMask:new Kr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const ZP=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function e$(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},ZP(n))}const t$=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function jc(e){return(e+8)/e}function r$(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,l=e*Math.pow(Math.E,i/5),s=n>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:jc(r)}))}const n$=e=>{const t=r$(e),r=t.map(h=>h.size),n=t.map(h=>h.lineHeight),i=r[1],l=r[0],s=r[2],c=n[1],f=n[0],p=n[2];return{fontSizeSM:l,fontSize:i,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:p,lineHeightSM:f,fontHeight:Math.round(c*i),fontHeightLG:Math.round(p*s),fontHeightSM:Math.round(f*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function o$(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const kn=(e,t)=>new Kr(e).setAlpha(t).toRgbString(),us=(e,t)=>new Kr(e).darken(t).toHexString(),i$=e=>{const t=Ls(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]}},a$=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:kn(n,.88),colorTextSecondary:kn(n,.65),colorTextTertiary:kn(n,.45),colorTextQuaternary:kn(n,.25),colorFill:kn(n,.15),colorFillSecondary:kn(n,.06),colorFillTertiary:kn(n,.04),colorFillQuaternary:kn(n,.02),colorBgSolid:kn(n,1),colorBgSolidHover:kn(n,.75),colorBgSolidActive:kn(n,.95),colorBgLayout:us(r,4),colorBgContainer:us(r,0),colorBgElevated:us(r,0),colorBgSpotlight:kn(n,.85),colorBgBlur:"transparent",colorBorder:us(r,15),colorBorderSecondary:us(r,6)}};function l$(e){Mp.pink=Mp.magenta,Ap.pink=Ap.magenta;const t=Object.keys(bw).map(r=>{const n=e[r]===Mp[r]?Ap[r]:Ls(e[r]);return new Array(10).fill(1).reduce((i,l,s)=>(i[`${r}-${s+1}`]=n[s],i[`${r}${s+1}`]=n[s],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),JP(e,{generateColorPalettes:i$,generateNeutralColorPalettes:a$})),n$(e.fontSize)),o$(e)),t$(e)),e$(e))}const Sw=Hh(l$),am={token:ks,override:{override:ks},hashed:!0},ww=ve.createContext(am),Ns="ant",Cw="anticon",s$=["outlined","borderless","filled"],u$=(e,t)=>t||(e?`${Ns}-${e}`:Ns),zt=m.createContext({getPrefixCls:u$,iconPrefixCls:Cw}),c$=`-ant-${Date.now()}-${Math.random()}`;function f$(e,t){const r={},n=(s,c)=>{let f=s.clone();return f=(c==null?void 0:c(f))||f,f.toRgbString()},i=(s,c)=>{const f=new Kr(s),p=Ls(f.toRgbString());r[`${c}-color`]=n(f),r[`${c}-color-disabled`]=p[1],r[`${c}-color-hover`]=p[4],r[`${c}-color-active`]=p[6],r[`${c}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),r[`${c}-color-deprecated-bg`]=p[0],r[`${c}-color-deprecated-border`]=p[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new Kr(t.primaryColor),c=Ls(s.toRgbString());c.forEach((p,h)=>{r[`primary-${h+1}`]=p}),r["primary-color-deprecated-l-35"]=n(s,p=>p.lighten(35)),r["primary-color-deprecated-l-20"]=n(s,p=>p.lighten(20)),r["primary-color-deprecated-t-20"]=n(s,p=>p.tint(20)),r["primary-color-deprecated-t-50"]=n(s,p=>p.tint(50)),r["primary-color-deprecated-f-12"]=n(s,p=>p.setAlpha(p.getAlpha()*.12));const f=new Kr(c[0]);r["primary-color-active-deprecated-f-30"]=n(f,p=>p.setAlpha(p.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(f,p=>p.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(` `)} } `.trim()}function d$(e,t){const r=f$(e,t);sn()&&Do(r,`${c$}-dynamic-theme`)}const Si=m.createContext(!1),xw=e=>{let{children:t,disabled:r}=e;const n=m.useContext(Si);return m.createElement(Si.Provider,{value:r??n},t)},ra=m.createContext(void 0),p$=e=>{let{children:t,size:r}=e;const n=m.useContext(ra);return m.createElement(ra.Provider,{value:r||n},t)};function h$(){const e=m.useContext(Si),t=m.useContext(ra);return{componentDisabled:e,componentSize:t}}var Ew=Er(function e(){xr(this,e)}),Rw="CALC_UNIT",m$=new RegExp(Rw,"g");function Ip(e){return typeof e=="number"?"".concat(e).concat(Rw):e}var v$=function(e){xi(r,e);var t=Ei(r);function r(n,i){var l;xr(this,r),l=t.call(this),Z(ft(l),"result",""),Z(ft(l),"unitlessCssVar",void 0),Z(ft(l),"lowPriority",void 0);var s=rt(n);return l.unitlessCssVar=i,n instanceof r?l.result="(".concat(n.result,")"):s==="number"?l.result=Ip(n):s==="string"&&(l.result=n),l}return Er(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Ip(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Ip(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var l=this,s=i||{},c=s.unit,f=!0;return typeof c=="boolean"?f=c:Array.from(this.unitlessCssVar).some(function(p){return l.result.includes(p)})&&(f=!1),this.result=this.result.replace(m$,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ew),g$=function(e){xi(r,e);var t=Ei(r);function r(n){var i;return xr(this,r),i=t.call(this),Z(ft(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return Er(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r}(Ew),y$=function(t,r){var n=t==="css"?v$:g$;return function(i){return new n(i,r)}},d1=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Fr(e){var t=m.useRef();t.current=e;var r=m.useCallback(function(){for(var n,i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(l))},[]);return r}function sl(e){var t=m.useRef(!1),r=m.useState(e),n=xe(r,2),i=n[0],l=n[1];m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(c,f){f&&t.current||l(c)}return[i,s]}function Fp(e){return e!==void 0}function ul(e,t){var r=t||{},n=r.defaultValue,i=r.value,l=r.onChange,s=r.postState,c=sl(function(){return Fp(i)?i:Fp(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),f=xe(c,2),p=f[0],h=f[1],g=i!==void 0?i:p,y=s?s(g):g,x=Fr(l),w=sl([g]),C=xe(w,2),S=C[0],E=C[1];Qy(function(){var O=S[0];p!==O&&x(p,O)},[S]),Qy(function(){Fp(i)||h(i)},[i]);var T=Fr(function(O,_){h(O,_),E([g],_)});return[y,T]}function p1(e,t,r,n){var i=oe({},t[e]);if(n!=null&&n.deprecatedTokens){var l=n.deprecatedTokens;l.forEach(function(c){var f=xe(c,2),p=f[0],h=f[1];if(i!=null&&i[p]||i!=null&&i[h]){var g;(g=i[h])!==null&&g!==void 0||(i[h]=i==null?void 0:i[p])}})}var s=oe(oe({},r),i);return Object.keys(s).forEach(function(c){s[c]===t[c]&&delete s[c]}),s}var Ow=typeof CSSINJS_STATISTIC<"u",lm=!0;function Qr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Ow)return Object.assign.apply(Object,[{}].concat(t));lm=!1;var n={};return t.forEach(function(i){if(rt(i)==="object"){var l=Object.keys(i);l.forEach(function(s){Object.defineProperty(n,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),lm=!0,n}var h1={};function b$(){}var S$=function(t){var r,n=t,i=b$;return Ow&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(s,c){if(lm){var f;(f=r)===null||f===void 0||f.add(c)}return s[c]}}),i=function(s,c){var f;h1[s]={global:Array.from(r),component:oe(oe({},(f=h1[s])===null||f===void 0?void 0:f.component),c)}}),{token:n,keys:r,flush:i}};function m1(e,t,r){if(typeof r=="function"){var n;return r(Qr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function w$(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(l){return at(l)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(l){return at(l)}).join(","),")")}}}var C$=1e3*60*10,x$=function(){function e(){xr(this,e),Z(this,"map",new Map),Z(this,"objectIDMap",new WeakMap),Z(this,"nextID",0),Z(this,"lastAccessBeat",new Map),Z(this,"accessBeat",0)}return Er(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(l){return l&&rt(l)==="object"?"obj_".concat(n.getObjectID(l)):"".concat(rt(l),"_").concat(l)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,l){n-i>C$&&(r.map.delete(l),r.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),v1=new x$;function E$(e,t){return ve.useMemo(function(){var r=v1.get(t);if(r)return r;var n=e();return v1.set(t,n),n},t)}var R$=function(){return{}};function O$(e){var t=e.useCSP,r=t===void 0?R$:t,n=e.useToken,i=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,c=e.getCompUnitless;function f(y,x,w,C){var S=Array.isArray(y)?y[0]:y;function E(I){return"".concat(String(S)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var T=(C==null?void 0:C.unitless)||{},O=typeof c=="function"?c(y):{},_=oe(oe({},O),{},Z({},E("zIndexPopup"),!0));Object.keys(T).forEach(function(I){_[E(I)]=T[I]});var R=oe(oe({},C),{},{unitless:_,prefixToken:E}),$=h(y,x,w,R),M=p(S,w,R);return function(I){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,V=$(I,L),X=xe(V,2),ee=X[1],K=M(L),W=xe(K,2),J=W[0],z=W[1];return[J,ee,z]}}function p(y,x,w){var C=w.unitless,S=w.injectStyle,E=S===void 0?!0:S,T=w.prefixToken,O=w.ignore,_=function(M){var I=M.rootCls,L=M.cssVar,V=L===void 0?{}:L,X=n(),ee=X.realToken;return xP({path:[y],prefix:V.prefix,key:V.key,unitless:C,ignore:O,token:ee,scope:I},function(){var K=m1(y,ee,x),W=p1(y,ee,K,{deprecatedTokens:w==null?void 0:w.deprecatedTokens});return Object.keys(K).forEach(function(J){W[T(J)]=W[J],delete W[J]}),W}),null},R=function(M){var I=n(),L=I.cssVar;return[function(V){return E&&L?ve.createElement(ve.Fragment,null,ve.createElement(_,{rootCls:M,cssVar:L,component:y}),V):V},L==null?void 0:L.key]};return R}function h(y,x,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],E=xe(S,1),T=E[0],O=S.join("-"),_=e.layer||{name:"antd"};return function(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,M=n(),I=M.theme,L=M.realToken,V=M.hashId,X=M.token,ee=M.cssVar,K=i(),W=K.rootPrefixCls,J=K.iconPrefixCls,z=r(),k=ee?"css":"js",F=E$(function(){var Q=new Set;return ee&&Object.keys(C.unitless||{}).forEach(function(ae){Q.add(Ac(ae,ee.prefix)),Q.add(Ac(ae,d1(T,ee.prefix)))}),y$(k,Q)},[k,T,ee==null?void 0:ee.prefix]),H=w$(k),j=H.max,A=H.min,D={theme:I,token:X,hashId:V,nonce:function(){return z.nonce},clientOnly:C.clientOnly,layer:_,order:C.order||-999};Wh(oe(oe({},D),{},{clientOnly:!1,path:["Shared",W]}),function(){return typeof l=="function"?l(X):[]});var ie=Wh(oe(oe({},D),{},{path:[O,R,J]}),function(){if(C.injectStyle===!1)return[];var Q=S$(X),ae=Q.token,ue=Q.flush,se=m1(T,L,w),ce=".".concat(R),fe=p1(T,L,se,{deprecatedTokens:C.deprecatedTokens});ee&&se&&rt(se)==="object"&&Object.keys(se).forEach(function($e){se[$e]="var(".concat(Ac($e,d1(T,ee.prefix)),")")});var Se=Qr(ae,{componentCls:ce,prefixCls:R,iconCls:".".concat(J),antCls:".".concat(W),calc:F,max:j,min:A},ee?se:fe),De=x(Se,{hashId:V,prefixCls:R,rootPrefixCls:W,iconPrefixCls:J});ue(T,fe);var Pe=typeof s=="function"?s(Se,R,$,C.resetFont):null;return[C.resetStyle===!1?null:Pe,De]});return[ie,V]}}function g(y,x,w){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=h(y,x,w,oe({resetStyle:!1,order:-998},C)),E=function(O){var _=O.prefixCls,R=O.rootCls,$=R===void 0?_:R;return S(_,$),null};return E}return{genStyleHooks:f,genSubStyleComponent:g,genComponentStyleHook:h}}const Jc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],T$="5.22.2";function Lp(e){return e>=0&&e<=255}function dc(e,t){const{r,g:n,b:i,a:l}=new Kr(e).toRgb();if(l<1)return e;const{r:s,g:c,b:f}=new Kr(t).toRgb();for(let p=.01;p<=1;p+=.01){const h=Math.round((r-s*(1-p))/p),g=Math.round((n-c*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(Lp(h)&&Lp(g)&&Lp(y))return new Kr({r:h,g,b:y,a:Math.round(p*100)/100}).toRgbString()}return new Kr({r,g:n,b:i,a:1}).toRgbString()}var P$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Tw(e){const{override:t}=e,r=P$(e,["override"]),n=Object.assign({},t);Object.keys(ks).forEach(y=>{delete n[y]});const i=Object.assign(Object.assign({},r),n),l=480,s=576,c=768,f=992,p=1200,h=1600;if(i.motion===!1){const y="0s";i.motionDurationFast=y,i.motionDurationMid=y,i.motionDurationSlow=y}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:dc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:dc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:dc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:dc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Kr("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Kr("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Kr("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)"}),n)}var g1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Pw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},$$={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},_$={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},$w=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,l=g1(t,["override"]);let s=Object.assign(Object.assign({},n),{override:i});return s=Tw(s),l&&Object.entries(l).forEach(c=>{let[f,p]=c;const{theme:h}=p,g=g1(p,["theme"]);let y=g;h&&(y=$w(Object.assign(Object.assign({},s),g),{override:g},h)),s[f]=y}),s};function Vo(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=ve.useContext(ww),l=`${T$}-${t||""}`,s=r||Sw,[c,f,p]=QT(s,[ks,e],{salt:l,override:n,getComputedToken:$w,formatToken:Tw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Pw,ignore:$$,preserve:_$}});return[s,p,t?f:"",c,i]}const Ys=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}},M$=()=>({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"}}),A$=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),I$=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"}}}),F$=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,l=r?`.${r}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return n!==!1&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},c),s),{[i]:s})}},L$=e=>({outline:`${at(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),_w=e=>({"&:focus-visible":Object.assign({},L$(e))}),Mw=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},_w(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Aw=(e,t)=>{const[r,n]=Vo();return Wh({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},M$()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Uo,genComponentStyleHook:k$,genSubStyleComponent:Iw}=O$({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=m.useContext(zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=Vo();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=m.useContext(zt);return Aw(t,e),e??{}},getResetStyles:e=>[{"&":I$(e)}],getCommonStyle:F$,getCompUnitless:()=>Pw});function N$(e,t){return Jc.reduce((r,n)=>{const i=e[`${n}1`],l=e[`${n}3`],s=e[`${n}6`],c=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:l,darkColor:s,textColor:c}))},{})}const j$=Object.assign({},ff),{useId:y1}=j$,D$=()=>"",z$=typeof y1>"u"?D$:y1;function H$(e,t,r){var n;dv();const i=e||{},l=i.inherit===!1||!t?Object.assign(Object.assign({},am),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:am.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=z$();return tv(()=>{var c,f;if(!e)return t;const p=Object.assign({},l.components);Object.keys(e.components||{}).forEach(y=>{p[y]=Object.assign(Object.assign({},p[y]),e.components[y])});const h=`css-var-${s.replace(/:/g,"")}`,g=((c=i.cssVar)!==null&&c!==void 0?c:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((f=i.cssVar)===null||f===void 0?void 0:f.key)||h});return Object.assign(Object.assign(Object.assign({},l),i),{token:Object.assign(Object.assign({},l.token),i.token),components:p,cssVar:g})},[i,l],(c,f)=>c.some((p,h)=>{const g=f[h];return!Dh(p,g,!0)}))}var B$=["children"],Fw=m.createContext({});function V$(e){var t=e.children,r=kr(e,B$);return m.createElement(Fw.Provider,{value:r},t)}var U$=function(e){xi(r,e);var t=Ei(r);function r(){return xr(this,r),t.apply(this,arguments)}return Er(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function W$(e){var t=m.useReducer(function(c){return c+1},0),r=xe(t,2),n=r[1],i=m.useRef(e),l=Fr(function(){return i.current}),s=Fr(function(c){i.current=typeof c=="function"?c(i.current):c,n()});return[l,s]}var di="none",pc="appear",hc="enter",mc="leave",b1="none",no="prepare",Qa="start",Ya="active",hv="end",Lw="prepared";function S1(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function q$(e,t){var r={animationend:S1("Animation","AnimationEnd"),transitionend:S1("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var G$=q$(sn(),typeof window<"u"?window:{}),kw={};if(sn()){var K$=document.createElement("div");kw=K$.style}var vc={};function Nw(e){if(vc[e])return vc[e];var t=G$[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var l=r[i];if(Object.prototype.hasOwnProperty.call(t,l)&&l in kw)return vc[e]=t[l],vc[e]}return""}var jw=Nw("animationend"),Dw=Nw("transitionend"),zw=!!(jw&&Dw),w1=jw||"animationend",C1=Dw||"transitionend";function x1(e,t){if(!e)return null;if(rt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const X$=function(e){var t=m.useRef();function r(i){i&&(i.removeEventListener(C1,e),i.removeEventListener(w1,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(C1,e),i.addEventListener(w1,e),t.current=i)}return m.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Hw=sn()?m.useLayoutEffect:m.useEffect;const Q$=function(){var e=m.useRef(null);function t(){Vn.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Vn(function(){i<=1?n({isCanceled:function(){return l!==e.current}}):r(n,i-1)});e.current=l}return m.useEffect(function(){return function(){t()}},[]),[r,t]};var Y$=[no,Qa,Ya,hv],J$=[no,Lw],Bw=!1,Z$=!0;function Vw(e){return e===Ya||e===hv}const e_=function(e,t,r){var n=sl(b1),i=xe(n,2),l=i[0],s=i[1],c=Q$(),f=xe(c,2),p=f[0],h=f[1];function g(){s(no,!0)}var y=t?J$:Y$;return Hw(function(){if(l!==b1&&l!==hv){var x=y.indexOf(l),w=y[x+1],C=r(l);C===Bw?s(w,!0):w&&p(function(S){function E(){S.isCanceled()||s(w,!0)}C===!0?E():Promise.resolve(C).then(E)})}},[e,l]),m.useEffect(function(){return function(){h()}},[]),[g,l]};function t_(e,t,r,n){var i=n.motionEnter,l=i===void 0?!0:i,s=n.motionAppear,c=s===void 0?!0:s,f=n.motionLeave,p=f===void 0?!0:f,h=n.motionDeadline,g=n.motionLeaveImmediately,y=n.onAppearPrepare,x=n.onEnterPrepare,w=n.onLeavePrepare,C=n.onAppearStart,S=n.onEnterStart,E=n.onLeaveStart,T=n.onAppearActive,O=n.onEnterActive,_=n.onLeaveActive,R=n.onAppearEnd,$=n.onEnterEnd,M=n.onLeaveEnd,I=n.onVisibleChanged,L=sl(),V=xe(L,2),X=V[0],ee=V[1],K=W$(di),W=xe(K,2),J=W[0],z=W[1],k=sl(null),F=xe(k,2),H=F[0],j=F[1],A=J(),D=m.useRef(!1),ie=m.useRef(null);function Q(){return r()}var ae=m.useRef(!1);function ue(){z(di),j(null,!0)}var se=Fr(function(it){var Le=J();if(Le!==di){var ut=Q();if(!(it&&!it.deadline&&it.target!==ut)){var ye=ae.current,Ae;Le===pc&&ye?Ae=R==null?void 0:R(ut,it):Le===hc&&ye?Ae=$==null?void 0:$(ut,it):Le===mc&&ye&&(Ae=M==null?void 0:M(ut,it)),ye&&Ae!==!1&&ue()}}}),ce=X$(se),fe=xe(ce,1),Se=fe[0],De=function(Le){switch(Le){case pc:return Z(Z(Z({},no,y),Qa,C),Ya,T);case hc:return Z(Z(Z({},no,x),Qa,S),Ya,O);case mc:return Z(Z(Z({},no,w),Qa,E),Ya,_);default:return{}}},Pe=m.useMemo(function(){return De(A)},[A]),$e=e_(A,!e,function(it){if(it===no){var Le=Pe[no];return Le?Le(Q()):Bw}if(Be in Pe){var ut;j(((ut=Pe[Be])===null||ut===void 0?void 0:ut.call(Pe,Q(),null))||null)}return Be===Ya&&A!==di&&(Se(Q()),h>0&&(clearTimeout(ie.current),ie.current=setTimeout(function(){se({deadline:!0})},h))),Be===Lw&&ue(),Z$}),Ve=xe($e,2),Te=Ve[0],Be=Ve[1],pt=Vw(Be);ae.current=pt,Hw(function(){ee(t);var it=D.current;D.current=!0;var Le;!it&&t&&c&&(Le=pc),it&&t&&l&&(Le=hc),(it&&!t&&p||!it&&g&&!t&&p)&&(Le=mc);var ut=De(Le);Le&&(e||ut[no])?(z(Le),Te()):z(di)},[t]),m.useEffect(function(){(A===pc&&!c||A===hc&&!l||A===mc&&!p)&&z(di)},[c,l,p]),m.useEffect(function(){return function(){D.current=!1,clearTimeout(ie.current)}},[]);var Ze=m.useRef(!1);m.useEffect(function(){X&&(Ze.current=!0),X!==void 0&&A===di&&((Ze.current||X)&&(I==null||I(X)),Ze.current=!0)},[X,A]);var ht=H;return Pe[no]&&Be===Qa&&(ht=oe({transition:"none"},ht)),[A,Be,ht,X??t]}function r_(e){var t=e;rt(e)==="object"&&(t=e.transitionSupport);function r(i,l){return!!(i.motionName&&t&&l!==!1)}var n=m.forwardRef(function(i,l){var s=i.visible,c=s===void 0?!0:s,f=i.removeOnLeave,p=f===void 0?!0:f,h=i.forceRender,g=i.children,y=i.motionName,x=i.leavedClassName,w=i.eventProps,C=m.useContext(Fw),S=C.motion,E=r(i,S),T=m.useRef(),O=m.useRef();function _(){try{return T.current instanceof HTMLElement?T.current:Mc(O.current)}catch{return null}}var R=t_(E,c,_,i),$=xe(R,4),M=$[0],I=$[1],L=$[2],V=$[3],X=m.useRef(V);V&&(X.current=!0);var ee=m.useCallback(function(H){T.current=H,rv(l,H)},[l]),K,W=oe(oe({},w),{},{visible:c});if(!g)K=null;else if(M===di)V?K=g(oe({},W),ee):!p&&X.current&&x?K=g(oe(oe({},W),{},{className:x}),ee):h||!p&&!x?K=g(oe(oe({},W),{},{style:{display:"none"}}),ee):K=null;else{var J;I===no?J="prepare":Vw(I)?J="active":I===Qa&&(J="start");var z=x1(y,"".concat(M,"-").concat(J));K=g(oe(oe({},W),{},{className:Me(x1(y,M),Z(Z({},z,z&&J),y,typeof y=="string")),style:L}),ee)}if(m.isValidElement(K)&&hl(K)){var k=K,F=k.ref;F||(K=m.cloneElement(K,{ref:ee}))}return m.createElement(U$,{ref:O},K)});return n.displayName="CSSMotion",n}const vl=r_(zw);var sm="add",um="keep",cm="remove",kp="removed";function n_(e){var t;return e&&rt(e)==="object"&&"key"in e?t=e:t={key:e},oe(oe({},t),{},{key:String(t.key)})}function fm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(n_)}function o_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,l=fm(e),s=fm(t);l.forEach(function(p){for(var h=!1,g=n;g<i;g+=1){var y=s[g];if(y.key===p.key){n<g&&(r=r.concat(s.slice(n,g).map(function(x){return oe(oe({},x),{},{status:sm})})),n=g),r.push(oe(oe({},y),{},{status:um})),n+=1,h=!0;break}}h||r.push(oe(oe({},p),{},{status:cm}))}),n<i&&(r=r.concat(s.slice(n).map(function(p){return oe(oe({},p),{},{status:sm})})));var c={};r.forEach(function(p){var h=p.key;c[h]=(c[h]||0)+1});var f=Object.keys(c).filter(function(p){return c[p]>1});return f.forEach(function(p){r=r.filter(function(h){var g=h.key,y=h.status;return g!==p||y!==cm}),r.forEach(function(h){h.key===p&&(h.status=um)})}),r}var i_=["component","children","onVisibleChanged","onAllRemoved"],a_=["status"],l_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function s_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vl,r=function(n){xi(l,n);var i=Ei(l);function l(){var s;xr(this,l);for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return s=i.call.apply(i,[this].concat(f)),Z(ft(s),"state",{keyEntities:[]}),Z(ft(s),"removeKey",function(h){s.setState(function(g){var y=g.keyEntities.map(function(x){return x.key!==h?x:oe(oe({},x),{},{status:kp})});return{keyEntities:y}},function(){var g=s.state.keyEntities,y=g.filter(function(x){var w=x.status;return w!==kp}).length;y===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Er(l,[{key:"render",value:function(){var c=this,f=this.state.keyEntities,p=this.props,h=p.component,g=p.children,y=p.onVisibleChanged;p.onAllRemoved;var x=kr(p,i_),w=h||m.Fragment,C={};return l_.forEach(function(S){C[S]=x[S],delete x[S]}),delete x.keys,m.createElement(w,x,f.map(function(S,E){var T=S.status,O=kr(S,a_),_=T===sm||T===um;return m.createElement(t,It({},C,{key:O.key,visible:_,eventProps:O,onVisibleChanged:function($){y==null||y($,{key:O.key}),$||c.removeKey(O.key)}}),function(R,$){return g(oe(oe({},R),{},{index:E}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,f){var p=c.keys,h=f.keyEntities,g=fm(p),y=o_(h,g);return{keyEntities:y.filter(function(x){var w=h.find(function(C){var S=C.key;return x.key===S});return!(w&&w.status===kp&&x.status===cm)})}}}]),l}(m.Component);return Z(r,"defaultProps",{component:"div"}),r}const u_=s_(zw);function c_(e){const{children:t}=e,[,r]=Vo(),{motion:n}=r,i=m.useRef(!1);return i.current=i.current||n===!1,i.current?m.createElement(V$,{motion:n},t):t}const f_=()=>null;var d_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const p_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Uw;function h_(){return Uw||Ns}function m_(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const v_=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(Uw=t),n&&m_(n)&&d$(h_(),n)},g_=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:l,form:s,locale:c,componentSize:f,direction:p,space:h,splitter:g,virtual:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:w,popupOverflow:C,legacyLocale:S,parentContext:E,iconPrefixCls:T,theme:O,componentDisabled:_,segmented:R,statistic:$,spin:M,calendar:I,carousel:L,cascader:V,collapse:X,typography:ee,checkbox:K,descriptions:W,divider:J,drawer:z,skeleton:k,steps:F,image:H,layout:j,list:A,mentions:D,modal:ie,progress:Q,result:ae,slider:ue,breadcrumb:se,menu:ce,pagination:fe,input:Se,textArea:De,empty:Pe,badge:$e,radio:Ve,rate:Te,switch:Be,transfer:pt,avatar:Ze,message:ht,tag:it,table:Le,card:ut,tabs:ye,timeline:Ae,timePicker:Ue,upload:tt,notification:Pt,tree:St,colorPicker:Ht,datePicker:wt,rangePicker:Zt,flex:mt,wave:Je,dropdown:Ge,warning:ir,tour:Ie,floatButtonGroup:qe,variant:_t,inputNumber:jr,treeSelect:Dr}=e,zr=m.useCallback((we,Re)=>{const{prefixCls:Ce}=e;if(Re)return Re;const Ee=Ce||E.getPrefixCls("");return we?`${Ee}-${we}`:Ee},[E.getPrefixCls,e.prefixCls]),pr=T||E.iconPrefixCls||Cw,qt=r||E.csp;Aw(pr,qt);const Bt=H$(O,E.theme,{prefixCls:zr("")}),Yr={csp:qt,autoInsertSpaceInButton:n,alert:i,anchor:l,locale:c||S,direction:p,space:h,splitter:g,virtual:y,popupMatchSelectWidth:w??x,popupOverflow:C,getPrefixCls:zr,iconPrefixCls:pr,theme:Bt,segmented:R,statistic:$,spin:M,calendar:I,carousel:L,cascader:V,collapse:X,typography:ee,checkbox:K,descriptions:W,divider:J,drawer:z,skeleton:k,steps:F,image:H,input:Se,textArea:De,layout:j,list:A,mentions:D,modal:ie,progress:Q,result:ae,slider:ue,breadcrumb:se,menu:ce,pagination:fe,empty:Pe,badge:$e,radio:Ve,rate:Te,switch:Be,transfer:pt,avatar:Ze,message:ht,tag:it,table:Le,card:ut,tabs:ye,timeline:Ae,timePicker:Ue,upload:tt,notification:Pt,tree:St,colorPicker:Ht,datePicker:wt,rangePicker:Zt,flex:mt,wave:Je,dropdown:Ge,warning:ir,tour:Ie,floatButtonGroup:qe,variant:_t,inputNumber:jr,treeSelect:Dr},Nt=Object.assign({},E);Object.keys(Yr).forEach(we=>{Yr[we]!==void 0&&(Nt[we]=Yr[we])}),p_.forEach(we=>{const Re=e[we];Re&&(Nt[we]=Re)}),typeof n<"u"&&(Nt.button=Object.assign({autoInsertSpace:n},Nt.button));const B=tv(()=>Nt,Nt,(we,Re)=>{const Ce=Object.keys(we),Ee=Object.keys(Re);return Ce.length!==Ee.length||Ce.some(ge=>we[ge]!==Re[ge])}),q=m.useMemo(()=>({prefixCls:pr,csp:qt}),[pr,qt]);let Y=m.createElement(m.Fragment,null,m.createElement(f_,{dropdownMatchSelectWidth:x}),t);const de=m.useMemo(()=>{var we,Re,Ce,Ee;return Xa(((we=ta.Form)===null||we===void 0?void 0:we.defaultValidateMessages)||{},((Ce=(Re=B.locale)===null||Re===void 0?void 0:Re.Form)===null||Ce===void 0?void 0:Ce.defaultValidateMessages)||{},((Ee=B.form)===null||Ee===void 0?void 0:Ee.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[B,s==null?void 0:s.validateMessages]);Object.keys(de).length>0&&(Y=m.createElement(pw.Provider,{value:de},Y)),c&&(Y=m.createElement(LP,{locale:c,_ANT_MARK__:FP},Y)),(pr||qt)&&(Y=m.createElement(fv.Provider,{value:q},Y)),f&&(Y=m.createElement(p$,{size:f},Y)),Y=m.createElement(c_,null,Y);const Oe=m.useMemo(()=>{const we=Bt||{},{algorithm:Re,token:Ce,components:Ee,cssVar:ge}=we,Ke=d_(we,["algorithm","token","components","cssVar"]),nt=Re&&(!Array.isArray(Re)||Re.length>0)?Hh(Re):Sw,yt={};Object.entries(Ee||{}).forEach(ct=>{let[vt,Ot]=ct;const Ft=Object.assign({},Ot);"algorithm"in Ft&&(Ft.algorithm===!0?Ft.theme=nt:(Array.isArray(Ft.algorithm)||typeof Ft.algorithm=="function")&&(Ft.theme=Hh(Ft.algorithm)),delete Ft.algorithm),yt[vt]=Ft});const Mt=Object.assign(Object.assign({},ks),Ce);return Object.assign(Object.assign({},Ke),{theme:nt,token:Mt,components:yt,override:Object.assign({override:Mt},yt),cssVar:ge})},[Bt]);return O&&(Y=m.createElement(ww.Provider,{value:Oe},Y)),B.warning&&(Y=m.createElement($P.Provider,{value:B.warning},Y)),_!==void 0&&(Y=m.createElement(xw,{disabled:_},Y)),m.createElement(zt.Provider,{value:B},Y)},gl=e=>{const t=m.useContext(zt),r=m.useContext(pv);return m.createElement(g_,Object.assign({parentContext:t,legacyLocale:r},e))};gl.ConfigContext=zt;gl.SizeContext=ra;gl.config=v_;gl.useConfig=h$;Object.defineProperty(gl,"SizeContext",{get:()=>ra});var y_={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 b_(e){return Ww(e)instanceof ShadowRoot}function Zc(e){return b_(e)?Ww(e):null}function S_(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function w_(e,t){En(e,"[@ant-design/icons] ".concat(t))}function E1(e){return rt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(rt(e.icon)==="object"||typeof e.icon=="function")}function R1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[S_(r)]=n}return t},{})}function dm(e,t,r){return r?ve.createElement(e.tag,oe(oe({key:t},R1(e.attrs)),r),(e.children||[]).map(function(n,i){return dm(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ve.createElement(e.tag,oe({key:t},R1(e.attrs)),(e.children||[]).map(function(n,i){return dm(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function qw(e){return Ls(e)[0]}function Gw(e){return e?Array.isArray(e)?e:[e]:[]}var C_=` .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); } } `,x_=function(t){var r=m.useContext(fv),n=r.csp,i=r.prefixCls,l=C_;i&&(l=l.replace(/anticon/g,i)),m.useEffect(function(){var s=t.current,c=Zc(s);Do(l,"@ant-design-icons",{prepend:!0,csp:n,attachTo:c})},[])},E_=["icon","className","onClick","style","primaryColor","secondaryColor"],ws={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function R_(e){var t=e.primaryColor,r=e.secondaryColor;ws.primaryColor=t,ws.secondaryColor=r||qw(t),ws.calculated=!!r}function O_(){return oe({},ws)}var yl=function(t){var r=t.icon,n=t.className,i=t.onClick,l=t.style,s=t.primaryColor,c=t.secondaryColor,f=kr(t,E_),p=m.useRef(),h=ws;if(s&&(h={primaryColor:s,secondaryColor:c||qw(s)}),x_(p),w_(E1(r),"icon should be icon definiton, but got ".concat(r)),!E1(r))return null;var g=r;return g&&typeof g.icon=="function"&&(g=oe(oe({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),dm(g.icon,"svg-".concat(g.name),oe(oe({className:n,onClick:i,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};yl.displayName="IconReact";yl.getTwoToneColors=O_;yl.setTwoToneColors=R_;function Kw(e){var t=Gw(e),r=xe(t,2),n=r[0],i=r[1];return yl.setTwoToneColors({primaryColor:n,secondaryColor:i})}function T_(){var e=yl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var P_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Kw(Yc.primary);var Nr=m.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,l=e.rotate,s=e.tabIndex,c=e.onClick,f=e.twoToneColor,p=kr(e,P_),h=m.useContext(fv),g=h.prefixCls,y=g===void 0?"anticon":g,x=h.rootClassName,w=Me(x,y,Z(Z({},"".concat(y,"-").concat(n.name),!!n.name),"".concat(y,"-spin"),!!i||n.name==="loading"),r),C=s;C===void 0&&c&&(C=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Gw(f),T=xe(E,2),O=T[0],_=T[1];return m.createElement("span",It({role:"img","aria-label":n.name},p,{ref:t,tabIndex:C,onClick:c,className:w}),m.createElement(yl,{icon:n,primaryColor:O,secondaryColor:_,style:S}))});Nr.displayName="AntdIcon";Nr.getTwoToneColor=T_;Nr.setTwoToneColor=Kw;var $_=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:y_}))},__=m.forwardRef($_),M_={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"},A_=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:M_}))},Xw=m.forwardRef(A_),I_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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"},F_=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:I_}))},L_=m.forwardRef(F_),k_=`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`,N_=`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`,j_="".concat(k_," ").concat(N_).split(/[\s\n]+/),D_="aria-",z_="data-";function O1(e,t){return e.indexOf(t)===0}function H_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=oe({},t);var n={};return Object.keys(e).forEach(function(i){(r.aria&&(i==="role"||O1(i,D_))||r.data&&O1(i,z_)||r.attr&&j_.includes(i))&&(n[i]=e[i])}),n}function Qw(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const B_=(e,t,r)=>ve.isValidElement(e)?ve.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function na(e,t){return B_(e,e,t)}const T1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,P1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Np=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return P1(r.overflowY,t)||P1(r.overflowX,t)||(n=>{const i=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},gc=(e,t,r,n,i,l,s,c)=>l<e&&s>t||l>e&&s<t?0:l<=e&&c<=r||s>=t&&c>=r?l-e-n:s>t&&c<r||l<e&&c>r?s-t+i:0,V_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},$1=(e,t)=>{var r,n,i,l;if(typeof document>"u")return[];const{scrollMode:s,block:c,inline:f,boundary:p,skipOverflowHiddenElements:h}=t,g=typeof p=="function"?p:z=>z!==p;if(!T1(e))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,x=[];let w=e;for(;T1(w)&&g(w);){if(w=V_(w),w===y){x.push(w);break}w!=null&&w===document.body&&Np(w)&&!Np(document.documentElement)||w!=null&&Np(w,h)&&x.push(w)}const C=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(l=(i=window.visualViewport)==null?void 0:i.height)!=null?l:innerHeight,{scrollX:E,scrollY:T}=window,{height:O,width:_,top:R,right:$,bottom:M,left:I}=e.getBoundingClientRect(),{top:L,right:V,bottom:X,left:ee}=(z=>{const k=window.getComputedStyle(z);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let K=c==="start"||c==="nearest"?R-L:c==="end"?M+X:R+O/2-L+X,W=f==="center"?I+_/2-ee+V:f==="end"?$+V:I-ee;const J=[];for(let z=0;z<x.length;z++){const k=x[z],{height:F,width:H,top:j,right:A,bottom:D,left:ie}=k.getBoundingClientRect();if(s==="if-needed"&&R>=0&&I>=0&&M<=S&&$<=C&&R>=j&&M<=D&&I>=ie&&$<=A)return J;const Q=getComputedStyle(k),ae=parseInt(Q.borderLeftWidth,10),ue=parseInt(Q.borderTopWidth,10),se=parseInt(Q.borderRightWidth,10),ce=parseInt(Q.borderBottomWidth,10);let fe=0,Se=0;const De="offsetWidth"in k?k.offsetWidth-k.clientWidth-ae-se:0,Pe="offsetHeight"in k?k.offsetHeight-k.clientHeight-ue-ce:0,$e="offsetWidth"in k?k.offsetWidth===0?0:H/k.offsetWidth:0,Ve="offsetHeight"in k?k.offsetHeight===0?0:F/k.offsetHeight:0;if(y===k)fe=c==="start"?K:c==="end"?K-S:c==="nearest"?gc(T,T+S,S,ue,ce,T+K,T+K+O,O):K-S/2,Se=f==="start"?W:f==="center"?W-C/2:f==="end"?W-C:gc(E,E+C,C,ae,se,E+W,E+W+_,_),fe=Math.max(0,fe+T),Se=Math.max(0,Se+E);else{fe=c==="start"?K-j-ue:c==="end"?K-D+ce+Pe:c==="nearest"?gc(j,D,F,ue,ce+Pe,K,K+O,O):K-(j+F/2)+Pe/2,Se=f==="start"?W-ie-ae:f==="center"?W-(ie+H/2)+De/2:f==="end"?W-A+se+De:gc(ie,A,H,ae,se+De,W,W+_,_);const{scrollLeft:Te,scrollTop:Be}=k;fe=Ve===0?0:Math.max(0,Math.min(Be+fe/Ve,k.scrollHeight-F/Ve+Pe)),Se=$e===0?0:Math.max(0,Math.min(Te+Se/$e,k.scrollWidth-H/$e+De)),K+=Be-fe,W+=Te-Se}J.push({el:k,top:fe,left:Se})}return J},U_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function W_(e,t){if(!e.isConnected||!(i=>{let l=i;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const r=(i=>{const l=window.getComputedStyle(i);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior($1(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:l,left:s}of $1(e,U_(t))){const c=l-r.top+r.bottom,f=s-r.left+r.right;i.scroll({top:c,left:f,behavior:n})}}const bl=e=>{const[,,,,t]=Vo();return t?`${e}-css-var`:""};var et={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 r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=et.F1&&r<=et.F12)return!1;switch(r){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=et.ZERO&&t<=et.NINE||t>=et.NUM_ZERO&&t<=et.NUM_MULTIPLY||t>=et.A&&t<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},q_={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"},G_=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:q_}))},mv=m.forwardRef(G_);const Yw=ve.createContext(void 0),Vi=100,Jw={Modal:Vi,Drawer:Vi,Popover:Vi,Popconfirm:Vi,Tooltip:Vi,Tour:Vi,FloatButton:Vi},K_={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function X_(e){return e in Jw}const Q_=(e,t)=>{const[,r]=Vo(),n=ve.useContext(Yw),i=X_(e);let l;if(t!==void 0)l=[t,t];else{let s=n??0;i?s+=(n?0:r.zIndexPopupBase)+Jw[e]:s+=K_[e],l=[n===void 0?t:s,s]}return l};function Xr(){Xr=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(z,k,F){z[k]=F.value},l=typeof Symbol=="function"?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function p(z,k,F){return Object.defineProperty(z,k,{value:F,enumerable:!0,configurable:!0,writable:!0}),z[k]}try{p({},"")}catch{p=function(F,H,j){return F[H]=j}}function h(z,k,F,H){var j=k&&k.prototype instanceof E?k:E,A=Object.create(j.prototype),D=new W(H||[]);return i(A,"_invoke",{value:V(z,F,D)}),A}function g(z,k,F){try{return{type:"normal",arg:z.call(k,F)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var y="suspendedStart",x="suspendedYield",w="executing",C="completed",S={};function E(){}function T(){}function O(){}var _={};p(_,s,function(){return this});var R=Object.getPrototypeOf,$=R&&R(R(J([])));$&&$!==r&&n.call($,s)&&(_=$);var M=O.prototype=E.prototype=Object.create(_);function I(z){["next","throw","return"].forEach(function(k){p(z,k,function(F){return this._invoke(k,F)})})}function L(z,k){function F(j,A,D,ie){var Q=g(z[j],z,A);if(Q.type!=="throw"){var ae=Q.arg,ue=ae.value;return ue&&rt(ue)=="object"&&n.call(ue,"__await")?k.resolve(ue.__await).then(function(se){F("next",se,D,ie)},function(se){F("throw",se,D,ie)}):k.resolve(ue).then(function(se){ae.value=se,D(ae)},function(se){return F("throw",se,D,ie)})}ie(Q.arg)}var H;i(this,"_invoke",{value:function(A,D){function ie(){return new k(function(Q,ae){F(A,D,Q,ae)})}return H=H?H.then(ie,ie):ie()}})}function V(z,k,F){var H=y;return function(j,A){if(H===w)throw Error("Generator is already running");if(H===C){if(j==="throw")throw A;return{value:e,done:!0}}for(F.method=j,F.arg=A;;){var D=F.delegate;if(D){var ie=X(D,F);if(ie){if(ie===S)continue;return ie}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(H===y)throw H=C,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);H=w;var Q=g(z,k,F);if(Q.type==="normal"){if(H=F.done?C:x,Q.arg===S)continue;return{value:Q.arg,done:F.done}}Q.type==="throw"&&(H=C,F.method="throw",F.arg=Q.arg)}}}function X(z,k){var F=k.method,H=z.iterator[F];if(H===e)return k.delegate=null,F==="throw"&&z.iterator.return&&(k.method="return",k.arg=e,X(z,k),k.method==="throw")||F!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+F+"' method")),S;var j=g(H,z.iterator,k.arg);if(j.type==="throw")return k.method="throw",k.arg=j.arg,k.delegate=null,S;var A=j.arg;return A?A.done?(k[z.resultName]=A.value,k.next=z.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,S):A:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,S)}function ee(z){var k={tryLoc:z[0]};1 in z&&(k.catchLoc=z[1]),2 in z&&(k.finallyLoc=z[2],k.afterLoc=z[3]),this.tryEntries.push(k)}function K(z){var k=z.completion||{};k.type="normal",delete k.arg,z.completion=k}function W(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(ee,this),this.reset(!0)}function J(z){if(z||z===""){var k=z[s];if(k)return k.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var F=-1,H=function j(){for(;++F<z.length;)if(n.call(z,F))return j.value=z[F],j.done=!1,j;return j.value=e,j.done=!0,j};return H.next=H}}throw new TypeError(rt(z)+" is not iterable")}return T.prototype=O,i(M,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:T,configurable:!0}),T.displayName=p(O,f,"GeneratorFunction"),t.isGeneratorFunction=function(z){var k=typeof z=="function"&&z.constructor;return!!k&&(k===T||(k.displayName||k.name)==="GeneratorFunction")},t.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,O):(z.__proto__=O,p(z,f,"GeneratorFunction")),z.prototype=Object.create(M),z},t.awrap=function(z){return{__await:z}},I(L.prototype),p(L.prototype,c,function(){return this}),t.AsyncIterator=L,t.async=function(z,k,F,H,j){j===void 0&&(j=Promise);var A=new L(h(z,k,F,H),j);return t.isGeneratorFunction(k)?A:A.next().then(function(D){return D.done?D.value:A.next()})},I(M),p(M,f,"Generator"),p(M,s,function(){return this}),p(M,"toString",function(){return"[object Generator]"}),t.keys=function(z){var k=Object(z),F=[];for(var H in k)F.push(H);return F.reverse(),function j(){for(;F.length;){var A=F.pop();if(A in k)return j.value=A,j.done=!1,j}return j.done=!0,j}},t.values=J,W.prototype={constructor:W,reset:function(k){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(K),!k)for(var F in this)F.charAt(0)==="t"&&n.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=e)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var F=this;function H(ae,ue){return D.type="throw",D.arg=k,F.next=ae,ue&&(F.method="next",F.arg=e),!!ue}for(var j=this.tryEntries.length-1;j>=0;--j){var A=this.tryEntries[j],D=A.completion;if(A.tryLoc==="root")return H("end");if(A.tryLoc<=this.prev){var ie=n.call(A,"catchLoc"),Q=n.call(A,"finallyLoc");if(ie&&Q){if(this.prev<A.catchLoc)return H(A.catchLoc,!0);if(this.prev<A.finallyLoc)return H(A.finallyLoc)}else if(ie){if(this.prev<A.catchLoc)return H(A.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return H(A.finallyLoc)}}}},abrupt:function(k,F){for(var H=this.tryEntries.length-1;H>=0;--H){var j=this.tryEntries[H];if(j.tryLoc<=this.prev&&n.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var A=j;break}}A&&(k==="break"||k==="continue")&&A.tryLoc<=F&&F<=A.finallyLoc&&(A=null);var D=A?A.completion:{};return D.type=k,D.arg=F,A?(this.method="next",this.next=A.finallyLoc,S):this.complete(D)},complete:function(k,F){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&F&&(this.next=F),S},finish:function(k){for(var F=this.tryEntries.length-1;F>=0;--F){var H=this.tryEntries[F];if(H.finallyLoc===k)return this.complete(H.completion,H.afterLoc),K(H),S}},catch:function(k){for(var F=this.tryEntries.length-1;F>=0;--F){var H=this.tryEntries[F];if(H.tryLoc===k){var j=H.completion;if(j.type==="throw"){var A=j.arg;K(H)}return A}}throw Error("illegal catch attempt")},delegateYield:function(k,F,H){return this.delegate={iterator:J(k),resultName:F,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function _1(e,t,r,n,i,l,s){try{var c=e[l](s),f=c.value}catch(p){return void r(p)}c.done?t(f):Promise.resolve(f).then(n,i)}function ca(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var l=e.apply(t,r);function s(f){_1(l,n,i,s,c,"next",f)}function c(f){_1(l,n,i,s,c,"throw",f)}s(void 0)})}}var Js=oe({},WO),Y_=Js.version,J_=Js.render,Z_=Js.unmountComponentAtNode,xf;try{var eM=Number((Y_||"").split(".")[0]);eM>=18&&(xf=Js.createRoot)}catch{}function M1(e){var t=Js.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&rt(t)==="object"&&(t.usingClientEntryPoint=e)}var ef="__rc_react_root__";function tM(e,t){M1(!0);var r=t[ef]||xf(t);M1(!1),r.render(e),t[ef]=r}function rM(e,t){J_(e,t)}function nM(e,t){if(xf){tM(e,t);return}rM(e,t)}function oM(e){return pm.apply(this,arguments)}function pm(){return pm=ca(Xr().mark(function e(t){return Xr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[ef])===null||i===void 0||i.unmount(),delete t[ef]}));case 1:case"end":return n.stop()}},e)})),pm.apply(this,arguments)}function iM(e){Z_(e)}function aM(e){return hm.apply(this,arguments)}function hm(){return hm=ca(Xr().mark(function e(t){return Xr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(xf===void 0){n.next=2;break}return n.abrupt("return",oM(t));case 2:iM(t);case 3:case"end":return n.stop()}},e)})),hm.apply(this,arguments)}const jp=()=>({height:0,opacity:0}),A1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},lM=e=>({height:e?e.offsetHeight:0}),Dp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",I1=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ns}-motion-collapse`,onAppearStart:jp,onEnterStart:jp,onAppearActive:A1,onEnterActive:A1,onLeaveStart:lM,onLeaveActive:jp,onAppearEnd:Dp,onEnterEnd:Dp,onLeaveEnd:Dp,motionDeadline:500}},sM=(e,t,r)=>r!==void 0?r:`${e}-${t}`,vv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),l=i.width,s=i.height;if(l||s)return!0}}return!1},uM=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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(",")}}}}},cM=k$("Wave",e=>[uM(e)]),Zw=`${Ns}-wave-target`;function zp(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function fM(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return zp(t)?t:zp(r)?r:zp(n)?n:null}function Hp(e){return Number.isNaN(e)?0:e}const dM=e=>{const{className:t,target:r,component:n}=e,i=m.useRef(null),[l,s]=m.useState(null),[c,f]=m.useState([]),[p,h]=m.useState(0),[g,y]=m.useState(0),[x,w]=m.useState(0),[C,S]=m.useState(0),[E,T]=m.useState(!1),O={left:p,top:g,width:x,height:C,borderRadius:c.map($=>`${$}px`).join(" ")};l&&(O["--wave-color"]=l);function _(){const $=getComputedStyle(r);s(fM(r));const M=$.position==="static",{borderLeftWidth:I,borderTopWidth:L}=$;h(M?r.offsetLeft:Hp(-parseFloat(I))),y(M?r.offsetTop:Hp(-parseFloat(L))),w(r.offsetWidth),S(r.offsetHeight);const{borderTopLeftRadius:V,borderTopRightRadius:X,borderBottomLeftRadius:ee,borderBottomRightRadius:K}=$;f([V,X,K,ee].map(W=>Hp(parseFloat(W))))}if(m.useEffect(()=>{if(r){const $=Vn(()=>{_(),T(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(_),M.observe(r)),()=>{Vn.cancel($),M==null||M.disconnect()}}},[]),!E)return null;const R=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Zw));return m.createElement(vl,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,M)=>{var I;if(M.deadline||M.propertyName==="opacity"){const L=(I=i.current)===null||I===void 0?void 0:I.parentElement;aM(L).then(()=>{L==null||L.remove()})}return!1}},($,M)=>{let{className:I}=$;return m.createElement("div",{ref:Ro(i,M),className:Me(t,I,{"wave-quick":R}),style:O})})},pM=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),nM(m.createElement(dM,Object.assign({},t,{target:e})),i)},hM=(e,t,r)=>{const{wave:n}=m.useContext(zt),[,i,l]=Vo(),s=Fr(p=>{const h=e.current;if(n!=null&&n.disabled||!h)return;const g=h.querySelector(`.${Zw}`)||h,{showEffect:y}=n||{};(y||pM)(g,{className:t,token:i,component:r,event:p,hashId:l})}),c=m.useRef();return p=>{Vn.cancel(c.current),c.current=Vn(()=>{s(p)})}},mM=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:i}=m.useContext(zt),l=m.useRef(null),s=i("wave"),[,c]=cM(s),f=hM(l,Me(s,c),n);if(ve.useEffect(()=>{const h=l.current;if(!h||h.nodeType!==1||r)return;const g=y=>{!vv(y.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")||h.className.includes("-leave")||f(y)};return h.addEventListener("click",g,!0),()=>{h.removeEventListener("click",g,!0)}},[r]),!ve.isValidElement(t))return t??null;const p=hl(t)?Ro(t.ref,l):l;return na(t,{ref:p})},Sl=e=>{const t=ve.useContext(ra);return ve.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},eC=m.createContext(null),gv=(e,t)=>{const r=m.useContext(eC),n=m.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:l,isLastItem:s}=r,c=i==="vertical"?"-vertical-":"-";return Me(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:l,[`${e}-compact${c}last-item`]:s,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},vM=e=>{let{children:t}=e;return m.createElement(eC.Provider,{value:null},t)};var gM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const tC=m.createContext(void 0),yM=e=>{const{getPrefixCls:t,direction:r}=m.useContext(zt),{prefixCls:n,size:i,className:l}=e,s=gM(e,["prefixCls","size","className"]),c=t("btn-group",n),[,,f]=Vo();let p="";switch(i){case"large":p="lg";break;case"small":p="sm";break}const h=Me(c,{[`${c}-${p}`]:p,[`${c}-rtl`]:r==="rtl"},l,f);return m.createElement(tC.Provider,{value:i},m.createElement("div",Object.assign({},s,{className:h})))},F1=/^[\u4E00-\u9FA5]{2}$/,mm=F1.test.bind(F1);function L1(e){return typeof e=="string"}function Bp(e){return e==="text"||e==="link"}function bM(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&L1(e.type)&&mm(e.props.children)?na(e,{children:e.props.children.split("").join(r)}):L1(e)?mm(e)?ve.createElement("span",null,e.split("").join(r)):ve.createElement("span",null,e):Qw(e)?ve.createElement("span",null,e):e}function SM(e,t){let r=!1;const n=[];return ve.Children.forEach(e,i=>{const l=typeof i,s=l==="string"||l==="number";if(r&&s){const c=n.length-1,f=n[c];n[c]=`${f}${i}`}else n.push(i);r=s}),ve.Children.map(n,i=>bM(i,t))}const rC=m.forwardRef((e,t)=>{const{className:r,style:n,children:i,prefixCls:l}=e,s=Me(`${l}-icon`,r);return ve.createElement("span",{ref:t,className:s,style:n},i)}),k1=m.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,iconClassName:l}=e,s=Me(`${r}-loading-icon`,n);return ve.createElement(rC,{prefixCls:r,className:s,style:i,ref:t},ve.createElement(mv,{className:l}))}),Vp=()=>({width:0,opacity:0,transform:"scale(0)"}),Up=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),wM=e=>{const{prefixCls:t,loading:r,existIcon:n,className:i,style:l}=e,s=!!r;return n?ve.createElement(k1,{prefixCls:t,className:i,style:l}):ve.createElement(vl,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:Vp,onAppearActive:Up,onEnterStart:Vp,onEnterActive:Up,onLeaveStart:Up,onLeaveActive:Vp},(c,f)=>{let{className:p,style:h}=c;return ve.createElement(k1,{prefixCls:t,className:i,style:Object.assign(Object.assign({},l),h),ref:f,iconClassName:p})})},N1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),CM=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:l}=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(n).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:r}},N1(`${t}-primary`,i),N1(`${t}-danger`,l)]}},Cr=Math.round;function Wp(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const j1=(e,t,r)=>r===0?e:e/100;function cs(e,t){const r=t||255;return e>r?r:e<0?0:e}class Ef{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let l=function(s){return i.startsWith(s)};var n=l;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):l("rgb")?this.fromRgbString(i):l("hsl")?this.fromHslString(i):(l("hsv")||l("hsb"))&&this.fromHsvString(i)}else if(t instanceof Ef)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=cs(t.r),this.g=cs(t.g),this.b=cs(t.b),this.a=typeof t.a=="number"?cs(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Cr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,l=c=>(n[c]-this[c])*i+this[c],s={r:Cr(l("r")),g:Cr(l("g")),b:Cr(l("b")),a:Cr(l("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=l=>Cr((this[l]*this.a+r[l]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Cr(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Cr(this.getSaturation()*100),n=Cr(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=cs(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,l){return parseInt(r[i]+r[l||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const y=Cr(n*255);this.r=y,this.g=y,this.b=y}let l=0,s=0,c=0;const f=t/60,p=(1-Math.abs(2*n-1))*r,h=p*(1-Math.abs(f%2-1));f>=0&&f<1?(l=p,s=h):f>=1&&f<2?(l=h,s=p):f>=2&&f<3?(s=p,c=h):f>=3&&f<4?(s=h,c=p):f>=4&&f<5?(l=h,c=p):f>=5&&f<6&&(l=p,c=h);const g=n-p/2;this.r=Cr((l+g)*255),this.g=Cr((s+g)*255),this.b=Cr((c+g)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const l=Cr(n*255);if(this.r=l,this.g=l,this.b=l,r<=0)return;const s=t/60,c=Math.floor(s),f=s-c,p=Cr(n*(1-r)*255),h=Cr(n*(1-r*f)*255),g=Cr(n*(1-r*(1-f))*255);switch(c){case 0:this.g=g,this.b=p;break;case 1:this.r=h,this.b=p;break;case 2:this.r=p,this.b=g;break;case 3:this.r=p,this.g=h;break;case 4:this.r=g,this.g=p;break;case 5:default:this.g=p,this.b=h;break}}fromHsvString(t){const r=Wp(t,j1);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Wp(t,j1);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Wp(t,(n,i)=>i.includes("%")?Cr(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var xM=["b"],EM=["v"],qp=function(t){return Math.round(Number(t||0))},RM=function(t){if(t instanceof Ef)return t;if(t&&rt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,i=kr(r,xM);return oe(oe({},i),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},js=function(e){xi(r,e);var t=Ei(r);function r(n){return xr(this,r),t.call(this,RM(n))}return Er(r,[{key:"toHsbString",value:function(){var i=this.toHsb(),l=qp(i.s*100),s=qp(i.b*100),c=qp(i.h),f=i.a,p="hsb(".concat(c,", ").concat(l,"%, ").concat(s,"%)"),h="hsba(".concat(c,", ").concat(l,"%, ").concat(s,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?p:h}},{key:"toHsb",value:function(){var i=this.toHsv(),l=i.v,s=kr(i,EM);return oe(oe({},s),{},{b:l,a:this.a})}}]),r}(Ef),OM=function(t){return t instanceof js?t:new js(t)};OM("#1677ff");const TM=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",PM=(e,t)=>e?TM(e,t):"";let $M=function(){function e(t){xr(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(i=>{let{color:l,percent:s}=i;return{color:new e(l),percent:s}}),this.metaColor=new js(this.colors[0].color.metaColor)):this.metaColor=new js(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Er(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return PM(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,i)=>{const l=r.colors[i];return n.percent===l.percent&&n.color.equals(l.color)}):this.toHexString()===r.toHexString()}}])}();const _M=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),MM=e=>({animationDuration:e,animationFillMode:"both"}),AM=e=>({animationDuration:e,animationFillMode:"both"}),IM=function(e,t,r,n){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${l}${e}-enter, ${l}${e}-appear `]:Object.assign(Object.assign({},MM(n)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},AM(n)),{animationPlayState:"paused"}),[` ${l}${e}-enter${e}-enter-active, ${l}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},yv=new qn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),FM=new qn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),D1=new qn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z1=new qn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),LM=new qn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),kM=new qn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),NM=new qn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),jM=new qn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),DM=new qn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zM=new qn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),HM=new qn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),BM=new qn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),VM={zoom:{inKeyframes:yv,outKeyframes:FM},"zoom-big":{inKeyframes:D1,outKeyframes:z1},"zoom-big-fast":{inKeyframes:D1,outKeyframes:z1},"zoom-left":{inKeyframes:NM,outKeyframes:jM},"zoom-right":{inKeyframes:DM,outKeyframes:zM},"zoom-up":{inKeyframes:LM,outKeyframes:kM},"zoom-down":{inKeyframes:HM,outKeyframes:BM}},UM=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:l}=VM[t];return[IM(n,i,l,e.motionDurationFast),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},WM=(e,t)=>{const{r,g:n,b:i,a:l}=e.toRgb(),s=new js(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:r*.299+n*.587+i*.114>192},nC=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Qr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},oC=e=>{var t,r,n,i,l,s;const c=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,f=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,p=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,h=(i=e.contentLineHeight)!==null&&i!==void 0?i:jc(c),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:jc(f),y=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:jc(p),x=WM(new $M(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:x,contentFontSize:c,contentFontSizeSM:f,contentFontSizeLG:p,contentLineHeight:h,contentLineHeightSM:g,contentLineHeightLG:y,paddingBlock:Math.max((e.controlHeight-c*h)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-p*y)/2-e.lineWidth,0)}},qM=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${at(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`> span, ${t}-icon`]:{display:"inline-flex"},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},_w(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},iC=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),GM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),KM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),XM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),bv=(e,t,r,n,i,l,s,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},iC(e,Object.assign({background:t},s),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:l||void 0}})}),QM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},XM(e))}),YM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Rf=(e,t,r,n)=>{const l=n&&["link","text"].includes(n)?YM:QM;return Object.assign(Object.assign({},l(e)),iC(e.componentCls,t,r))},Sv=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Rf(e,n,i))}),wv=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Rf(e,n,i))}),Cv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),xv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Rf(e,r,n))}),cl=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Rf(e,n,i,r))}),JM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Sv(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Cv(e)),xv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),cl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ZM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},wv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Cv(e)),xv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),cl(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),bv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),eA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Sv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),wv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Cv(e)),xv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),cl(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),cl(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),bv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tA=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:JM(e),[`${t}-color-primary`]:ZM(e),[`${t}-color-dangerous`]:eA(e)}},rA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},wv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),cl(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Sv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),cl(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ev=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:i,lineHeight:l,borderRadius:s,buttonPaddingHorizontal:c,iconCls:f,buttonPaddingVertical:p,motionDurationSlow:h,motionEaseInOut:g,buttonIconOnlyFontSize:y,opacityLoading:x}=e;return[{[t]:{fontSize:i,lineHeight:l,height:n,padding:`${at(p)} ${at(c)}`,borderRadius:s,[`&${r}-icon-only`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[f]:{fontSize:y}},[`&${r}-loading`]:{opacity:x,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${h} ${g}, opacity ${h} ${g}`}}},{[`${r}${r}-circle${t}`]:GM(e)},{[`${r}${r}-round${t}`]:KM(e)}]},nA=e=>{const t=Qr(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ev(t,e.componentCls)},oA=e=>{const t=Qr(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 Ev(t,`${e.componentCls}-sm`)},iA=e=>{const t=Qr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ev(t,`${e.componentCls}-lg`)},aA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},lA=Uo("Button",e=>{const t=nC(e);return[qM(t),nA(t),oA(t),iA(t),aA(t),tA(t),rA(t),CM(t)]},oC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sA(e,t,r){const{focusElCls:n,focus:i,borderElCls:l}=r,s=l?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function uA(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function aC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},sA(e,n,t)),uA(r,n,t))}}function cA(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 fA(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 dA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},cA(e,t)),fA(e.componentCls,t))}}const pA=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:i}=e,l=i(n).mul(-1).equal(),s=c=>({[`${t}-compact${c?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:c?l:0,insetInlineStart:c?0:l,backgroundColor:r,content:'""',width:c?"100%":n,height:c?n:"100%"}}});return Object.assign(Object.assign({},s()),s(!0))},hA=Iw(["Button","compact"],e=>{const t=nC(e);return[aC(t),dA(t),pA(t)]},oC);var mA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function vA(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 gA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},yA=ve.forwardRef((e,t)=>{var r,n,i,l;const{loading:s=!1,prefixCls:c,color:f,variant:p,type:h,danger:g=!1,shape:y="default",size:x,styles:w,disabled:C,className:S,rootClassName:E,children:T,icon:O,iconPosition:_="start",ghost:R=!1,block:$=!1,htmlType:M="button",classNames:I,style:L={},autoInsertSpace:V,autoFocus:X}=e,ee=mA(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),K=h||"default",[W,J]=m.useMemo(()=>{if(f&&p)return[f,p];const mt=gA[K]||[];return g?["danger",mt[1]]:mt},[h,f,p,g]),k=W==="danger"?"dangerous":W,{getPrefixCls:F,direction:H,button:j}=m.useContext(zt),A=(r=V??(j==null?void 0:j.autoInsertSpace))!==null&&r!==void 0?r:!0,D=F("btn",c),[ie,Q,ae]=lA(D),ue=m.useContext(Si),se=C??ue,ce=m.useContext(tC),fe=m.useMemo(()=>vA(s),[s]),[Se,De]=m.useState(fe.loading),[Pe,$e]=m.useState(!1),Ve=m.useRef(),Te=gf(t,Ve),Be=m.Children.count(T)===1&&!O&&!Bp(J);m.useEffect(()=>{let mt=null;fe.delay>0?mt=setTimeout(()=>{mt=null,De(!0)},fe.delay):De(fe.loading);function Je(){mt&&(clearTimeout(mt),mt=null)}return Je},[fe]),m.useEffect(()=>{if(!Ve.current||!A)return;const mt=Ve.current.textContent||"";Be&&mm(mt)?Pe||$e(!0):Pe&&$e(!1)}),m.useEffect(()=>{X&&Ve.current&&Ve.current.focus()},[]);const pt=ve.useCallback(mt=>{var Je;if(Se||se){mt.preventDefault();return}(Je=e.onClick)===null||Je===void 0||Je.call(e,mt)},[e.onClick,Se,se]),{compactSize:Ze,compactItemClassnames:ht}=gv(D,H),it={large:"lg",small:"sm",middle:void 0},Le=Sl(mt=>{var Je,Ge;return(Ge=(Je=x??Ze)!==null&&Je!==void 0?Je:ce)!==null&&Ge!==void 0?Ge:mt}),ut=Le&&(n=it[Le])!==null&&n!==void 0?n:"",ye=Se?"loading":O,Ae=Ri(ee,["navigate"]),Ue=Me(D,Q,ae,{[`${D}-${y}`]:y!=="default"&&y,[`${D}-${K}`]:K,[`${D}-dangerous`]:g,[`${D}-color-${k}`]:k,[`${D}-variant-${J}`]:J,[`${D}-${ut}`]:ut,[`${D}-icon-only`]:!T&&T!==0&&!!ye,[`${D}-background-ghost`]:R&&!Bp(J),[`${D}-loading`]:Se,[`${D}-two-chinese-chars`]:Pe&&A&&!Se,[`${D}-block`]:$,[`${D}-rtl`]:H==="rtl",[`${D}-icon-end`]:_==="end"},ht,S,E,j==null?void 0:j.className),tt=Object.assign(Object.assign({},j==null?void 0:j.style),L),Pt=Me(I==null?void 0:I.icon,(i=j==null?void 0:j.classNames)===null||i===void 0?void 0:i.icon),St=Object.assign(Object.assign({},(w==null?void 0:w.icon)||{}),((l=j==null?void 0:j.styles)===null||l===void 0?void 0:l.icon)||{}),Ht=O&&!Se?ve.createElement(rC,{prefixCls:D,className:Pt,style:St},O):ve.createElement(wM,{existIcon:!!O,prefixCls:D,loading:Se}),wt=T||T===0?SM(T,Be&&A):null;if(Ae.href!==void 0)return ie(ve.createElement("a",Object.assign({},Ae,{className:Me(Ue,{[`${D}-disabled`]:se}),href:se?void 0:Ae.href,style:tt,onClick:pt,ref:Te,tabIndex:se?-1:0}),Ht,wt));let Zt=ve.createElement("button",Object.assign({},ee,{type:M,className:Ue,style:tt,onClick:pt,disabled:se,ref:Te}),Ht,wt,ht&&ve.createElement(hA,{prefixCls:D}));return Bp(J)||(Zt=ve.createElement(mM,{component:"Button",disabled:Se},Zt)),ie(Zt)}),Of=yA;Of.Group=yM;Of.__ANT_BUTTON=!0;var lC=m.createContext(null),H1=[];function bA(e,t){var r=m.useState(function(){if(!sn())return null;var w=document.createElement("div");return w}),n=xe(r,1),i=n[0],l=m.useRef(!1),s=m.useContext(lC),c=m.useState(H1),f=xe(c,2),p=f[0],h=f[1],g=s||(l.current?void 0:function(w){h(function(C){var S=[w].concat(Ne(C));return S})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function x(){var w;(w=i.parentElement)===null||w===void 0||w.removeChild(i),l.current=!1}return Wt(function(){return e?s?s(y):y():x(),x},[e]),Wt(function(){p.length&&(p.forEach(function(w){return w()}),h(H1))},[p]),[i,g]}function SA(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,l;if(e){var s=getComputedStyle(e);n.scrollbarColor=s.scrollbarColor,n.scrollbarWidth=s.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(c.width,10),p=parseInt(c.height,10);try{var h=f?"width: ".concat(c.width,";"):"",g=p?"height: ".concat(c.height,";"):"";Do(` #`.concat(t,`::-webkit-scrollbar { `).concat(h,` `).concat(g,` }`),t)}catch(w){console.error(w),i=f,l=p}}document.body.appendChild(r);var y=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,x=e&&l&&!isNaN(l)?l:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),As(t),{width:y,height:x}}function wA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:SA(e)}function CA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var xA="rc-util-locker-".concat(Date.now()),B1=0;function EA(e){var t=!!e,r=m.useState(function(){return B1+=1,"".concat(xA,"_").concat(B1)}),n=xe(r,1),i=n[0];Wt(function(){if(t){var l=wA(document.body).width,s=CA();Do(` html body { overflow-y: hidden; `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",` }`),i)}else As(i);return function(){As(i)}},[t,i])}var RA=!1;function OA(e){return RA}var V1=function(t){return t===!1?!1:!sn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},sC=m.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,c=e.children,f=m.useState(r),p=xe(f,2),h=p[0],g=p[1],y=h||r;m.useEffect(function(){(s||r)&&g(r)},[r,s]);var x=m.useState(function(){return V1(i)}),w=xe(x,2),C=w[0],S=w[1];m.useEffect(function(){var X=V1(i);S(X??null)});var E=bA(y&&!C),T=xe(E,2),O=T[0],_=T[1],R=C??O;EA(n&&r&&sn()&&(R===O||R===document.body));var $=null;if(c&&hl(c)&&t){var M=c;$=M.ref}var I=gf($,t);if(!y||!sn()||C===void 0)return null;var L=R===!1||OA(),V=c;return t&&(V=m.cloneElement(c,{ref:I})),m.createElement(lC.Provider,{value:_},L?V:ev.createPortal(V,R))});function TA(){var e=oe({},ff);return e.useId}var U1=0,W1=TA();const PA=W1?function(t){var r=W1();return t||r}:function(t){var r=m.useState("ssr-id"),n=xe(r,2),i=n[0],l=n[1];return m.useEffect(function(){var s=U1;U1+=1,l("rc_unique_".concat(s))},[]),t||i};var Xi="RC_FORM_INTERNAL_HOOKS",kt=function(){En(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},oa=m.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}}),Ds=m.createContext(null);function vm(e){return e==null?[]:Array.isArray(e)?e:[e]}function $A(e){return e&&!!e._init}function gm(){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 ym=gm();function _A(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function MA(e,t,r){if(nv())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&$s(i,r.prototype),i}function bm(e){var t=typeof Map=="function"?new Map:void 0;return bm=function(n){if(n===null||!_A(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return MA(n,arguments,_s(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$s(i,n)},bm(e)}var AA=/%[sdj%]/g,IA=function(){};function Sm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function xn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,l=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(AA,function(c){if(c==="%%")return"%";if(i>=l)return c;switch(c){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return c}});return s}return e}function FA(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function vr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||FA(t)&&typeof e=="string"&&!e)}function LA(e,t,r){var n=[],i=0,l=e.length;function s(c){n.push.apply(n,Ne(c||[])),i++,i===l&&r(n)}e.forEach(function(c){t(c,s)})}function q1(e,t,r){var n=0,i=e.length;function l(s){if(s&&s.length){r(s);return}var c=n;n=n+1,c<i?t(e[c],l):r([])}l([])}function kA(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ne(e[r]||[]))}),t}var G1=function(e){xi(r,e);var t=Ei(r);function r(n,i){var l;return xr(this,r),l=t.call(this,"Async Validation Error"),Z(ft(l),"errors",void 0),Z(ft(l),"fields",void 0),l.errors=n,l.fields=i,l}return Er(r)}(bm(Error));function NA(e,t,r,n,i){if(t.first){var l=new Promise(function(y,x){var w=function(E){return n(E),E.length?x(new G1(E,Sm(E))):y(i)},C=kA(e);q1(C,r,w)});return l.catch(function(y){return y}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),f=c.length,p=0,h=[],g=new Promise(function(y,x){var w=function(S){if(h.push.apply(h,S),p++,p===f)return n(h),h.length?x(new G1(h,Sm(h))):y(i)};c.length||(n(h),y(i)),c.forEach(function(C){var S=e[C];s.indexOf(C)!==-1?q1(S,r,w):LA(S,r,w)})});return g.catch(function(y){return y}),g}function jA(e){return!!(e&&e.message!==void 0)}function DA(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function K1(e,t){return function(r){var n;return e.fullFields?n=DA(t,e.fullFields):n=t[r.field||e.fullField],jA(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function X1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];rt(n)==="object"&&rt(e[r])==="object"?e[r]=oe(oe({},e[r]),n):e[r]=n}}return e}var Ba="enum",zA=function(t,r,n,i,l){t[Ba]=Array.isArray(t[Ba])?t[Ba]:[],t[Ba].indexOf(r)===-1&&i.push(xn(l.messages[Ba],t.fullField,t[Ba].join(", ")))},HA=function(t,r,n,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(xn(l.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||i.push(xn(l.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},BA=function(t,r,n,i,l){var s=typeof t.len=="number",c=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=r,g=null,y=typeof r=="number",x=typeof r=="string",w=Array.isArray(r);if(y?g="number":x?g="string":w&&(g="array"),!g)return!1;w&&(h=r.length),x&&(h=r.replace(p,"_").length),s?h!==t.len&&i.push(xn(l.messages[g].len,t.fullField,t.len)):c&&!f&&h<t.min?i.push(xn(l.messages[g].min,t.fullField,t.min)):f&&!c&&h>t.max?i.push(xn(l.messages[g].max,t.fullField,t.max)):c&&f&&(h<t.min||h>t.max)&&i.push(xn(l.messages[g].range,t.fullField,t.min,t.max))},uC=function(t,r,n,i,l,s){t.required&&(!n.hasOwnProperty(t.field)||vr(r,s||t.type))&&i.push(xn(l.messages.required,t.fullField))},yc;const VA=function(){if(yc)return yc;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(l),c=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),f=new RegExp("^".concat(r,"$")),p=new RegExp("^".concat(s,"$")),h=function($){return $&&$.exact?c:new RegExp("(?:".concat(t($)).concat(r).concat(t($),")|(?:").concat(t($)).concat(s).concat(t($),")"),"g")};h.v4=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(r).concat(t(R)),"g")},h.v6=function(R){return R&&R.exact?p:new RegExp("".concat(t(R)).concat(s).concat(t(R)),"g")};var g="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",x=h.v4().source,w=h.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",T="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',_="(?:".concat(g,"|www\\.)").concat(y,"(?:localhost|").concat(x,"|").concat(w,"|").concat(C).concat(S).concat(E,")").concat(T).concat(O);return yc=new RegExp("(?:^".concat(_,"$)"),"i"),yc};var Q1={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},gs={integer:function(t){return gs.number(t)&&parseInt(t,10)===t},float:function(t){return gs.number(t)&&!gs.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 rt(t)==="object"&&!gs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Q1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(VA())},hex:function(t){return typeof t=="string"&&!!t.match(Q1.hex)}},UA=function(t,r,n,i,l){if(t.required&&r===void 0){uC(t,r,n,i,l);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;s.indexOf(c)>-1?gs[c](r)||i.push(xn(l.messages.types[c],t.fullField,t.type)):c&&rt(r)!==t.type&&i.push(xn(l.messages.types[c],t.fullField,t.type))},WA=function(t,r,n,i,l){(/^\s+$/.test(r)||r==="")&&i.push(xn(l.messages.whitespace,t.fullField))};const bt={required:uC,whitespace:WA,type:UA,range:BA,enum:zA,pattern:HA};var qA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l)}n(s)},GA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(r==null&&!t.required)return n();bt.required(t,r,i,s,l,"array"),r!=null&&(bt.type(t,r,i,s,l),bt.range(t,r,i,s,l))}n(s)},KA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&bt.type(t,r,i,s,l)}n(s)},XA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r,"date")&&!t.required)return n();if(bt.required(t,r,i,s,l),!vr(r,"date")){var f;r instanceof Date?f=r:f=new Date(r),bt.type(t,f,i,s,l),f&&bt.range(t,f.getTime(),i,s,l)}}n(s)},QA="enum",YA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&bt[QA](t,r,i,s,l)}n(s)},JA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&(bt.type(t,r,i,s,l),bt.range(t,r,i,s,l))}n(s)},ZA=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&(bt.type(t,r,i,s,l),bt.range(t,r,i,s,l))}n(s)},eI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&bt.type(t,r,i,s,l)}n(s)},tI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(r===""&&(r=void 0),vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&(bt.type(t,r,i,s,l),bt.range(t,r,i,s,l))}n(s)},rI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),r!==void 0&&bt.type(t,r,i,s,l)}n(s)},nI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r,"string")&&!t.required)return n();bt.required(t,r,i,s,l),vr(r,"string")||bt.pattern(t,r,i,s,l)}n(s)},oI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r)&&!t.required)return n();bt.required(t,r,i,s,l),vr(r)||bt.type(t,r,i,s,l)}n(s)},iI=function(t,r,n,i,l){var s=[],c=Array.isArray(r)?"array":rt(r);bt.required(t,r,i,s,l,c),n(s)},aI=function(t,r,n,i,l){var s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(vr(r,"string")&&!t.required)return n();bt.required(t,r,i,s,l,"string"),vr(r,"string")||(bt.type(t,r,i,s,l),bt.range(t,r,i,s,l),bt.pattern(t,r,i,s,l),t.whitespace===!0&&bt.whitespace(t,r,i,s,l))}n(s)},Gp=function(t,r,n,i,l){var s=t.type,c=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(vr(r,s)&&!t.required)return n();bt.required(t,r,i,c,l,s),vr(r,s)||bt.type(t,r,i,c,l)}n(c)};const Cs={string:aI,method:eI,number:tI,boolean:KA,regexp:oI,integer:ZA,float:JA,array:GA,object:rI,enum:YA,pattern:nI,date:XA,url:Gp,hex:Gp,email:Gp,required:iI,any:qA};var Zs=function(){function e(t){xr(this,e),Z(this,"rules",null),Z(this,"_messages",ym),this.define(t)}return Er(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(rt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var l=r[i];n.rules[i]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(r){return r&&(this._messages=X1(gm(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,c=i,f=l;if(typeof c=="function"&&(f=c,c={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function p(w){var C=[],S={};function E(O){if(Array.isArray(O)){var _;C=(_=C).concat.apply(_,Ne(O))}else C.push(O)}for(var T=0;T<w.length;T++)E(w[T]);C.length?(S=Sm(C),f(C,S)):f(null,s)}if(c.messages){var h=this.messages();h===ym&&(h=gm()),X1(h,c.messages),c.messages=h}else c.messages=this.messages();var g={},y=c.keys||Object.keys(this.rules);y.forEach(function(w){var C=n.rules[w],S=s[w];C.forEach(function(E){var T=E;typeof T.transform=="function"&&(s===r&&(s=oe({},s)),S=s[w]=T.transform(S),S!=null&&(T.type=T.type||(Array.isArray(S)?"array":rt(S)))),typeof T=="function"?T={validator:T}:T=oe({},T),T.validator=n.getValidationMethod(T),T.validator&&(T.field=w,T.fullField=T.fullField||w,T.type=n.getType(T),g[w]=g[w]||[],g[w].push({rule:T,value:S,source:s,field:w}))})});var x={};return NA(g,c,function(w,C){var S=w.rule,E=(S.type==="object"||S.type==="array")&&(rt(S.fields)==="object"||rt(S.defaultField)==="object");E=E&&(S.required||!S.required&&w.value),S.field=w.field;function T(M,I){return oe(oe({},I),{},{fullField:"".concat(S.fullField,".").concat(M),fullFields:S.fullFields?[].concat(Ne(S.fullFields),[M]):[M]})}function O(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(M)?M:[M];!c.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&S.message!==void 0&&(I=[].concat(S.message));var L=I.map(K1(S,s));if(c.first&&L.length)return x[S.field]=1,C(L);if(!E)C(L);else{if(S.required&&!w.value)return S.message!==void 0?L=[].concat(S.message).map(K1(S,s)):c.error&&(L=[c.error(S,xn(c.messages.required,S.field))]),C(L);var V={};S.defaultField&&Object.keys(w.value).map(function(K){V[K]=S.defaultField}),V=oe(oe({},V),w.rule.fields);var X={};Object.keys(V).forEach(function(K){var W=V[K],J=Array.isArray(W)?W:[W];X[K]=J.map(T.bind(null,K))});var ee=new e(X);ee.messages(c.messages),w.rule.options&&(w.rule.options.messages=c.messages,w.rule.options.error=c.error),ee.validate(w.value,w.rule.options||c,function(K){var W=[];L&&L.length&&W.push.apply(W,Ne(L)),K&&K.length&&W.push.apply(W,Ne(K)),C(W.length?W:null)})}}var _;if(S.asyncValidator)_=S.asyncValidator(S,w.value,O,w.source,c);else if(S.validator){try{_=S.validator(S,w.value,O,w.source,c)}catch(M){var R,$;(R=($=console).error)===null||R===void 0||R.call($,M),c.suppressValidatorError||setTimeout(function(){throw M},0),O(M.message)}_===!0?O():_===!1?O(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):_ instanceof Array?O(_):_ instanceof Error&&O(_.message)}_&&_.then&&_.then(function(){return O()},function(M){return O(M)})},function(w){p(w)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Cs.hasOwnProperty(r.type))throw new Error(xn("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?Cs.required:Cs[this.getType(r)]||void 0}}]),e}();Z(Zs,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Cs[t]=r});Z(Zs,"warning",IA);Z(Zs,"messages",ym);Z(Zs,"validators",Cs);var yn="'${name}' is not a valid ${type}",cC={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:yn,method:yn,array:yn,object:yn,number:yn,date:yn,boolean:yn,integer:yn,float:yn,regexp:yn,email:yn,url:yn,hex:yn},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}"}},Y1=Zs;function lI(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var J1="CODE_LOGIC_ERROR";function wm(e,t,r,n,i){return Cm.apply(this,arguments)}function Cm(){return Cm=ca(Xr().mark(function e(t,r,n,i,l){var s,c,f,p,h,g,y,x,w;return Xr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return s=oe({},n),delete s.ruleIndex,Y1.warning=function(){},s.validator&&(c=s.validator,s.validator=function(){try{return c.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(J1)}}),f=null,s&&s.type==="array"&&s.defaultField&&(f=s.defaultField,delete s.defaultField),p=new Y1(Z({},t,[s])),h=Xa(cC,i.validateMessages),p.messages(h),g=[],S.prev=10,S.next=13,Promise.resolve(p.validate(Z({},t,r),oe({},i)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(g=S.t0.errors.map(function(E,T){var O=E.message,_=O===J1?h.default:O;return m.isValidElement(_)?m.cloneElement(_,{key:"error_".concat(T)}):_}));case 18:if(!(!g.length&&f)){S.next=23;break}return S.next=21,Promise.all(r.map(function(E,T){return wm("".concat(t,".").concat(T),E,f,i,l)}));case 21:return y=S.sent,S.abrupt("return",y.reduce(function(E,T){return[].concat(Ne(E),Ne(T))},[]));case 23:return x=oe(oe({},n),{},{name:t,enum:(n.enum||[]).join(", ")},l),w=g.map(function(E){return typeof E=="string"?lI(E,x):E}),S.abrupt("return",w);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),Cm.apply(this,arguments)}function sI(e,t,r,n,i,l){var s=e.join("."),c=r.map(function(h,g){var y=h.validator,x=oe(oe({},h),{},{ruleIndex:g});return y&&(x.validator=function(w,C,S){var E=!1,T=function(){for(var R=arguments.length,$=new Array(R),M=0;M<R;M++)$[M]=arguments[M];Promise.resolve().then(function(){En(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||S.apply(void 0,$)})},O=y(w,C,T);E=O&&typeof O.then=="function"&&typeof O.catch=="function",En(E,"`callback` is deprecated. Please return a promise instead."),E&&O.then(function(){S()}).catch(function(_){S(_||" ")})}),x}).sort(function(h,g){var y=h.warningOnly,x=h.ruleIndex,w=g.warningOnly,C=g.ruleIndex;return!!y==!!w?x-C:y?1:-1}),f;if(i===!0)f=new Promise(function(){var h=ca(Xr().mark(function g(y,x){var w,C,S;return Xr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:w=0;case 1:if(!(w<c.length)){T.next=12;break}return C=c[w],T.next=5,wm(s,t,C,n,l);case 5:if(S=T.sent,!S.length){T.next=9;break}return x([{errors:S,rule:C}]),T.abrupt("return");case 9:w+=1,T.next=1;break;case 12:y([]);case 13:case"end":return T.stop()}},g)}));return function(g,y){return h.apply(this,arguments)}}());else{var p=c.map(function(h){return wm(s,t,h,n,l).then(function(g){return{errors:g,rule:h}})});f=(i?cI(p):uI(p)).then(function(h){return Promise.reject(h)})}return f.catch(function(h){return h}),f}function uI(e){return xm.apply(this,arguments)}function xm(){return xm=ca(Xr().mark(function e(t){return Xr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var l,s=(l=[]).concat.apply(l,Ne(i));return s}));case 1:case"end":return n.stop()}},e)})),xm.apply(this,arguments)}function cI(e){return Em.apply(this,arguments)}function Em(){return Em=ca(Xr().mark(function e(t){var r;return Xr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(c){c.errors.length&&l([c]),r+=1,r===t.length&&l([])})})}));case 2:case"end":return i.stop()}},e)})),Em.apply(this,arguments)}function lr(e){return vm(e)}function Z1(e,t){var r={};return t.forEach(function(n){var i=Hn(e,n);r=zn(r,n,i)}),r}function el(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return fC(t,n,r)})}function fC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function fI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||rt(e)!=="object"||rt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return Ne(i).every(function(l){var s=e[l],c=t[l];return typeof s=="function"&&typeof c=="function"?!0:s===c})}function dI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&rt(t.target)==="object"&&e in t.target?t.target[e]:t}function eb(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],l=t-r;return l>0?[].concat(Ne(e.slice(0,r)),[i],Ne(e.slice(r,t)),Ne(e.slice(t+1,n))):l<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,r+1)),[i],Ne(e.slice(r+1,n))):e}var pI=["name"],Nn=[];function Kp(e,t,r,n,i,l){return typeof e=="function"?e(t,r,"source"in l?{source:l.source}:{}):n!==i}var Rv=function(e){xi(r,e);var t=Ei(r);function r(n){var i;if(xr(this,r),i=t.call(this,n),Z(ft(i),"state",{resetCount:0}),Z(ft(i),"cancelRegisterFunc",null),Z(ft(i),"mounted",!1),Z(ft(i),"touched",!1),Z(ft(i),"dirty",!1),Z(ft(i),"validatePromise",void 0),Z(ft(i),"prevValidating",void 0),Z(ft(i),"errors",Nn),Z(ft(i),"warnings",Nn),Z(ft(i),"cancelRegister",function(){var f=i.props,p=f.preserve,h=f.isListField,g=f.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(h,p,lr(g)),i.cancelRegisterFunc=null}),Z(ft(i),"getNamePath",function(){var f=i.props,p=f.name,h=f.fieldContext,g=h.prefixName,y=g===void 0?[]:g;return p!==void 0?[].concat(Ne(y),Ne(p)):[]}),Z(ft(i),"getRules",function(){var f=i.props,p=f.rules,h=p===void 0?[]:p,g=f.fieldContext;return h.map(function(y){return typeof y=="function"?y(g):y})}),Z(ft(i),"refresh",function(){i.mounted&&i.setState(function(f){var p=f.resetCount;return{resetCount:p+1}})}),Z(ft(i),"metaCache",null),Z(ft(i),"triggerMetaEvent",function(f){var p=i.props.onMetaChange;if(p){var h=oe(oe({},i.getMeta()),{},{destroy:f});Dh(i.metaCache,h)||p(h),i.metaCache=h}else i.metaCache=null}),Z(ft(i),"onStoreChange",function(f,p,h){var g=i.props,y=g.shouldUpdate,x=g.dependencies,w=x===void 0?[]:x,C=g.onReset,S=h.store,E=i.getNamePath(),T=i.getValue(f),O=i.getValue(S),_=p&&el(p,E);switch(h.type==="valueUpdate"&&h.source==="external"&&!Dh(T,O)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Nn,i.warnings=Nn,i.triggerMetaEvent()),h.type){case"reset":if(!p||_){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Nn,i.warnings=Nn,i.triggerMetaEvent(),C==null||C(),i.refresh();return}break;case"remove":{if(y&&Kp(y,f,S,T,O,h)){i.reRender();return}break}case"setField":{var R=h.data;if(_){"touched"in R&&(i.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(i.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(i.errors=R.errors||Nn),"warnings"in R&&(i.warnings=R.warnings||Nn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in R&&el(p,E,!0)){i.reRender();return}if(y&&!E.length&&Kp(y,f,S,T,O,h)){i.reRender();return}break}case"dependenciesUpdate":{var $=w.map(lr);if($.some(function(M){return el(h.relatedFields,M)})){i.reRender();return}break}default:if(_||(!w.length||E.length||y)&&Kp(y,f,S,T,O,h)){i.reRender();return}break}y===!0&&i.reRender()}),Z(ft(i),"validateRules",function(f){var p=i.getNamePath(),h=i.getValue(),g=f||{},y=g.triggerName,x=g.validateOnly,w=x===void 0?!1:x,C=Promise.resolve().then(ca(Xr().mark(function S(){var E,T,O,_,R,$,M;return Xr().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(i.mounted){L.next=2;break}return L.abrupt("return",[]);case 2:if(E=i.props,T=E.validateFirst,O=T===void 0?!1:T,_=E.messageVariables,R=E.validateDebounce,$=i.getRules(),y&&($=$.filter(function(V){return V}).filter(function(V){var X=V.validateTrigger;if(!X)return!0;var ee=vm(X);return ee.includes(y)})),!(R&&y)){L.next=10;break}return L.next=8,new Promise(function(V){setTimeout(V,R)});case 8:if(i.validatePromise===C){L.next=10;break}return L.abrupt("return",[]);case 10:return M=sI(p,h,$,f,O,_),M.catch(function(V){return V}).then(function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nn;if(i.validatePromise===C){var X;i.validatePromise=null;var ee=[],K=[];(X=V.forEach)===null||X===void 0||X.call(V,function(W){var J=W.rule.warningOnly,z=W.errors,k=z===void 0?Nn:z;J?K.push.apply(K,Ne(k)):ee.push.apply(ee,Ne(k))}),i.errors=ee,i.warnings=K,i.triggerMetaEvent(),i.reRender()}}),L.abrupt("return",M);case 13:case"end":return L.stop()}},S)})));return w||(i.validatePromise=C,i.dirty=!0,i.errors=Nn,i.warnings=Nn,i.triggerMetaEvent(),i.reRender()),C}),Z(ft(i),"isFieldValidating",function(){return!!i.validatePromise}),Z(ft(i),"isFieldTouched",function(){return i.touched}),Z(ft(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var f=i.props.fieldContext,p=f.getInternalHooks(Xi),h=p.getInitialValue;return h(i.getNamePath())!==void 0}),Z(ft(i),"getErrors",function(){return i.errors}),Z(ft(i),"getWarnings",function(){return i.warnings}),Z(ft(i),"isListField",function(){return i.props.isListField}),Z(ft(i),"isList",function(){return i.props.isList}),Z(ft(i),"isPreserve",function(){return i.props.preserve}),Z(ft(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var f={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return f}),Z(ft(i),"getOnlyChild",function(f){if(typeof f=="function"){var p=i.getMeta();return oe(oe({},i.getOnlyChild(f(i.getControlled(),p,i.props.fieldContext))),{},{isFunction:!0})}var h=ea(f);return h.length!==1||!m.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),Z(ft(i),"getValue",function(f){var p=i.props.fieldContext.getFieldsValue,h=i.getNamePath();return Hn(f||p(!0),h)}),Z(ft(i),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=i.props,h=p.name,g=p.trigger,y=p.validateTrigger,x=p.getValueFromEvent,w=p.normalize,C=p.valuePropName,S=p.getValueProps,E=p.fieldContext,T=y!==void 0?y:E.validateTrigger,O=i.getNamePath(),_=E.getInternalHooks,R=E.getFieldsValue,$=_(Xi),M=$.dispatch,I=i.getValue(),L=S||function(W){return Z({},C,W)},V=f[g],X=h!==void 0?L(I):{},ee=oe(oe({},f),X);ee[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var W,J=arguments.length,z=new Array(J),k=0;k<J;k++)z[k]=arguments[k];x?W=x.apply(void 0,z):W=dI.apply(void 0,[C].concat(z)),w&&(W=w(W,I,R(!0))),W!==I&&M({type:"updateValue",namePath:O,value:W}),V&&V.apply(void 0,z)};var K=vm(T||[]);return K.forEach(function(W){var J=ee[W];ee[W]=function(){J&&J.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&M({type:"validateField",namePath:O,triggerName:W})}}),ee}),n.fieldContext){var l=n.fieldContext.getInternalHooks,s=l(Xi),c=s.initEntityValue;c(ft(i))}return i}return Er(r,[{key:"componentDidMount",value:function(){var i=this.props,l=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var c=s.getInternalHooks,f=c(Xi),p=f.registerField;this.cancelRegisterFunc=p(this)}l===!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 i=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),c=s.child,f=s.isFunction,p;return f?p=c:m.isValidElement(c)?p=m.cloneElement(c,this.getControlled(c.props)):(En(!c,"`children` of Field is not validate ReactElement."),p=c),m.createElement(m.Fragment,{key:i},p)}}]),r}(m.Component);Z(Rv,"contextType",oa);Z(Rv,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ov(e){var t=e.name,r=kr(e,pI),n=m.useContext(oa),i=m.useContext(Ds),l=t!==void 0?lr(t):void 0,s="keep";return r.isListField||(s="_".concat((l||[]).join("_"))),m.createElement(Rv,It({key:s,name:l,isListField:!!i},r,{fieldContext:n}))}function dC(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,l=e.validateTrigger,s=e.isListField,c=m.useContext(oa),f=m.useContext(Ds),p=m.useRef({keys:[],id:0}),h=p.current,g=m.useMemo(function(){var C=lr(c.prefixName)||[];return[].concat(Ne(C),Ne(lr(t)))},[c.prefixName,t]),y=m.useMemo(function(){return oe(oe({},c),{},{prefixName:g})},[c,g]),x=m.useMemo(function(){return{getKey:function(S){var E=g.length,T=S[E];return[h.keys[T],S.slice(E+1)]}}},[g]);if(typeof n!="function")return En(!1,"Form.List only accepts function as children."),null;var w=function(S,E,T){var O=T.source;return O==="internal"?!1:S!==E};return m.createElement(Ds.Provider,{value:x},m.createElement(oa.Provider,{value:y},m.createElement(Ov,{name:[],shouldUpdate:w,rules:i,validateTrigger:l,initialValue:r,isList:!0,isListField:s??!!f},function(C,S){var E=C.value,T=E===void 0?[]:E,O=C.onChange,_=c.getFieldValue,R=function(){var L=_(g||[]);return L||[]},$={add:function(L,V){var X=R();V>=0&&V<=X.length?(h.keys=[].concat(Ne(h.keys.slice(0,V)),[h.id],Ne(h.keys.slice(V))),O([].concat(Ne(X.slice(0,V)),[L],Ne(X.slice(V))))):(h.keys=[].concat(Ne(h.keys),[h.id]),O([].concat(Ne(X),[L]))),h.id+=1},remove:function(L){var V=R(),X=new Set(Array.isArray(L)?L:[L]);X.size<=0||(h.keys=h.keys.filter(function(ee,K){return!X.has(K)}),O(V.filter(function(ee,K){return!X.has(K)})))},move:function(L,V){if(L!==V){var X=R();L<0||L>=X.length||V<0||V>=X.length||(h.keys=eb(h.keys,L,V),O(eb(X,L,V)))}}},M=T||[];return Array.isArray(M)||(M=[]),n(M.map(function(I,L){var V=h.keys[L];return V===void 0&&(h.keys[L]=h.id,V=h.keys[L],h.id+=1),{name:L,key:V,isListField:!0}}),$,S)})))}function hI(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,l){e.forEach(function(s,c){s.catch(function(f){return t=!0,f}).then(function(f){r-=1,n[c]=f,!(r>0)&&(t&&l(n),i(n))})})}):Promise.resolve([])}var pC="__@field_split__";function Xp(e){return e.map(function(t){return"".concat(rt(t),":").concat(t)}).join(pC)}var Va=function(){function e(){xr(this,e),Z(this,"kvs",new Map)}return Er(e,[{key:"set",value:function(r,n){this.kvs.set(Xp(r),n)}},{key:"get",value:function(r){return this.kvs.get(Xp(r))}},{key:"update",value:function(r,n){var i=this.get(r),l=n(i);l?this.set(r,l):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Xp(r))}},{key:"map",value:function(r){return Ne(this.kvs.entries()).map(function(n){var i=xe(n,2),l=i[0],s=i[1],c=l.split(pC);return r({key:c.map(function(f){var p=f.match(/^([^:]*):(.*)$/),h=xe(p,3),g=h[1],y=h[2];return g==="number"?Number(y):y}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,l=n.value;return r[i.join(".")]=l,null}),r}}]),e}(),mI=["name"],vI=Er(function e(t){var r=this;xr(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),Z(this,"getInternalHooks",function(n){return n===Xi?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(En(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(n){r.subscribable=n}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var l,s=Xa(n,r.store);(l=r.prevWithoutPreserves)===null||l===void 0||l.map(function(c){var f=c.key;s=zn(s,f,Hn(n,f))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),Z(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new Va;r.getFieldEntities(!0).forEach(function(l){r.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),Z(this,"getInitialValue",function(n){var i=Hn(r.initialValues,n);return n.length?Xa(i):i}),Z(this,"setCallbacks",function(n){r.callbacks=n}),Z(this,"setValidateMessages",function(n){r.validateMessages=n}),Z(this,"setPreserve",function(n){r.preserve=n}),Z(this,"watchList",[]),Z(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),Z(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),l=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(i,l,n)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(n){r.store=n}),Z(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),Z(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Va;return r.getFieldEntities(n).forEach(function(l){var s=l.getNamePath();i.set(s,l)}),i}),Z(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(l){var s=lr(l);return i.get(s)||{INVALIDATE_NAME_PATH:lr(l)}})}),Z(this,"getFieldsValue",function(n,i){r.warningUnhooked();var l,s,c;if(n===!0||Array.isArray(n)?(l=n,s=i):n&&rt(n)==="object"&&(c=n.strict,s=n.filter),l===!0&&!s)return r.store;var f=r.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),p=[];return f.forEach(function(h){var g,y,x="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(c){var w,C;if((w=(C=h).isList)!==null&&w!==void 0&&w.call(C))return}else if(!l&&(g=(y=h).isListField)!==null&&g!==void 0&&g.call(y))return;if(!s)p.push(x);else{var S="getMeta"in h?h.getMeta():null;s(S)&&p.push(x)}}),Z1(r.store,p.map(lr))}),Z(this,"getFieldValue",function(n){r.warningUnhooked();var i=lr(n);return Hn(r.store,i)}),Z(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:lr(n[s]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(n){r.warningUnhooked();var i=lr(n),l=r.getFieldsError([i])[0];return l.errors}),Z(this,"getFieldWarning",function(n){r.warningUnhooked();var i=lr(n),l=r.getFieldsError([i])[0];return l.warnings}),Z(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];var s=i[0],c=i[1],f,p=!1;i.length===0?f=null:i.length===1?Array.isArray(s)?(f=s.map(lr),p=!1):(f=null,p=s):(f=s.map(lr),p=c);var h=r.getFieldEntities(!0),g=function(S){return S.isFieldTouched()};if(!f)return p?h.every(function(C){return g(C)||C.isList()}):h.some(g);var y=new Va;f.forEach(function(C){y.set(C,[])}),h.forEach(function(C){var S=C.getNamePath();f.forEach(function(E){E.every(function(T,O){return S[O]===T})&&y.update(E,function(T){return[].concat(Ne(T),[C])})})});var x=function(S){return S.some(g)},w=y.map(function(C){var S=C.value;return S});return p?w.every(x):w.some(x)}),Z(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),Z(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(s){return s.isFieldValidating()});var l=n.map(lr);return i.some(function(s){var c=s.getNamePath();return el(l,c)&&s.isFieldValidating()})}),Z(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),Z(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Va,l=r.getFieldEntities(!0);l.forEach(function(f){var p=f.props.initialValue,h=f.getNamePath();if(p!==void 0){var g=i.get(h)||new Set;g.add({entity:f,value:p}),i.set(h,g)}});var s=function(p){p.forEach(function(h){var g=h.props.initialValue;if(g!==void 0){var y=h.getNamePath(),x=r.getInitialValue(y);if(x!==void 0)En(!1,"Form already set 'initialValues' with path '".concat(y.join("."),"'. Field can not overwrite it."));else{var w=i.get(y);if(w&&w.size>1)En(!1,"Multiple Field with path '".concat(y.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(w){var C=r.getFieldValue(y),S=h.isListField();!S&&(!n.skipExist||C===void 0)&&r.updateStore(zn(r.store,y,Ne(w)[0].value))}}}})},c;n.entities?c=n.entities:n.namePathList?(c=[],n.namePathList.forEach(function(f){var p=i.get(f);if(p){var h;(h=c).push.apply(h,Ne(Ne(p).map(function(g){return g.entity})))}})):c=l,s(c)}),Z(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(Xa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var l=n.map(lr);l.forEach(function(s){var c=r.getInitialValue(s);r.updateStore(zn(r.store,s,c))}),r.resetWithFieldInitialValue({namePathList:l}),r.notifyObservers(i,l,{type:"reset"}),r.notifyWatch(l)}),Z(this,"setFields",function(n){r.warningUnhooked();var i=r.store,l=[];n.forEach(function(s){var c=s.name,f=kr(s,mI),p=lr(c);l.push(p),"value"in f&&r.updateStore(zn(r.store,p,f.value)),r.notifyObservers(i,[p],{type:"setField",data:s})}),r.notifyWatch(l)}),Z(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(l){var s=l.getNamePath(),c=l.getMeta(),f=oe(oe({},c),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return i}),Z(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var l=n.getNamePath(),s=Hn(r.store,l);s===void 0&&r.updateStore(zn(r.store,l,i))}}),Z(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),Z(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var l=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(l,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,c){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(g){return g!==n}),!r.isMergedPreserve(c)&&(!s||f.length>1)){var p=s?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==p&&r.fieldEntities.every(function(g){return!fC(g.getNamePath(),i)})){var h=r.store;r.updateStore(zn(h,i,p,!0)),r.notifyObservers(h,[i],{type:"remove"}),r.triggerDependenciesUpdate(h,i)}}r.notifyWatch([i])}}),Z(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,l=n.value;r.updateValue(i,l);break}case"validateField":{var s=n.namePath,c=n.triggerName;r.validateFields([s],{triggerName:c});break}}}),Z(this,"notifyObservers",function(n,i,l){if(r.subscribable){var s=oe(oe({},l),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(c){var f=c.onStoreChange;f(n,i,s)})}else r.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(n,i){var l=r.getDependencyChildrenFields(i);return l.length&&r.validateFields(l),r.notifyObservers(n,l,{type:"dependenciesUpdate",relatedFields:[i].concat(Ne(l))}),l}),Z(this,"updateValue",function(n,i){var l=lr(n),s=r.store;r.updateStore(zn(r.store,l,i)),r.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),r.notifyWatch([l]);var c=r.triggerDependenciesUpdate(s,l),f=r.callbacks.onValuesChange;if(f){var p=Z1(r.store,[l]);f(p,r.getFieldsValue())}r.triggerOnFieldsChange([l].concat(Ne(c)))}),Z(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var l=Xa(r.store,n);r.updateStore(l)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),Z(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),Z(this,"getDependencyChildrenFields",function(n){var i=new Set,l=[],s=new Va;r.getFieldEntities().forEach(function(f){var p=f.props.dependencies;(p||[]).forEach(function(h){var g=lr(h);s.update(g,function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return y.add(f),y})})});var c=function f(p){var h=s.get(p)||new Set;h.forEach(function(g){if(!i.has(g)){i.add(g);var y=g.getNamePath();g.isFieldDirty()&&y.length&&(l.push(y),f(y))}})};return c(n),l}),Z(this,"triggerOnFieldsChange",function(n,i){var l=r.callbacks.onFieldsChange;if(l){var s=r.getFields();if(i){var c=new Va;i.forEach(function(p){var h=p.name,g=p.errors;c.set(h,g)}),s.forEach(function(p){p.errors=c.get(p.name)||p.errors})}var f=s.filter(function(p){var h=p.name;return el(n,h)});f.length&&l(f,s)}}),Z(this,"validateFields",function(n,i){r.warningUnhooked();var l,s;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(l=n,s=i):s=n;var c=!!l,f=c?l.map(lr):[],p=[],h=String(Date.now()),g=new Set,y=s||{},x=y.recursive,w=y.dirty;r.getFieldEntities(!0).forEach(function(T){if(c||f.push(T.getNamePath()),!(!T.props.rules||!T.props.rules.length)&&!(w&&!T.isFieldDirty())){var O=T.getNamePath();if(g.add(O.join(h)),!c||el(f,O,x)){var _=T.validateRules(oe({validateMessages:oe(oe({},cC),r.validateMessages)},s));p.push(_.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(R){var $,M=[],I=[];return($=R.forEach)===null||$===void 0||$.call(R,function(L){var V=L.rule.warningOnly,X=L.errors;V?I.push.apply(I,Ne(X)):M.push.apply(M,Ne(X))}),M.length?Promise.reject({name:O,errors:M,warnings:I}):{name:O,errors:M,warnings:I}}))}}});var C=hI(p);r.lastValidatePromise=C,C.catch(function(T){return T}).then(function(T){var O=T.map(function(_){var R=_.name;return R});r.notifyObservers(r.store,O,{type:"validateFinish"}),r.triggerOnFieldsChange(O,T)});var S=C.then(function(){return r.lastValidatePromise===C?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(T){var O=T.filter(function(_){return _&&_.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:O,outOfDate:r.lastValidatePromise!==C})});S.catch(function(T){return T});var E=f.filter(function(T){return g.has(T.join(h))});return r.triggerOnFieldsChange(E),S}),Z(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch(l){console.error(l)}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function Tv(e){var t=m.useRef(),r=m.useState({}),n=xe(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var l=function(){i({})},s=new vI(l);t.current=s.getForm()}return[t.current]}var Rm=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hC=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,l=t.children,s=m.useContext(Rm),c=m.useRef({});return m.createElement(Rm.Provider,{value:oe(oe({},s),{},{validateMessages:oe(oe({},s.validateMessages),r),triggerFormChange:function(p,h){n&&n(p,{changedFields:h,forms:c.current}),s.triggerFormChange(p,h)},triggerFormFinish:function(p,h){i&&i(p,{values:h,forms:c.current}),s.triggerFormFinish(p,h)},registerForm:function(p,h){p&&(c.current=oe(oe({},c.current),{},Z({},p,h))),s.registerForm(p,h)},unregisterForm:function(p){var h=oe({},c.current);delete h[p],c.current=h,s.unregisterForm(p)}})},l)},gI=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yI=function(t,r){var n=t.name,i=t.initialValues,l=t.fields,s=t.form,c=t.preserve,f=t.children,p=t.component,h=p===void 0?"form":p,g=t.validateMessages,y=t.validateTrigger,x=y===void 0?"onChange":y,w=t.onValuesChange,C=t.onFieldsChange,S=t.onFinish,E=t.onFinishFailed,T=t.clearOnDestroy,O=kr(t,gI),_=m.useRef(null),R=m.useContext(Rm),$=Tv(s),M=xe($,1),I=M[0],L=I.getInternalHooks(Xi),V=L.useSubscribe,X=L.setInitialValues,ee=L.setCallbacks,K=L.setValidateMessages,W=L.setPreserve,J=L.destroyForm;m.useImperativeHandle(r,function(){return oe(oe({},I),{},{nativeElement:_.current})}),m.useEffect(function(){return R.registerForm(n,I),function(){R.unregisterForm(n)}},[R,I,n]),K(oe(oe({},R.validateMessages),g)),ee({onValuesChange:w,onFieldsChange:function(Q){if(R.triggerFormChange(n,Q),C){for(var ae=arguments.length,ue=new Array(ae>1?ae-1:0),se=1;se<ae;se++)ue[se-1]=arguments[se];C.apply(void 0,[Q].concat(ue))}},onFinish:function(Q){R.triggerFormFinish(n,Q),S&&S(Q)},onFinishFailed:E}),W(c);var z=m.useRef(null);X(i,!z.current),z.current||(z.current=!0),m.useEffect(function(){return function(){return J(T)}},[]);var k,F=typeof f=="function";if(F){var H=I.getFieldsValue(!0);k=f(H,I)}else k=f;V(!F);var j=m.useRef();m.useEffect(function(){fI(j.current||[],l||[])||I.setFields(l||[]),j.current=l},[l,I]);var A=m.useMemo(function(){return oe(oe({},I),{},{validateTrigger:x})},[I,x]),D=m.createElement(Ds.Provider,{value:null},m.createElement(oa.Provider,{value:A},k));return h===!1?D:m.createElement(h,It({},O,{ref:_,onSubmit:function(Q){Q.preventDefault(),Q.stopPropagation(),I.submit()},onReset:function(Q){var ae;Q.preventDefault(),I.resetFields(),(ae=O.onReset)===null||ae===void 0||ae.call(O,Q)}}),D)};function tb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function mC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],l=i===void 0?{}:i,s=$A(l)?{form:l}:l,c=s.form,f=m.useState(),p=xe(f,2),h=p[0],g=p[1],y=m.useMemo(function(){return tb(h)},[h]),x=m.useRef(y);x.current=y;var w=m.useContext(oa),C=c||w,S=C&&C._init,E=lr(n),T=m.useRef(E);return T.current=E,m.useEffect(function(){if(S){var O=C.getFieldsValue,_=C.getInternalHooks,R=_(Xi),$=R.registerWatch,M=function(X,ee){var K=s.preserve?ee:X;return typeof n=="function"?n(K):Hn(K,T.current)},I=$(function(V,X){var ee=M(V,X),K=tb(ee);x.current!==K&&(x.current=K,g(ee))}),L=M(O(),O(!0));return h!==L&&g(L),I}},[S]),h}var bI=m.forwardRef(yI),wl=bI;wl.FormProvider=hC;wl.Field=Ov;wl.List=dC;wl.useForm=Tv;wl.useWatch=mC;const zo=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),vC=m.createContext(null),gC=e=>{const t=Ri(e,["prefixCls"]);return m.createElement(hC,Object.assign({},t))},Pv=m.createContext({prefixCls:""}),Wn=m.createContext({}),SI=e=>{let{children:t,status:r,override:n}=e;const i=m.useContext(Wn),l=m.useMemo(()=>{const s=Object.assign({},i);return n&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,n,i]);return m.createElement(Wn.Provider,{value:l},t)},yC=m.createContext(void 0),Om=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=ve.createElement(SI,{override:!0,status:!0},i)),t&&(i=ve.createElement(vM,null,i)),i};var bC=function(t){if(sn()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1},wI=function(t,r){if(!bC(t))return!1;var n=document.createElement("div"),i=n.style[t];return n.style[t]=r,n.style[t]!==i};function rb(e,t){return!Array.isArray(e)&&t!==void 0?wI(e,t):bC(e)}const CI=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function xI(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,l=n||{},s=l.className,c=l.content,f=i.x,p=f===void 0?0:f,h=i.y,g=h===void 0?0:h,y=m.useRef();if(!r||!r.points)return null;var x={position:"absolute"};if(r.autoArrow!==!1){var w=r.points[0],C=r.points[1],S=w[0],E=w[1],T=C[0],O=C[1];S===T||!["t","b"].includes(S)?x.top=g:S==="t"?x.top=0:x.bottom=0,E===O||!["l","r"].includes(E)?x.left=p:E==="l"?x.left=0:x.right=0}return m.createElement("div",{ref:y,className:Me("".concat(t,"-arrow"),s),style:x},c)}function EI(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,l=e.motion;return i?m.createElement(vl,It({},l,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var c=s.className;return m.createElement("div",{style:{zIndex:n},className:Me("".concat(t,"-mask"),c)})}):null}var RI=m.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),OI=m.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,l=e.style,s=e.target,c=e.onVisibleChanged,f=e.open,p=e.keepDom,h=e.fresh,g=e.onClick,y=e.mask,x=e.arrow,w=e.arrowPos,C=e.align,S=e.motion,E=e.maskMotion,T=e.forceRender,O=e.getPopupContainer,_=e.autoDestroy,R=e.portal,$=e.zIndex,M=e.onMouseEnter,I=e.onMouseLeave,L=e.onPointerEnter,V=e.onPointerDownCapture,X=e.ready,ee=e.offsetX,K=e.offsetY,W=e.offsetR,J=e.offsetB,z=e.onAlign,k=e.onPrepare,F=e.stretch,H=e.targetWidth,j=e.targetHeight,A=typeof r=="function"?r():r,D=f||p,ie=(O==null?void 0:O.length)>0,Q=m.useState(!O||!ie),ae=xe(Q,2),ue=ae[0],se=ae[1];if(Wt(function(){!ue&&ie&&s&&se(!0)},[ue,ie,s]),!ue)return null;var ce="auto",fe={left:"-1000vw",top:"-1000vh",right:ce,bottom:ce};if(X||!f){var Se,De=C.points,Pe=C.dynamicInset||((Se=C._experimental)===null||Se===void 0?void 0:Se.dynamicInset),$e=Pe&&De[0][1]==="r",Ve=Pe&&De[0][0]==="b";$e?(fe.right=W,fe.left=ce):(fe.left=ee,fe.right=ce),Ve?(fe.bottom=J,fe.top=ce):(fe.top=K,fe.bottom=ce)}var Te={};return F&&(F.includes("height")&&j?Te.height=j:F.includes("minHeight")&&j&&(Te.minHeight=j),F.includes("width")&&H?Te.width=H:F.includes("minWidth")&&H&&(Te.minWidth=H)),f||(Te.pointerEvents="none"),m.createElement(R,{open:T||D,getContainer:O&&function(){return O(s)},autoDestroy:_},m.createElement(EI,{prefixCls:i,open:f,zIndex:$,mask:y,motion:E}),m.createElement(Qs,{onResize:z,disabled:!f},function(Be){return m.createElement(vl,It({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:"".concat(i,"-hidden")},S,{onAppearPrepare:k,onEnterPrepare:k,visible:f,onVisibleChanged:function(Ze){var ht;S==null||(ht=S.onVisibleChanged)===null||ht===void 0||ht.call(S,Ze),c(Ze)}}),function(pt,Ze){var ht=pt.className,it=pt.style,Le=Me(i,ht,n);return m.createElement("div",{ref:Ro(Be,t,Ze),className:Le,style:oe(oe(oe(oe({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},fe),Te),it),{},{boxSizing:"border-box",zIndex:$},l),onMouseEnter:M,onMouseLeave:I,onPointerEnter:L,onClick:g,onPointerDownCapture:V},x&&m.createElement(xI,{prefixCls:i,arrow:x,arrowPos:w,align:C}),m.createElement(RI,{cache:!f&&!h},A))})}))}),TI=m.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=hl(r),l=m.useCallback(function(c){rv(t,n?n(c):c)},[n]),s=gf(l,r.ref);return i?m.cloneElement(r,{ref:s}):r}),nb=m.createContext(null);function ob(e){return e?Array.isArray(e)?e:[e]:[]}function PI(e,t,r,n){return m.useMemo(function(){var i=ob(r??t),l=ob(n??t),s=new Set(i),c=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[s,c]},[e,t,r,n])}function $I(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _I(e,t,r,n){for(var i=r.points,l=Object.keys(e),s=0;s<l.length;s+=1){var c,f=l[s];if($I((c=e[f])===null||c===void 0?void 0:c.points,i,n))return"".concat(t,"-placement-").concat(f)}return""}function ib(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function eu(e){return e.ownerDocument.defaultView}function Tm(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=eu(r).getComputedStyle(r),l=i.overflowX,s=i.overflowY,c=i.overflow;[l,s,c].some(function(f){return n.includes(f)})&&t.push(r),r=r.parentElement}return t}function zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function fs(e){return zs(parseFloat(e),0)}function ab(e,t){var r=oe({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=eu(n).getComputedStyle(n),l=i.overflow,s=i.overflowClipMargin,c=i.borderTopWidth,f=i.borderBottomWidth,p=i.borderLeftWidth,h=i.borderRightWidth,g=n.getBoundingClientRect(),y=n.offsetHeight,x=n.clientHeight,w=n.offsetWidth,C=n.clientWidth,S=fs(c),E=fs(f),T=fs(p),O=fs(h),_=zs(Math.round(g.width/w*1e3)/1e3),R=zs(Math.round(g.height/y*1e3)/1e3),$=(w-C-T-O)*_,M=(y-x-S-E)*R,I=S*R,L=E*R,V=T*_,X=O*_,ee=0,K=0;if(l==="clip"){var W=fs(s);ee=W*_,K=W*R}var J=g.x+V-ee,z=g.y+I-K,k=J+g.width+2*ee-V-X-$,F=z+g.height+2*K-I-L-M;r.left=Math.max(r.left,J),r.top=Math.max(r.top,z),r.right=Math.min(r.right,k),r.bottom=Math.min(r.bottom,F)}}),r}function lb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function sb(e,t){var r=t||[],n=xe(r,2),i=n[0],l=n[1];return[lb(e.width,i),lb(e.height,l)]}function ub(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ua(e,t){var r=t[0],n=t[1],i,l;return r==="t"?l=e.y:r==="b"?l=e.y+e.height:l=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:l}}function ui(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function MI(e,t,r,n,i,l,s){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),f=xe(c,2),p=f[0],h=f[1],g=m.useRef(0),y=m.useMemo(function(){return t?Tm(t):[]},[t]),x=m.useRef({}),w=function(){x.current={}};e||w();var C=Fr(function(){if(t&&r&&e){let ur=function(Wr,Rr){var $n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ae,mo=Q.x+Wr,dn=Q.y+Rr,$l=mo+$e,Fe=dn+Pe,Xe=Math.max(mo,$n.left),jt=Math.max(dn,$n.top),Xt=Math.min($l,$n.right),At=Math.min(Fe,$n.bottom);return Math.max(0,(Xt-Xe)*(At-jt))},Ur=function(){vt=Q.y+Y,Ot=vt+Pe,Ft=Q.x+q,Hr=Ft+$e};var Pl=ur,ga=Ur,T,O,_,R,$=t,M=$.ownerDocument,I=eu($),L=I.getComputedStyle($),V=L.width,X=L.height,ee=L.position,K=$.style.left,W=$.style.top,J=$.style.right,z=$.style.bottom,k=$.style.overflow,F=oe(oe({},i[n]),l),H=M.createElement("div");(T=$.parentElement)===null||T===void 0||T.appendChild(H),H.style.left="".concat($.offsetLeft,"px"),H.style.top="".concat($.offsetTop,"px"),H.style.position=ee,H.style.height="".concat($.offsetHeight,"px"),H.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var j;if(Array.isArray(r))j={x:r[0],y:r[1],width:0,height:0};else{var A,D,ie=r.getBoundingClientRect();ie.x=(A=ie.x)!==null&&A!==void 0?A:ie.left,ie.y=(D=ie.y)!==null&&D!==void 0?D:ie.top,j={x:ie.x,y:ie.y,width:ie.width,height:ie.height}}var Q=$.getBoundingClientRect();Q.x=(O=Q.x)!==null&&O!==void 0?O:Q.left,Q.y=(_=Q.y)!==null&&_!==void 0?_:Q.top;var ae=M.documentElement,ue=ae.clientWidth,se=ae.clientHeight,ce=ae.scrollWidth,fe=ae.scrollHeight,Se=ae.scrollTop,De=ae.scrollLeft,Pe=Q.height,$e=Q.width,Ve=j.height,Te=j.width,Be={left:0,top:0,right:ue,bottom:se},pt={left:-De,top:-Se,right:ce-De,bottom:fe-Se},Ze=F.htmlRegion,ht="visible",it="visibleFirst";Ze!=="scroll"&&Ze!==it&&(Ze=ht);var Le=Ze===it,ut=ab(pt,y),ye=ab(Be,y),Ae=Ze===ht?ye:ut,Ue=Le?ye:Ae;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var tt=$.getBoundingClientRect();$.style.left=K,$.style.top=W,$.style.right=J,$.style.bottom=z,$.style.overflow=k,(R=$.parentElement)===null||R===void 0||R.removeChild(H);var Pt=zs(Math.round($e/parseFloat(V)*1e3)/1e3),St=zs(Math.round(Pe/parseFloat(X)*1e3)/1e3);if(Pt===0||St===0||Ps(r)&&!vv(r))return;var Ht=F.offset,wt=F.targetOffset,Zt=sb(Q,Ht),mt=xe(Zt,2),Je=mt[0],Ge=mt[1],ir=sb(j,wt),Ie=xe(ir,2),qe=Ie[0],_t=Ie[1];j.x-=qe,j.y-=_t;var jr=F.points||[],Dr=xe(jr,2),zr=Dr[0],pr=Dr[1],qt=ub(pr),Bt=ub(zr),Yr=Ua(j,qt),Nt=Ua(Q,Bt),B=oe({},F),q=Yr.x-Nt.x+Je,Y=Yr.y-Nt.y+Ge,de=ur(q,Y),Oe=ur(q,Y,ye),we=Ua(j,["t","l"]),Re=Ua(Q,["t","l"]),Ce=Ua(j,["b","r"]),Ee=Ua(Q,["b","r"]),ge=F.overflow||{},Ke=ge.adjustX,nt=ge.adjustY,yt=ge.shiftX,Mt=ge.shiftY,ct=function(Rr){return typeof Rr=="boolean"?Rr:Rr>=0},vt,Ot,Ft,Hr;Ur();var sr=ct(nt),gr=Bt[0]===qt[0];if(sr&&Bt[0]==="t"&&(Ot>Ue.bottom||x.current.bt)){var Gt=Y;gr?Gt-=Pe-Ve:Gt=we.y-Ee.y-Ge;var Tn=ur(q,Gt),un=ur(q,Gt,ye);Tn>de||Tn===de&&(!Le||un>=Oe)?(x.current.bt=!0,Y=Gt,Ge=-Ge,B.points=[ui(Bt,0),ui(qt,0)]):x.current.bt=!1}if(sr&&Bt[0]==="b"&&(vt<Ue.top||x.current.tb)){var Ct=Y;gr?Ct+=Pe-Ve:Ct=Ce.y-Re.y-Ge;var Gn=ur(q,Ct),xt=ur(q,Ct,ye);Gn>de||Gn===de&&(!Le||xt>=Oe)?(x.current.tb=!0,Y=Ct,Ge=-Ge,B.points=[ui(Bt,0),ui(qt,0)]):x.current.tb=!1}var Kt=ct(Ke),Jr=Bt[1]===qt[1];if(Kt&&Bt[1]==="l"&&(Hr>Ue.right||x.current.rl)){var Br=q;Jr?Br-=$e-Te:Br=we.x-Ee.x-Je;var Lt=ur(Br,Y),yr=ur(Br,Y,ye);Lt>de||Lt===de&&(!Le||yr>=Oe)?(x.current.rl=!0,q=Br,Je=-Je,B.points=[ui(Bt,1),ui(qt,1)]):x.current.rl=!1}if(Kt&&Bt[1]==="r"&&(Ft<Ue.left||x.current.lr)){var er=q;Jr?er+=$e-Te:er=Ce.x-Re.x-Je;var Wo=ur(er,Y),$r=ur(er,Y,ye);Wo>de||Wo===de&&(!Le||$r>=Oe)?(x.current.lr=!0,q=er,Je=-Je,B.points=[ui(Bt,1),ui(qt,1)]):x.current.lr=!1}Ur();var Pn=yt===!0?0:yt;typeof Pn=="number"&&(Ft<ye.left&&(q-=Ft-ye.left-Je,j.x+Te<ye.left+Pn&&(q+=j.x-ye.left+Te-Pn)),Hr>ye.right&&(q-=Hr-ye.right-Je,j.x>ye.right-Pn&&(q+=j.x-ye.right+Pn)));var cn=Mt===!0?0:Mt;typeof cn=="number"&&(vt<ye.top&&(Y-=vt-ye.top-Ge,j.y+Ve<ye.top+cn&&(Y+=j.y-ye.top+Ve-cn)),Ot>ye.bottom&&(Y-=Ot-ye.bottom-Ge,j.y>ye.bottom-cn&&(Y+=j.y-ye.bottom+cn)));var qo=Q.x+q,Kn=qo+$e,Vr=Q.y+Y,Oo=Vr+Pe,To=j.x,Ol=To+Te,Oi=j.y,Ti=Oi+Ve,pa=Math.max(qo,To),Pi=Math.min(Kn,Ol),ho=(pa+Pi)/2,Tl=ho-qo,$i=Math.max(Vr,Oi),Et=Math.min(Oo,Ti),ha=($i+Et)/2,ma=ha-Vr;s==null||s(t,B);var Po=tt.right-Q.x-(q+Q.width),fn=tt.bottom-Q.y-(Y+Q.height);Pt===1&&(q=Math.round(q),Po=Math.round(Po)),St===1&&(Y=Math.round(Y),fn=Math.round(fn));var va={ready:!0,offsetX:q/Pt,offsetY:Y/St,offsetR:Po/Pt,offsetB:fn/St,arrowX:Tl/Pt,arrowY:ma/St,scaleX:Pt,scaleY:St,align:B};h(va)}}),S=function(){g.current+=1;var O=g.current;Promise.resolve().then(function(){g.current===O&&C()})},E=function(){h(function(O){return oe(oe({},O),{},{ready:!1})})};return Wt(E,[n]),Wt(function(){e||E()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,S]}function AI(e,t,r,n,i){Wt(function(){if(e&&t&&r){let y=function(){n(),i()};var g=y,l=t,s=r,c=Tm(l),f=Tm(s),p=eu(s),h=new Set([p].concat(Ne(c),Ne(f)));return h.forEach(function(x){x.addEventListener("scroll",y,{passive:!0})}),p.addEventListener("resize",y,{passive:!0}),n(),function(){h.forEach(function(x){x.removeEventListener("scroll",y),p.removeEventListener("resize",y)})}}},[e,t,r])}function II(e,t,r,n,i,l,s,c){var f=m.useRef(e);f.current=e;var p=m.useRef(!1);m.useEffect(function(){if(t&&n&&(!i||l)){var g=function(){p.current=!1},y=function(S){var E;f.current&&!s(((E=S.composedPath)===null||E===void 0||(E=E.call(S))===null||E===void 0?void 0:E[0])||S.target)&&!p.current&&c(!1)},x=eu(n);x.addEventListener("pointerdown",g,!0),x.addEventListener("mousedown",y,!0),x.addEventListener("contextmenu",y,!0);var w=Zc(r);return w&&(w.addEventListener("mousedown",y,!0),w.addEventListener("contextmenu",y,!0)),function(){x.removeEventListener("pointerdown",g,!0),x.removeEventListener("mousedown",y,!0),x.removeEventListener("contextmenu",y,!0),w&&(w.removeEventListener("mousedown",y,!0),w.removeEventListener("contextmenu",y,!0))}}},[t,r,n,i,l]);function h(){p.current=!0}return h}var FI=["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 LI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sC,t=m.forwardRef(function(r,n){var i=r.prefixCls,l=i===void 0?"rc-trigger-popup":i,s=r.children,c=r.action,f=c===void 0?"hover":c,p=r.showAction,h=r.hideAction,g=r.popupVisible,y=r.defaultPopupVisible,x=r.onPopupVisibleChange,w=r.afterPopupVisibleChange,C=r.mouseEnterDelay,S=r.mouseLeaveDelay,E=S===void 0?.1:S,T=r.focusDelay,O=r.blurDelay,_=r.mask,R=r.maskClosable,$=R===void 0?!0:R,M=r.getPopupContainer,I=r.forceRender,L=r.autoDestroy,V=r.destroyPopupOnHide,X=r.popup,ee=r.popupClassName,K=r.popupStyle,W=r.popupPlacement,J=r.builtinPlacements,z=J===void 0?{}:J,k=r.popupAlign,F=r.zIndex,H=r.stretch,j=r.getPopupClassNameFromAlign,A=r.fresh,D=r.alignPoint,ie=r.onPopupClick,Q=r.onPopupAlign,ae=r.arrow,ue=r.popupMotion,se=r.maskMotion,ce=r.popupTransitionName,fe=r.popupAnimation,Se=r.maskTransitionName,De=r.maskAnimation,Pe=r.className,$e=r.getTriggerDOMNode,Ve=kr(r,FI),Te=L||V||!1,Be=m.useState(!1),pt=xe(Be,2),Ze=pt[0],ht=pt[1];Wt(function(){ht(CI())},[]);var it=m.useRef({}),Le=m.useContext(nb),ut=m.useMemo(function(){return{registerSubPopup:function(Xe,jt){it.current[Xe]=jt,Le==null||Le.registerSubPopup(Xe,jt)}}},[Le]),ye=PA(),Ae=m.useState(null),Ue=xe(Ae,2),tt=Ue[0],Pt=Ue[1],St=m.useRef(null),Ht=Fr(function(Fe){St.current=Fe,Ps(Fe)&&tt!==Fe&&Pt(Fe),Le==null||Le.registerSubPopup(ye,Fe)}),wt=m.useState(null),Zt=xe(wt,2),mt=Zt[0],Je=Zt[1],Ge=m.useRef(null),ir=Fr(function(Fe){Ps(Fe)&&mt!==Fe&&(Je(Fe),Ge.current=Fe)}),Ie=m.Children.only(s),qe=(Ie==null?void 0:Ie.props)||{},_t={},jr=Fr(function(Fe){var Xe,jt,Xt=mt;return(Xt==null?void 0:Xt.contains(Fe))||((Xe=Zc(Xt))===null||Xe===void 0?void 0:Xe.host)===Fe||Fe===Xt||(tt==null?void 0:tt.contains(Fe))||((jt=Zc(tt))===null||jt===void 0?void 0:jt.host)===Fe||Fe===tt||Object.values(it.current).some(function(At){return(At==null?void 0:At.contains(Fe))||Fe===At})}),Dr=ib(l,ue,fe,ce),zr=ib(l,se,De,Se),pr=m.useState(y||!1),qt=xe(pr,2),Bt=qt[0],Yr=qt[1],Nt=g??Bt,B=Fr(function(Fe){g===void 0&&Yr(Fe)});Wt(function(){Yr(g||!1)},[g]);var q=m.useRef(Nt);q.current=Nt;var Y=m.useRef([]);Y.current=[];var de=Fr(function(Fe){var Xe;B(Fe),((Xe=Y.current[Y.current.length-1])!==null&&Xe!==void 0?Xe:Nt)!==Fe&&(Y.current.push(Fe),x==null||x(Fe))}),Oe=m.useRef(),we=function(){clearTimeout(Oe.current)},Re=function(Xe){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;we(),jt===0?de(Xe):Oe.current=setTimeout(function(){de(Xe)},jt*1e3)};m.useEffect(function(){return we},[]);var Ce=m.useState(!1),Ee=xe(Ce,2),ge=Ee[0],Ke=Ee[1];Wt(function(Fe){(!Fe||Nt)&&Ke(!0)},[Nt]);var nt=m.useState(null),yt=xe(nt,2),Mt=yt[0],ct=yt[1],vt=m.useState(null),Ot=xe(vt,2),Ft=Ot[0],Hr=Ot[1],sr=function(Xe){Hr([Xe.clientX,Xe.clientY])},gr=MI(Nt,tt,D&&Ft!==null?Ft:mt,W,z,k,Q),Gt=xe(gr,11),Tn=Gt[0],un=Gt[1],Ct=Gt[2],Gn=Gt[3],xt=Gt[4],Kt=Gt[5],Jr=Gt[6],Br=Gt[7],Lt=Gt[8],yr=Gt[9],er=Gt[10],Wo=PI(Ze,f,p,h),$r=xe(Wo,2),Pn=$r[0],cn=$r[1],qo=Pn.has("click"),Kn=cn.has("click")||cn.has("contextMenu"),Vr=Fr(function(){ge||er()}),Oo=function(){q.current&&D&&Kn&&Re(!1)};AI(Nt,mt,tt,Vr,Oo),Wt(function(){Vr()},[Ft,W]),Wt(function(){Nt&&!(z!=null&&z[W])&&Vr()},[JSON.stringify(k)]);var To=m.useMemo(function(){var Fe=_I(z,l,yr,D);return Me(Fe,j==null?void 0:j(yr))},[yr,j,z,l,D]);m.useImperativeHandle(n,function(){return{nativeElement:Ge.current,popupElement:St.current,forceAlign:Vr}});var Ol=m.useState(0),Oi=xe(Ol,2),Ti=Oi[0],pa=Oi[1],Pi=m.useState(0),ho=xe(Pi,2),Tl=ho[0],$i=ho[1],Et=function(){if(H&&mt){var Xe=mt.getBoundingClientRect();pa(Xe.width),$i(Xe.height)}},ha=function(){Et(),Vr()},ma=function(Xe){Ke(!1),er(),w==null||w(Xe)},Po=function(){return new Promise(function(Xe){Et(),ct(function(){return Xe})})};Wt(function(){Mt&&(er(),Mt(),ct(null))},[Mt]);function fn(Fe,Xe,jt,Xt){_t[Fe]=function(At){var _i;Xt==null||Xt(At),Re(Xe,jt);for(var _l=arguments.length,Go=new Array(_l>1?_l-1:0),vo=1;vo<_l;vo++)Go[vo-1]=arguments[vo];(_i=qe[Fe])===null||_i===void 0||_i.call.apply(_i,[qe,At].concat(Go))}}(qo||Kn)&&(_t.onClick=function(Fe){var Xe;q.current&&Kn?Re(!1):!q.current&&qo&&(sr(Fe),Re(!0));for(var jt=arguments.length,Xt=new Array(jt>1?jt-1:0),At=1;At<jt;At++)Xt[At-1]=arguments[At];(Xe=qe.onClick)===null||Xe===void 0||Xe.call.apply(Xe,[qe,Fe].concat(Xt))});var va=II(Nt,Kn,mt,tt,_,$,jr,Re),Pl=Pn.has("hover"),ga=cn.has("hover"),ur,Ur;Pl&&(fn("onMouseEnter",!0,C,function(Fe){sr(Fe)}),fn("onPointerEnter",!0,C,function(Fe){sr(Fe)}),ur=function(Xe){(Nt||ge)&&tt!==null&&tt!==void 0&&tt.contains(Xe.target)&&Re(!0,C)},D&&(_t.onMouseMove=function(Fe){var Xe;(Xe=qe.onMouseMove)===null||Xe===void 0||Xe.call(qe,Fe)})),ga&&(fn("onMouseLeave",!1,E),fn("onPointerLeave",!1,E),Ur=function(){Re(!1,E)}),Pn.has("focus")&&fn("onFocus",!0,T),cn.has("focus")&&fn("onBlur",!1,O),Pn.has("contextMenu")&&(_t.onContextMenu=function(Fe){var Xe;q.current&&cn.has("contextMenu")?Re(!1):(sr(Fe),Re(!0)),Fe.preventDefault();for(var jt=arguments.length,Xt=new Array(jt>1?jt-1:0),At=1;At<jt;At++)Xt[At-1]=arguments[At];(Xe=qe.onContextMenu)===null||Xe===void 0||Xe.call.apply(Xe,[qe,Fe].concat(Xt))}),Pe&&(_t.className=Me(qe.className,Pe));var Wr=oe(oe({},qe),_t),Rr={},$n=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];$n.forEach(function(Fe){Ve[Fe]&&(Rr[Fe]=function(){for(var Xe,jt=arguments.length,Xt=new Array(jt),At=0;At<jt;At++)Xt[At]=arguments[At];(Xe=Wr[Fe])===null||Xe===void 0||Xe.call.apply(Xe,[Wr].concat(Xt)),Ve[Fe].apply(Ve,Xt)})});var mo=m.cloneElement(Ie,oe(oe({},Wr),Rr)),dn={x:Kt,y:Jr},$l=ae?oe({},ae!==!0?ae:{}):null;return m.createElement(m.Fragment,null,m.createElement(Qs,{disabled:!Nt,ref:ir,onResize:ha},m.createElement(TI,{getTriggerDOMNode:$e},mo)),m.createElement(nb.Provider,{value:ut},m.createElement(OI,{portal:e,ref:Ht,prefixCls:l,popup:X,className:Me(ee,To),style:K,target:mt,onMouseEnter:ur,onMouseLeave:Ur,onPointerEnter:ur,zIndex:F,open:Nt,keepDom:ge,fresh:A,onClick:ie,onPointerDownCapture:va,mask:_,motion:Dr,maskMotion:zr,onVisibleChanged:ma,onPrepare:Po,forceRender:I,autoDestroy:Te,getPopupContainer:M,align:yr,arrow:$l,arrowPos:dn,ready:Tn,offsetX:un,offsetY:Ct,offsetR:Gn,offsetB:xt,onAlign:Vr,stretch:H,targetWidth:Ti/Br,targetHeight:Tl/Lt})))});return t}const kI=LI(sC);function Pm(e,t,r){return Me({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const $v=(e,t)=>t||e,SC=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,i;const{variant:l,[e]:s}=m.useContext(zt),c=m.useContext(yC),f=s==null?void 0:s.variant;let p;typeof t<"u"?p=t:r===!1?p="borderless":p=(i=(n=c??f)!==null&&n!==void 0?n:l)!==null&&i!==void 0?i:"outlined";const h=s$.includes(p);return[p,h]};var NI={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"},jI=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:NI}))},DI=m.forwardRef(jI),zI={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"},HI=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:zI}))},BI=m.forwardRef(HI);const Hs=["xxl","xl","lg","md","sm","xs"],VI=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),UI=e=>{const t=e,r=[].concat(Hs).reverse();return r.forEach((n,i)=>{const l=n.toUpperCase(),s=`screen${l}Min`,c=`screen${l}`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);if(i<r.length-1){const f=`screen${l}Max`;if(!(t[c]<=t[f]))throw new Error(`${c}<=${f} fails : !(${t[c]}<=${t[f]})`);const h=`screen${r[i+1].toUpperCase()}Min`;if(!(t[f]<=t[h]))throw new Error(`${f}<=${h} fails : !(${t[f]}<=${t[h]})`)}}),e};function WI(){const[,e]=Vo(),t=VI(UI(e));return ve.useMemo(()=>{const r=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(l){return i=l,r.forEach(s=>s(i)),r.size>=1},subscribe(l){return r.size||this.register(),n+=1,r.set(n,l),l(i),n},unsubscribe(l){r.delete(l),r.size||this.unregister()},unregister(){Object.keys(t).forEach(l=>{const s=t[l],c=this.matchHandlers[s];c==null||c.mql.removeListener(c==null?void 0:c.listener)}),r.clear()},register(){Object.keys(t).forEach(l=>{const s=t[l],c=p=>{let{matches:h}=p;this.dispatch(Object.assign(Object.assign({},i),{[l]:h}))},f=window.matchMedia(s);f.addListener(c),this.matchHandlers[s]={mql:f,listener:c},c(f)})},responsiveMap:t}},[e])}function wC(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,l=e.className,s=e.style;return m.createElement("div",{className:Me("".concat(r,"-content"),l),style:s},m.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var Wa={shiftX:64,adjustY:1},qa={adjustX:1,shiftY:!0},jn=[0,0],qI={left:{points:["cr","cl"],overflow:qa,offset:[-4,0],targetOffset:jn},right:{points:["cl","cr"],overflow:qa,offset:[4,0],targetOffset:jn},top:{points:["bc","tc"],overflow:Wa,offset:[0,-4],targetOffset:jn},bottom:{points:["tc","bc"],overflow:Wa,offset:[0,4],targetOffset:jn},topLeft:{points:["bl","tl"],overflow:Wa,offset:[0,-4],targetOffset:jn},leftTop:{points:["tr","tl"],overflow:qa,offset:[-4,0],targetOffset:jn},topRight:{points:["br","tr"],overflow:Wa,offset:[0,-4],targetOffset:jn},rightTop:{points:["tl","tr"],overflow:qa,offset:[4,0],targetOffset:jn},bottomRight:{points:["tr","br"],overflow:Wa,offset:[0,4],targetOffset:jn},rightBottom:{points:["bl","br"],overflow:qa,offset:[4,0],targetOffset:jn},bottomLeft:{points:["tl","bl"],overflow:Wa,offset:[0,4],targetOffset:jn},leftBottom:{points:["br","bl"],overflow:qa,offset:[-4,0],targetOffset:jn}},GI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],KI=function(t,r){var n=t.overlayClassName,i=t.trigger,l=i===void 0?["hover"]:i,s=t.mouseEnterDelay,c=s===void 0?0:s,f=t.mouseLeaveDelay,p=f===void 0?.1:f,h=t.overlayStyle,g=t.prefixCls,y=g===void 0?"rc-tooltip":g,x=t.children,w=t.onVisibleChange,C=t.afterVisibleChange,S=t.transitionName,E=t.animation,T=t.motion,O=t.placement,_=O===void 0?"right":O,R=t.align,$=R===void 0?{}:R,M=t.destroyTooltipOnHide,I=M===void 0?!1:M,L=t.defaultVisible,V=t.getTooltipContainer,X=t.overlayInnerStyle;t.arrowContent;var ee=t.overlay,K=t.id,W=t.showArrow,J=W===void 0?!0:W,z=kr(t,GI),k=m.useRef(null);m.useImperativeHandle(r,function(){return k.current});var F=oe({},z);"visible"in t&&(F.popupVisible=t.visible);var H=function(){return m.createElement(wC,{key:"content",prefixCls:y,id:K,overlayInnerStyle:X},ee)};return m.createElement(kI,It({popupClassName:n,prefixCls:y,popup:H,action:l,builtinPlacements:qI,popupPlacement:_,ref:k,popupAlign:$,getPopupContainer:V,onPopupVisibleChange:w,afterPopupVisibleChange:C,popupTransitionName:S,popupAnimation:E,popupMotion:T,defaultPopupVisible:L,autoDestroy:I,mouseLeaveDelay:p,popupStyle:h,mouseEnterDelay:c,arrow:J},F),x)};const XI=m.forwardRef(KI);function QI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,l=0,s=i,c=n*1/Math.sqrt(2),f=i-n*(1-1/Math.sqrt(2)),p=i-r*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),g=2*i-p,y=h,x=2*i-c,w=f,C=2*i-l,S=s,E=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),T=n*(Math.sqrt(2)-1),O=`polygon(${T}px 100%, 50% ${T}px, ${2*i-T}px 100%, ${T}px 100%)`,_=`path('M ${l} ${s} A ${n} ${n} 0 0 0 ${c} ${f} L ${p} ${h} A ${r} ${r} 0 0 1 ${g} ${y} L ${x} ${w} A ${n} ${n} 0 0 0 ${C} ${S} Z')`;return{arrowShadowWidth:E,arrowPath:_,arrowPolygon:O}}const YI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:c,calc:f}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:f(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${at(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},CC=8;function xC(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?CC:n}}function bc(e,t){return e?t:{}}function JI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:c=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},YI(e,t,i)),{"&:before":{background:t}})]},bc(!!f.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${at(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bc(!!f.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${at(s)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bc(!!f.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:l},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:l}})),bc(!!f.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:l},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:l}}))}}function ZI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+r,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+r,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const cb={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},eF={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},tF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function rF(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:l,visibleFirst:s}=e,c=t/2,f={};return Object.keys(cb).forEach(p=>{const h=n&&eF[p]||cb[p],g=Object.assign(Object.assign({},h),{offset:[0,0],dynamicInset:!0});switch(f[p]=g,tF.has(p)&&(g.autoArrow=!1),p){case"top":case"topLeft":case"topRight":g.offset[1]=-c-i;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=c+i;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-c-i;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=c+i;break}const y=xC({contentRadius:l,limitVerticalRadius:!0});if(n)switch(p){case"topLeft":case"bottomLeft":g.offset[0]=-y.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":g.offset[0]=y.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":g.offset[1]=-y.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":g.offset[1]=y.arrowOffsetHorizontal*2-c;break}g.overflow=ZI(p,y,t,r),s&&(g.htmlRegion="visibleFirst")}),f}const nF=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:l,zIndexPopup:s,controlHeight:c,boxShadowSecondary:f,paddingSM:p,paddingXS:h}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ys(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:c,padding:`${at(e.calc(p).div(2).equal())} ${at(h)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:l,boxShadow:f,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(l,CC)}},[`${t}-content`]:{position:"relative"}}),N$(e,(g,y)=>{let{darkColor:x}=y;return{[`&${t}-${g}`]:{[`${t}-inner`]:{backgroundColor:x},[`${t}-arrow`]:{"--antd-arrow-background-color":x}}}})),{"&-rtl":{direction:"rtl"}})},JI(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},oF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},xC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),QI(Qr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),EC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Uo("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:l,colorBgSpotlight:s}=n,c=Qr(n,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:i,tooltipBg:s});return[nF(c),UM(n,"zoom-big-fast")]},oF,{resetStyle:!1,injectStyle:t})(e)},iF=Jc.map(e=>`${e}-inverse`);function aF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ne(iF),Ne(Jc)).includes(e):Jc.includes(e)}function RC(e,t){const r=aF(t),n=Me({[`${e}-${t}`]:t&&r}),i={},l={};return t&&!r&&(i.background=t,l["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:l}}const lF=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:l,overlayInnerStyle:s}=e,{getPrefixCls:c}=m.useContext(zt),f=c("tooltip",t),[p,h,g]=EC(f),y=RC(f,l),x=y.arrowStyle,w=Object.assign(Object.assign({},s),y.overlayStyle),C=Me(h,g,f,`${f}-pure`,`${f}-placement-${n}`,r,y.className);return p(m.createElement("div",{className:C,style:x},m.createElement("div",{className:`${f}-arrow`}),m.createElement(wC,Object.assign({},e,{className:h,prefixCls:f,overlayInnerStyle:w}),i)))};var sF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const uF=m.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:l,getTooltipContainer:s,overlayClassName:c,color:f,overlayInnerStyle:p,children:h,afterOpenChange:g,afterVisibleChange:y,destroyTooltipOnHide:x,arrow:w=!0,title:C,overlay:S,builtinPlacements:E,arrowPointAtCenter:T=!1,autoAdjustOverflow:O=!0}=e,_=!!w,[,R]=Vo(),{getPopupContainer:$,getPrefixCls:M,direction:I}=m.useContext(zt),L=dv(),V=m.useRef(null),X=()=>{var ye;(ye=V.current)===null||ye===void 0||ye.forceAlign()};m.useImperativeHandle(t,()=>{var ye;return{forceAlign:X,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(ye=V.current)===null||ye===void 0?void 0:ye.nativeElement}});const[ee,K]=ul(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),W=!C&&!S&&C!==0,J=ye=>{var Ae,Ue;K(W?!1:ye),W||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,ye),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,ye))},z=m.useMemo(()=>{var ye,Ae;let Ue=T;return typeof w=="object"&&(Ue=(Ae=(ye=w.pointAtCenter)!==null&&ye!==void 0?ye:w.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:T),E||rF({arrowPointAtCenter:Ue,autoAdjustOverflow:O,arrowWidth:_?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[T,w,E,R]),k=m.useMemo(()=>C===0?C:S||C||"",[S,C]),F=m.createElement(Om,{space:!0},typeof k=="function"?k():k),{getPopupContainer:H,placement:j="top",mouseEnterDelay:A=.1,mouseLeaveDelay:D=.1,overlayStyle:ie,rootClassName:Q}=e,ae=sF(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ue=M("tooltip",i),se=M(),ce=e["data-popover-inject"];let fe=ee;!("open"in e)&&!("visible"in e)&&W&&(fe=!1);const Se=m.isValidElement(h)&&!Qw(h)?h:m.createElement("span",null,h),De=Se.props,Pe=!De.className||typeof De.className=="string"?Me(De.className,l||`${ue}-open`):De.className,[$e,Ve,Te]=EC(ue,!ce),Be=RC(ue,f),pt=Be.arrowStyle,Ze=Object.assign(Object.assign({},p),Be.overlayStyle),ht=Me(c,{[`${ue}-rtl`]:I==="rtl"},Be.className,Q,Ve,Te),[it,Le]=Q_("Tooltip",ae.zIndex),ut=m.createElement(XI,Object.assign({},ae,{zIndex:it,showArrow:_,placement:j,mouseEnterDelay:A,mouseLeaveDelay:D,prefixCls:ue,overlayClassName:ht,overlayStyle:Object.assign(Object.assign({},pt),ie),getTooltipContainer:H||s||$,ref:V,builtinPlacements:z,overlay:F,visible:fe,onVisibleChange:J,afterVisibleChange:g??y,overlayInnerStyle:Ze,arrowContent:m.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:sM(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!x}),fe?na(Se,{className:Pe}):Se);return $e(m.createElement(Yw.Provider,{value:Le},ut))}),tu=uF;tu._InternalPanelDoNotUseOrYouWillBeFired=lF;function OC(e){return Qr(e,{inputAffixPadding:e.paddingXXS})}const TC=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:l,controlHeightLG:s,fontSizeLG:c,lineHeightLG:f,paddingSM:p,controlPaddingHorizontalSM:h,controlPaddingHorizontal:g,colorFillAlter:y,colorPrimaryHover:x,colorPrimary:w,controlOutlineWidth:C,controlOutline:S,colorErrorOutline:E,colorWarningOutline:T,colorBgContainer:O}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((l-r*n)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-c*f)/2*10)/10-i,paddingInline:p-i,paddingInlineSM:h-i,paddingInlineLG:g-i,addonBg:y,activeBorderColor:w,hoverBorderColor:x,activeShadow:`0 0 0 ${C}px ${S}`,errorActiveShadow:`0 0 0 ${C}px ${E}`,warningActiveShadow:`0 0 0 ${C}px ${T}`,hoverBg:O,activeBg:O,inputFontSize:r,inputFontSizeLG:c,inputFontSizeSM:r}},cF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_v=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({},cF(Qr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),PC=(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}}),fb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},PC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),fF=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_v(e))}),fb(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),fb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),db=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),dF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},db(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),db(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_v(e))}})}),pF=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},$C=(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}}),pb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$C(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hF=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$C(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_v(e))}),pb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),pb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),hb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),mF=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:`${at(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${at(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},hb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),hb(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:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),vF=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_C=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${at(t)} ${at(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},MC=e=>({padding:`${at(e.paddingBlockSM)} ${at(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),AC=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${at(e.paddingBlock)} ${at(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vF(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({},_C(e)),"&-sm":Object.assign({},MC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gF=e=>{const{componentCls:t,antCls:r}=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({},_C(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},MC(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${at(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${at(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${at(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${at(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${at(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},A$()),{[`${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, & > ${r}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}},yF=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,s=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ys(e)),AC(e)),fF(e)),hF(e)),pF(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},bF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight: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 ${at(e.inputAffixPadding)}`}}}},SF=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:l,colorIconHover:s,iconCls:c}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},AC(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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),bF(e)),{[`${c}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),[p]:{[`${c}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},wF=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ys(e)),gF(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:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},dF(e)),mF(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}}})})}},CF=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,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,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-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}}}}},xF=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{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${n}-has-feedback ${t} `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},EF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Mv=Uo("Input",e=>{const t=Qr(e,OC(e));return[yF(t),xF(t),SF(t),wF(t),CF(t),EF(t),aC(t)]},TC,{resetFont:!1}),IC=m.createContext({}),RF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},OF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TF=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:i}=e,l={};for(let s=i;s>=0;s--)s===0?(l[`${n}${t}-${s}`]={display:"none"},l[`${n}-push-${s}`]={insetInlineStart:"auto"},l[`${n}-pull-${s}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${s}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${s}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${s}`]={marginInlineStart:0},l[`${n}${t}-order-${s}`]={order:0}):(l[`${n}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/i*100}%`,maxWidth:`${s/i*100}%`}],l[`${n}${t}-push-${s}`]={insetInlineStart:`${s/i*100}%`},l[`${n}${t}-pull-${s}`]={insetInlineEnd:`${s/i*100}%`},l[`${n}${t}-offset-${s}`]={marginInlineStart:`${s/i*100}%`},l[`${n}${t}-order-${s}`]={order:s});return l[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},l},$m=(e,t)=>TF(e,t),PF=(e,t,r)=>({[`@media (min-width: ${at(t)})`]:Object.assign({},$m(e,r))}),$F=()=>({}),_F=()=>({}),MF=Uo("Grid",RF,$F),AF=Uo("Grid",e=>{const t=Qr(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[OF(t),$m(t,""),$m(t,"-xs"),Object.keys(r).map(n=>PF(t,r[n],n)).reduce((n,i)=>Object.assign(Object.assign({},n),i),{})]},_F);var IF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function mb(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const FF=["xs","sm","md","lg","xl","xxl"],FC=m.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(zt),{gutter:i,wrap:l}=m.useContext(IC),{prefixCls:s,span:c,order:f,offset:p,push:h,pull:g,className:y,children:x,flex:w,style:C}=e,S=IF(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=r("col",s),[T,O,_]=AF(E),R={};let $={};FF.forEach(L=>{let V={};const X=e[L];typeof X=="number"?V.span=X:typeof X=="object"&&(V=X||{}),delete S[L],$=Object.assign(Object.assign({},$),{[`${E}-${L}-${V.span}`]:V.span!==void 0,[`${E}-${L}-order-${V.order}`]:V.order||V.order===0,[`${E}-${L}-offset-${V.offset}`]:V.offset||V.offset===0,[`${E}-${L}-push-${V.push}`]:V.push||V.push===0,[`${E}-${L}-pull-${V.pull}`]:V.pull||V.pull===0,[`${E}-rtl`]:n==="rtl"}),V.flex&&($[`${E}-${L}-flex`]=!0,R[`--${E}-${L}-flex`]=mb(V.flex))});const M=Me(E,{[`${E}-${c}`]:c!==void 0,[`${E}-order-${f}`]:f,[`${E}-offset-${p}`]:p,[`${E}-push-${h}`]:h,[`${E}-pull-${g}`]:g},y,$,O,_),I={};if(i&&i[0]>0){const L=i[0]/2;I.paddingLeft=L,I.paddingRight=L}return w&&(I.flex=mb(w),l===!1&&!I.minWidth&&(I.minWidth=0)),T(m.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},I),C),R),className:M,ref:t}),x))});var LF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function vb(e,t){const[r,n]=m.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let l=0;l<Hs.length;l++){const s=Hs[l];if(!t[s])continue;const c=e[s];if(c!==void 0){n(c);return}}};return m.useEffect(()=>{i()},[JSON.stringify(e),t]),r}const kF=m.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:i,className:l,style:s,children:c,gutter:f=0,wrap:p}=e,h=LF(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:y}=m.useContext(zt),[x,w]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[C,S]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=vb(i,C),T=vb(n,C),O=m.useRef(f),_=WI();m.useEffect(()=>{const k=_.subscribe(F=>{S(F);const H=O.current||0;(!Array.isArray(H)&&typeof H=="object"||Array.isArray(H)&&(typeof H[0]=="object"||typeof H[1]=="object"))&&w(F)});return()=>_.unsubscribe(k)},[]);const R=()=>{const k=[void 0,void 0];return(Array.isArray(f)?f:[f,void 0]).forEach((H,j)=>{if(typeof H=="object")for(let A=0;A<Hs.length;A++){const D=Hs[A];if(x[D]&&H[D]!==void 0){k[j]=H[D];break}}else k[j]=H}),k},$=g("row",r),[M,I,L]=MF($),V=R(),X=Me($,{[`${$}-no-wrap`]:p===!1,[`${$}-${T}`]:T,[`${$}-${E}`]:E,[`${$}-rtl`]:y==="rtl"},l,I,L),ee={},K=V[0]!=null&&V[0]>0?V[0]/-2:void 0;K&&(ee.marginLeft=K,ee.marginRight=K);const[W,J]=V;ee.rowGap=J;const z=m.useMemo(()=>({gutter:[W,J],wrap:p}),[W,J,p]);return M(m.createElement(IC.Provider,{value:z},m.createElement("div",Object.assign({},h,{className:X,style:Object.assign(Object.assign({},ee),s),ref:t}),c)))});function NF(e){return!!(e.addonBefore||e.addonAfter)}function jF(e){return!!(e.prefix||e.suffix||e.allowClear)}function gb(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function tf(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=gb(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=gb(t,e,n),r(i);return}r(i)}}function LC(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var kC=ve.forwardRef(function(e,t){var r,n,i=e.inputElement,l=e.children,s=e.prefixCls,c=e.prefix,f=e.suffix,p=e.addonBefore,h=e.addonAfter,g=e.className,y=e.style,x=e.disabled,w=e.readOnly,C=e.focused,S=e.triggerFocus,E=e.allowClear,T=e.value,O=e.handleReset,_=e.hidden,R=e.classes,$=e.classNames,M=e.dataAttrs,I=e.styles,L=e.components,V=e.onClear,X=l??i,ee=(L==null?void 0:L.affixWrapper)||"span",K=(L==null?void 0:L.groupWrapper)||"span",W=(L==null?void 0:L.wrapper)||"span",J=(L==null?void 0:L.groupAddon)||"span",z=m.useRef(null),k=function(Ve){var Te;(Te=z.current)!==null&&Te!==void 0&&Te.contains(Ve.target)&&(S==null||S())},F=jF(e),H=m.cloneElement(X,{value:T,className:Me(X.props.className,!F&&($==null?void 0:$.variant))||null}),j=m.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:j.current||z.current}}),F){var A=null;if(E){var D=!x&&!w&&T,ie="".concat(s,"-clear-icon"),Q=rt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";A=ve.createElement("span",{onClick:function(Ve){O==null||O(Ve),V==null||V()},onMouseDown:function(Ve){return Ve.preventDefault()},className:Me(ie,Z(Z({},"".concat(ie,"-hidden"),!D),"".concat(ie,"-has-suffix"),!!f)),role:"button",tabIndex:-1},Q)}var ae="".concat(s,"-affix-wrapper"),ue=Me(ae,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),x),"".concat(ae,"-disabled"),x),"".concat(ae,"-focused"),C),"".concat(ae,"-readonly"),w),"".concat(ae,"-input-with-clear-btn"),f&&E&&T),R==null?void 0:R.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),se=(f||E)&&ve.createElement("span",{className:Me("".concat(s,"-suffix"),$==null?void 0:$.suffix),style:I==null?void 0:I.suffix},A,f);H=ve.createElement(ee,It({className:ue,style:I==null?void 0:I.affixWrapper,onClick:k},M==null?void 0:M.affixWrapper,{ref:z}),c&&ve.createElement("span",{className:Me("".concat(s,"-prefix"),$==null?void 0:$.prefix),style:I==null?void 0:I.prefix},c),H,se)}if(NF(e)){var ce="".concat(s,"-group"),fe="".concat(ce,"-addon"),Se="".concat(ce,"-wrapper"),De=Me("".concat(s,"-wrapper"),ce,R==null?void 0:R.wrapper,$==null?void 0:$.wrapper),Pe=Me(Se,Z({},"".concat(Se,"-disabled"),x),R==null?void 0:R.group,$==null?void 0:$.groupWrapper);H=ve.createElement(K,{className:Pe,ref:j},ve.createElement(W,{className:De},p&&ve.createElement(J,{className:fe},p),H,h&&ve.createElement(J,{className:fe},h)))}return ve.cloneElement(H,{className:Me((r=H.props)===null||r===void 0?void 0:r.className,g)||null,style:oe(oe({},(n=H.props)===null||n===void 0?void 0:n.style),y),hidden:_})}),DF=["show"];function NC(e,t){return m.useMemo(function(){var r={};t&&(r.show=rt(t)==="object"&&t.formatter?t.formatter:!!t),r=oe(oe({},r),e);var n=r,i=n.show,l=kr(n,DF);return oe(oe({},l),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}var zF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],HF=m.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,i=e.onFocus,l=e.onBlur,s=e.onPressEnter,c=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,h=p===void 0?"rc-input":p,g=e.disabled,y=e.htmlSize,x=e.className,w=e.maxLength,C=e.suffix,S=e.showCount,E=e.count,T=e.type,O=T===void 0?"text":T,_=e.classes,R=e.classNames,$=e.styles,M=e.onCompositionStart,I=e.onCompositionEnd,L=kr(e,zF),V=m.useState(!1),X=xe(V,2),ee=X[0],K=X[1],W=m.useRef(!1),J=m.useRef(!1),z=m.useRef(null),k=m.useRef(null),F=function(Ae){z.current&&LC(z.current,Ae)},H=ul(e.defaultValue,{value:e.value}),j=xe(H,2),A=j[0],D=j[1],ie=A==null?"":String(A),Q=m.useState(null),ae=xe(Q,2),ue=ae[0],se=ae[1],ce=NC(E,S),fe=ce.max||w,Se=ce.strategy(ie),De=!!fe&&Se>fe;m.useImperativeHandle(t,function(){var ye;return{focus:F,blur:function(){var Ue;(Ue=z.current)===null||Ue===void 0||Ue.blur()},setSelectionRange:function(Ue,tt,Pt){var St;(St=z.current)===null||St===void 0||St.setSelectionRange(Ue,tt,Pt)},select:function(){var Ue;(Ue=z.current)===null||Ue===void 0||Ue.select()},input:z.current,nativeElement:((ye=k.current)===null||ye===void 0?void 0:ye.nativeElement)||z.current}}),m.useEffect(function(){K(function(ye){return ye&&g?!1:ye})},[g]);var Pe=function(Ae,Ue,tt){var Pt=Ue;if(!W.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Ue)>ce.max){if(Pt=ce.exceedFormatter(Ue,{max:ce.max}),Ue!==Pt){var St,Ht;se([((St=z.current)===null||St===void 0?void 0:St.selectionStart)||0,((Ht=z.current)===null||Ht===void 0?void 0:Ht.selectionEnd)||0])}}else if(tt.source==="compositionEnd")return;D(Pt),z.current&&tf(z.current,Ae,n,Pt)};m.useEffect(function(){if(ue){var ye;(ye=z.current)===null||ye===void 0||ye.setSelectionRange.apply(ye,Ne(ue))}},[ue]);var $e=function(Ae){Pe(Ae,Ae.target.value,{source:"change"})},Ve=function(Ae){W.current=!1,Pe(Ae,Ae.currentTarget.value,{source:"compositionEnd"}),I==null||I(Ae)},Te=function(Ae){s&&Ae.key==="Enter"&&!J.current&&(J.current=!0,s(Ae)),c==null||c(Ae)},Be=function(Ae){Ae.key==="Enter"&&(J.current=!1),f==null||f(Ae)},pt=function(Ae){K(!0),i==null||i(Ae)},Ze=function(Ae){K(!1),l==null||l(Ae)},ht=function(Ae){D(""),F(),z.current&&tf(z.current,Ae,n)},it=De&&"".concat(h,"-out-of-range"),Le=function(){var Ae=Ri(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",It({autoComplete:r},Ae,{onChange:$e,onFocus:pt,onBlur:Ze,onKeyDown:Te,onKeyUp:Be,className:Me(h,Z({},"".concat(h,"-disabled"),g),R==null?void 0:R.input),style:$==null?void 0:$.input,ref:z,size:y,type:O,onCompositionStart:function(tt){W.current=!0,M==null||M(tt)},onCompositionEnd:Ve}))},ut=function(){var Ae=Number(fe)>0;if(C||ce.show){var Ue=ce.showFormatter?ce.showFormatter({value:ie,count:Se,maxLength:fe}):"".concat(Se).concat(Ae?" / ".concat(fe):"");return ve.createElement(ve.Fragment,null,ce.show&&ve.createElement("span",{className:Me("".concat(h,"-show-count-suffix"),Z({},"".concat(h,"-show-count-has-suffix"),!!C),R==null?void 0:R.count),style:oe({},$==null?void 0:$.count)},Ue),C)}return null};return ve.createElement(kC,It({},L,{prefixCls:h,className:Me(x,it),handleReset:ht,value:ie,focused:ee,triggerFocus:F,suffix:ut(),disabled:g,classes:_,classNames:R,styles:$}),Le())});const BF=e=>{const{getPrefixCls:t,direction:r}=m.useContext(zt),{prefixCls:n,className:i}=e,l=t("input-group",n),s=t("input"),[c,f]=Mv(s),p=Me(l,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:r==="rtl"},f,i),h=m.useContext(Wn),g=m.useMemo(()=>Object.assign(Object.assign({},h),{isFormItemInput:!1}),[h]);return c(m.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(Wn.Provider,{value:g},e.children)))},jC=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(Xw,null)}),t};function DC(e,t){const r=m.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var i,l,s,c;!((i=e.current)===null||i===void 0)&&i.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return m.useEffect(()=>(t&&n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function VF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var UF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Tf=m.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:i=!0,status:l,size:s,disabled:c,onBlur:f,onFocus:p,suffix:h,allowClear:g,addonAfter:y,addonBefore:x,className:w,style:C,styles:S,rootClassName:E,onChange:T,classNames:O,variant:_}=e,R=UF(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:M,input:I}=ve.useContext(zt),L=$("input",n),V=m.useRef(null),X=bl(L),[ee,K,W]=Mv(L,X),{compactSize:J,compactItemClassnames:z}=gv(L,M),k=Sl($e=>{var Ve;return(Ve=s??J)!==null&&Ve!==void 0?Ve:$e}),F=ve.useContext(Si),H=c??F,{status:j,hasFeedback:A,feedbackIcon:D}=m.useContext(Wn),ie=$v(j,l),Q=VF(e)||!!A;m.useRef(Q);const ae=DC(V,!0),ue=$e=>{ae(),f==null||f($e)},se=$e=>{ae(),p==null||p($e)},ce=$e=>{ae(),T==null||T($e)},fe=(A||h)&&ve.createElement(ve.Fragment,null,h,A&&D),Se=jC(g??(I==null?void 0:I.allowClear)),[De,Pe]=SC("input",_,i);return ee(ve.createElement(HF,Object.assign({ref:Ro(t,V),prefixCls:L,autoComplete:I==null?void 0:I.autoComplete},R,{disabled:H,onBlur:ue,onFocus:se,style:Object.assign(Object.assign({},I==null?void 0:I.style),C),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),S),suffix:fe,allowClear:Se,className:Me(w,E,W,X,z,I==null?void 0:I.className),onChange:ce,addonBefore:x&&ve.createElement(Om,{form:!0,space:!0},x),addonAfter:y&&ve.createElement(Om,{form:!0,space:!0},y),classNames:Object.assign(Object.assign(Object.assign({},O),I==null?void 0:I.classNames),{input:Me({[`${L}-sm`]:k==="small",[`${L}-lg`]:k==="large",[`${L}-rtl`]:M==="rtl"},O==null?void 0:O.input,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.input,K),variant:Me({[`${L}-${De}`]:Pe},Pm(L,ie)),affixWrapper:Me({[`${L}-affix-wrapper-sm`]:k==="small",[`${L}-affix-wrapper-lg`]:k==="large",[`${L}-affix-wrapper-rtl`]:M==="rtl"},K),wrapper:Me({[`${L}-group-rtl`]:M==="rtl"},K),groupWrapper:Me({[`${L}-group-wrapper-sm`]:k==="small",[`${L}-group-wrapper-lg`]:k==="large",[`${L}-group-wrapper-rtl`]:M==="rtl",[`${L}-group-wrapper-${De}`]:Pe},Pm(`${L}-group-wrapper`,ie,A),K)})})))}),WF=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-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}}}},qF=Uo(["Input","OTP"],e=>{const t=Qr(e,OC(e));return[WF(t)]},TC);var GF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const KF=m.forwardRef((e,t)=>{const{value:r,onChange:n,onActiveChange:i,index:l,mask:s}=e,c=GF(e,["value","onChange","onActiveChange","index","mask"]),f=r&&typeof s=="string"?s:r,p=w=>{n(l,w.target.value)},h=m.useRef(null);m.useImperativeHandle(t,()=>h.current);const g=()=>{Vn(()=>{var w;const C=(w=h.current)===null||w===void 0?void 0:w.input;document.activeElement===C&&C&&C.select()})},y=w=>{const{key:C,ctrlKey:S,metaKey:E}=w;C==="ArrowLeft"?i(l-1):C==="ArrowRight"?i(l+1):C==="z"&&(S||E)&&w.preventDefault(),g()},x=w=>{w.key==="Backspace"&&!r&&i(l-1),g()};return m.createElement(Tf,Object.assign({type:s===!0?"password":"text"},c,{ref:h,value:f,onInput:p,onFocus:g,onKeyDown:y,onKeyUp:x,onMouseDown:g,onMouseUp:g}))});var XF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Sc(e){return(e||"").split("")}const QF=m.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:i,defaultValue:l,value:s,onChange:c,formatter:f,variant:p,disabled:h,status:g,autoFocus:y,mask:x,type:w,onInput:C,inputMode:S}=e,E=XF(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:T,direction:O}=m.useContext(zt),_=T("otp",r),R=H_(E,{aria:!0,data:!0,attr:!0}),$=bl(_),[M,I,L]=qF(_,$),V=Sl(Q=>i??Q),X=m.useContext(Wn),ee=$v(X.status,g),K=m.useMemo(()=>Object.assign(Object.assign({},X),{status:ee,hasFeedback:!1,feedbackIcon:null}),[X,ee]),W=m.useRef(null),J=m.useRef({});m.useImperativeHandle(t,()=>({focus:()=>{var Q;(Q=J.current[0])===null||Q===void 0||Q.focus()},blur:()=>{var Q;for(let ae=0;ae<n;ae+=1)(Q=J.current[ae])===null||Q===void 0||Q.blur()},nativeElement:W.current}));const z=Q=>f?f(Q):Q,[k,F]=m.useState(Sc(z(l||"")));m.useEffect(()=>{s!==void 0&&F(Sc(s))},[s]);const H=Fr(Q=>{F(Q),C&&C(Q),c&&Q.length===n&&Q.every(ae=>ae)&&Q.some((ae,ue)=>k[ue]!==ae)&&c(Q.join(""))}),j=Fr((Q,ae)=>{let ue=Ne(k);for(let ce=0;ce<Q;ce+=1)ue[ce]||(ue[ce]="");ae.length<=1?ue[Q]=ae:ue=ue.slice(0,Q).concat(Sc(ae)),ue=ue.slice(0,n);for(let ce=ue.length-1;ce>=0&&!ue[ce];ce-=1)ue.pop();const se=z(ue.map(ce=>ce||" ").join(""));return ue=Sc(se).map((ce,fe)=>ce===" "&&!ue[fe]?ue[fe]:ce),ue}),A=(Q,ae)=>{var ue;const se=j(Q,ae),ce=Math.min(Q+ae.length,n-1);ce!==Q&&se[Q]!==void 0&&((ue=J.current[ce])===null||ue===void 0||ue.focus()),H(se)},D=Q=>{var ae;(ae=J.current[Q])===null||ae===void 0||ae.focus()},ie={variant:p,disabled:h,status:ee,mask:x,type:w,inputMode:S};return M(m.createElement("div",Object.assign({},R,{ref:W,className:Me(_,{[`${_}-sm`]:V==="small",[`${_}-lg`]:V==="large",[`${_}-rtl`]:O==="rtl"},L,I)}),m.createElement(Wn.Provider,{value:K},Array.from({length:n}).map((Q,ae)=>{const ue=`otp-${ae}`,se=k[ae]||"";return m.createElement(KF,Object.assign({ref:ce=>{J.current[ae]=ce},key:ue,index:ae,size:V,htmlSize:1,className:`${_}-input`,onChange:A,value:se,onActiveChange:D,autoFocus:ae===0&&y},ie))}))))});var YF={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"},JF=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:YF}))},zC=m.forwardRef(JF),ZF={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"},eL=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:ZF}))},HC=m.forwardRef(eL),tL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const rL=e=>e?m.createElement(HC,null):m.createElement(zC,null),nL={click:"onClick",hover:"onMouseOver"},oL=m.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:i=!0,iconRender:l=rL}=e,s=m.useContext(Si),c=r??s,f=typeof i=="object"&&i.visible!==void 0,[p,h]=m.useState(()=>f?i.visible:!1),g=m.useRef(null);m.useEffect(()=>{f&&h(i.visible)},[f,i]);const y=DC(g),x=()=>{c||(p&&y(),h(V=>{var X;const ee=!V;return typeof i=="object"&&((X=i.onVisibleChange)===null||X===void 0||X.call(i,ee)),ee}))},w=V=>{const X=nL[n]||"",ee=l(p),K={[X]:x,className:`${V}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return m.cloneElement(m.isValidElement(ee)?ee:m.createElement("span",null,ee),K)},{className:C,prefixCls:S,inputPrefixCls:E,size:T}=e,O=tL(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=m.useContext(zt),R=_("input",E),$=_("input-password",S),M=i&&w($),I=Me($,C,{[`${$}-${T}`]:!!T}),L=Object.assign(Object.assign({},Ri(O,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:I,prefixCls:R,suffix:M});return T&&(L.size=T),m.createElement(Tf,Object.assign({ref:Ro(t,g)},L))});var iL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const aL=m.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:i,size:l,suffix:s,enterButton:c=!1,addonAfter:f,loading:p,disabled:h,onSearch:g,onChange:y,onCompositionStart:x,onCompositionEnd:w}=e,C=iL(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:E}=m.useContext(zt),T=m.useRef(!1),O=S("input-search",r),_=S("input",n),{compactSize:R}=gv(O,E),$=Sl(j=>{var A;return(A=l??R)!==null&&A!==void 0?A:j}),M=m.useRef(null),I=j=>{j!=null&&j.target&&j.type==="click"&&g&&g(j.target.value,j,{source:"clear"}),y==null||y(j)},L=j=>{var A;document.activeElement===((A=M.current)===null||A===void 0?void 0:A.input)&&j.preventDefault()},V=j=>{var A,D;g&&g((D=(A=M.current)===null||A===void 0?void 0:A.input)===null||D===void 0?void 0:D.value,j,{source:"input"})},X=j=>{T.current||p||V(j)},ee=typeof c=="boolean"?m.createElement(BI,null):null,K=`${O}-button`;let W;const J=c||{},z=J.type&&J.type.__ANT_BUTTON===!0;z||J.type==="button"?W=na(J,Object.assign({onMouseDown:L,onClick:j=>{var A,D;(D=(A=J==null?void 0:J.props)===null||A===void 0?void 0:A.onClick)===null||D===void 0||D.call(A,j),V(j)},key:"enterButton"},z?{className:K,size:$}:{})):W=m.createElement(Of,{className:K,type:c?"primary":void 0,size:$,disabled:h,key:"enterButton",onMouseDown:L,onClick:V,loading:p,icon:ee},c),f&&(W=[W,na(f,{key:"addonAfter"})]);const k=Me(O,{[`${O}-rtl`]:E==="rtl",[`${O}-${$}`]:!!$,[`${O}-with-button`]:!!c},i),F=j=>{T.current=!0,x==null||x(j)},H=j=>{T.current=!1,w==null||w(j)};return m.createElement(Tf,Object.assign({ref:Ro(M,t),onPressEnter:X},C,{size:$,onCompositionStart:F,onCompositionEnd:H,prefixCls:_,addonAfter:W,suffix:s,onChange:I,className:k,disabled:h}))});var lL=` 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; `,sL=["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"],Qp={},bn;function uL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Qp[r])return Qp[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),l=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c=sL.map(function(p){return"".concat(p,":").concat(n.getPropertyValue(p))}).join(";"),f={sizingStyle:c,paddingSize:l,borderSize:s,boxSizing:i};return t&&r&&(Qp[r]=f),f}function cL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bn||(bn=document.createElement("textarea"),bn.setAttribute("tab-index","-1"),bn.setAttribute("aria-hidden","true"),bn.setAttribute("name","hiddenTextarea"),document.body.appendChild(bn)),e.getAttribute("wrap")?bn.setAttribute("wrap",e.getAttribute("wrap")):bn.removeAttribute("wrap");var i=uL(e,t),l=i.paddingSize,s=i.borderSize,c=i.boxSizing,f=i.sizingStyle;bn.setAttribute("style","".concat(f,";").concat(lL)),bn.value=e.value||e.placeholder||"";var p=void 0,h=void 0,g,y=bn.scrollHeight;if(c==="border-box"?y+=s:c==="content-box"&&(y-=l),r!==null||n!==null){bn.value=" ";var x=bn.scrollHeight-l;r!==null&&(p=x*r,c==="border-box"&&(p=p+l+s),y=Math.max(p,y)),n!==null&&(h=x*n,c==="border-box"&&(h=h+l+s),g=y>h?"":"hidden",y=Math.min(h,y))}var w={height:y,overflowY:g,resize:"none"};return p&&(w.minHeight=p),h&&(w.maxHeight=h),w}var fL=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Yp=0,Jp=1,Zp=2,dL=m.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,l=r.value,s=r.autoSize,c=r.onResize,f=r.className,p=r.style,h=r.disabled,g=r.onChange;r.onInternalAutoSize;var y=kr(r,fL),x=ul(i,{value:l,postState:function(Q){return Q??""}}),w=xe(x,2),C=w[0],S=w[1],E=function(Q){S(Q.target.value),g==null||g(Q)},T=m.useRef();m.useImperativeHandle(t,function(){return{textArea:T.current}});var O=m.useMemo(function(){return s&&rt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),_=xe(O,2),R=_[0],$=_[1],M=!!s,I=function(){try{if(document.activeElement===T.current){var Q=T.current,ae=Q.selectionStart,ue=Q.selectionEnd,se=Q.scrollTop;T.current.setSelectionRange(ae,ue),T.current.scrollTop=se}}catch{}},L=m.useState(Zp),V=xe(L,2),X=V[0],ee=V[1],K=m.useState(),W=xe(K,2),J=W[0],z=W[1],k=function(){ee(Yp)};Wt(function(){M&&k()},[l,R,$,M]),Wt(function(){if(X===Yp)ee(Jp);else if(X===Jp){var ie=cL(T.current,!1,R,$);ee(Zp),z(ie)}else I()},[X]);var F=m.useRef(),H=function(){Vn.cancel(F.current)},j=function(Q){X===Zp&&(c==null||c(Q),s&&(H(),F.current=Vn(function(){k()})))};m.useEffect(function(){return H},[]);var A=M?J:null,D=oe(oe({},p),A);return(X===Yp||X===Jp)&&(D.overflowY="hidden",D.overflowX="hidden"),m.createElement(Qs,{onResize:j,disabled:!(s||c)},m.createElement("textarea",It({},y,{ref:T,style:D,className:Me(n,f,Z({},"".concat(n,"-disabled"),h)),disabled:h,value:C,onChange:E})))}),pL=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],hL=ve.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,c=e.onChange,f=e.allowClear,p=e.maxLength,h=e.onCompositionStart,g=e.onCompositionEnd,y=e.suffix,x=e.prefixCls,w=x===void 0?"rc-textarea":x,C=e.showCount,S=e.count,E=e.className,T=e.style,O=e.disabled,_=e.hidden,R=e.classNames,$=e.styles,M=e.onResize,I=e.onClear,L=e.onPressEnter,V=e.readOnly,X=e.autoSize,ee=e.onKeyDown,K=kr(e,pL),W=ul(n,{value:i,defaultValue:n}),J=xe(W,2),z=J[0],k=J[1],F=z==null?"":String(z),H=ve.useState(!1),j=xe(H,2),A=j[0],D=j[1],ie=ve.useRef(!1),Q=ve.useState(null),ae=xe(Q,2),ue=ae[0],se=ae[1],ce=m.useRef(null),fe=m.useRef(null),Se=function(){var Ge;return(Ge=fe.current)===null||Ge===void 0?void 0:Ge.textArea},De=function(){Se().focus()};m.useImperativeHandle(t,function(){var Je;return{resizableTextArea:fe.current,focus:De,blur:function(){Se().blur()},nativeElement:((Je=ce.current)===null||Je===void 0?void 0:Je.nativeElement)||Se()}}),m.useEffect(function(){D(function(Je){return!O&&Je})},[O]);var Pe=ve.useState(null),$e=xe(Pe,2),Ve=$e[0],Te=$e[1];ve.useEffect(function(){if(Ve){var Je;(Je=Se()).setSelectionRange.apply(Je,Ne(Ve))}},[Ve]);var Be=NC(S,C),pt=(r=Be.max)!==null&&r!==void 0?r:p,Ze=Number(pt)>0,ht=Be.strategy(F),it=!!pt&&ht>pt,Le=function(Ge,ir){var Ie=ir;!ie.current&&Be.exceedFormatter&&Be.max&&Be.strategy(ir)>Be.max&&(Ie=Be.exceedFormatter(ir,{max:Be.max}),ir!==Ie&&Te([Se().selectionStart||0,Se().selectionEnd||0])),k(Ie),tf(Ge.currentTarget,Ge,c,Ie)},ut=function(Ge){ie.current=!0,h==null||h(Ge)},ye=function(Ge){ie.current=!1,Le(Ge,Ge.currentTarget.value),g==null||g(Ge)},Ae=function(Ge){Le(Ge,Ge.target.value)},Ue=function(Ge){Ge.key==="Enter"&&L&&L(Ge),ee==null||ee(Ge)},tt=function(Ge){D(!0),l==null||l(Ge)},Pt=function(Ge){D(!1),s==null||s(Ge)},St=function(Ge){k(""),De(),tf(Se(),Ge,c)},Ht=y,wt;Be.show&&(Be.showFormatter?wt=Be.showFormatter({value:F,count:ht,maxLength:pt}):wt="".concat(ht).concat(Ze?" / ".concat(pt):""),Ht=ve.createElement(ve.Fragment,null,Ht,ve.createElement("span",{className:Me("".concat(w,"-data-count"),R==null?void 0:R.count),style:$==null?void 0:$.count},wt)));var Zt=function(Ge){var ir;M==null||M(Ge),(ir=Se())!==null&&ir!==void 0&&ir.style.height&&se(!0)},mt=!X&&!C&&!f;return ve.createElement(kC,{ref:ce,value:F,allowClear:f,handleReset:St,suffix:Ht,prefixCls:w,classNames:oe(oe({},R),{},{affixWrapper:Me(R==null?void 0:R.affixWrapper,Z(Z({},"".concat(w,"-show-count"),C),"".concat(w,"-textarea-allow-clear"),f))}),disabled:O,focused:A,className:Me(E,it&&"".concat(w,"-out-of-range")),style:oe(oe({},T),ue&&!mt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof wt=="string"?wt:void 0}},hidden:_,readOnly:V,onClear:I},ve.createElement(dL,It({},K,{autoSize:X,maxLength:p,onKeyDown:Ue,onChange:Ae,onFocus:tt,onBlur:Pt,onCompositionStart:ut,onCompositionEnd:ye,className:Me(R==null?void 0:R.textarea),style:oe(oe({},$==null?void 0:$.textarea),{},{resize:T==null?void 0:T.resize}),disabled:O,prefixCls:w,onResize:Zt,ref:fe,readOnly:V})))}),mL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const BC=m.forwardRef((e,t)=>{var r,n;const{prefixCls:i,bordered:l=!0,size:s,disabled:c,status:f,allowClear:p,classNames:h,rootClassName:g,className:y,style:x,styles:w,variant:C}=e,S=mL(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:E,direction:T,textArea:O}=m.useContext(zt),_=Sl(s),R=m.useContext(Si),$=c??R,{status:M,hasFeedback:I,feedbackIcon:L}=m.useContext(Wn),V=$v(M,f),X=m.useRef(null);m.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=X.current)===null||j===void 0?void 0:j.resizableTextArea,focus:A=>{var D,ie;LC((ie=(D=X.current)===null||D===void 0?void 0:D.resizableTextArea)===null||ie===void 0?void 0:ie.textArea,A)},blur:()=>{var A;return(A=X.current)===null||A===void 0?void 0:A.blur()}}});const ee=E("input",i),K=bl(ee),[W,J,z]=Mv(ee,K),[k,F]=SC("textArea",C,l),H=jC(p??(O==null?void 0:O.allowClear));return W(m.createElement(hL,Object.assign({autoComplete:O==null?void 0:O.autoComplete},S,{style:Object.assign(Object.assign({},O==null?void 0:O.style),x),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),w),disabled:$,allowClear:H,className:Me(z,K,y,g,O==null?void 0:O.className),classNames:Object.assign(Object.assign(Object.assign({},h),O==null?void 0:O.classNames),{textarea:Me({[`${ee}-sm`]:_==="small",[`${ee}-lg`]:_==="large"},J,h==null?void 0:h.textarea,(r=O==null?void 0:O.classNames)===null||r===void 0?void 0:r.textarea),variant:Me({[`${ee}-${k}`]:F},Pm(ee,V)),affixWrapper:Me(`${ee}-textarea-affix-wrapper`,{[`${ee}-affix-wrapper-rtl`]:T==="rtl",[`${ee}-affix-wrapper-sm`]:_==="small",[`${ee}-affix-wrapper-lg`]:_==="large",[`${ee}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},J)}),prefixCls:ee,suffix:I&&m.createElement("span",{className:`${ee}-textarea-suffix`},L),ref:X})))}),fa=Tf;fa.Group=BF;fa.Search=aL;fa.TextArea=BC;fa.Password=oL;fa.OTP=QF;function yb(e){return["small","middle","large"].includes(e)}const VC=["wrap","nowrap","wrap-reverse"],UC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],WC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],vL=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&VC.includes(r)}},gL=(e,t)=>{const r={};return WC.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},yL=(e,t)=>{const r={};return UC.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function bL(e,t){return Me(Object.assign(Object.assign(Object.assign({},vL(e,t)),gL(e,t)),yL(e,t)))}const SL=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},wL=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},CL=e=>{const{componentCls:t}=e,r={};return VC.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},xL=e=>{const{componentCls:t}=e,r={};return WC.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},EL=e=>{const{componentCls:t}=e,r={};return UC.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},RL=()=>({}),OL=Uo("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,i=Qr(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[SL(i),wL(i),CL(i),xL(i),EL(i)]},RL,{resetStyle:!1});var TL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const qC=ve.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:i,style:l,flex:s,gap:c,children:f,vertical:p=!1,component:h="div"}=e,g=TL(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:x,getPrefixCls:w}=ve.useContext(zt),C=w("flex",r),[S,E,T]=OL(C),O=p??(y==null?void 0:y.vertical),_=Me(i,n,y==null?void 0:y.className,C,E,T,bL(C,e),{[`${C}-rtl`]:x==="rtl",[`${C}-gap-${c}`]:yb(c),[`${C}-vertical`]:O}),R=Object.assign(Object.assign({},y==null?void 0:y.style),l);return s&&(R.flex=s),c&&!yb(c)&&(R.gap=c),S(ve.createElement(h,Object.assign({ref:t,className:_,style:R},Ri(g,["justify","wrap","align"])),f))});function rf(e){const[t,r]=m.useState(e);return m.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const PL=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, opacity ${e.motionDurationFast} ${e.motionEaseInOut}, transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},$L=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${at(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${at(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),bb=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},_L=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ys(e)),$L(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},bb(e,e.controlHeightSM)),"&-large":Object.assign({},bb(e,e.controlHeightLG))})}},ML=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:i,antCls:l,labelRequiredMarkColor:s,labelColor:c,labelFontSize:f,labelHeight:p,labelColonMarginInlineStart:h,labelColonMarginInlineEnd:g,itemMarginBottom:y}=e;return{[t]:Object.assign(Object.assign({},Ys(e)),{marginBottom:y,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:p,color:c,fontSize:f,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:h,marginInlineEnd:g},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:yv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Sb=(e,t)=>{const{formItemCls:r}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},AL=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},oo=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),GC=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:oo(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},IL=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${t}-vertical`]:{[`${r}:not(${r}-horizontal)`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label, ${n}-col-24${r}-label, ${n}-col-xl-24${r}-label`]:oo(e)}},[`@media (max-width: ${at(e.screenXSMax)})`]:[GC(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:oo(e)}}}],[`@media (max-width: ${at(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:oo(e)}}},[`@media (max-width: ${at(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:oo(e)}}},[`@media (max-width: ${at(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:oo(e)}}}}},FL=e=>{const{formItemCls:t,antCls:r}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${r}-col-24${t}-label, ${r}-col-xl-24${t}-label`]:oo(e),[`@media (max-width: ${at(e.screenXSMax)})`]:[GC(e),{[t]:{[`${r}-col-xs-24${t}-label`]:oo(e)}}],[`@media (max-width: ${at(e.screenSMMax)})`]:{[t]:{[`${r}-col-sm-24${t}-label`]:oo(e)}},[`@media (max-width: ${at(e.screenMDMax)})`]:{[t]:{[`${r}-col-md-24${t}-label`]:oo(e)}},[`@media (max-width: ${at(e.screenLGMax)})`]:{[t]:{[`${r}-col-lg-24${t}-label`]:oo(e)}}}},LL=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),KC=(e,t)=>Qr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Av=Uo("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=KC(e,r);return[_L(n),ML(n),PL(n),Sb(n,n.componentCls),Sb(n,n.formItemCls),AL(n),IL(n),FL(n),_M(n),yv]},LL,{order:-1e3}),wb=[];function eh(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const XC=e=>{let{help:t,helpStatus:r,errors:n=wb,warnings:i=wb,className:l,fieldId:s,onVisibleChanged:c}=e;const{prefixCls:f}=m.useContext(Pv),p=`${f}-item-explain`,h=bl(f),[g,y,x]=Av(f,h),w=m.useMemo(()=>I1(f),[f]),C=rf(n),S=rf(i),E=m.useMemo(()=>t!=null?[eh(t,"help",r)]:[].concat(Ne(C.map((_,R)=>eh(_,"error","error",R))),Ne(S.map((_,R)=>eh(_,"warning","warning",R)))),[t,r,C,S]),T=m.useMemo(()=>{const _={};return E.forEach(R=>{let{key:$}=R;_[$]=(_[$]||0)+1}),E.map((R,$)=>Object.assign(Object.assign({},R),{key:_[R.key]>1?`${R.key}-fallback-${$}`:R.key}))},[E]),O={};return s&&(O.id=`${s}_help`),g(m.createElement(vl,{motionDeadline:w.motionDeadline,motionName:`${f}-show-help`,visible:!!T.length,onVisibleChanged:c},_=>{const{className:R,style:$}=_;return m.createElement("div",Object.assign({},O,{className:Me(p,R,x,h,l,y),style:$,role:"alert"}),m.createElement(u_,Object.assign({keys:T},I1(f),{motionName:`${f}-show-help-item`,component:!1}),M=>{const{key:I,error:L,errorStatus:V,className:X,style:ee}=M;return m.createElement("div",{key:I,className:Me(X,{[`${p}-${V}`]:V}),style:ee},L)}))}))},kL=["parentNode"],NL="form_item";function xs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function QC(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:kL.includes(r)?`${NL}_${r}`:r}function YC(e,t,r,n,i,l){let s=n;return l!==void 0?s=l:r.validating?s="validating":e.length?s="error":t.length?s="warning":(r.touched||i&&r.validated)&&(s="success"),s}function Cb(e){return xs(e).join("_")}function xb(e,t){const r=t.getFieldInstance(e),n=LS(r);if(n)return n;const i=QC(xs(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function JC(e){const[t]=Tv(),r=m.useRef({}),n=m.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>l=>{const s=Cb(i);l?r.current[s]=l:delete r.current[s]}},scrollToField:function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=xb(i,n);s&&W_(s,Object.assign({scrollMode:"if-needed",block:"nearest"},l))},focusField:i=>{var l;const s=xb(i,n);s&&((l=s.focus)===null||l===void 0||l.call(s))},getFieldInstance:i=>{const l=Cb(i);return r.current[l]}}),[e,t]);return[n]}var jL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const DL=(e,t)=>{const r=m.useContext(Si),{getPrefixCls:n,direction:i,form:l}=m.useContext(zt),{prefixCls:s,className:c,rootClassName:f,size:p,disabled:h=r,form:g,colon:y,labelAlign:x,labelWrap:w,labelCol:C,wrapperCol:S,hideRequiredMark:E,layout:T="horizontal",scrollToFirstError:O,requiredMark:_,onFinishFailed:R,name:$,style:M,feedbackIcons:I,variant:L}=e,V=jL(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),X=Sl(p),ee=m.useContext(pw),K=m.useMemo(()=>_!==void 0?_:E?!1:l&&l.requiredMark!==void 0?l.requiredMark:!0,[E,_,l]),W=y??(l==null?void 0:l.colon),J=n("form",s),z=bl(J),[k,F,H]=Av(J,z),j=Me(J,`${J}-${T}`,{[`${J}-hide-required-mark`]:K===!1,[`${J}-rtl`]:i==="rtl",[`${J}-${X}`]:X},H,z,F,l==null?void 0:l.className,c,f),[A]=JC(g),{__INTERNAL__:D}=A;D.name=$;const ie=m.useMemo(()=>({name:$,labelAlign:x,labelCol:C,labelWrap:w,wrapperCol:S,vertical:T==="vertical",colon:W,requiredMark:K,itemRef:D.itemRef,form:A,feedbackIcons:I}),[$,x,C,S,T,W,K,A,I]),Q=m.useRef(null);m.useImperativeHandle(t,()=>{var se;return Object.assign(Object.assign({},A),{nativeElement:(se=Q.current)===null||se===void 0?void 0:se.nativeElement})});const ae=(se,ce)=>{if(se){let fe={block:"nearest"};typeof se=="object"&&(fe=Object.assign(Object.assign({},fe),se)),A.scrollToField(ce,fe),fe.focus&&A.focusField(ce)}},ue=se=>{if(R==null||R(se),se.errorFields.length){const ce=se.errorFields[0].name;if(O!==void 0){ae(O,ce);return}l&&l.scrollToFirstError!==void 0&&ae(l.scrollToFirstError,ce)}};return k(m.createElement(yC.Provider,{value:L},m.createElement(xw,{disabled:h},m.createElement(ra.Provider,{value:X},m.createElement(gC,{validateMessages:ee},m.createElement(zo.Provider,{value:ie},m.createElement(wl,Object.assign({id:$},V,{name:$,onFinishFailed:ue,form:A,ref:Q,style:Object.assign(Object.assign({},l==null?void 0:l.style),M),className:j}))))))))},zL=m.forwardRef(DL);function HL(e){if(typeof e=="function")return e;const t=ea(e);return t.length<=1?t[0]:t}const ZC=()=>{const{status:e,errors:t=[],warnings:r=[]}=m.useContext(Wn);return{status:e,errors:t,warnings:r}};ZC.Context=Wn;function BL(e){const[t,r]=m.useState(e),n=m.useRef(null),i=m.useRef([]),l=m.useRef(!1);m.useEffect(()=>(l.current=!1,()=>{l.current=!0,Vn.cancel(n.current),n.current=null}),[]);function s(c){l.current||(n.current===null&&(i.current=[],n.current=Vn(()=>{n.current=null,r(f=>{let p=f;return i.current.forEach(h=>{p=h(p)}),p})})),i.current.push(c))}return[t,s]}function VL(){const{itemRef:e}=m.useContext(zo),t=m.useRef({});function r(n,i){const l=i&&typeof i=="object"&&i.ref,s=n.join("_");return(t.current.name!==s||t.current.originRef!==l)&&(t.current.name=s,t.current.originRef=l,t.current.ref=Ro(e(n),l)),t.current.ref}return r}const UL=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},WL=Iw(["Form","item-item"],(e,t)=>{let{rootPrefixCls:r}=t;const n=KC(e,r);return[UL(n)]});var qL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const GL=24,KL=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:i,children:l,errors:s,warnings:c,_internalItemRender:f,extra:p,help:h,fieldId:g,marginBottom:y,onErrorVisibleChanged:x,label:w}=e,C=`${t}-item`,S=m.useContext(zo),E=m.useMemo(()=>{let W=Object.assign({},i||S.wrapperCol||{});return w===null&&!n&&!i&&S.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const k=z?[z]:[],F=Hn(S.labelCol,k),H=typeof F=="object"?F:{},j=Hn(W,k),A=typeof j=="object"?j:{};"span"in H&&!("offset"in A)&&H.span<GL&&(W=zn(W,[].concat(k,["offset"]),H.span))}),W},[i,S]),T=Me(`${C}-control`,E.className),O=m.useMemo(()=>qL(S,["labelCol","wrapperCol"]),[S]),_=m.useRef(null),[R,$]=m.useState(0);Wt(()=>{p&&_.current?$(_.current.clientHeight):$(0)},[p]);const M=m.createElement("div",{className:`${C}-control-input`},m.createElement("div",{className:`${C}-control-input-content`},l)),I=m.useMemo(()=>({prefixCls:t,status:r}),[t,r]),L=y!==null||s.length||c.length?m.createElement(Pv.Provider,{value:I},m.createElement(XC,{fieldId:g,errors:s,warnings:c,help:h,helpStatus:r,className:`${C}-explain-connected`,onVisibleChanged:x})):null,V={};g&&(V.id=`${g}_extra`);const X=p?m.createElement("div",Object.assign({},V,{className:`${C}-extra`,ref:_}),p):null,ee=L||X?m.createElement("div",{className:`${C}-additional`,style:y?{minHeight:y+R}:{}},L,X):null,K=f&&f.mark==="pro_table_render"&&f.render?f.render(e,{input:M,errorList:L,extra:X}):m.createElement(m.Fragment,null,M,ee);return m.createElement(zo.Provider,{value:O},m.createElement(FC,Object.assign({},E,{className:T}),K),m.createElement(WL,{prefixCls:t}))};var XL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},QL=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:XL}))},YL=m.forwardRef(QL),JL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function ZL(e){return e?typeof e=="object"&&!m.isValidElement(e)?e:{title:e}:null}const ek=e=>{let{prefixCls:t,label:r,htmlFor:n,labelCol:i,labelAlign:l,colon:s,required:c,requiredMark:f,tooltip:p,vertical:h}=e;var g;const[y]=mw("Form"),{labelAlign:x,labelCol:w,labelWrap:C,colon:S}=m.useContext(zo);if(!r)return null;const E=i||w||{},T=l||x,O=`${t}-item-label`,_=Me(O,T==="left"&&`${O}-left`,E.className,{[`${O}-wrap`]:!!C});let R=r;const $=s===!0||S!==!1&&s!==!1;$&&!h&&typeof r=="string"&&r.trim()&&(R=r.replace(/[:|:]\s*$/,""));const I=ZL(p);if(I){const{icon:ee=m.createElement(YL,null)}=I,K=JL(I,["icon"]),W=m.createElement(tu,Object.assign({},K),m.cloneElement(ee,{className:`${t}-item-tooltip`,title:"",onClick:J=>{J.preventDefault()},tabIndex:null}));R=m.createElement(m.Fragment,null,R,W)}const L=f==="optional",V=typeof f=="function";V?R=f(R,{required:!!c}):L&&!c&&(R=m.createElement(m.Fragment,null,R,m.createElement("span",{className:`${t}-item-optional`,title:""},(y==null?void 0:y.optional)||((g=ta.Form)===null||g===void 0?void 0:g.optional))));const X=Me({[`${t}-item-required`]:c,[`${t}-item-required-mark-optional`]:L||V,[`${t}-item-no-colon`]:!$});return m.createElement(FC,Object.assign({},E,{className:_}),m.createElement("label",{htmlFor:n,className:X,title:typeof r=="string"?r:""},R))},tk={success:__,warning:L_,error:Xw,validating:mv};function ex(e){let{children:t,errors:r,warnings:n,hasFeedback:i,validateStatus:l,prefixCls:s,meta:c,noStyle:f}=e;const p=`${s}-item`,{feedbackIcons:h}=m.useContext(zo),g=YC(r,n,c,null,!!i,l),{isFormItemInput:y,status:x,hasFeedback:w,feedbackIcon:C}=m.useContext(Wn),S=m.useMemo(()=>{var E;let T;if(i){const _=i!==!0&&i.icons||h,R=g&&((E=_==null?void 0:_({status:g,errors:r,warnings:n}))===null||E===void 0?void 0:E[g]),$=g&&tk[g];T=R!==!1&&$?m.createElement("span",{className:Me(`${p}-feedback-icon`,`${p}-feedback-icon-${g}`)},R||m.createElement($,null)):null}const O={status:g||"",errors:r,warnings:n,hasFeedback:!!i,feedbackIcon:T,isFormItemInput:!0};return f&&(O.status=(g??x)||"",O.isFormItemInput=y,O.hasFeedback=!!(i??w),O.feedbackIcon=i!==void 0?O.feedbackIcon:C),O},[g,i,f,y,x]);return m.createElement(Wn.Provider,{value:S},t)}var rk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function nk(e){const{prefixCls:t,className:r,rootClassName:n,style:i,help:l,errors:s,warnings:c,validateStatus:f,meta:p,hasFeedback:h,hidden:g,children:y,fieldId:x,required:w,isRequired:C,onSubItemMetaChange:S,layout:E}=e,T=rk(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),O=`${t}-item`,{requiredMark:_,vertical:R}=m.useContext(zo),$=R||E==="vertical",M=m.useRef(null),I=rf(s),L=rf(c),V=l!=null,X=!!(V||s.length||c.length),ee=!!M.current&&vv(M.current),[K,W]=m.useState(null);Wt(()=>{if(X&&M.current){const H=getComputedStyle(M.current);W(parseInt(H.marginBottom,10))}},[X,ee]);const J=H=>{H||W(null)},k=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const j=H?I:p.errors,A=H?L:p.warnings;return YC(j,A,p,"",!!h,f)}(),F=Me(O,r,n,{[`${O}-with-help`]:V||I.length||L.length,[`${O}-has-feedback`]:k&&h,[`${O}-has-success`]:k==="success",[`${O}-has-warning`]:k==="warning",[`${O}-has-error`]:k==="error",[`${O}-is-validating`]:k==="validating",[`${O}-hidden`]:g,[`${O}-${E}`]:E});return m.createElement("div",{className:F,style:i,ref:M},m.createElement(kF,Object.assign({className:`${O}-row`},Ri(T,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),m.createElement(ek,Object.assign({htmlFor:x},e,{requiredMark:_,required:w??C,prefixCls:t,vertical:$})),m.createElement(KL,Object.assign({},e,p,{errors:I,warnings:L,prefixCls:t,status:k,help:l,marginBottom:K,onErrorVisibleChanged:J}),m.createElement(vC.Provider,{value:S},m.createElement(ex,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:h,validateStatus:k},y)))),!!K&&m.createElement("div",{className:`${O}-margin-offset`,style:{marginBottom:-K}}))}const ok="__SPLIT__";function ik(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(i=>{const l=e[i],s=t[i];return l===s||typeof l=="function"||typeof s=="function"})}const ak=m.memo(e=>{let{children:t}=e;return t},(e,t)=>ik(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Eb(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lk(e){const{name:t,noStyle:r,className:n,dependencies:i,prefixCls:l,shouldUpdate:s,rules:c,children:f,required:p,label:h,messageVariables:g,trigger:y="onChange",validateTrigger:x,hidden:w,help:C,layout:S}=e,{getPrefixCls:E}=m.useContext(zt),{name:T}=m.useContext(zo),O=HL(f),_=typeof O=="function",R=m.useContext(vC),{validateTrigger:$}=m.useContext(oa),M=x!==void 0?x:$,I=t!=null,L=E("form",l),V=bl(L),[X,ee,K]=Av(L,V);dv();const W=m.useContext(Ds),J=m.useRef(),[z,k]=BL({}),[F,H]=sl(()=>Eb()),j=se=>{const ce=W==null?void 0:W.getKey(se.name);if(H(se.destroy?Eb():se,!0),r&&C!==!1&&R){let fe=se.name;if(se.destroy)fe=J.current||fe;else if(ce!==void 0){const[Se,De]=ce;fe=[Se].concat(Ne(De)),J.current=fe}R(se,fe)}},A=(se,ce)=>{k(fe=>{const Se=Object.assign({},fe),Pe=[].concat(Ne(se.name.slice(0,-1)),Ne(ce)).join(ok);return se.destroy?delete Se[Pe]:Se[Pe]=se,Se})},[D,ie]=m.useMemo(()=>{const se=Ne(F.errors),ce=Ne(F.warnings);return Object.values(z).forEach(fe=>{se.push.apply(se,Ne(fe.errors||[])),ce.push.apply(ce,Ne(fe.warnings||[]))}),[se,ce]},[z,F.errors,F.warnings]),Q=VL();function ae(se,ce,fe){return r&&!w?m.createElement(ex,{prefixCls:L,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:D,warnings:ie,noStyle:!0},se):m.createElement(nk,Object.assign({key:"row"},e,{className:Me(n,K,V,ee),prefixCls:L,fieldId:ce,isRequired:fe,errors:D,warnings:ie,meta:F,onSubItemMetaChange:A,layout:S}),se)}if(!I&&!_&&!i)return X(ae(O));let ue={};return typeof h=="string"?ue.label=h:t&&(ue.label=String(t)),g&&(ue=Object.assign(Object.assign({},ue),g)),X(m.createElement(Ov,Object.assign({},e,{messageVariables:ue,trigger:y,validateTrigger:M,onMetaChange:j}),(se,ce,fe)=>{const Se=xs(t).length&&ce?ce.name:[],De=QC(Se,T),Pe=p!==void 0?p:!!(c!=null&&c.some(Te=>{if(Te&&typeof Te=="object"&&Te.required&&!Te.warningOnly)return!0;if(typeof Te=="function"){const Be=Te(fe);return(Be==null?void 0:Be.required)&&!(Be!=null&&Be.warningOnly)}return!1})),$e=Object.assign({},se);let Ve=null;if(Array.isArray(O)&&I)Ve=O;else if(!(_&&(!(s||i)||I))){if(!(i&&!_&&!I))if(m.isValidElement(O)){const Te=Object.assign(Object.assign({},O.props),$e);if(Te.id||(Te.id=De),C||D.length>0||ie.length>0||e.extra){const Ze=[];(C||D.length>0)&&Ze.push(`${De}_help`),e.extra&&Ze.push(`${De}_extra`),Te["aria-describedby"]=Ze.join(" ")}D.length>0&&(Te["aria-invalid"]="true"),Pe&&(Te["aria-required"]="true"),hl(O)&&(Te.ref=Q(Se,O)),new Set([].concat(Ne(xs(y)),Ne(xs(M)))).forEach(Ze=>{Te[Ze]=function(){for(var ht,it,Le,ut,ye,Ae=arguments.length,Ue=new Array(Ae),tt=0;tt<Ae;tt++)Ue[tt]=arguments[tt];(Le=$e[Ze])===null||Le===void 0||(ht=Le).call.apply(ht,[$e].concat(Ue)),(ye=(ut=O.props)[Ze])===null||ye===void 0||(it=ye).call.apply(it,[ut].concat(Ue))}});const pt=[Te["aria-required"],Te["aria-invalid"],Te["aria-describedby"]];Ve=m.createElement(ak,{control:$e,update:O,childProps:pt},na(O,Te))}else _&&(s||i)&&!I?Ve=O(fe):Ve=O}return ae(Ve,De,Pe)}))}const tx=lk;tx.useStatus=ZC;var sk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const uk=e=>{var{prefixCls:t,children:r}=e,n=sk(e,["prefixCls","children"]);const{getPrefixCls:i}=m.useContext(zt),l=i("form",t),s=m.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return m.createElement(dC,Object.assign({},n),(c,f,p)=>m.createElement(Pv.Provider,{value:s},r(c.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),f,{errors:p.errors,warnings:p.warnings})))};function ck(){const{form:e}=m.useContext(zo);return e}const Cn=zL;Cn.Item=tx;Cn.List=uk;Cn.ErrorList=XC;Cn.useForm=JC;Cn.useFormInstance=ck;Cn.useWatch=mC;Cn.Provider=gC;Cn.create=()=>{};function fk(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var dk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},pk=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:dk}))},hk=m.forwardRef(pk),mk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},vk=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:mk}))},gk=m.forwardRef(vk),yk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},bk=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:yk}))},Sk=m.forwardRef(bk),wk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},Ck=function(t,r){return m.createElement(Nr,It({},t,{ref:r,icon:wk}))},xk=m.forwardRef(Ck);const Ek=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:l}=n;return{marginBottom:i,color:r,fontWeight:l,fontSize:e,lineHeight:t}},Rk=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[` h${n}&, div&-h${n}, div&-h${n} > textarea, h${n} `]=Ek(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Ok=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Mw(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Tk=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Qc[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Pk=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${at(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},$k=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),_k=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Mk=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Rk(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),Tk(e)),Ok(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy `]:Object.assign(Object.assign({},Mw(e)),{marginInlineStart:e.marginXXS})}),Pk(e)),$k(e)),_k()),{"&-rtl":{direction:"rtl"}})}},Ak=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),rx=Uo("Typography",e=>[Mk(e)],Ak),Ik=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:l,maxLength:s,autoSize:c=!0,value:f,onSave:p,onCancel:h,onEnd:g,component:y,enterIcon:x=m.createElement(Sk,null)}=e,w=m.useRef(null),C=m.useRef(!1),S=m.useRef(),[E,T]=m.useState(f);m.useEffect(()=>{T(f)},[f]),m.useEffect(()=>{var W;if(!((W=w.current)===null||W===void 0)&&W.resizableTextArea){const{textArea:J}=w.current.resizableTextArea;J.focus();const{length:z}=J.value;J.setSelectionRange(z,z)}},[]);const O=W=>{let{target:J}=W;T(J.value.replace(/[\n\r]/g,""))},_=()=>{C.current=!0},R=()=>{C.current=!1},$=W=>{let{keyCode:J}=W;C.current||(S.current=J)},M=()=>{p(E.trim())},I=W=>{let{keyCode:J,ctrlKey:z,altKey:k,metaKey:F,shiftKey:H}=W;S.current!==J||C.current||z||k||F||H||(J===et.ENTER?(M(),g==null||g()):J===et.ESC&&h())},L=()=>{M()},[V,X,ee]=rx(t),K=Me(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${y}`]:!!y},n,X,ee);return V(m.createElement("div",{className:K,style:i},m.createElement(BC,{ref:w,maxLength:s,value:E,onChange:O,onKeyDown:$,onKeyUp:I,onCompositionStart:_,onCompositionEnd:R,onBlur:L,"aria-label":r,rows:1,autoSize:c}),x!==null?na(x,{className:`${t}-edit-content-confirm`}):null))};var th,Rb;function Fk(){return Rb||(Rb=1,th=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),th}var rh,Ob;function Lk(){if(Ob)return rh;Ob=1;var e=Fk(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function i(l,s){var c,f,p,h,g,y,x=!1;s||(s={}),c=s.debug||!1;try{p=e(),h=document.createRange(),g=document.getSelection(),y=document.createElement("span"),y.textContent=l,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(C){if(C.stopPropagation(),s.format)if(C.preventDefault(),typeof C.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[s.format]||t.default;window.clipboardData.setData(S,l)}else C.clipboardData.clearData(),C.clipboardData.setData(s.format,l);s.onCopy&&(C.preventDefault(),s.onCopy(C.clipboardData))}),document.body.appendChild(y),h.selectNodeContents(y),g.addRange(h);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");x=!0}catch(C){c&&console.error("unable to copy using execCommand: ",C),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),x=!0}catch(S){c&&console.error("unable to copy using clipboardData: ",S),c&&console.error("falling back to prompt"),f=n("message"in s?s.message:r),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(h):g.removeAllRanges()),y&&document.body.removeChild(y),p()}return x}return rh=i,rh}var kk=Lk();const Nk=Bo(kk);var jk=function(e,t,r,n){function i(l){return l instanceof r?l:new r(function(s){s(l)})}return new(r||(r=Promise))(function(l,s){function c(h){try{p(n.next(h))}catch(g){s(g)}}function f(h){try{p(n.throw(h))}catch(g){s(g)}}function p(h){h.done?l(h.value):i(h.value).then(c,f)}p((n=n.apply(e,t||[])).next())})};const Dk=e=>{let{copyConfig:t,children:r}=e;const[n,i]=m.useState(!1),[l,s]=m.useState(!1),c=m.useRef(null),f=()=>{c.current&&clearTimeout(c.current)},p={};t.format&&(p.format=t.format),m.useEffect(()=>f,[]);const h=Fr(g=>jk(void 0,void 0,void 0,function*(){var y;g==null||g.preventDefault(),g==null||g.stopPropagation(),s(!0);try{const x=typeof t.text=="function"?yield t.text():t.text;Nk(x||fk(r,!0).join("")||"",p),s(!1),i(!0),f(),c.current=setTimeout(()=>{i(!1)},3e3),(y=t.onCopy)===null||y===void 0||y.call(t,g)}catch(x){throw s(!1),x}}));return{copied:n,copyLoading:l,onClick:h}};function nh(e,t){return m.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const zk=e=>{const t=m.useRef();return m.useEffect(()=>{t.current=e}),t.current},Hk=(e,t,r)=>m.useMemo(()=>e===!0?{title:t??r}:m.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var Bk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const nx=m.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:l,setContentRef:s,children:c,direction:f,style:p}=e,h=Bk(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:y,typography:x}=m.useContext(zt),w=f??y,C=s?Ro(t,s):t,S=g("typography",r),[E,T,O]=rx(S),_=Me(S,x==null?void 0:x.className,{[`${S}-rtl`]:w==="rtl"},i,l,T,O),R=Object.assign(Object.assign({},x==null?void 0:x.style),p);return E(m.createElement(n,Object.assign({className:_,style:R,ref:C},h),c))});function Tb(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function oh(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Vk(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const Iv=e=>["string","number"].includes(typeof e),Uk=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:l,icon:s,tabIndex:c,onCopy:f,loading:p}=e;const h=Tb(l),g=Tb(s),{copied:y,copy:x}=n??{},w=r?y:x,C=oh(h[r?1:0],w),S=typeof C=="string"?C:w;return m.createElement(tu,{title:C},m.createElement("button",{type:"button",className:Me(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:f,"aria-label":S,tabIndex:c},r?oh(g[1],m.createElement(DI,null),!0):oh(g[0],p?m.createElement(mv,null):m.createElement(hk,null),!0)))},wc=m.forwardRef((e,t)=>{let{style:r,children:n}=e;const i=m.useRef(null);return m.useImperativeHandle(t,()=>({isExceed:()=>{const l=i.current;return l.scrollHeight>l.clientHeight},getHeight:()=>i.current.clientHeight})),m.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)}),Wk=e=>e.reduce((t,r)=>t+(Iv(r)?String(r).length:1),0);function Pb(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const l=e[i],c=Iv(l)?String(l).length:1,f=r+c;if(f>t){const p=t-r;return n.push(String(l).slice(0,p)),n}n.push(l),r=f}return e}const ih=0,ah=1,lh=2,sh=3,$b=4,Cc={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function qk(e){const{enableMeasure:t,width:r,text:n,children:i,rows:l,expanded:s,miscDeps:c,onEllipsis:f}=e,p=m.useMemo(()=>ea(n),[n]),h=m.useMemo(()=>Wk(p),[n]),g=m.useMemo(()=>i(p,!1),[n]),[y,x]=m.useState(null),w=m.useRef(null),C=m.useRef(null),S=m.useRef(null),E=m.useRef(null),T=m.useRef(null),[O,_]=m.useState(!1),[R,$]=m.useState(ih),[M,I]=m.useState(0),[L,V]=m.useState(null);Wt(()=>{$(t&&r&&h?ah:ih)},[r,n,l,t,p]),Wt(()=>{var W,J,z,k;if(R===ah){$(lh);const F=C.current&&getComputedStyle(C.current).whiteSpace;V(F)}else if(R===lh){const F=!!(!((W=S.current)===null||W===void 0)&&W.isExceed());$(F?sh:$b),x(F?[0,h]:null),_(F);const H=((J=S.current)===null||J===void 0?void 0:J.getHeight())||0,j=l===1?0:((z=E.current)===null||z===void 0?void 0:z.getHeight())||0,A=((k=T.current)===null||k===void 0?void 0:k.getHeight())||0,D=Math.max(H,j+A);I(D+1),f(F)}},[R]);const X=y?Math.ceil((y[0]+y[1])/2):0;Wt(()=>{var W;const[J,z]=y||[0,0];if(J!==z){const F=(((W=w.current)===null||W===void 0?void 0:W.getHeight())||0)>M;let H=X;z-J===1&&(H=F?J:z),x(F?[J,H]:[H,z])}},[y,X]);const ee=m.useMemo(()=>{if(!t)return i(p,!1);if(R!==sh||!y||y[0]!==y[1]){const W=i(p,!1);return[$b,ih].includes(R)?W:m.createElement("span",{style:Object.assign(Object.assign({},Cc),{WebkitLineClamp:l})},W)}return i(s?p:Pb(p,y[0]),O)},[s,R,y,p].concat(Ne(c))),K={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return m.createElement(m.Fragment,null,ee,R===lh&&m.createElement(m.Fragment,null,m.createElement(wc,{style:Object.assign(Object.assign(Object.assign({},K),Cc),{WebkitLineClamp:l}),ref:S},g),m.createElement(wc,{style:Object.assign(Object.assign(Object.assign({},K),Cc),{WebkitLineClamp:l-1}),ref:E},g),m.createElement(wc,{style:Object.assign(Object.assign(Object.assign({},K),Cc),{WebkitLineClamp:1}),ref:T},i([],!0))),R===sh&&y&&y[0]!==y[1]&&m.createElement(wc,{style:Object.assign(Object.assign({},K),{top:400}),ref:w},i(Pb(p,X),!0)),R===ah&&m.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const Gk=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?n:m.createElement(tu,Object.assign({open:r?void 0:!1},i),n)};var Kk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Xk(e,t){let{mark:r,code:n,underline:i,delete:l,strong:s,keyboard:c,italic:f}=e,p=t;function h(g,y){y&&(p=m.createElement(g,{},p))}return h("strong",s),h("u",i),h("del",l),h("code",n),h("mark",r),h("kbd",c),h("i",f),p}const Qk="...",Pf=m.forwardRef((e,t)=>{var r;const{prefixCls:n,className:i,style:l,type:s,disabled:c,children:f,ellipsis:p,editable:h,copyable:g,component:y,title:x}=e,w=Kk(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:S}=m.useContext(zt),[E]=mw("Text"),T=m.useRef(null),O=m.useRef(null),_=C("typography",n),R=Ri(w,["mark","code","delete","underline","strong","keyboard","italic"]),[$,M]=nh(h),[I,L]=ul(!1,{value:M.editing}),{triggerType:V=["icon"]}=M,X=Ie=>{var qe;Ie&&((qe=M.onStart)===null||qe===void 0||qe.call(M)),L(Ie)},ee=zk(I);Wt(()=>{var Ie;!I&&ee&&((Ie=O.current)===null||Ie===void 0||Ie.focus())},[I]);const K=Ie=>{Ie==null||Ie.preventDefault(),X(!0)},W=Ie=>{var qe;(qe=M.onChange)===null||qe===void 0||qe.call(M,Ie),X(!1)},J=()=>{var Ie;(Ie=M.onCancel)===null||Ie===void 0||Ie.call(M),X(!1)},[z,k]=nh(g),{copied:F,copyLoading:H,onClick:j}=Dk({copyConfig:k,children:f}),[A,D]=m.useState(!1),[ie,Q]=m.useState(!1),[ae,ue]=m.useState(!1),[se,ce]=m.useState(!1),[fe,Se]=m.useState(!0),[De,Pe]=nh(p,{expandable:!1,symbol:Ie=>Ie?E==null?void 0:E.collapse:E==null?void 0:E.expand}),[$e,Ve]=ul(Pe.defaultExpanded||!1,{value:Pe.expanded}),Te=De&&(!$e||Pe.expandable==="collapsible"),{rows:Be=1}=Pe,pt=m.useMemo(()=>Te&&(Pe.suffix!==void 0||Pe.onEllipsis||Pe.expandable||$||z),[Te,Pe,$,z]);Wt(()=>{De&&!pt&&(D(rb("webkitLineClamp")),Q(rb("textOverflow")))},[pt,De]);const[Ze,ht]=m.useState(Te),it=m.useMemo(()=>pt?!1:Be===1?ie:A,[pt,ie,A]);Wt(()=>{ht(it&&Te)},[it,Te]);const Le=Te&&(Ze?se:ae),ut=Te&&Be===1&&Ze,ye=Te&&Be>1&&Ze,Ae=(Ie,qe)=>{var _t;Ve(qe.expanded),(_t=Pe.onExpand)===null||_t===void 0||_t.call(Pe,Ie,qe)},[Ue,tt]=m.useState(0),Pt=Ie=>{let{offsetWidth:qe}=Ie;tt(qe)},St=Ie=>{var qe;ue(Ie),ae!==Ie&&((qe=Pe.onEllipsis)===null||qe===void 0||qe.call(Pe,Ie))};m.useEffect(()=>{const Ie=T.current;if(De&&Ze&&Ie){const qe=Vk(Ie);se!==qe&&ce(qe)}},[De,Ze,f,ye,fe,Ue]),m.useEffect(()=>{const Ie=T.current;if(typeof IntersectionObserver>"u"||!Ie||!Ze||!Te)return;const qe=new IntersectionObserver(()=>{Se(!!Ie.offsetParent)});return qe.observe(Ie),()=>{qe.disconnect()}},[Ze,Te]);const Ht=Hk(Pe.tooltip,M.text,f),wt=m.useMemo(()=>{if(!(!De||Ze))return[M.text,f,x,Ht.title].find(Iv)},[De,Ze,x,Ht.title,Le]);if(I)return m.createElement(Ik,{value:(r=M.text)!==null&&r!==void 0?r:typeof f=="string"?f:"",onSave:W,onCancel:J,onEnd:M.onEnd,prefixCls:_,className:i,style:l,direction:S,component:y,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const Zt=()=>{const{expandable:Ie,symbol:qe}=Pe;return Ie?m.createElement("button",{type:"button",key:"expand",className:`${_}-${$e?"collapse":"expand"}`,onClick:_t=>Ae(_t,{expanded:!$e}),"aria-label":$e?E.collapse:E==null?void 0:E.expand},typeof qe=="function"?qe($e):qe):null},mt=()=>{if(!$)return;const{icon:Ie,tooltip:qe,tabIndex:_t}=M,jr=ea(qe)[0]||(E==null?void 0:E.edit),Dr=typeof jr=="string"?jr:"";return V.includes("icon")?m.createElement(tu,{key:"edit",title:qe===!1?"":jr},m.createElement("button",{type:"button",ref:O,className:`${_}-edit`,onClick:K,"aria-label":Dr,tabIndex:_t},Ie||m.createElement(gk,{role:"button"}))):null},Je=()=>z?m.createElement(Uk,Object.assign({key:"copy"},k,{prefixCls:_,copied:F,locale:E,onCopy:j,loading:H,iconOnly:f==null})):null,Ge=Ie=>[Ie&&Zt(),mt(),Je()],ir=Ie=>[Ie&&!$e&&m.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Qk),Pe.suffix,Ge(Ie)];return m.createElement(Qs,{onResize:Pt,disabled:!Te},Ie=>m.createElement(Gk,{tooltipProps:Ht,enableEllipsis:Te,isEllipsis:Le},m.createElement(nx,Object.assign({className:Me({[`${_}-${s}`]:s,[`${_}-disabled`]:c,[`${_}-ellipsis`]:De,[`${_}-ellipsis-single-line`]:ut,[`${_}-ellipsis-multiple-line`]:ye},i),prefixCls:n,style:Object.assign(Object.assign({},l),{WebkitLineClamp:ye?Be:void 0}),component:y,ref:Ro(Ie,T,t),direction:S,onClick:V.includes("text")?K:void 0,"aria-label":wt==null?void 0:wt.toString(),title:x},R),m.createElement(qk,{enableMeasure:Te&&!Ze,text:f,rows:Be,width:Ue,onEllipsis:St,expanded:$e,miscDeps:[F,$e,H,$,z,E]},(qe,_t)=>Xk(e,m.createElement(m.Fragment,null,qe.length>0&&_t&&!$e&&wt?m.createElement("span",{key:"show-content","aria-hidden":!0},qe):qe,ir(_t)))))))});var Yk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Jk=m.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,i=Yk(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete l.navigate,m.createElement(Pf,Object.assign({},l,{ref:t,ellipsis:!!r,component:"a"}))}),Zk=m.forwardRef((e,t)=>m.createElement(Pf,Object.assign({ref:t},e,{component:"div"})));var eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const tN=(e,t)=>{var{ellipsis:r}=e,n=eN(e,["ellipsis"]);const i=m.useMemo(()=>r&&typeof r=="object"?Ri(r,["expandable","rows"]):r,[r]);return m.createElement(Pf,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},rN=m.forwardRef(tN);var nN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const oN=[1,2,3,4,5],iN=m.forwardRef((e,t)=>{const{level:r=1}=e,n=nN(e,["level"]),i=oN.includes(r)?`h${r}`:"h1";return m.createElement(Pf,Object.assign({ref:t},n,{component:i}))}),Cl=nx;Cl.Text=rN;Cl.Link=Jk;Cl.Title=iN;Cl.Paragraph=Zk;const aN="_form_z2pm6_1",lN="_reset_z2pm6_5",_b={form:aN,reset:lN},sN="_wrapper_1myye_1",uN="_logo_1myye_13",cN="_form_1myye_18",fN="_title_1myye_25",dN="_inputs_1myye_31",pN="_warning_1myye_35",hN="_success_1myye_44",ia={wrapper:sN,logo:uN,form:cN,title:fN,inputs:dN,"warning-icon":"_warning-icon_1myye_35",warning:pN,success:hN},mN="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2317_1494)'%3e%3cpath%20d='M9.99999%206.6665V9.99984M9.99999%2013.3332H10.0083M18.3333%209.99984C18.3333%2014.6022%2014.6024%2018.3332%209.99999%2018.3332C5.39762%2018.3332%201.66666%2014.6022%201.66666%209.99984C1.66666%205.39746%205.39762%201.6665%209.99999%201.6665C14.6024%201.6665%2018.3333%205.39746%2018.3333%209.99984Z'%20stroke='%23FF4D4F'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2317_1494'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function ox(e,t){return function(){return e.apply(t,arguments)}}const{toString:vN}=Object.prototype,{getPrototypeOf:Fv}=Object,$f=(e=>t=>{const r=vN.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),po=e=>(e=e.toLowerCase(),t=>$f(t)===e),_f=e=>t=>typeof t===e,{isArray:xl}=Array,Bs=_f("undefined");function gN(e){return e!==null&&!Bs(e)&&e.constructor!==null&&!Bs(e.constructor)&&Rn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ix=po("ArrayBuffer");function yN(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ix(e.buffer),t}const bN=_f("string"),Rn=_f("function"),ax=_f("number"),Mf=e=>e!==null&&typeof e=="object",SN=e=>e===!0||e===!1,Dc=e=>{if($f(e)!=="object")return!1;const t=Fv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wN=po("Date"),CN=po("File"),xN=po("Blob"),EN=po("FileList"),RN=e=>Mf(e)&&Rn(e.pipe),ON=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rn(e.append)&&((t=$f(e))==="formdata"||t==="object"&&Rn(e.toString)&&e.toString()==="[object FormData]"))},TN=po("URLSearchParams"),[PN,$N,_N,MN]=["ReadableStream","Request","Response","Headers"].map(po),AN=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ru(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),xl(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const l=r?Object.getOwnPropertyNames(e):Object.keys(e),s=l.length;let c;for(n=0;n<s;n++)c=l[n],t.call(null,e[c],c,e)}}function lx(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Qi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sx=e=>!Bs(e)&&e!==Qi;function _m(){const{caseless:e}=sx(this)&&this||{},t={},r=(n,i)=>{const l=e&&lx(t,i)||i;Dc(t[l])&&Dc(n)?t[l]=_m(t[l],n):Dc(n)?t[l]=_m({},n):xl(n)?t[l]=n.slice():t[l]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ru(arguments[n],r);return t}const IN=(e,t,r,{allOwnKeys:n}={})=>(ru(t,(i,l)=>{r&&Rn(i)?e[l]=ox(i,r):e[l]=i},{allOwnKeys:n}),e),FN=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),LN=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},kN=(e,t,r,n)=>{let i,l,s;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!n||n(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=r!==!1&&Fv(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NN=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},jN=e=>{if(!e)return null;if(xl(e))return e;let t=e.length;if(!ax(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},DN=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fv(Uint8Array)),zN=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},HN=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},BN=po("HTMLFormElement"),VN=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Mb=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),UN=po("RegExp"),ux=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ru(r,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(n[l]=s||i)}),Object.defineProperties(e,n)},WN=e=>{ux(e,(t,r)=>{if(Rn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Rn(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},qN=(e,t)=>{const r={},n=i=>{i.forEach(l=>{r[l]=!0})};return xl(e)?n(e):n(String(e).split(t)),r},GN=()=>{},KN=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uh="abcdefghijklmnopqrstuvwxyz",Ab="0123456789",cx={DIGIT:Ab,ALPHA:uh,ALPHA_DIGIT:uh+uh.toUpperCase()+Ab},XN=(e=16,t=cx.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function QN(e){return!!(e&&Rn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const YN=e=>{const t=new Array(10),r=(n,i)=>{if(Mf(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const l=xl(n)?[]:{};return ru(n,(s,c)=>{const f=r(s,i+1);!Bs(f)&&(l[c]=f)}),t[i]=void 0,l}}return n};return r(e,0)},JN=po("AsyncFunction"),ZN=e=>e&&(Mf(e)||Rn(e))&&Rn(e.then)&&Rn(e.catch),fx=((e,t)=>e?setImmediate:t?((r,n)=>(Qi.addEventListener("message",({source:i,data:l})=>{i===Qi&&l===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Qi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rn(Qi.postMessage)),ej=typeof queueMicrotask<"u"?queueMicrotask.bind(Qi):typeof process<"u"&&process.nextTick||fx,le={isArray:xl,isArrayBuffer:ix,isBuffer:gN,isFormData:ON,isArrayBufferView:yN,isString:bN,isNumber:ax,isBoolean:SN,isObject:Mf,isPlainObject:Dc,isReadableStream:PN,isRequest:$N,isResponse:_N,isHeaders:MN,isUndefined:Bs,isDate:wN,isFile:CN,isBlob:xN,isRegExp:UN,isFunction:Rn,isStream:RN,isURLSearchParams:TN,isTypedArray:DN,isFileList:EN,forEach:ru,merge:_m,extend:IN,trim:AN,stripBOM:FN,inherits:LN,toFlatObject:kN,kindOf:$f,kindOfTest:po,endsWith:NN,toArray:jN,forEachEntry:zN,matchAll:HN,isHTMLForm:BN,hasOwnProperty:Mb,hasOwnProp:Mb,reduceDescriptors:ux,freezeMethods:WN,toObjectSet:qN,toCamelCase:VN,noop:GN,toFiniteNumber:KN,findKey:lx,global:Qi,isContextDefined:sx,ALPHABET:cx,generateString:XN,isSpecCompliantForm:QN,toJSONObject:YN,isAsyncFn:JN,isThenable:ZN,setImmediate:fx,asap:ej};function st(e,t,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}le.inherits(st,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:le.toJSONObject(this.config),code:this.code,status:this.status}}});const dx=st.prototype,px={};["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=>{px[e]={value:e}});Object.defineProperties(st,px);Object.defineProperty(dx,"isAxiosError",{value:!0});st.from=(e,t,r,n,i,l)=>{const s=Object.create(dx);return le.toFlatObject(e,s,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),st.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const tj=null;function Mm(e){return le.isPlainObject(e)||le.isArray(e)}function hx(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function Ib(e,t,r){return e?e.concat(t).map(function(i,l){return i=hx(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function rj(e){return le.isArray(e)&&!e.some(Mm)}const nj=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function Af(e,t,r){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=le.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,S){return!le.isUndefined(S[C])});const n=r.metaTokens,i=r.visitor||h,l=r.dots,s=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&le.isSpecCompliantForm(t);if(!le.isFunction(i))throw new TypeError("visitor must be a function");function p(w){if(w===null)return"";if(le.isDate(w))return w.toISOString();if(!f&&le.isBlob(w))throw new st("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(w)||le.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function h(w,C,S){let E=w;if(w&&!S&&typeof w=="object"){if(le.endsWith(C,"{}"))C=n?C:C.slice(0,-2),w=JSON.stringify(w);else if(le.isArray(w)&&rj(w)||(le.isFileList(w)||le.endsWith(C,"[]"))&&(E=le.toArray(w)))return C=hx(C),E.forEach(function(O,_){!(le.isUndefined(O)||O===null)&&t.append(s===!0?Ib([C],_,l):s===null?C:C+"[]",p(O))}),!1}return Mm(w)?!0:(t.append(Ib(S,C,l),p(w)),!1)}const g=[],y=Object.assign(nj,{defaultVisitor:h,convertValue:p,isVisitable:Mm});function x(w,C){if(!le.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+C.join("."));g.push(w),le.forEach(w,function(E,T){(!(le.isUndefined(E)||E===null)&&i.call(t,E,le.isString(T)?T.trim():T,C,y))===!0&&x(E,C?C.concat(T):[T])}),g.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Fb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Lv(e,t){this._pairs=[],e&&Af(e,this,t)}const mx=Lv.prototype;mx.append=function(t,r){this._pairs.push([t,r])};mx.toString=function(t){const r=t?function(n){return t.call(this,n,Fb)}:Fb;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function oj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vx(e,t,r){if(!t)return e;const n=r&&r.encode||oj;le.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=le.isURLSearchParams(t)?t.toString():new Lv(t,r).toString(n),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Lb{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,function(n){n!==null&&t(n)})}}const gx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ij=typeof URLSearchParams<"u"?URLSearchParams:Lv,aj=typeof FormData<"u"?FormData:null,lj=typeof Blob<"u"?Blob:null,sj={isBrowser:!0,classes:{URLSearchParams:ij,FormData:aj,Blob:lj},protocols:["http","https","file","blob","url","data"]},kv=typeof window<"u"&&typeof document<"u",Am=typeof navigator=="object"&&navigator||void 0,uj=kv&&(!Am||["ReactNative","NativeScript","NS"].indexOf(Am.product)<0),cj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fj=kv&&window.location.href||"http://localhost",dj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kv,hasStandardBrowserEnv:uj,hasStandardBrowserWebWorkerEnv:cj,navigator:Am,origin:fj},Symbol.toStringTag,{value:"Module"})),Lr={...dj,...sj};function pj(e,t){return Af(e,new Lr.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,l){return Lr.isNode&&le.isBuffer(r)?(this.append(n,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function hj(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mj(e){const t={},r=Object.keys(e);let n;const i=r.length;let l;for(n=0;n<i;n++)l=r[n],t[l]=e[l];return t}function yx(e){function t(r,n,i,l){let s=r[l++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),f=l>=r.length;return s=!s&&le.isArray(i)?i.length:s,f?(le.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!c):((!i[s]||!le.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],l)&&le.isArray(i[s])&&(i[s]=mj(i[s])),!c)}if(le.isFormData(e)&&le.isFunction(e.entries)){const r={};return le.forEachEntry(e,(n,i)=>{t(hj(n),i,r,0)}),r}return null}function vj(e,t,r){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const nu={transitional:gx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,l=le.isObject(t);if(l&&le.isHTMLForm(t)&&(t=new FormData(t)),le.isFormData(t))return i?JSON.stringify(yx(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(l){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pj(t,this.formSerializer).toString();if((c=le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Af(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),vj(t)):t}],transformResponse:[function(t){const r=this.transitional||nu.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?st.from(c,st.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lr.classes.FormData,Blob:Lr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],e=>{nu.headers[e]={}});const gj=le.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"]),yj=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&gj[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},kb=Symbol("internals");function ds(e){return e&&String(e).trim().toLowerCase()}function zc(e){return e===!1||e==null?e:le.isArray(e)?e.map(zc):String(e)}function bj(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Sj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ch(e,t,r,n,i){if(le.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!le.isString(t)){if(le.isString(n))return t.indexOf(n)!==-1;if(le.isRegExp(n))return n.test(t)}}function wj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Cj(e,t){const r=le.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,l,s){return this[n].call(this,t,i,l,s)},configurable:!0})})}class ln{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function l(c,f,p){const h=ds(f);if(!h)throw new Error("header name must be a non-empty string");const g=le.findKey(i,h);(!g||i[g]===void 0||p===!0||p===void 0&&i[g]!==!1)&&(i[g||f]=zc(c))}const s=(c,f)=>le.forEach(c,(p,h)=>l(p,h,f));if(le.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(le.isString(t)&&(t=t.trim())&&!Sj(t))s(yj(t),r);else if(le.isHeaders(t))for(const[c,f]of t.entries())l(f,c,n);else t!=null&&l(r,t,n);return this}get(t,r){if(t=ds(t),t){const n=le.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bj(i);if(le.isFunction(r))return r.call(this,i,n);if(le.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ds(t),t){const n=le.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ch(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function l(s){if(s=ds(s),s){const c=le.findKey(n,s);c&&(!r||ch(n,n[c],c,r))&&(delete n[c],i=!0)}}return le.isArray(t)?t.forEach(l):l(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const l=r[n];(!t||ch(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const r=this,n={};return le.forEach(this,(i,l)=>{const s=le.findKey(n,l);if(s){r[s]=zc(i),delete r[l];return}const c=t?wj(l):String(l).trim();c!==l&&delete r[l],r[c]=zc(i),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return le.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&le.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[kb]=this[kb]={accessors:{}}).accessors,i=this.prototype;function l(s){const c=ds(s);n[c]||(Cj(i,s),n[c]=!0)}return le.isArray(t)?t.forEach(l):l(t),this}}ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);le.reduceDescriptors(ln.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});le.freezeMethods(ln);function fh(e,t){const r=this||nu,n=t||r,i=ln.from(n.headers);let l=n.data;return le.forEach(e,function(c){l=c.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function bx(e){return!!(e&&e.__CANCEL__)}function El(e,t,r){st.call(this,e??"canceled",st.ERR_CANCELED,t,r),this.name="CanceledError"}le.inherits(El,st,{__CANCEL__:!0});function Sx(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new st("Request failed with status code "+r.status,[st.ERR_BAD_REQUEST,st.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function xj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ej(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),h=n[l];s||(s=p),r[i]=f,n[i]=p;let g=l,y=0;for(;g!==i;)y+=r[g++],g=g%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),p-s<t)return;const x=h&&p-h;return x?Math.round(y*1e3/x):void 0}}function Rj(e,t){let r=0,n=1e3/t,i,l;const s=(p,h=Date.now())=>{r=h,i=null,l&&(clearTimeout(l),l=null),e.apply(null,p)};return[(...p)=>{const h=Date.now(),g=h-r;g>=n?s(p,h):(i=p,l||(l=setTimeout(()=>{l=null,s(i)},n-g)))},()=>i&&s(i)]}const nf=(e,t,r=3)=>{let n=0;const i=Ej(50,250);return Rj(l=>{const s=l.loaded,c=l.lengthComputable?l.total:void 0,f=s-n,p=i(f),h=s<=c;n=s;const g={loaded:s,total:c,progress:c?s/c:void 0,bytes:f,rate:p||void 0,estimated:p&&c&&h?(c-s)/p:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},r)},Nb=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},jb=e=>(...t)=>le.asap(()=>e(...t)),Oj=Lr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Lr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,Tj=Lr.hasStandardBrowserEnv?{write(e,t,r,n,i,l){const s=[e+"="+encodeURIComponent(t)];le.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),le.isString(n)&&s.push("path="+n),le.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 Pj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $j(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wx(e,t){return e&&!Pj(t)?$j(e,t):t}const Db=e=>e instanceof ln?{...e}:e;function aa(e,t){t=t||{};const r={};function n(p,h,g,y){return le.isPlainObject(p)&&le.isPlainObject(h)?le.merge.call({caseless:y},p,h):le.isPlainObject(h)?le.merge({},h):le.isArray(h)?h.slice():h}function i(p,h,g,y){if(le.isUndefined(h)){if(!le.isUndefined(p))return n(void 0,p,g,y)}else return n(p,h,g,y)}function l(p,h){if(!le.isUndefined(h))return n(void 0,h)}function s(p,h){if(le.isUndefined(h)){if(!le.isUndefined(p))return n(void 0,p)}else return n(void 0,h)}function c(p,h,g){if(g in t)return n(p,h);if(g in e)return n(void 0,p)}const f={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(p,h,g)=>i(Db(p),Db(h),g,!0)};return le.forEach(Object.keys(Object.assign({},e,t)),function(h){const g=f[h]||i,y=g(e[h],t[h],h);le.isUndefined(y)&&g!==c||(r[h]=y)}),r}const Cx=e=>{const t=aa({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:c}=t;t.headers=s=ln.from(s),t.url=vx(wx(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(le.isFormData(r)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((f=s.getContentType())!==!1){const[p,...h]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([p||"multipart/form-data",...h].join("; "))}}if(Lr.hasStandardBrowserEnv&&(n&&le.isFunction(n)&&(n=n(t)),n||n!==!1&&Oj(t.url))){const p=i&&l&&Tj.read(l);p&&s.set(i,p)}return t},_j=typeof XMLHttpRequest<"u",Mj=_j&&function(e){return new Promise(function(r,n){const i=Cx(e);let l=i.data;const s=ln.from(i.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:p}=i,h,g,y,x,w;function C(){x&&x(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function E(){if(!S)return;const O=ln.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:O,config:e,request:S};Sx(function(M){r(M),C()},function(M){n(M),C()},R),S=null}"onloadend"in S?S.onloadend=E:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(E)},S.onabort=function(){S&&(n(new st("Request aborted",st.ECONNABORTED,e,S)),S=null)},S.onerror=function(){n(new st("Network Error",st.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||gx;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),n(new st(_,R.clarifyTimeoutError?st.ETIMEDOUT:st.ECONNABORTED,e,S)),S=null},l===void 0&&s.setContentType(null),"setRequestHeader"in S&&le.forEach(s.toJSON(),function(_,R){S.setRequestHeader(R,_)}),le.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),c&&c!=="json"&&(S.responseType=i.responseType),p&&([y,w]=nf(p,!0),S.addEventListener("progress",y)),f&&S.upload&&([g,x]=nf(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(h=O=>{S&&(n(!O||O.type?new El(null,e,S):O),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const T=xj(i.url);if(T&&Lr.protocols.indexOf(T)===-1){n(new st("Unsupported protocol "+T+":",st.ERR_BAD_REQUEST,e));return}S.send(l||null)})},Aj=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const l=function(p){if(!i){i=!0,c();const h=p instanceof Error?p:this.reason;n.abort(h instanceof st?h:new El(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,l(new st(`timeout ${t} of ms exceeded`,st.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),e=null)};e.forEach(p=>p.addEventListener("abort",l));const{signal:f}=n;return f.unsubscribe=()=>le.asap(c),f}},Ij=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Fj=async function*(e,t){for await(const r of Lj(e))yield*Ij(r,t)},Lj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},zb=(e,t,r,n)=>{const i=Fj(e,t);let l=0,s,c=f=>{s||(s=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:p,value:h}=await i.next();if(p){c(),f.close();return}let g=h.byteLength;if(r){let y=l+=g;r(y)}f.enqueue(new Uint8Array(h))}catch(p){throw c(p),p}},cancel(f){return c(f),i.return()}},{highWaterMark:2})},If=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xx=If&&typeof ReadableStream=="function",kj=If&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ex=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nj=xx&&Ex(()=>{let e=!1;const t=new Request(Lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hb=64*1024,Im=xx&&Ex(()=>le.isReadableStream(new Response("").body)),of={stream:Im&&(e=>e.body)};If&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!of[t]&&(of[t]=le.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new st(`Response type '${t}' is not supported`,st.ERR_NOT_SUPPORT,n)})})})(new Response);const jj=async e=>{if(e==null)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e))return(await new Request(Lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(le.isArrayBufferView(e)||le.isArrayBuffer(e))return e.byteLength;if(le.isURLSearchParams(e)&&(e=e+""),le.isString(e))return(await kj(e)).byteLength},Dj=async(e,t)=>{const r=le.toFiniteNumber(e.getContentLength());return r??jj(t)},zj=If&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:l,timeout:s,onDownloadProgress:c,onUploadProgress:f,responseType:p,headers:h,withCredentials:g="same-origin",fetchOptions:y}=Cx(e);p=p?(p+"").toLowerCase():"text";let x=Aj([i,l&&l.toAbortSignal()],s),w;const C=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let S;try{if(f&&Nj&&r!=="get"&&r!=="head"&&(S=await Dj(h,n))!==0){let R=new Request(t,{method:"POST",body:n,duplex:"half"}),$;if(le.isFormData(n)&&($=R.headers.get("content-type"))&&h.setContentType($),R.body){const[M,I]=Nb(S,nf(jb(f)));n=zb(R.body,Hb,M,I)}}le.isString(g)||(g=g?"include":"omit");const E="credentials"in Request.prototype;w=new Request(t,{...y,signal:x,method:r.toUpperCase(),headers:h.normalize().toJSON(),body:n,duplex:"half",credentials:E?g:void 0});let T=await fetch(w);const O=Im&&(p==="stream"||p==="response");if(Im&&(c||O&&C)){const R={};["status","statusText","headers"].forEach(L=>{R[L]=T[L]});const $=le.toFiniteNumber(T.headers.get("content-length")),[M,I]=c&&Nb($,nf(jb(c),!0))||[];T=new Response(zb(T.body,Hb,M,()=>{I&&I(),C&&C()}),R)}p=p||"text";let _=await of[le.findKey(of,p)||"text"](T,e);return!O&&C&&C(),await new Promise((R,$)=>{Sx(R,$,{data:_,headers:ln.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:w})})}catch(E){throw C&&C(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new st("Network Error",st.ERR_NETWORK,e,w),{cause:E.cause||E}):st.from(E,E&&E.code,e,w)}}),Fm={http:tj,xhr:Mj,fetch:zj};le.forEach(Fm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bb=e=>`- ${e}`,Hj=e=>le.isFunction(e)||e===null||e===!1,Rx={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let l=0;l<t;l++){r=e[l];let s;if(n=r,!Hj(r)&&(n=Fm[(s=String(r)).toLowerCase()],n===void 0))throw new st(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+l]=n}if(!n){const l=Object.entries(i).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : `+l.map(Bb).join(` `):" "+Bb(l[0]):"as no adapter specified";throw new st("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fm};function dh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new El(null,e)}function Vb(e){return dh(e),e.headers=ln.from(e.headers),e.data=fh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rx.getAdapter(e.adapter||nu.adapter)(e).then(function(n){return dh(e),n.data=fh.call(e,e.transformResponse,n),n.headers=ln.from(n.headers),n},function(n){return bx(n)||(dh(e),n&&n.response&&(n.response.data=fh.call(e,e.transformResponse,n.response),n.response.headers=ln.from(n.response.headers))),Promise.reject(n)})}const Ox="1.7.8",Ff={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ff[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ub={};Ff.transitional=function(t,r,n){function i(l,s){return"[Axios v"+Ox+"] Transitional option '"+l+"'"+s+(n?". "+n:"")}return(l,s,c)=>{if(t===!1)throw new st(i(s," has been removed"+(r?" in "+r:"")),st.ERR_DEPRECATED);return r&&!Ub[s]&&(Ub[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,s,c):!0}};Ff.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Bj(e,t,r){if(typeof e!="object")throw new st("options must be an object",st.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const l=n[i],s=t[l];if(s){const c=e[l],f=c===void 0||s(c,l,e);if(f!==!0)throw new st("option "+l+" must be "+f,st.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new st("Unknown option "+l,st.ERR_BAD_OPTION)}}const Hc={assertOptions:Bj,validators:Ff},wo=Hc.validators;class Ji{constructor(t){this.defaults=t,this.interceptors={request:new Lb,response:new Lb}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?l&&!String(n.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+l):n.stack=l}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=aa(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:l}=r;n!==void 0&&Hc.assertOptions(n,{silentJSONParsing:wo.transitional(wo.boolean),forcedJSONParsing:wo.transitional(wo.boolean),clarifyTimeoutError:wo.transitional(wo.boolean)},!1),i!=null&&(le.isFunction(i)?r.paramsSerializer={serialize:i}:Hc.assertOptions(i,{encode:wo.function,serialize:wo.function},!0)),Hc.assertOptions(r,{baseUrl:wo.spelling("baseURL"),withXsrfToken:wo.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=l&&le.merge(l.common,l[r.method]);l&&le.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),r.headers=ln.concat(s,l);const c=[];let f=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(r)===!1||(f=f&&C.synchronous,c.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let h,g=0,y;if(!f){const w=[Vb.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,p),y=w.length,h=Promise.resolve(r);g<y;)h=h.then(w[g++],w[g++]);return h}y=c.length;let x=r;for(g=0;g<y;){const w=c[g++],C=c[g++];try{x=w(x)}catch(S){C.call(this,S);break}}try{h=Vb.call(this,x)}catch(w){return Promise.reject(w)}for(g=0,y=p.length;g<y;)h=h.then(p[g++],p[g++]);return h}getUri(t){t=aa(this.defaults,t);const r=wx(t.baseURL,t.url);return vx(r,t.params,t.paramsSerializer)}}le.forEach(["delete","get","head","options"],function(t){Ji.prototype[t]=function(r,n){return this.request(aa(n||{},{method:t,url:r,data:(n||{}).data}))}});le.forEach(["post","put","patch"],function(t){function r(n){return function(l,s,c){return this.request(aa(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:l,data:s}))}}Ji.prototype[t]=r(),Ji.prototype[t+"Form"]=r(!0)});class Nv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const n=this;this.promise.then(i=>{if(!n._listeners)return;let l=n._listeners.length;for(;l-- >0;)n._listeners[l](i);n._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(c=>{n.subscribe(c),l=c}).then(i);return s.cancel=function(){n.unsubscribe(l)},s},t(function(l,s,c){n.reason||(n.reason=new El(l,s,c),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Nv(function(i){t=i}),cancel:t}}}function Vj(e){return function(r){return e.apply(null,r)}}function Uj(e){return le.isObject(e)&&e.isAxiosError===!0}const Lm={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(Lm).forEach(([e,t])=>{Lm[t]=e});function Tx(e){const t=new Ji(e),r=ox(Ji.prototype.request,t);return le.extend(r,Ji.prototype,t,{allOwnKeys:!0}),le.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Tx(aa(e,i))},r}const dr=Tx(nu);dr.Axios=Ji;dr.CanceledError=El;dr.CancelToken=Nv;dr.isCancel=bx;dr.VERSION=Ox;dr.toFormData=Af;dr.AxiosError=st;dr.Cancel=dr.CanceledError;dr.all=function(t){return Promise.all(t)};dr.spread=Vj;dr.isAxiosError=Uj;dr.mergeConfig=aa;dr.AxiosHeaders=ln;dr.formToJSON=e=>yx(le.isHTMLForm(e)?new FormData(e):e);dr.getAdapter=Rx.getAdapter;dr.HttpStatusCode=Lm;dr.default=dr;const Wj=dr.create({baseURL:"http://gitep.dev-top-it.ru:8080/api/v1"}),qj=async({email:e,password:t})=>{try{const{data:{data:{token:r}}}=await Wj.post("/login",{email:e,password:t});return r}catch{throw new Error}};function Gj(e,t){for(const r in e)t(e[r],r)}function io(e,t){e.forEach(t)}function Bn(e,t,r){if(!e)throw Error(`${r?r+": ":""}${t}`)}function la({node:e=[],from:t,source:r,parent:n=t||r,to:i,target:l,child:s=i||l,scope:c={},meta:f={},family:p={type:"regular"},regional:h}={}){const g=Rc(n),y=Rc(p.links),x=Rc(p.owners),w=[];io(e,S=>S&&yi(w,S));const C={id:o3(),seq:w,next:Rc(s),meta:f,scope:c,family:{type:p.type||"crosslink",links:y,owners:x}};return io(y,S=>yi(Lf(S),C)),io(x,S=>yi(kf(S),C)),io(g,S=>yi(S.next,C)),h&&rl&&Lx(Rs(rl),[C]),C}function Px(e,t,r){let n,i=xo,l=null,s=nr;if(e.target&&(t=e.params,r=e.defer,n=e.meta,i="page"in e?e.page:i,e.stack&&(l=e.stack),s=xc(e)||s,e=e.target),s&&nr&&s!==nr&&(nr=null),Array.isArray(e))for(let w=0;w<e.length;w++)Ui("pure",i,Ho(e[w]),l,t[w],s,n);else Ui("pure",i,Ho(e),l,t,s,n);if(r&&!Oc)return;const c={isRoot:Oc,currentPage:xo,scope:nr,isWatch:mh,isPure:Vc};let f,p,h,g,y,x;Oc=0;e:for(;g=h3();){const{idx:w,stack:C,type:S}=g;h=C.node,xo=y=C.page,nr=xc(C),y?x=y.reg:nr&&(x=nr.reg);const E=!!y,T=!!nr,O={fail:0,scope:h.scope};f=p=0;for(let _=w;_<h.seq.length&&!f;_++){const R=h.seq[_];if(R.order){const{priority:$,barrierID:M}=R.order,I=M?y?`${y.fullID}_${M}`:M:0;if(_!==w||S!==$){M?hh.has(I)||(hh.add(I),jm(_,C,$,M)):jm(_,C,$,0);continue e}M&&hh.delete(I)}switch(R.type){case"mov":{const M=R.data;let I;switch(M.from){case"stack":I=Rs(C);break;case"a":case"b":I=C[M.from];break;case"value":I=M.store;break;case"store":if(x&&!x[M.store.id])if(E){const L=jx(y,M.store.id);C.page=y=L,L?x=L.reg:T?(fl(nr,M.store,0,1,M.softRead),x=nr.reg):x=void 0}else T&&fl(nr,M.store,0,1,M.softRead);I=Nx(x&&x[M.store.id]||M.store)}switch(M.to){case"stack":C.value=I;break;case"a":case"b":C[M.to]=I;break;case"store":m3(y,nr,M.target,0).current=I}break}case"compute":const $=R.data;if($.fn){mh=h.meta.op==="watch",Vc=$.pure;const M=$.safe?(0,$.fn)(Rs(C),O.scope,C):g3(O,$.fn,C);$.filter?p=!M:C.value=M,mh=c.isWatch,Vc=c.isPure}}f=O.fail||p}if(!f){const _=Rs(C),R=xc(C);if(io(h.next,$=>{Ui("child",y,$,C,_,R)}),R){h.meta.needFxCounter&&Ui("child",y,R.fxCount,C,_,R),h.meta.storeChange&&Ui("child",y,R.storeChange,C,_,R),h.meta.warnSerialize&&Ui("child",y,R.warnSerializeNode,C,_,R);const $=R.additionalLinks[h.id];$&&io($,M=>{Ui("child",y,M,C,_,R)})}}}Oc=c.isRoot,xo=c.currentPage,nr=xc(c)}function Kj(e,t){let r,n;const i=e;if(t){const l=Zj(t);e.length===0?(r=l.path,n=l.fullName):(r=l.path.concat([e]),n=l.fullName.length===0?e:l.fullName+"/"+e)}else r=e.length===0?[]:[e],n=e;return{shortName:i,fullName:n,path:r}}function $x(e,t){if(!t||!t.name&&!t.named&&!t.loc)return e;let r=`[${e}]`;const n=t.named||t.name;n&&(r+=` unit '${n}'`);const i=t.loc;return!n&&i&&(r+=` (${i.file}:${i.line}:${i.column})`),r}function km(e){const t=()=>e();return t.unsubscribe=()=>e(),t}function Es(e,...t){const r=Fx();if(r){const n=r.handlers[e];if(n)return n(r,...t)}}function sa(e,t){const r=Ws({or:t,and:typeof e=="string"?{name:e}:e}),n=$x("event",r),i=(c,...f)=>(Bn(!tl(i,"derived"),"call of derived event is not supported, use createEvent instead",n),Bn(!Vc,"unit call from pure function is not supported, use operators like sample instead",n),xo?((p,h,g,y)=>{const x=xo;let w=null;if(h)for(w=xo;w&&w.template!==h;)w=Vs(w);Qb(w);const C=p.create(g,y);return Qb(x),C})(i,l,c,f):i.create(c,f)),l=Fx(),s=Object.assign(i,{graphite:la({meta:Hx(r.actualOp||"event",i,r),regional:1}),create:c=>(Px({target:i,params:c,scope:nr}),c),watch:c=>zx(i,c),map:c=>vh(i,"map",c,[Ja()]),filter:c=>vh(i,"filter",c.fn?c:c.fn,[Ja(jf,1)]),filterMap:c=>vh(i,"filterMap",c,[Ja(),Nm(f=>!Os(f),1)]),prepend(c){Bn(i.targetable,".prepend of derived event is not supported, call source event instead",n);const f=sa("* → "+i.shortName,{parent:Vs(i)});return Es("eventPrepend",Ho(f)),Bv(f,i,[Ja()],"prepend",c),y3(i,f),f}});return r!=null&&r.domain&&r.domain.hooks.event(s),ys(s,"id",s.graphite.id),Ix(s.graphite),s}function Wb(e,t,r,n,i){return l3(r,`${i} ${t}`,"first argument"),Bn(da(n),"second argument should be a function",i),sf(!tl(e,"derived"),`${t} in derived store`,`${t} in store created via createStore`,i),io(Array.isArray(r)?r:[r],l=>{e.off(l),lf(e).set(l,Dx(Bx(l,e,"on",u3,n)))}),e}function _x(e,t){const r=Ws(t),n=d3(e),i=$x("store",r),l=sa({named:"updates",derived:1});Es("storeBase",n);const s=n.id,c="skipVoid"in r,f=c&&!r.skipVoid;sf(!(c&&r.skipVoid),"{skipVoid: true}","updateFilter",i);const p={subscribers:new Map,updates:l,defaultState:e,stateRef:n,getState(){let E,T=n;if(xo){let O=xo;for(;O&&!O.reg[s];)O=Vs(O);O&&(E=O)}return!E&&nr&&(fl(nr,n,1),E=nr),E&&(T=E.reg[s]),Nx(T)},setState:E=>Px({target:p,params:E,defer:1,scope:nr}),reset:(...E)=>(Bn(p.targetable,".reset of derived store is not supported",i),io(E,T=>Wb(p,".reset",T,()=>p.defaultState,i)),p),on:(E,T)=>(Bn(p.targetable,".on of derived store is not supported",i),Wb(p,".on",E,T,i)),off(E){const T=lf(p).get(E);return T&&(T(),lf(p).delete(E)),p},map(E,T){let O,_;Rl(E)&&(O=E,E=E.fn);const R=p.getState(),$=Os(R);(!$||$&&f)&&(_=E(R));const M=_x(_,{name:`${p.shortName} → *`,derived:1,...T,and:O}),I=Bx(p,M,"map",jf,E);return p3(af(M),{type:"map",fn:E,from:n}),af(M).noInit=1,Es("storeMap",n,I),M},watch(E,T){if(sf(!T,"watch second argument","sample",i),!T||!Nf(E)){const O=zx(p,E);return Es("storeWatch",n,E)||E(p.getState()),O}return Bn(da(T),"second argument should be a function",i),E.watch(O=>T(p.getState(),O))}},h=Hx("store",p,r),g=p.defaultConfig.updateFilter;p.graphite=la({scope:{state:n,fn:g},node:[Nm((E,T,O)=>(O.scope&&!O.scope.reg[n.id]&&(O.b=1),E)),f3(n),Nm((E,T,{a:O,b:_})=>{const R=Os(E);return R&&!c&&console.error(`${i}: ${gh}`),(R&&f||!R)&&(E!==O||_)},1),g&&Ja(s3,1),Df({from:"stack",target:n})],child:l,meta:{...h,defaultState:e},regional:1}),ys(p,"id",p.graphite.id),ys(p,"rootStateRefId",s);const y=tl(p,"serialize"),x=tl(p,"derived"),w=y==="ignore",C=tl(p,"sid");C&&(ys(p,"storeChange",1),n.sid=C),C||w||x||ys(p,"warnSerialize",1);const S=Os(e);return Bn(x||!S||S&&f,gh,i),x&&S&&!c&&console.error(`${i}: ${gh}`),Lx(p,[l]),r!=null&&r.domain&&r.domain.hooks.store(p),x||(p.reinit=sa({named:"reinit"}),p.reset(p.reinit)),n.meta=p.graphite.meta,Ix(p.graphite),p}function Xj(e,{scope:t,safe:r}={}){Bn(t||nr||r,"scopeBind: scope not found");const n=t||nr;return i=>{function l(){Xb(f)}let s,c=0;const f=nr;Xb(n);try{s=e(i)}catch(p){s=p,c=1}if(l(),c)throw s;return s instanceof Promise&&s.then(l,l),s}}function Qj({unit:e,fn:t,scope:r,batch:n}){const i=[Bc.run({fn:s=>t(s)})];n&&i.unshift(Bc.compute({priority:"sampler",batch:1})),iu(e)&&i.unshift(Bc.mov({store:e.stateRef,to:"stack"}));const l=Array.isArray(e)?e:[e];if(r){const s=[],c=r.additionalLinks;return l.forEach(f=>{const p=c[f.graphite.id]||[];c[f.graphite.id]=p;const h=la({node:Yj(i,f),meta:{watchOp:f.kind}});p.push(h),s.push(()=>{const g=p.indexOf(h);g!==-1&&p.splice(g,1),Hm(h)})}),km(()=>{s.forEach(f=>f())})}{const s=la({node:i,parent:l,family:{owners:l}});return km(()=>{Hm(s)})}}function Yj(e,t){return iu(t)?[Bc.mov({store:t.stateRef,to:"stack"}),...e]:e}const Jj=typeof Symbol<"u"&&Symbol.observable||"@@observable",Ho=e=>e.graphite||e,Lf=e=>e.family.owners,kf=e=>e.family.links,af=e=>e.stateRef,Rs=e=>e.value,lf=e=>e.subscribers,Vs=e=>e.parent,xc=e=>e.scope,tl=(e,t)=>Ho(e).meta[t],ys=(e,t,r)=>Ho(e).meta[t]=r,Zj=e=>e.compositeName,Nf=e=>(da(e)||Rl(e))&&"kind"in e,ou=e=>t=>Nf(t)&&t.kind===e,iu=ou("store"),e3=ou("event"),qb=ou("effect"),t3=e=>Nf(e)&&!!e.targetable,Mx=ou("domain"),r3=ou("scope");var Ec={__proto__:null,unit:Nf,store:iu,event:e3,effect:qb,targetable:t3,domain:Mx,scope:r3,attached:e=>qb(e)&&tl(e,"attached")==1};const ph=(e,t)=>{const r=e.indexOf(t);r!==-1&&e.splice(r,1)},yi=(e,t)=>e.push(t),sf=(e,t,r,n)=>!e&&console.error(`${n?n+": ":""}${t} is deprecated${r?`, use ${r} instead`:""}`),jv=()=>{let e=0;return()=>""+ ++e},n3=jv(),Ax=jv(),o3=jv();let rl=null;const Ix=e=>{},Fx=()=>rl,i3=e=>(e&&rl&&rl.sidRoot&&(e=`${rl.sidRoot}|${e}`),e),Lx=(e,t)=>{const r=Ho(e);io(t,n=>{const i=Ho(n);r.family.type!=="domain"&&(i.family.type="crosslink"),yi(Lf(i),r),yi(kf(r),i)})},Rc=(e=[])=>(Array.isArray(e)?e:[e]).flat().map(Ho),Rl=e=>typeof e=="object"&&e!==null,da=e=>typeof e=="function",Os=e=>e===void 0,a3=e=>Bn(Rl(e)||da(e),"expect first argument be an object"),Gb=(e,t,r,n)=>Bn(!(!Rl(e)&&!da(e)||!("family"in e)&&!("graphite"in e)),`${t}: expect ${r} to be a unit (store, event or effect)${n}`),l3=(e,t,r)=>{Array.isArray(e)?io(e,(n,i)=>Gb(n,t,`${i} item of ${r}`,"")):Gb(e,t,r," or array of units")},s3=(e,{fn:t},{a:r})=>t(e,r),u3=(e,{fn:t},{a:r})=>t(r,e),jf=(e,{fn:t})=>t(e),kx=(e,t,r,n)=>{const i={id:Ax(),type:e,data:t};return r&&(i.order={priority:r},n&&(i.order.barrierID=++c3)),i};let c3=0;const Df=({from:e="store",store:t,target:r,to:n=r?"store":"stack",batch:i,priority:l})=>kx("mov",{from:e,store:t,to:n,target:r},l,i),Us=({fn:e,batch:t,priority:r,safe:n=0,filter:i=0,pure:l=0})=>kx("compute",{fn:e,safe:n,filter:i,pure:l},r,t),Dv=({fn:e})=>Us({fn:e,priority:"effect"}),Nm=(e,t,r)=>Us({fn:e,safe:1,filter:t,priority:r}),f3=(e,t,r)=>Df({store:e,to:"a",priority:r,batch:1}),Ja=(e=jf,t)=>Us({fn:e,pure:1,filter:t}),Bc={mov:Df,compute:Us,filter:({fn:e,pure:t})=>Us({fn:e,filter:1,pure:t}),run:Dv},d3=e=>({id:Ax(),current:e,initial:e}),Nx=({current:e})=>e,p3=(e,t)=>{e.before||(e.before=[]),yi(e.before,t)};let Za=null;const zv=(e,t)=>{if(!e)return t;if(!t)return e;let r;return(e.v.type===t.v.type&&e.v.id>t.v.id||Dm(e.v.type)>Dm(t.v.type))&&(r=e,e=t,t=r),r=zv(e.r,t),e.r=e.l,e.l=r,e},Hv=[];let Kb=0;for(;Kb<6;)yi(Hv,{first:null,last:null,size:0}),Kb+=1;const h3=()=>{for(let e=0;e<6;e++){const t=Hv[e];if(t.size>0){if(e===3||e===4){t.size-=1;const n=Za.v;return Za=zv(Za.l,Za.r),n}t.size===1&&(t.last=null);const r=t.first;return t.first=r.r,t.size-=1,r.v}}},Ui=(e,t,r,n,i,l,s)=>jm(0,{a:null,b:null,node:r,parent:n,value:i,page:t,scope:l,meta:s},e,0),jm=(e,t,r,n)=>{const i=Dm(r),l=Hv[i],s={v:{idx:e,stack:t,type:r,id:n},l:null,r:null};i===3||i===4?Za=zv(Za,s):(l.size===0?l.first=s:l.last.r=s,l.last=s),l.size+=1},Dm=e=>{switch(e){case"child":return 0;case"pure":return 1;case"read":return 2;case"barrier":return 3;case"sampler":return 4;case"effect":return 5;default:return-1}},hh=new Set;let nr,Oc=1,mh=0,Vc=0,xo=null;const Xb=e=>{nr=e},Qb=e=>{xo=e},jx=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=e.parent;if(e)return e}return null},m3=(e,t,r,n)=>{const i=jx(e,r.id);return i?i.reg[r.id]:t?(fl(t,r,n),t.reg[r.id]):r},v3=e=>e,fl=(e,t,r,n,i)=>{const l=e.reg;if(l[t.id])return;const s=t.sid,c={id:t.id,current:t.initial,meta:t.meta};if(c.id in e.values.idMap)c.current=e.values.idMap[c.id];else if(s&&s in e.values.sidMap&&!(s in e.sidIdMap)){var f;const p=t==null||(f=t.meta)===null||f===void 0?void 0:f.serialize;c.current=(e.fromSerialize&&p!=="ignore"&&(p==null?void 0:p.read)||v3)(e.values.sidMap[s])}else if(t.before&&!i){let p=0;const h=r||!t.noInit||n;io(t.before,g=>{switch(g.type){case"map":{const y=g.from;if((y||g.fn)&&(y&&fl(e,y,r,n),h)){const x=y&&l[y.id].current;c.current=g.fn?g.fn(x):x}break}case"field":fl(e,g.from,r,n),p||(p=1,c.current=Array.isArray(c.current)?[...c.current]:{...c.current}),h&&(c.current[g.field]=l[l[g.from.id].id].current)}})}s&&(e.sidIdMap[s]=t.id),l[t.id]=c},g3=(e,t,r)=>{try{return t(Rs(r),e.scope,r)}catch(n){console.error(n),e.fail=1,e.failReason=n}},Ws=(e,t={})=>(Rl(e)&&(Ws(e.or,t),Gj(e,(r,n)=>{Os(r)||n==="or"||n==="and"||(t[n]=r)}),Ws(e.and,t)),t),Yb=(e,t)=>{ph(e.next,t),ph(Lf(e),t),ph(kf(e),t)},zm=(e,t,r)=>{let n;e.next.length=0,e.seq.length=0,e.scope=null;let i=kf(e);for(;n=i.pop();)Yb(n,e),(t||r&&e.meta.op!=="sample"||n.family.type==="crosslink")&&zm(n,t,n.meta.op!=="on"&&r);for(i=Lf(e);n=i.pop();)Yb(n,e),r&&n.family.type==="crosslink"&&zm(n,t,n.meta.op!=="on"&&r)},ps=e=>e.clear(),Hm=(e,{deep:t}={})=>{let r=0;if(e.ownerSet&&e.ownerSet.delete(e),iu(e))ps(lf(e));else if(Mx(e)){r=1;const n=e.history;ps(n.events),ps(n.effects),ps(n.stores),ps(n.domains)}zm(Ho(e),!!t,r)},Dx=e=>km(()=>Hm(e)),Bv=(e,t,r,n,i)=>la({node:r,parent:e,child:t,scope:{fn:i},meta:{op:n},family:{owners:[e,t],links:t},regional:1}),zx=(e,t)=>(Bn(da(t),".watch argument should be a function"),Dx(la({scope:{fn:t},node:[Dv({fn:jf})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))),y3=(e,t,r="event")=>{Vs(e)&&Vs(e).hooks[r](t)},Hx=(e,t,r)=>{const n=Ws(r),i=e==="domain",l=n3(),{sid:s=null,named:c=null,domain:f=null,parent:p=f}=n,h=c||n.name||(i?"":l),g=Kj(h,p),y={op:t.kind=e,name:t.shortName=h,sid:t.sid=i3(s),named:c,unitId:t.id=l,serialize:n.serialize,derived:n.derived,config:n};return t.targetable=!n.derived,t.parent=p,t.compositeName=g,t.defaultConfig=n,t.getType=()=>(sf(0,"getType","compositeName.fullName"),g.fullName),!i&&(t.subscribe=x=>(a3(x),t.watch(da(x)?x:w=>x.next&&x.next(w))),t[Jj]=()=>t),y},vh=(e,t,r,n)=>{let i;Rl(r)&&(i=r,r=r.fn);const l=sa({name:`${e.shortName} → *`,derived:1,and:i});return Bv(e,l,n,t,r),l},gh="undefined is used to skip updates. To allow undefined as a value provide explicit { skipVoid: false } option",Bx=(e,t,r,n,i)=>{const l=af(t),s=Df({store:l,to:"a",priority:"read"});r==="map"&&(s.data.softRead=1);const c=[s,Ja(n)];return Es("storeOnMap",l,c,iu(e)&&af(e)),Bv(e,t,c,r,i)};la({node:[Dv({fn:({fn:e,value:t})=>e(t)})],meta:{op:"fx",fx:"sidechain"}});const Vx=sa(),Ux=sa(),Wx=sa();/*! js-cookie v3.0.5 | MIT */function Tc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var b3={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Bm(e,t){function r(i,l,s){if(!(typeof document>"u")){s=Tc({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var f in s)s[f]&&(c+="; "+f,s[f]!==!0&&(c+="="+s[f].split(";")[0]));return document.cookie=i+"="+e.write(l,i)+c}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var l=document.cookie?document.cookie.split("; "):[],s={},c=0;c<l.length;c++){var f=l[c].split("="),p=f.slice(1).join("=");try{var h=decodeURIComponent(f[0]);if(s[h]=e.read(p,h),i===h)break}catch{}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,l){r(i,"",Tc({},l,{expires:-1}))},withAttributes:function(i){return Bm(this.converter,Tc({},this.attributes,i))},withConverter:function(i){return Bm(Tc({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Vv=Bm(b3,{path:"/"});const Uv=_x({token:null,isInitialized:!1}).on(Vx,(e,t)=>({token:t,isInitialized:!0})).on(Wx,e=>{const t=Vv.get("token")||null;return{...e,token:t,isInitialized:!0}}).on(Ux,()=>({token:null,isInitialized:!0})),S3=e=>{Vv.set("token",e,{expires:36500})},w3=()=>{Vv.remove("token")};var yh={exports:{}},bh={},Sh={exports:{}},wh={};/** * @license React * use-sync-external-store-shim.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 Jb;function C3(){if(Jb)return wh;Jb=1;var e=dl();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue;function c(g,y){var x=y(),w=n({inst:{value:x,getSnapshot:y}}),C=w[0].inst,S=w[1];return l(function(){C.value=x,C.getSnapshot=y,f(C)&&S({inst:C})},[g,x,y]),i(function(){return f(C)&&S({inst:C}),g(function(){f(C)&&S({inst:C})})},[g]),s(x),x}function f(g){var y=g.getSnapshot;g=g.value;try{var x=y();return!r(g,x)}catch{return!0}}function p(g,y){return y()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:c;return wh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,wh}var Zb;function qx(){return Zb||(Zb=1,Sh.exports=C3()),Sh.exports}/** * @license React * use-sync-external-store-shim/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 eS;function x3(){if(eS)return bh;eS=1;var e=dl(),t=qx();function r(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,l=e.useRef,s=e.useEffect,c=e.useMemo,f=e.useDebugValue;return bh.useSyncExternalStoreWithSelector=function(p,h,g,y,x){var w=l(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=c(function(){function E($){if(!T){if(T=!0,O=$,$=y($),x!==void 0&&C.hasValue){var M=C.value;if(x(M,$))return _=M}return _=$}if(M=_,n(O,$))return M;var I=y($);return x!==void 0&&x(M,I)?M:(O=$,_=I)}var T=!1,O,_,R=g===void 0?null:g;return[function(){return E(h())},R===null?void 0:function(){return E(R())}]},[h,g,y,x]);var S=i(p,w[0],w[1]);return s(function(){C.hasValue=!0,C.value=S},[S]),f(S),S},bh}var tS;function E3(){return tS||(tS=1,yh.exports=x3()),yh.exports}E3();var R3=qx();const O3=Bo(R3);function T3(e,t){const r=Ec.unit(e);let n={};r?n={unit:e}:"@@unitShape"in e?typeof e["@@unitShape"]=="function"?n=e["@@unitShape"]():rS("expect @@unitShape to be a function"):n=e;const i=Array.isArray(n),l=ve.useRef({stale:1,justSubscribed:0,scope:t}),[s,c,f,p,h]=ve.useMemo(()=>{l.current.stale=1;const w=Array.isArray(n)?[]:{},C=[],S=[],E=[],T=[];for(const O in n){if(!{}.hasOwnProperty.call(n,O))continue;const _=n[O];Ec.unit(_)||rS(`expect useUnit ${r?"argument":`value in key "${O}"`} to be a unit`),Ec.event(_)||Ec.effect(_)?(w[O]=t?Xj(_,{scope:t}):_,E.push(O),T.push(_)):(w[O]=null,C.push(O),S.push(_))}return[w,C,S,E,T]},[l,t,...Object.keys(n),...Object.values(n)]),g=ve.useRef({value:s,storeKeys:c,eventKeys:p,eventValues:h}),y=ve.useCallback(w=>{const C=l.current;return C.justSubscribed=1,Qj({unit:f,fn:()=>{C.stale||(C.stale=1,w())},scope:t,batch:1})},[f,t,g,l]),x=ve.useCallback(()=>{const w=g.current,C=l.current;let S,E=0;const T=w.value,O=w.storeKeys,_=w.eventKeys,R=w.eventValues,$=t!==C.scope;if(C.stale||C.justSubscribed||$){E=!C.justSubscribed||$,S=i?[...s]:{...s},O.length===c.length&&_.length===p.length||(E=1);for(let M=0;M<c.length;M++){const I=_3(f[M],t),L=c[M];E||(E=O.includes(L)?T[L]!==I:1),S[L]=I}for(let M=0;M<p.length;M++){const I=h[M],L=p[M];E||(E=_.includes(L)?R[_.indexOf(L)]!==I:1)}}return E&&(w.value=S),w.storeKeys=c,w.eventKeys=p,w.eventValues=h,C.stale=0,C.justSubscribed=!E,C.scope=t,r?w.value.unit:w.value},[y,f,h,t,g,l]);return $3(y,x,x)}function P3(e){return ve.useContext(M3)}function Wv(e,t){return T3(e,P3())}const rS=e=>{throw Error(e)};typeof window<"u"?ve.useLayoutEffect:ve.useEffect;const{useSyncExternalStore:$3}=O3,_3=(e,t)=>t?t.getState(e):e.getState(),M3=ve.createContext(null),A3=()=>{const{isInitialized:e}=Wv(Uv);return m.useEffect(()=>{Wx()},[]),e?We.jsx(Xs,{}):null},I3=()=>{const{token:e}=Wv(Uv);return e?We.jsx(Xs,{}):We.jsx(TS,{to:"sign-in"})},F3=()=>{const{token:e}=Wv(Uv);return e?We.jsx(TS,{to:"/"}):We.jsx(Xs,{})};function L3({children:e}){return We.jsx(qC,{vertical:!0,gap:16,className:ia.inputs,children:e})}var Ch={exports:{}},xh,nS;function k3(){if(nS)return xh;nS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xh=e,xh}var Eh,oS;function N3(){if(oS)return Eh;oS=1;var e=k3();function t(){}function r(){}return r.resetWarningCache=t,Eh=function(){function n(s,c,f,p,h,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}n.isRequired=n;function i(){return n}var l={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},Eh}var iS;function j3(){return iS||(iS=1,Ch.exports=N3()()),Ch.exports}var D3=j3();const Yt=Bo(D3);var Rh,aS;function z3(){if(aS)return Rh;aS=1;function e(c){return c&&typeof c=="object"&&"default"in c?c.default:c}var t=dl(),r=e(t);function n(c,f,p){return f in c?Object.defineProperty(c,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):c[f]=p,c}function i(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,c.__proto__=f}var l=!!(typeof window<"u"&&window.document&&window.document.createElement);function s(c,f,p){if(typeof c!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof f!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof p<"u"&&typeof p!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function h(g){return g.displayName||g.name||"Component"}return function(y){if(typeof y!="function")throw new Error("Expected WrappedComponent to be a React component.");var x=[],w;function C(){w=c(x.map(function(E){return E.props})),S.canUseDOM?f(w):p&&(w=p(w))}var S=function(E){i(T,E);function T(){return E.apply(this,arguments)||this}T.peek=function(){return w},T.rewind=function(){if(T.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var R=w;return w=void 0,x=[],R};var O=T.prototype;return O.UNSAFE_componentWillMount=function(){x.push(this),C()},O.componentDidUpdate=function(){C()},O.componentWillUnmount=function(){var R=x.indexOf(this);x.splice(R,1),C()},O.render=function(){return r.createElement(y,this.props)},T}(t.PureComponent);return n(S,"displayName","SideEffect("+h(y)+")"),n(S,"canUseDOM",l),S}}return Rh=s,Rh}var H3=z3();const B3=Bo(H3);var Oh,lS;function V3(){if(lS)return Oh;lS=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(l,s){if(l===s)return!0;if(l&&s&&typeof l=="object"&&typeof s=="object"){if(l.constructor!==s.constructor)return!1;var c,f,p;if(Array.isArray(l)){if(c=l.length,c!=s.length)return!1;for(f=c;f--!==0;)if(!i(l[f],s[f]))return!1;return!0}var h;if(t&&l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(h=l.entries();!(f=h.next()).done;)if(!s.has(f.value[0]))return!1;for(h=l.entries();!(f=h.next()).done;)if(!i(f.value[1],s.get(f.value[0])))return!1;return!0}if(r&&l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(h=l.entries();!(f=h.next()).done;)if(!s.has(f.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(s)){if(c=l.length,c!=s.length)return!1;for(f=c;f--!==0;)if(l[f]!==s[f])return!1;return!0}if(l.constructor===RegExp)return l.source===s.source&&l.flags===s.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof s.valueOf=="function")return l.valueOf()===s.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof s.toString=="function")return l.toString()===s.toString();if(p=Object.keys(l),c=p.length,c!==Object.keys(s).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(s,p[f]))return!1;if(e&&l instanceof Element)return!1;for(f=c;f--!==0;)if(!((p[f]==="_owner"||p[f]==="__v"||p[f]==="__o")&&l.$$typeof)&&!i(l[p[f]],s[p[f]]))return!1;return!0}return l!==l&&s!==s}return Oh=function(s,c){try{return i(s,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Oh}var U3=V3();const W3=Bo(U3);/* object-assign (c) Sindre Sorhus @license MIT */var Th,sS;function q3(){if(sS)return Th;sS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function i(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Th=i()?Object.assign:function(l,s){for(var c,f=n(l),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){p=e(c);for(var y=0;y<p.length;y++)r.call(c,p[y])&&(f[p[y]]=c[p[y]])}}return f},Th}var G3=q3();const K3=Bo(G3);var Zi={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},lt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(lt).map(function(e){return lt[e]});var Jt={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},uf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},qs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},X3=Object.keys(uf).reduce(function(e,t){return e[uf[t]]=t,e},{}),Q3=[lt.NOSCRIPT,lt.SCRIPT,lt.STYLE],ao="data-react-helmet",Y3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J3=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Z3=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e4=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},uS=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},t4=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Vm=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},r4=function(t){var r=nl(t,lt.TITLE),n=nl(t,qs.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var i=nl(t,qs.DEFAULT_TITLE);return r||i||void 0},n4=function(t){return nl(t,qs.ON_CHANGE_CLIENT_STATE)||function(){}},Ph=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,i){return an({},n,i)},{})},o4=function(t,r){return r.filter(function(n){return typeof n[lt.BASE]<"u"}).map(function(n){return n[lt.BASE]}).reverse().reduce(function(n,i){if(!n.length)for(var l=Object.keys(i),s=0;s<l.length;s++){var c=l[s],f=c.toLowerCase();if(t.indexOf(f)!==-1&&i[f])return n.concat(i)}return n},[])},hs=function(t,r,n){var i={};return n.filter(function(l){return Array.isArray(l[t])?!0:(typeof l[t]<"u"&&s4("Helmet: "+t+' should be of type "Array". Instead found type "'+Y3(l[t])+'"'),!1)}).map(function(l){return l[t]}).reverse().reduce(function(l,s){var c={};s.filter(function(y){for(var x=void 0,w=Object.keys(y),C=0;C<w.length;C++){var S=w[C],E=S.toLowerCase();r.indexOf(E)!==-1&&!(x===Jt.REL&&y[x].toLowerCase()==="canonical")&&!(E===Jt.REL&&y[E].toLowerCase()==="stylesheet")&&(x=E),r.indexOf(S)!==-1&&(S===Jt.INNER_HTML||S===Jt.CSS_TEXT||S===Jt.ITEM_PROP)&&(x=S)}if(!x||!y[x])return!1;var T=y[x].toLowerCase();return i[x]||(i[x]={}),c[x]||(c[x]={}),i[x][T]?!1:(c[x][T]=!0,!0)}).reverse().forEach(function(y){return l.push(y)});for(var f=Object.keys(c),p=0;p<f.length;p++){var h=f[p],g=K3({},i[h],c[h]);i[h]=g}return l},[]).reverse()},nl=function(t,r){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.hasOwnProperty(r))return i[r]}return null},i4=function(t){return{baseTag:o4([Jt.HREF,Jt.TARGET],t),bodyAttributes:Ph(Zi.BODY,t),defer:nl(t,qs.DEFER),encode:nl(t,qs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Ph(Zi.HTML,t),linkTags:hs(lt.LINK,[Jt.REL,Jt.HREF],t),metaTags:hs(lt.META,[Jt.NAME,Jt.CHARSET,Jt.HTTPEQUIV,Jt.PROPERTY,Jt.ITEM_PROP],t),noscriptTags:hs(lt.NOSCRIPT,[Jt.INNER_HTML],t),onChangeClientState:n4(t),scriptTags:hs(lt.SCRIPT,[Jt.SRC,Jt.INNER_HTML],t),styleTags:hs(lt.STYLE,[Jt.CSS_TEXT],t),title:r4(t),titleAttributes:Ph(Zi.TITLE,t)}},Um=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){Um(t)},0)}}(),cS=function(t){return clearTimeout(t)},a4=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Um:global.requestAnimationFrame||Um,l4=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cS:global.cancelAnimationFrame||cS,s4=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ms=null,u4=function(t){ms&&l4(ms),t.defer?ms=a4(function(){fS(t,function(){ms=null})}):(fS(t),ms=null)},fS=function(t,r){var n=t.baseTag,i=t.bodyAttributes,l=t.htmlAttributes,s=t.linkTags,c=t.metaTags,f=t.noscriptTags,p=t.onChangeClientState,h=t.scriptTags,g=t.styleTags,y=t.title,x=t.titleAttributes;Wm(lt.BODY,i),Wm(lt.HTML,l),c4(y,x);var w={baseTag:Ga(lt.BASE,n),linkTags:Ga(lt.LINK,s),metaTags:Ga(lt.META,c),noscriptTags:Ga(lt.NOSCRIPT,f),scriptTags:Ga(lt.SCRIPT,h),styleTags:Ga(lt.STYLE,g)},C={},S={};Object.keys(w).forEach(function(E){var T=w[E],O=T.newTags,_=T.oldTags;O.length&&(C[E]=O),_.length&&(S[E]=w[E].oldTags)}),r&&r(),p(t,C,S)},Gx=function(t){return Array.isArray(t)?t.join(""):t},c4=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=Gx(t)),Wm(lt.TITLE,r)},Wm=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var i=n.getAttribute(ao),l=i?i.split(","):[],s=[].concat(l),c=Object.keys(r),f=0;f<c.length;f++){var p=c[f],h=r[p]||"";n.getAttribute(p)!==h&&n.setAttribute(p,h),l.indexOf(p)===-1&&l.push(p);var g=s.indexOf(p);g!==-1&&s.splice(g,1)}for(var y=s.length-1;y>=0;y--)n.removeAttribute(s[y]);l.length===s.length?n.removeAttribute(ao):n.getAttribute(ao)!==c.join(",")&&n.setAttribute(ao,c.join(","))}},Ga=function(t,r){var n=document.head||document.querySelector(lt.HEAD),i=n.querySelectorAll(t+"["+ao+"]"),l=Array.prototype.slice.call(i),s=[],c=void 0;return r&&r.length&&r.forEach(function(f){var p=document.createElement(t);for(var h in f)if(f.hasOwnProperty(h))if(h===Jt.INNER_HTML)p.innerHTML=f.innerHTML;else if(h===Jt.CSS_TEXT)p.styleSheet?p.styleSheet.cssText=f.cssText:p.appendChild(document.createTextNode(f.cssText));else{var g=typeof f[h]>"u"?"":f[h];p.setAttribute(h,g)}p.setAttribute(ao,"true"),l.some(function(y,x){return c=x,p.isEqualNode(y)})?l.splice(c,1):s.push(p)}),l.forEach(function(f){return f.parentNode.removeChild(f)}),s.forEach(function(f){return n.appendChild(f)}),{oldTags:l,newTags:s}},Kx=function(t){return Object.keys(t).reduce(function(r,n){var i=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+i:i},"")},f4=function(t,r,n,i){var l=Kx(n),s=Gx(r);return l?"<"+t+" "+ao+'="true" '+l+">"+Vm(s,i)+"</"+t+">":"<"+t+" "+ao+'="true">'+Vm(s,i)+"</"+t+">"},d4=function(t,r,n){return r.reduce(function(i,l){var s=Object.keys(l).filter(function(p){return!(p===Jt.INNER_HTML||p===Jt.CSS_TEXT)}).reduce(function(p,h){var g=typeof l[h]>"u"?h:h+'="'+Vm(l[h],n)+'"';return p?p+" "+g:g},""),c=l.innerHTML||l.cssText||"",f=Q3.indexOf(t)===-1;return i+"<"+t+" "+ao+'="true" '+s+(f?"/>":">"+c+"</"+t+">")},"")},Xx=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[uf[i]||i]=t[i],n},r)},p4=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[X3[i]||i]=t[i],n},r)},h4=function(t,r,n){var i,l=(i={key:r},i[ao]=!0,i),s=Xx(n,l);return[ve.createElement(lt.TITLE,s,r)]},m4=function(t,r){return r.map(function(n,i){var l,s=(l={key:i},l[ao]=!0,l);return Object.keys(n).forEach(function(c){var f=uf[c]||c;if(f===Jt.INNER_HTML||f===Jt.CSS_TEXT){var p=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:p}}else s[f]=n[c]}),ve.createElement(t,s)})},jo=function(t,r,n){switch(t){case lt.TITLE:return{toComponent:function(){return h4(t,r.title,r.titleAttributes)},toString:function(){return f4(t,r.title,r.titleAttributes,n)}};case Zi.BODY:case Zi.HTML:return{toComponent:function(){return Xx(r)},toString:function(){return Kx(r)}};default:return{toComponent:function(){return m4(t,r)},toString:function(){return d4(t,r,n)}}}},Qx=function(t){var r=t.baseTag,n=t.bodyAttributes,i=t.encode,l=t.htmlAttributes,s=t.linkTags,c=t.metaTags,f=t.noscriptTags,p=t.scriptTags,h=t.styleTags,g=t.title,y=g===void 0?"":g,x=t.titleAttributes;return{base:jo(lt.BASE,r,i),bodyAttributes:jo(Zi.BODY,n,i),htmlAttributes:jo(Zi.HTML,l,i),link:jo(lt.LINK,s,i),meta:jo(lt.META,c,i),noscript:jo(lt.NOSCRIPT,f,i),script:jo(lt.SCRIPT,p,i),style:jo(lt.STYLE,h,i),title:jo(lt.TITLE,{title:y,titleAttributes:x},i)}},v4=function(t){var r,n;return n=r=function(i){e4(l,i);function l(){return J3(this,l),t4(this,i.apply(this,arguments))}return l.prototype.shouldComponentUpdate=function(c){return!W3(this.props,c)},l.prototype.mapNestedChildrenToProps=function(c,f){if(!f)return null;switch(c.type){case lt.SCRIPT:case lt.NOSCRIPT:return{innerHTML:f};case lt.STYLE:return{cssText:f}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},l.prototype.flattenArrayTypeChildren=function(c){var f,p=c.child,h=c.arrayTypeChildren,g=c.newChildProps,y=c.nestedChildren;return an({},h,(f={},f[p.type]=[].concat(h[p.type]||[],[an({},g,this.mapNestedChildrenToProps(p,y))]),f))},l.prototype.mapObjectTypeChildren=function(c){var f,p,h=c.child,g=c.newProps,y=c.newChildProps,x=c.nestedChildren;switch(h.type){case lt.TITLE:return an({},g,(f={},f[h.type]=x,f.titleAttributes=an({},y),f));case lt.BODY:return an({},g,{bodyAttributes:an({},y)});case lt.HTML:return an({},g,{htmlAttributes:an({},y)})}return an({},g,(p={},p[h.type]=an({},y),p))},l.prototype.mapArrayTypeChildrenToProps=function(c,f){var p=an({},f);return Object.keys(c).forEach(function(h){var g;p=an({},p,(g={},g[h]=c[h],g))}),p},l.prototype.warnOnInvalidChildren=function(c,f){return!0},l.prototype.mapChildrenToProps=function(c,f){var p=this,h={};return ve.Children.forEach(c,function(g){if(!(!g||!g.props)){var y=g.props,x=y.children,w=uS(y,["children"]),C=p4(w);switch(p.warnOnInvalidChildren(g,x),g.type){case lt.LINK:case lt.META:case lt.NOSCRIPT:case lt.SCRIPT:case lt.STYLE:h=p.flattenArrayTypeChildren({child:g,arrayTypeChildren:h,newChildProps:C,nestedChildren:x});break;default:f=p.mapObjectTypeChildren({child:g,newProps:f,newChildProps:C,nestedChildren:x});break}}}),f=this.mapArrayTypeChildrenToProps(h,f),f},l.prototype.render=function(){var c=this.props,f=c.children,p=uS(c,["children"]),h=an({},p);return f&&(h=this.mapChildrenToProps(f,h)),ve.createElement(t,h)},Z3(l,null,[{key:"canUseDOM",set:function(c){t.canUseDOM=c}}]),l}(ve.Component),r.propTypes={base:Yt.object,bodyAttributes:Yt.object,children:Yt.oneOfType([Yt.arrayOf(Yt.node),Yt.node]),defaultTitle:Yt.string,defer:Yt.bool,encodeSpecialCharacters:Yt.bool,htmlAttributes:Yt.object,link:Yt.arrayOf(Yt.object),meta:Yt.arrayOf(Yt.object),noscript:Yt.arrayOf(Yt.object),onChangeClientState:Yt.func,script:Yt.arrayOf(Yt.object),style:Yt.arrayOf(Yt.object),title:Yt.string,titleAttributes:Yt.object,titleTemplate:Yt.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var i=t.rewind();return i||(i=Qx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},n},g4=function(){return null},y4=B3(i4,u4,Qx)(g4),cf=v4(y4);cf.renderStatic=cf.rewind;function b4({name:e}){return We.jsxs(We.Fragment,{children:[We.jsx(cf,{children:We.jsx("title",{children:"Вход | Платежи"})}),We.jsxs("div",{className:ia.form,children:[We.jsx(Cl.Text,{className:ia.title,children:e}),We.jsx(Xs,{})]})]})}const S4="/assets/auth-logo-D_kQ-NYl.svg";function w4(){const[e,t]=m.useState(window.innerHeight*.01),r=()=>{var l;const i=(((l=window.visualViewport)==null?void 0:l.height)||window.innerHeight)*.01;t(i)};m.useEffect(()=>{r()},[]);const n={...window.innerWidth<576?{height:`${e*100}px`}:{}};return We.jsxs("div",{className:ia.wrapper,style:window.innerWidth<576?n:{},children:[We.jsx("img",{className:ia.logo,src:S4,alt:""}),We.jsx(Xs,{})]})}const C4=e=>{const[t,r]=m.useState(!1);return We.jsx(fa,{type:t?"text":"password",size:"large",placeholder:"Пароль",suffix:We.jsx("span",{onClick:()=>r(!t),style:{cursor:"pointer"},children:t?We.jsx(zC,{style:{color:"#D0D5DD"}}):We.jsx(HC,{style:{color:"#D0D5DD"}})}),...e})};function x4(){const[e,t]=m.useState(!0),[r]=Cn.useForm(),n=({errorFields:l})=>{if(l&&l.length>0){const s=r.getFieldInstance(l[0].name);s==null||s.focus()}},i=async l=>{const{password:s,email:c}=l;try{const f=await qj({email:c,password:s});S3(f),Vx(f)}catch{t(!1)}};return We.jsxs(Cn,{form:r,className:_b.form,onFinish:i,onFinishFailed:n,children:[We.jsxs(L3,{children:[We.jsx(Cn.Item,{name:"email",rules:[{required:!0,message:"Введите e-mail"},{type:"email",message:"Адрес введен некорректно"}],validateTrigger:"onBlur",children:We.jsx(fa,{autoComplete:"off",size:"large",placeholder:"E-mail",suffix:We.jsx(xk,{style:{color:"#D0D5DD"}})})}),We.jsx(Cn.Item,{name:"password",rules:[{required:!0,message:"Введите пароль"}],validateTrigger:"onBlur",children:We.jsx(C4,{})})]}),We.jsx(Cn.Item,{children:We.jsx(Of,{className:_b.submit,block:!0,type:"primary",size:"large",htmlType:"submit",children:"Войти"})}),!e&&We.jsxs(qC,{gap:8,justify:"center",align:"center",className:ia.warning,children:[We.jsx("img",{src:mN,className:ia["warning-icon"],alt:""}),We.jsx(Cl.Text,{type:"danger",children:"Неверный пароль или почта"})]})]})}function E4(){const e=()=>{Ux(),w3()};return We.jsxs(We.Fragment,{children:[We.jsx(cf,{children:We.jsx("title",{children:"Главная"})}),We.jsxs("div",{children:["выбрать модель",We.jsx("button",{onClick:e,children:"выйти"})]})]})}const R4=xO(Ah(We.jsx(We.Fragment,{children:We.jsxs(fi,{element:We.jsx(A3,{}),children:[We.jsx(fi,{element:We.jsx(I3,{}),children:We.jsx(fi,{path:"/",element:We.jsx(E4,{})})}),We.jsx(fi,{element:We.jsx(F3,{}),children:We.jsx(fi,{element:We.jsx(w4,{}),children:We.jsx(fi,{element:We.jsx(b4,{name:"Вход"}),children:We.jsx(fi,{path:"sign-in",element:We.jsx(x4,{})})})})})]})})));I2.createRoot(document.getElementById("root")).render(We.jsx(m.StrictMode,{children:We.jsx(gl,{theme:{token:{colorLink:"#722ED1",colorLinkHover:"#722ED1",colorPrimary:"#722ED1",colorPrimaryHover:"#722ED1"},components:{Alert:{colorBgContainer:"transparent",defaultPadding:0}}},children:We.jsx(QR,{router:R4})})}));