File "index-BN22pKU9.js"

Full Path: /var/www/html/front_back/assets/index-BN22pKU9.js
File size: 642.93 KB
MIME-type: text/plain
Charset: utf-8

function K1(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 u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).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 Ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ap={exports:{}},Ql={},lp={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 Q0;function c2(){if(Q0)return gt;Q0=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"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function y(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function S(I,L,ne){this.props=I,this.context=L,this.refs=x,this.updater=ne||C}S.prototype.isReactComponent={},S.prototype.setState=function(I,L){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,L,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function E(){}E.prototype=S.prototype;function O(I,L,ne){this.props=I,this.context=L,this.refs=x,this.updater=ne||C}var $=O.prototype=new E;$.constructor=O,w($,S.prototype),$.isPureReactComponent=!0;var M=Array.isArray,R=Object.prototype.hasOwnProperty,T={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function F(I,L,ne){var Y,ae={},ue=null,se=null;if(L!=null)for(Y in L.ref!==void 0&&(se=L.ref),L.key!==void 0&&(ue=""+L.key),L)R.call(L,Y)&&!_.hasOwnProperty(Y)&&(ae[Y]=L[Y]);var ce=arguments.length-2;if(ce===1)ae.children=ne;else if(1<ce){for(var de=Array(ce),we=0;we<ce;we++)de[we]=arguments[we+2];ae.children=de}if(I&&I.defaultProps)for(Y in ce=I.defaultProps,ce)ae[Y]===void 0&&(ae[Y]=ce[Y]);return{$$typeof:e,type:I,key:ue,ref:se,props:ae,_owner:T.current}}function j(I,L){return{$$typeof:e,type:I.type,key:L,ref:I.ref,props:I.props,_owner:I._owner}}function B(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Q(I){var L={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(ne){return L[ne]})}var Z=/\/+/g;function X(I,L){return typeof I=="object"&&I!==null&&I.key!=null?Q(""+I.key):L.toString(36)}function U(I,L,ne,Y,ae){var ue=typeof I;(ue==="undefined"||ue==="boolean")&&(I=null);var se=!1;if(I===null)se=!0;else switch(ue){case"string":case"number":se=!0;break;case"object":switch(I.$$typeof){case e:case t:se=!0}}if(se)return se=I,ae=ae(se),I=Y===""?"."+X(se,0):Y,M(ae)?(ne="",I!=null&&(ne=I.replace(Z,"$&/")+"/"),U(ae,L,ne,"",function(we){return we})):ae!=null&&(B(ae)&&(ae=j(ae,ne+(!ae.key||se&&se.key===ae.key?"":(""+ae.key).replace(Z,"$&/")+"/")+I)),L.push(ae)),1;if(se=0,Y=Y===""?".":Y+":",M(I))for(var ce=0;ce<I.length;ce++){ue=I[ce];var de=Y+X(ue,ce);se+=U(ue,L,ne,de,ae)}else if(de=y(I),typeof de=="function")for(I=de.call(I),ce=0;!(ue=I.next()).done;)ue=ue.value,de=Y+X(ue,ce++),se+=U(ue,L,ne,de,ae);else if(ue==="object")throw L=String(I),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return se}function q(I,L,ne){if(I==null)return I;var Y=[],ae=0;return U(I,Y,"","",function(ue){return L.call(ne,ue,ae++)}),Y}function D(I){if(I._status===-1){var L=I._result;L=L(),L.then(function(ne){(I._status===0||I._status===-1)&&(I._status=1,I._result=ne)},function(ne){(I._status===0||I._status===-1)&&(I._status=2,I._result=ne)}),I._status===-1&&(I._status=0,I._result=L)}if(I._status===1)return I._result.default;throw I._result}var k={current:null},N={transition:null},H={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:N,ReactCurrentOwner:T};function A(){throw Error("act(...) is not supported in production builds of React.")}return gt.Children={map:q,forEach:function(I,L,ne){q(I,function(){L.apply(this,arguments)},ne)},count:function(I){var L=0;return q(I,function(){L++}),L},toArray:function(I){return q(I,function(L){return L})||[]},only:function(I){if(!B(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},gt.Component=S,gt.Fragment=r,gt.Profiler=i,gt.PureComponent=O,gt.StrictMode=n,gt.Suspense=f,gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,gt.act=A,gt.cloneElement=function(I,L,ne){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var Y=w({},I.props),ae=I.key,ue=I.ref,se=I._owner;if(L!=null){if(L.ref!==void 0&&(ue=L.ref,se=T.current),L.key!==void 0&&(ae=""+L.key),I.type&&I.type.defaultProps)var ce=I.type.defaultProps;for(de in L)R.call(L,de)&&!_.hasOwnProperty(de)&&(Y[de]=L[de]===void 0&&ce!==void 0?ce[de]:L[de])}var de=arguments.length-2;if(de===1)Y.children=ne;else if(1<de){ce=Array(de);for(var we=0;we<de;we++)ce[we]=arguments[we+2];Y.children=ce}return{$$typeof:e,type:I.type,key:ae,ref:ue,props:Y,_owner:se}},gt.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:l,_context:I},I.Consumer=I},gt.createElement=F,gt.createFactory=function(I){var L=F.bind(null,I);return L.type=I,L},gt.createRef=function(){return{current:null}},gt.forwardRef=function(I){return{$$typeof:c,render:I}},gt.isValidElement=B,gt.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:D}},gt.memo=function(I,L){return{$$typeof:p,type:I,compare:L===void 0?null:L}},gt.startTransition=function(I){var L=N.transition;N.transition={};try{I()}finally{N.transition=L}},gt.unstable_act=A,gt.useCallback=function(I,L){return k.current.useCallback(I,L)},gt.useContext=function(I){return k.current.useContext(I)},gt.useDebugValue=function(){},gt.useDeferredValue=function(I){return k.current.useDeferredValue(I)},gt.useEffect=function(I,L){return k.current.useEffect(I,L)},gt.useId=function(){return k.current.useId()},gt.useImperativeHandle=function(I,L,ne){return k.current.useImperativeHandle(I,L,ne)},gt.useInsertionEffect=function(I,L){return k.current.useInsertionEffect(I,L)},gt.useLayoutEffect=function(I,L){return k.current.useLayoutEffect(I,L)},gt.useMemo=function(I,L){return k.current.useMemo(I,L)},gt.useReducer=function(I,L,ne){return k.current.useReducer(I,L,ne)},gt.useRef=function(I){return k.current.useRef(I)},gt.useState=function(I){return k.current.useState(I)},gt.useSyncExternalStore=function(I,L,ne){return k.current.useSyncExternalStore(I,L,ne)},gt.useTransition=function(){return k.current.useTransition()},gt.version="18.3.1",gt}var Y0;function Ls(){return Y0||(Y0=1,lp.exports=c2()),lp.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 J0;function d2(){if(J0)return Ql;J0=1;var e=Ls(),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 u(c,f,p){var m,v={},y=null,C=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(C=f.ref);for(m in f)n.call(f,m)&&!l.hasOwnProperty(m)&&(v[m]=f[m]);if(c&&c.defaultProps)for(m in f=c.defaultProps,f)v[m]===void 0&&(v[m]=f[m]);return{$$typeof:t,type:c,key:y,ref:C,props:v,_owner:i.current}}return Ql.Fragment=r,Ql.jsx=u,Ql.jsxs=u,Ql}var Z0;function f2(){return Z0||(Z0=1,ap.exports=d2()),ap.exports}var ge=f2(),h=Ls();const ye=Ns(h),td=K1({__proto__:null,default:ye},[h]);var Ku={},sp={exports:{}},rn={},up={exports:{}},cp={};/**
 * @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 ey;function p2(){return ey||(ey=1,function(e){function t(N,H){var A=N.length;N.push(H);e:for(;0<A;){var I=A-1>>>1,L=N[I];if(0<i(L,H))N[I]=H,N[A]=L,A=I;else break e}}function r(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var H=N[0],A=N.pop();if(A!==H){N[0]=A;e:for(var I=0,L=N.length,ne=L>>>1;I<ne;){var Y=2*(I+1)-1,ae=N[Y],ue=Y+1,se=N[ue];if(0>i(ae,A))ue<L&&0>i(se,ae)?(N[I]=se,N[ue]=A,I=ue):(N[I]=ae,N[Y]=A,I=Y);else if(ue<L&&0>i(se,A))N[I]=se,N[ue]=A,I=ue;else break e}}return H}function i(N,H){var A=N.sortIndex-H.sortIndex;return A!==0?A:N.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],p=[],m=1,v=null,y=3,C=!1,w=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(N){for(var H=r(p);H!==null;){if(H.callback===null)n(p);else if(H.startTime<=N)n(p),H.sortIndex=H.expirationTime,t(f,H);else break;H=r(p)}}function M(N){if(x=!1,$(N),!w)if(r(f)!==null)w=!0,D(R);else{var H=r(p);H!==null&&k(M,H.startTime-N)}}function R(N,H){w=!1,x&&(x=!1,E(F),F=-1),C=!0;var A=y;try{for($(H),v=r(f);v!==null&&(!(v.expirationTime>H)||N&&!Q());){var I=v.callback;if(typeof I=="function"){v.callback=null,y=v.priorityLevel;var L=I(v.expirationTime<=H);H=e.unstable_now(),typeof L=="function"?v.callback=L:v===r(f)&&n(f),$(H)}else n(f);v=r(f)}if(v!==null)var ne=!0;else{var Y=r(p);Y!==null&&k(M,Y.startTime-H),ne=!1}return ne}finally{v=null,y=A,C=!1}}var T=!1,_=null,F=-1,j=5,B=-1;function Q(){return!(e.unstable_now()-B<j)}function Z(){if(_!==null){var N=e.unstable_now();B=N;var H=!0;try{H=_(!0,N)}finally{H?X():(T=!1,_=null)}}else T=!1}var X;if(typeof O=="function")X=function(){O(Z)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,q=U.port2;U.port1.onmessage=Z,X=function(){q.postMessage(null)}}else X=function(){S(Z,0)};function D(N){_=N,T||(T=!0,X())}function k(N,H){F=S(function(){N(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(N){N.callback=null},e.unstable_continueExecution=function(){w||C||(w=!0,D(R))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(N){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var A=y;y=H;try{return N()}finally{y=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,H){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var A=y;y=N;try{return H()}finally{y=A}},e.unstable_scheduleCallback=function(N,H,A){var I=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?I+A:I):A=I,N){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=A+L,N={id:m++,callback:H,priorityLevel:N,startTime:A,expirationTime:L,sortIndex:-1},A>I?(N.sortIndex=A,t(p,N),r(f)===null&&N===r(p)&&(x?(E(F),F=-1):x=!0,k(M,A-I))):(N.sortIndex=L,t(f,N),w||C||(w=!0,D(R))),N},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(N){var H=y;return function(){var A=y;y=H;try{return N.apply(this,arguments)}finally{y=A}}}}(cp)),cp}var ty;function h2(){return ty||(ty=1,up.exports=p2()),up.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 ry;function m2(){if(ry)return rn;ry=1;var e=Ls(),t=h2();function r(o){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+o,s=1;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s]);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){u(o,a),u(o+"Capture",a)}function u(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]*$/,m={},v={};function y(o){return f.call(v,o)?!0:f.call(m,o)?!1:p.test(o)?v[o]=!0:(m[o]=!0,!1)}function C(o,a,s,d){if(s!==null&&s.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return d?!1:s!==null?!s.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,a,s,d){if(a===null||typeof a>"u"||C(o,a,s,d))return!0;if(d)return!1;if(s!==null)switch(s.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 x(o,a,s,d,g,b,P){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=s,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 x(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 x(a,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){S[o]=new x(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){S[o]=new x(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 x(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){S[o]=new x(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){S[o]=new x(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){S[o]=new x(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){S[o]=new x(o,5,!1,o.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function O(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,O);S[a]=new x(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,O);S[a]=new x(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,O);S[a]=new x(a,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){S[o]=new x(o,1,!1,o.toLowerCase(),null,!1,!1)}),S.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){S[o]=new x(o,1,!1,o.toLowerCase(),null,!0,!0)});function $(o,a,s,d){var g=S.hasOwnProperty(a)?S[a]:null;(g!==null?g.type!==0:d||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(w(a,s,g,d)&&(s=null),d||g===null?y(a)&&(s===null?o.removeAttribute(a):o.setAttribute(a,""+s)):g.mustUseProperty?o[g.propertyName]=s===null?g.type===3?!1:"":s:(a=g.attributeName,d=g.attributeNamespace,s===null?o.removeAttribute(a):(g=g.type,s=g===3||g===4&&s===!0?"":""+s,d?o.setAttributeNS(d,a,s):o.setAttribute(a,s))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),Q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),N=Symbol.iterator;function H(o){return o===null||typeof o!="object"?null:(o=N&&o[N]||o["@@iterator"],typeof o=="function"?o:null)}var A=Object.assign,I;function L(o){if(I===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);I=a&&a[1]||""}return`
`+I+o}var ne=!1;function Y(o,a){if(!o||ne)return"";ne=!0;var s=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(oe){var d=oe}Reflect.construct(o,[],a)}else{try{a.call()}catch(oe){d=oe}o.call(a.prototype)}else{try{throw Error()}catch(oe){d=oe}o()}}catch(oe){if(oe&&d&&typeof oe.stack=="string"){for(var g=oe.stack.split(`
`),b=d.stack.split(`
`),P=g.length-1,z=b.length-1;1<=P&&0<=z&&g[P]!==b[z];)z--;for(;1<=P&&0<=z;P--,z--)if(g[P]!==b[z]){if(P!==1||z!==1)do if(P--,z--,0>z||g[P]!==b[z]){var W=`
`+g[P].replace(" at new "," at ");return o.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",o.displayName)),W}while(1<=P&&0<=z);break}}}finally{ne=!1,Error.prepareStackTrace=s}return(o=o?o.displayName||o.name:"")?L(o):""}function ae(o){switch(o.tag){case 5:return L(o.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return o=Y(o.type,!1),o;case 11:return o=Y(o.type.render,!1),o;case 1:return o=Y(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 _:return"Fragment";case T:return"Portal";case j:return"Profiler";case F:return"StrictMode";case X:return"Suspense";case U:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Q:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case Z:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case q:return a=o.displayName||null,a!==null?a:ue(o.type)||"Memo";case D: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===F?"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 de(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function we(o){var a=de(o)?"checked":"value",s=Object.getOwnPropertyDescriptor(o.constructor.prototype,a),d=""+o[a];if(!o.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var g=s.get,b=s.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return g.call(this)},set:function(P){d=""+P,b.call(this,P)}}),Object.defineProperty(o,a,{enumerable:s.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=we(o))}function _e(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var s=a.getValue(),d="";return o&&(d=de(o)?o.checked?"true":"false":o.value),o=d,o!==s?(a.setValue(o),!0):!1}function Me(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 We(o,a){var s=a.checked;return A({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??o._wrapperState.initialChecked})}function Te(o,a){var s=a.defaultValue==null?"":a.defaultValue,d=a.checked!=null?a.checked:a.defaultChecked;s=ce(a.value!=null?a.value:s),o._wrapperState={initialChecked:d,initialValue:s,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ve(o,a){a=a.checked,a!=null&&$(o,"checked",a,!1)}function ft(o,a){Ve(o,a);var s=ce(a.value),d=a.type;if(s!=null)d==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+s):o.value!==""+s&&(o.value=""+s);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?pt(o,a.type,s):a.hasOwnProperty("defaultValue")&&pt(o,a.type,ce(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function Ze(o,a,s){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,s||a===o.value||(o.value=a),o.defaultValue=a}s=o.name,s!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,s!==""&&(o.name=s)}function pt(o,a,s){(a!=="number"||Me(o.ownerDocument)!==o)&&(s==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+s&&(o.defaultValue=""+s))}var at=Array.isArray;function Le(o,a,s,d){if(o=o.options,a){a={};for(var g=0;g<s.length;g++)a["$"+s[g]]=!0;for(s=0;s<o.length;s++)g=a.hasOwnProperty("$"+o[s].value),o[s].selected!==g&&(o[s].selected=g),g&&d&&(o[s].defaultSelected=!0)}else{for(s=""+ce(s),a=null,g=0;g<o.length;g++){if(o[g].value===s){o[g].selected=!0,d&&(o[g].defaultSelected=!0);return}a!==null||o[g].disabled||(a=o[g])}a!==null&&(a.selected=!0)}}function st(o,a){if(a.dangerouslySetInnerHTML!=null)throw Error(r(91));return A({},a,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function be(o,a){var s=a.value;if(s==null){if(s=a.children,a=a.defaultValue,s!=null){if(a!=null)throw Error(r(92));if(at(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),s=a}o._wrapperState={initialValue:ce(s)}}function Fe(o,a){var s=ce(a.value),d=ce(a.defaultValue);s!=null&&(s=""+s,s!==o.value&&(o.value=s),a.defaultValue==null&&o.defaultValue!==s&&(o.defaultValue=s)),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 bt,Dt=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,d,g){MSApp.execUnsafeLocalFunction(function(){return o(a,s,d,g)})}:o}(function(o,a){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=a;else{for(bt=bt||document.createElement("div"),bt.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;a.firstChild;)o.appendChild(a.firstChild)}});function St(o,a){if(a){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=a;return}}o.textContent=a}var Qt={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},ht=["Webkit","ms","Moz","O"];Object.keys(Qt).forEach(function(o){ht.forEach(function(a){a=a+o.charAt(0).toUpperCase()+o.substring(1),Qt[a]=Qt[o]})});function Je(o,a,s){return a==null||typeof a=="boolean"||a===""?"":s||typeof a!="number"||a===0||Qt.hasOwnProperty(o)&&Qt[o]?(""+a).trim():a+"px"}function Ge(o,a){o=o.style;for(var s in a)if(a.hasOwnProperty(s)){var d=s.indexOf("--")===0,g=Je(s,a[s],d);s==="float"&&(s="cssFloat"),d?o.setProperty(s,g):o[s]=g}}var nr=A({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 je(o,a){if(a){if(nr[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 Lr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ar=null,zr=null,dr=null;function Ut(o){if(o=kl(o)){if(typeof Ar!="function")throw Error(r(280));var a=o.stateNode;a&&(a=uu(a),Ar(o.stateNode,o.type,a))}}function Bt(o){zr?dr?dr.push(o):dr=[o]:zr=o}function Xr(){if(zr){var o=zr,a=dr;if(dr=zr=null,Ut(o),a)for(o=0;o<a.length;o++)Ut(a[o])}}function Lt(o,a){return o(a)}function V(){}var G=!1;function J(o,a,s){if(G)return o(a,s);G=!0;try{return Lt(o,a,s)}finally{G=!1,(zr!==null||dr!==null)&&(V(),Xr())}}function fe(o,a){var s=o.stateNode;if(s===null)return null;var d=uu(s);if(d===null)return null;s=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(s&&typeof s!="function")throw Error(r(231,a,typeof s));return s}var Oe=!1;if(c)try{var xe={};Object.defineProperty(xe,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",xe,xe),window.removeEventListener("test",xe,xe)}catch{Oe=!1}function $e(o,a,s,d,g,b,P,z,W){var oe=Array.prototype.slice.call(arguments,3);try{a.apply(s,oe)}catch(he){this.onError(he)}}var Ce=!1,Re=null,ve=!1,Ke=null,ot={onError:function(o){Ce=!0,Re=o}};function vt(o,a,s,d,g,b,P,z,W){Ce=!1,Re=null,$e.apply(ot,arguments)}function Mt(o,a,s,d,g,b,P,z,W){if(vt.apply(this,arguments),Ce){if(Ce){var oe=Re;Ce=!1,Re=null}else throw Error(r(198));ve||(ve=!0,Ke=oe)}}function ut(o){var a=o,s=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,a.flags&4098&&(s=a.return),o=a.return;while(o)}return a.tag===3?s:null}function mt(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 Rt(o){if(ut(o)!==o)throw Error(r(188))}function jt(o){var a=o.alternate;if(!a){if(a=ut(o),a===null)throw Error(r(188));return a!==o?null:o}for(var s=o,d=a;;){var g=s.return;if(g===null)break;var b=g.alternate;if(b===null){if(d=g.return,d!==null){s=d;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===s)return Rt(g),o;if(b===d)return Rt(g),a;b=b.sibling}throw Error(r(188))}if(s.return!==d.return)s=g,d=b;else{for(var P=!1,z=g.child;z;){if(z===s){P=!0,s=g,d=b;break}if(z===d){P=!0,d=g,s=b;break}z=z.sibling}if(!P){for(z=b.child;z;){if(z===s){P=!0,s=b,d=g;break}if(z===d){P=!0,d=b,s=g;break}z=z.sibling}if(!P)throw Error(r(189))}}if(s.alternate!==d)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?o:a}function Dr(o){return o=jt(o),o!==null?ar(o):null}function ar(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var a=ar(o);if(a!==null)return a;o=o.sibling}return null}var vr=t.unstable_scheduleCallback,qt=t.unstable_cancelCallback,Rn=t.unstable_shouldYield,an=t.unstable_requestPaint,wt=t.unstable_now,qn=t.unstable_getCurrentPriorityLevel,xt=t.unstable_ImmediatePriority,Gt=t.unstable_UserBlockingPriority,Qr=t.unstable_NormalPriority,Br=t.unstable_LowPriority,kt=t.unstable_IdlePriority,yr=null,Yt=null;function Ko(o){if(Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(yr,o,void 0,(o.current.flags&128)===128)}catch{}}var Tr=Math.clz32?Math.clz32:Xo,$n=Math.log,ln=Math.LN2;function Xo(o){return o>>>=0,o===0?32:31-($n(o)/ln|0)|0}var Gn=64,Hr=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 Po(o,a){var s=o.pendingLanes;if(s===0)return 0;var d=0,g=o.suspendedLanes,b=o.pingedLanes,P=s&268435455;if(P!==0){var z=P&~g;z!==0?d=Oo(z):(b&=P,b!==0&&(d=Oo(b)))}else P=s&~g,P!==0?d=Oo(P):b!==0&&(d=Oo(b));if(d===0)return 0;if(a!==0&&a!==d&&!(a&g)&&(g=d&-d,b=a&-a,g>=b||g===16&&(b&4194240)!==0))return a;if(d&4&&(d|=s&16),a=o.entangledLanes,a!==0)for(o=o.entanglements,a&=d;0<a;)s=31-Tr(a),g=1<<s,d|=o[s],a&=~g;return d}function bl(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 $i(o,a){for(var s=o.suspendedLanes,d=o.pingedLanes,g=o.expirationTimes,b=o.pendingLanes;0<b;){var P=31-Tr(b),z=1<<P,W=g[P];W===-1?(!(z&s)||z&d)&&(g[P]=bl(z,a)):W<=a&&(o.expiredLanes|=z),b&=~z}}function Oi(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function pa(){var o=Gn;return Gn<<=1,!(Gn&4194240)&&(Gn=64),o}function Pi(o){for(var a=[],s=0;31>s;s++)a.push(o);return a}function ho(o,a,s){o.pendingLanes|=a,a!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,a=31-Tr(a),o[a]=s}function Sl(o,a){var s=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<s;){var g=31-Tr(s),b=1<<g;a[g]=0,d[g]=-1,o[g]=-1,s&=~b}}function Ti(o,a){var s=o.entangledLanes|=a;for(o=o.entanglements;s;){var d=31-Tr(s),g=1<<d;g&a|o[d]&a&&(o[d]|=a),s&=~g}}var Ct=0;function ha(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var ma,To,sn,ga,wl,va=!1,lr=[],Vr=null,Wr=null,Cr=null,On=new Map,mo=new Map,un=[],xl="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 ke(o,a){switch(o){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Cr=null;break;case"pointerover":case"pointerout":On.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(a.pointerId)}}function Xe(o,a,s,d,g,b){return o===null||o.nativeEvent!==b?(o={blockedOn:a,domEventName:s,eventSystemFlags:d,nativeEvent:b,targetContainers:[g]},a!==null&&(a=kl(a),a!==null&&To(a)),o):(o.eventSystemFlags|=d,a=o.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),o)}function At(o,a,s,d,g){switch(a){case"focusin":return Vr=Xe(Vr,o,a,s,d,g),!0;case"dragenter":return Wr=Xe(Wr,o,a,s,d,g),!0;case"mouseover":return Cr=Xe(Cr,o,a,s,d,g),!0;case"pointerover":var b=g.pointerId;return On.set(b,Xe(On.get(b)||null,o,a,s,d,g)),!0;case"gotpointercapture":return b=g.pointerId,mo.set(b,Xe(mo.get(b)||null,o,a,s,d,g)),!0}return!1}function Kt(o){var a=Mi(o.target);if(a!==null){var s=ut(a);if(s!==null){if(a=s.tag,a===13){if(a=mt(s),a!==null){o.blockedOn=a,wl(o.priority,function(){sn(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){o.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}o.blockedOn=null}function It(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var s=Id(o.domEventName,o.eventSystemFlags,a[0],o.nativeEvent);if(s===null){s=o.nativeEvent;var d=new s.constructor(s.type,s);_t=d,s.target.dispatchEvent(d),_t=null}else return a=kl(s),a!==null&&To(a),o.blockedOn=s,!1;a.shift()}return!0}function _i(o,a,s){It(o)&&s.delete(a)}function Cl(){va=!1,Vr!==null&&It(Vr)&&(Vr=null),Wr!==null&&It(Wr)&&(Wr=null),Cr!==null&&It(Cr)&&(Cr=null),On.forEach(_i),mo.forEach(_i)}function Qo(o,a){o.blockedOn===a&&(o.blockedOn=null,va||(va=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Cl)))}function go(o){function a(g){return Qo(g,o)}if(0<lr.length){Qo(lr[0],o);for(var s=1;s<lr.length;s++){var d=lr[s];d.blockedOn===o&&(d.blockedOn=null)}}for(Vr!==null&&Qo(Vr,o),Wr!==null&&Qo(Wr,o),Cr!==null&&Qo(Cr,o),On.forEach(a),mo.forEach(a),s=0;s<un.length;s++)d=un[s],d.blockedOn===o&&(d.blockedOn=null);for(;0<un.length&&(s=un[0],s.blockedOn===null);)Kt(s),s.blockedOn===null&&un.shift()}var ya=M.ReactCurrentBatchConfig,Qs=!0;function kC(o,a,s,d){var g=Ct,b=ya.transition;ya.transition=null;try{Ct=1,Md(o,a,s,d)}finally{Ct=g,ya.transition=b}}function NC(o,a,s,d){var g=Ct,b=ya.transition;ya.transition=null;try{Ct=4,Md(o,a,s,d)}finally{Ct=g,ya.transition=b}}function Md(o,a,s,d){if(Qs){var g=Id(o,a,s,d);if(g===null)Xd(o,a,d,Ys,s),ke(o,d);else if(At(g,o,a,s,d))d.stopPropagation();else if(ke(o,d),a&4&&-1<xl.indexOf(o)){for(;g!==null;){var b=kl(g);if(b!==null&&ma(b),b=Id(o,a,s,d),b===null&&Xd(o,a,d,Ys,s),b===g)break;g=b}g!==null&&d.stopPropagation()}else Xd(o,a,d,null,s)}}var Ys=null;function Id(o,a,s,d){if(Ys=null,o=Lr(d),o=Mi(o),o!==null)if(a=ut(o),a===null)o=null;else if(s=a.tag,s===13){if(o=mt(a),o!==null)return o;o=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null);return Ys=o,null}function Ng(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(qn()){case xt:return 1;case Gt:return 4;case Qr:case Br:return 16;case kt:return 536870912;default:return 16}default:return 16}}var Yo=null,Fd=null,Js=null;function Lg(){if(Js)return Js;var o,a=Fd,s=a.length,d,g="value"in Yo?Yo.value:Yo.textContent,b=g.length;for(o=0;o<s&&a[o]===g[o];o++);var P=s-o;for(d=1;d<=P&&a[s-d]===g[b-d];d++);return Js=g.slice(o,1<d?1-d:void 0)}function Zs(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 eu(){return!0}function Ag(){return!1}function cn(o){function a(s,d,g,b,P){this._reactName=s,this._targetInst=g,this.type=d,this.nativeEvent=b,this.target=P,this.currentTarget=null;for(var z in o)o.hasOwnProperty(z)&&(s=o[z],this[z]=s?s(b):b[z]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?eu:Ag,this.isPropagationStopped=Ag,this}return A(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=eu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=eu)},persist:function(){},isPersistent:eu}),a}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=cn(ba),El=A({},ba,{view:0,detail:0}),LC=cn(El),kd,Nd,Rl,tu=A({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ad,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!==Rl&&(Rl&&o.type==="mousemove"?(kd=o.screenX-Rl.screenX,Nd=o.screenY-Rl.screenY):Nd=kd=0,Rl=o),kd)},movementY:function(o){return"movementY"in o?o.movementY:Nd}}),zg=cn(tu),AC=A({},tu,{dataTransfer:0}),zC=cn(AC),DC=A({},El,{relatedTarget:0}),Ld=cn(DC),BC=A({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),HC=cn(BC),VC=A({},ba,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),WC=cn(VC),UC=A({},ba,{data:0}),Dg=cn(UC),qC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GC={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"},KC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XC(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=KC[o])?!!a[o]:!1}function Ad(){return XC}var QC=A({},El,{key:function(o){if(o.key){var a=qC[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Zs(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?GC[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ad,charCode:function(o){return o.type==="keypress"?Zs(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Zs(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),YC=cn(QC),JC=A({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bg=cn(JC),ZC=A({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ad}),eE=cn(ZC),tE=A({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),rE=cn(tE),nE=A({},tu,{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}),oE=cn(nE),iE=[9,13,27,32],zd=c&&"CompositionEvent"in window,$l=null;c&&"documentMode"in document&&($l=document.documentMode);var aE=c&&"TextEvent"in window&&!$l,Hg=c&&(!zd||$l&&8<$l&&11>=$l),Vg=" ",Wg=!1;function Ug(o,a){switch(o){case"keyup":return iE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qg(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Sa=!1;function lE(o,a){switch(o){case"compositionend":return qg(a);case"keypress":return a.which!==32?null:(Wg=!0,Vg);case"textInput":return o=a.data,o===Vg&&Wg?null:o;default:return null}}function sE(o,a){if(Sa)return o==="compositionend"||!zd&&Ug(o,a)?(o=Lg(),Js=Fd=Yo=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 Hg&&a.locale!=="ko"?null:a.data;default:return null}}var uE={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 Gg(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!uE[o.type]:a==="textarea"}function Kg(o,a,s,d){Bt(d),a=au(a,"onChange"),0<a.length&&(s=new jd("onChange","change",null,s,d),o.push({event:s,listeners:a}))}var Ol=null,Pl=null;function cE(o){fv(o,0)}function ru(o){var a=Ra(o);if(_e(a))return o}function dE(o,a){if(o==="change")return a}var Xg=!1;if(c){var Dd;if(c){var Bd="oninput"in document;if(!Bd){var Qg=document.createElement("div");Qg.setAttribute("oninput","return;"),Bd=typeof Qg.oninput=="function"}Dd=Bd}else Dd=!1;Xg=Dd&&(!document.documentMode||9<document.documentMode)}function Yg(){Ol&&(Ol.detachEvent("onpropertychange",Jg),Pl=Ol=null)}function Jg(o){if(o.propertyName==="value"&&ru(Pl)){var a=[];Kg(a,Pl,o,Lr(o)),J(cE,a)}}function fE(o,a,s){o==="focusin"?(Yg(),Ol=a,Pl=s,Ol.attachEvent("onpropertychange",Jg)):o==="focusout"&&Yg()}function pE(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ru(Pl)}function hE(o,a){if(o==="click")return ru(a)}function mE(o,a){if(o==="input"||o==="change")return ru(a)}function gE(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Kn=typeof Object.is=="function"?Object.is:gE;function Tl(o,a){if(Kn(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var s=Object.keys(o),d=Object.keys(a);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var g=s[d];if(!f.call(a,g)||!Kn(o[g],a[g]))return!1}return!0}function Zg(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function ev(o,a){var s=Zg(o);o=0;for(var d;s;){if(s.nodeType===3){if(d=o+s.textContent.length,o<=a&&d>=a)return{node:s,offset:a-o};o=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Zg(s)}}function tv(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?tv(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function rv(){for(var o=window,a=Me();a instanceof o.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)o=a.contentWindow;else break;a=Me(o.document)}return a}function Hd(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 vE(o){var a=rv(),s=o.focusedElem,d=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&tv(s.ownerDocument.documentElement,s)){if(d!==null&&Hd(s)){if(a=d.start,o=d.end,o===void 0&&(o=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(o,s.value.length);else if(o=(a=s.ownerDocument||document)&&a.defaultView||window,o.getSelection){o=o.getSelection();var g=s.textContent.length,b=Math.min(d.start,g);d=d.end===void 0?b:Math.min(d.end,g),!o.extend&&b>d&&(g=d,d=b,b=g),g=ev(s,b);var P=ev(s,d);g&&P&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==P.node||o.focusOffset!==P.offset)&&(a=a.createRange(),a.setStart(g.node,g.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=s;o=o.parentNode;)o.nodeType===1&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)o=a[s],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var yE=c&&"documentMode"in document&&11>=document.documentMode,wa=null,Vd=null,_l=null,Wd=!1;function nv(o,a,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Wd||wa==null||wa!==Me(d)||(d=wa,"selectionStart"in d&&Hd(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}),_l&&Tl(_l,d)||(_l=d,d=au(Vd,"onSelect"),0<d.length&&(a=new jd("onSelect","select",null,a,s),o.push({event:a,listeners:d}),a.target=wa)))}function nu(o,a){var s={};return s[o.toLowerCase()]=a.toLowerCase(),s["Webkit"+o]="webkit"+a,s["Moz"+o]="moz"+a,s}var xa={animationend:nu("Animation","AnimationEnd"),animationiteration:nu("Animation","AnimationIteration"),animationstart:nu("Animation","AnimationStart"),transitionend:nu("Transition","TransitionEnd")},Ud={},ov={};c&&(ov=document.createElement("div").style,"AnimationEvent"in window||(delete xa.animationend.animation,delete xa.animationiteration.animation,delete xa.animationstart.animation),"TransitionEvent"in window||delete xa.transitionend.transition);function ou(o){if(Ud[o])return Ud[o];if(!xa[o])return o;var a=xa[o],s;for(s in a)if(a.hasOwnProperty(s)&&s in ov)return Ud[o]=a[s];return o}var iv=ou("animationend"),av=ou("animationiteration"),lv=ou("animationstart"),sv=ou("transitionend"),uv=new Map,cv="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 Jo(o,a){uv.set(o,a),l(a,[o])}for(var qd=0;qd<cv.length;qd++){var Gd=cv[qd],bE=Gd.toLowerCase(),SE=Gd[0].toUpperCase()+Gd.slice(1);Jo(bE,"on"+SE)}Jo(iv,"onAnimationEnd"),Jo(av,"onAnimationIteration"),Jo(lv,"onAnimationStart"),Jo("dblclick","onDoubleClick"),Jo("focusin","onFocus"),Jo("focusout","onBlur"),Jo(sv,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("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 Ml="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(" "),wE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ml));function dv(o,a,s){var d=o.type||"unknown-event";o.currentTarget=s,Mt(d,a,void 0,o),o.currentTarget=null}function fv(o,a){a=(a&4)!==0;for(var s=0;s<o.length;s++){var d=o[s],g=d.event;d=d.listeners;e:{var b=void 0;if(a)for(var P=d.length-1;0<=P;P--){var z=d[P],W=z.instance,oe=z.currentTarget;if(z=z.listener,W!==b&&g.isPropagationStopped())break e;dv(g,z,oe),b=W}else for(P=0;P<d.length;P++){if(z=d[P],W=z.instance,oe=z.currentTarget,z=z.listener,W!==b&&g.isPropagationStopped())break e;dv(g,z,oe),b=W}}}if(ve)throw o=Ke,ve=!1,Ke=null,o}function Ht(o,a){var s=a[tf];s===void 0&&(s=a[tf]=new Set);var d=o+"__bubble";s.has(d)||(pv(a,o,2,!1),s.add(d))}function Kd(o,a,s){var d=0;a&&(d|=4),pv(s,o,d,a)}var iu="_reactListening"+Math.random().toString(36).slice(2);function Il(o){if(!o[iu]){o[iu]=!0,n.forEach(function(s){s!=="selectionchange"&&(wE.has(s)||Kd(s,!1,o),Kd(s,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[iu]||(a[iu]=!0,Kd("selectionchange",!1,a))}}function pv(o,a,s,d){switch(Ng(a)){case 1:var g=kC;break;case 4:g=NC;break;default:g=Md}s=g.bind(null,a,s,o),g=void 0,!Oe||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),d?g!==void 0?o.addEventListener(a,s,{capture:!0,passive:g}):o.addEventListener(a,s,!0):g!==void 0?o.addEventListener(a,s,{passive:g}):o.addEventListener(a,s,!1)}function Xd(o,a,s,d,g){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 z=d.stateNode.containerInfo;if(z===g||z.nodeType===8&&z.parentNode===g)break;if(P===4)for(P=d.return;P!==null;){var W=P.tag;if((W===3||W===4)&&(W=P.stateNode.containerInfo,W===g||W.nodeType===8&&W.parentNode===g))return;P=P.return}for(;z!==null;){if(P=Mi(z),P===null)return;if(W=P.tag,W===5||W===6){d=b=P;continue e}z=z.parentNode}}d=d.return}J(function(){var oe=b,he=Lr(s),me=[];e:{var pe=uv.get(o);if(pe!==void 0){var Ie=jd,ze=o;switch(o){case"keypress":if(Zs(s)===0)break e;case"keydown":case"keyup":Ie=YC;break;case"focusin":ze="focus",Ie=Ld;break;case"focusout":ze="blur",Ie=Ld;break;case"beforeblur":case"afterblur":Ie=Ld;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ie=zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ie=zC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ie=eE;break;case iv:case av:case lv:Ie=HC;break;case sv:Ie=rE;break;case"scroll":Ie=LC;break;case"wheel":Ie=oE;break;case"copy":case"cut":case"paste":Ie=WC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ie=Bg}var Be=(a&4)!==0,or=!Be&&o==="scroll",te=Be?pe!==null?pe+"Capture":null:pe;Be=[];for(var K=oe,re;K!==null;){re=K;var Se=re.stateNode;if(re.tag===5&&Se!==null&&(re=Se,te!==null&&(Se=fe(K,te),Se!=null&&Be.push(Fl(K,Se,re)))),or)break;K=K.return}0<Be.length&&(pe=new Ie(pe,ze,null,s,he),me.push({event:pe,listeners:Be}))}}if(!(a&7)){e:{if(pe=o==="mouseover"||o==="pointerover",Ie=o==="mouseout"||o==="pointerout",pe&&s!==_t&&(ze=s.relatedTarget||s.fromElement)&&(Mi(ze)||ze[_o]))break e;if((Ie||pe)&&(pe=he.window===he?he:(pe=he.ownerDocument)?pe.defaultView||pe.parentWindow:window,Ie?(ze=s.relatedTarget||s.toElement,Ie=oe,ze=ze?Mi(ze):null,ze!==null&&(or=ut(ze),ze!==or||ze.tag!==5&&ze.tag!==6)&&(ze=null)):(Ie=null,ze=oe),Ie!==ze)){if(Be=zg,Se="onMouseLeave",te="onMouseEnter",K="mouse",(o==="pointerout"||o==="pointerover")&&(Be=Bg,Se="onPointerLeave",te="onPointerEnter",K="pointer"),or=Ie==null?pe:Ra(Ie),re=ze==null?pe:Ra(ze),pe=new Be(Se,K+"leave",Ie,s,he),pe.target=or,pe.relatedTarget=re,Se=null,Mi(he)===oe&&(Be=new Be(te,K+"enter",ze,s,he),Be.target=re,Be.relatedTarget=or,Se=Be),or=Se,Ie&&ze)t:{for(Be=Ie,te=ze,K=0,re=Be;re;re=Ca(re))K++;for(re=0,Se=te;Se;Se=Ca(Se))re++;for(;0<K-re;)Be=Ca(Be),K--;for(;0<re-K;)te=Ca(te),re--;for(;K--;){if(Be===te||te!==null&&Be===te.alternate)break t;Be=Ca(Be),te=Ca(te)}Be=null}else Be=null;Ie!==null&&hv(me,pe,Ie,Be,!1),ze!==null&&or!==null&&hv(me,or,ze,Be,!0)}}e:{if(pe=oe?Ra(oe):window,Ie=pe.nodeName&&pe.nodeName.toLowerCase(),Ie==="select"||Ie==="input"&&pe.type==="file")var He=dE;else if(Gg(pe))if(Xg)He=mE;else{He=pE;var Qe=fE}else(Ie=pe.nodeName)&&Ie.toLowerCase()==="input"&&(pe.type==="checkbox"||pe.type==="radio")&&(He=hE);if(He&&(He=He(o,oe))){Kg(me,He,s,he);break e}Qe&&Qe(o,pe,oe),o==="focusout"&&(Qe=pe._wrapperState)&&Qe.controlled&&pe.type==="number"&&pt(pe,"number",pe.value)}switch(Qe=oe?Ra(oe):window,o){case"focusin":(Gg(Qe)||Qe.contentEditable==="true")&&(wa=Qe,Vd=oe,_l=null);break;case"focusout":_l=Vd=wa=null;break;case"mousedown":Wd=!0;break;case"contextmenu":case"mouseup":case"dragend":Wd=!1,nv(me,s,he);break;case"selectionchange":if(yE)break;case"keydown":case"keyup":nv(me,s,he)}var Ye;if(zd)e:{switch(o){case"compositionstart":var it="onCompositionStart";break e;case"compositionend":it="onCompositionEnd";break e;case"compositionupdate":it="onCompositionUpdate";break e}it=void 0}else Sa?Ug(o,s)&&(it="onCompositionEnd"):o==="keydown"&&s.keyCode===229&&(it="onCompositionStart");it&&(Hg&&s.locale!=="ko"&&(Sa||it!=="onCompositionStart"?it==="onCompositionEnd"&&Sa&&(Ye=Lg()):(Yo=he,Fd="value"in Yo?Yo.value:Yo.textContent,Sa=!0)),Qe=au(oe,it),0<Qe.length&&(it=new Dg(it,o,null,s,he),me.push({event:it,listeners:Qe}),Ye?it.data=Ye:(Ye=qg(s),Ye!==null&&(it.data=Ye)))),(Ye=aE?lE(o,s):sE(o,s))&&(oe=au(oe,"onBeforeInput"),0<oe.length&&(he=new Dg("onBeforeInput","beforeinput",null,s,he),me.push({event:he,listeners:oe}),he.data=Ye))}fv(me,a)})}function Fl(o,a,s){return{instance:o,listener:a,currentTarget:s}}function au(o,a){for(var s=a+"Capture",d=[];o!==null;){var g=o,b=g.stateNode;g.tag===5&&b!==null&&(g=b,b=fe(o,s),b!=null&&d.unshift(Fl(o,b,g)),b=fe(o,a),b!=null&&d.push(Fl(o,b,g))),o=o.return}return d}function Ca(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function hv(o,a,s,d,g){for(var b=a._reactName,P=[];s!==null&&s!==d;){var z=s,W=z.alternate,oe=z.stateNode;if(W!==null&&W===d)break;z.tag===5&&oe!==null&&(z=oe,g?(W=fe(s,b),W!=null&&P.unshift(Fl(s,W,z))):g||(W=fe(s,b),W!=null&&P.push(Fl(s,W,z)))),s=s.return}P.length!==0&&o.push({event:a,listeners:P})}var xE=/\r\n?/g,CE=/\u0000|\uFFFD/g;function mv(o){return(typeof o=="string"?o:""+o).replace(xE,`
`).replace(CE,"")}function lu(o,a,s){if(a=mv(a),mv(o)!==a&&s)throw Error(r(425))}function su(){}var Qd=null,Yd=null;function Jd(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 Zd=typeof setTimeout=="function"?setTimeout:void 0,EE=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,RE=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch($E)}:Zd;function $E(o){setTimeout(function(){throw o})}function ef(o,a){var s=a,d=0;do{var g=s.nextSibling;if(o.removeChild(s),g&&g.nodeType===8)if(s=g.data,s==="/$"){if(d===0){o.removeChild(g),go(a);return}d--}else s!=="$"&&s!=="$?"&&s!=="$!"||d++;s=g}while(s);go(a)}function Zo(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 vv(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var s=o.data;if(s==="$"||s==="$!"||s==="$?"){if(a===0)return o;a--}else s==="/$"&&a++}o=o.previousSibling}return null}var Ea=Math.random().toString(36).slice(2),vo="__reactFiber$"+Ea,jl="__reactProps$"+Ea,_o="__reactContainer$"+Ea,tf="__reactEvents$"+Ea,OE="__reactListeners$"+Ea,PE="__reactHandles$"+Ea;function Mi(o){var a=o[vo];if(a)return a;for(var s=o.parentNode;s;){if(a=s[_o]||s[vo]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(o=vv(o);o!==null;){if(s=o[vo])return s;o=vv(o)}return a}o=s,s=o.parentNode}return null}function kl(o){return o=o[vo]||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 uu(o){return o[jl]||null}var rf=[],$a=-1;function ei(o){return{current:o}}function Vt(o){0>$a||(o.current=rf[$a],rf[$a]=null,$a--)}function zt(o,a){$a++,rf[$a]=o.current,o.current=a}var ti={},_r=ei(ti),Yr=ei(!1),Ii=ti;function Oa(o,a){var s=o.type.contextTypes;if(!s)return ti;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===a)return d.__reactInternalMemoizedMaskedChildContext;var g={},b;for(b in s)g[b]=a[b];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=a,o.__reactInternalMemoizedMaskedChildContext=g),g}function Jr(o){return o=o.childContextTypes,o!=null}function cu(){Vt(Yr),Vt(_r)}function yv(o,a,s){if(_r.current!==ti)throw Error(r(168));zt(_r,a),zt(Yr,s)}function bv(o,a,s){var d=o.stateNode;if(a=a.childContextTypes,typeof d.getChildContext!="function")return s;d=d.getChildContext();for(var g in d)if(!(g in a))throw Error(r(108,se(o)||"Unknown",g));return A({},s,d)}function du(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||ti,Ii=_r.current,zt(_r,o),zt(Yr,Yr.current),!0}function Sv(o,a,s){var d=o.stateNode;if(!d)throw Error(r(169));s?(o=bv(o,a,Ii),d.__reactInternalMemoizedMergedChildContext=o,Vt(Yr),Vt(_r),zt(_r,o)):Vt(Yr),zt(Yr,s)}var Mo=null,fu=!1,nf=!1;function wv(o){Mo===null?Mo=[o]:Mo.push(o)}function TE(o){fu=!0,wv(o)}function ri(){if(!nf&&Mo!==null){nf=!0;var o=0,a=Ct;try{var s=Mo;for(Ct=1;o<s.length;o++){var d=s[o];do d=d(!0);while(d!==null)}Mo=null,fu=!1}catch(g){throw Mo!==null&&(Mo=Mo.slice(o+1)),vr(xt,ri),g}finally{Ct=a,nf=!1}}return null}var Pa=[],Ta=0,pu=null,hu=0,Pn=[],Tn=0,Fi=null,Io=1,Fo="";function ji(o,a){Pa[Ta++]=hu,Pa[Ta++]=pu,pu=o,hu=a}function xv(o,a,s){Pn[Tn++]=Io,Pn[Tn++]=Fo,Pn[Tn++]=Fi,Fi=o;var d=Io;o=Fo;var g=32-Tr(d)-1;d&=~(1<<g),s+=1;var b=32-Tr(a)+g;if(30<b){var P=g-g%5;b=(d&(1<<P)-1).toString(32),d>>=P,g-=P,Io=1<<32-Tr(a)+g|s<<g|d,Fo=b+o}else Io=1<<b|s<<g|d,Fo=o}function of(o){o.return!==null&&(ji(o,1),xv(o,1,0))}function af(o){for(;o===pu;)pu=Pa[--Ta],Pa[Ta]=null,hu=Pa[--Ta],Pa[Ta]=null;for(;o===Fi;)Fi=Pn[--Tn],Pn[Tn]=null,Fo=Pn[--Tn],Pn[Tn]=null,Io=Pn[--Tn],Pn[Tn]=null}var dn=null,fn=null,Xt=!1,Xn=null;function Cv(o,a){var s=Fn(5,null,null,0);s.elementType="DELETED",s.stateNode=a,s.return=o,a=o.deletions,a===null?(o.deletions=[s],o.flags|=16):a.push(s)}function Ev(o,a){switch(o.tag){case 5:var s=o.type;return a=a.nodeType!==1||s.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(o.stateNode=a,dn=o,fn=Zo(a.firstChild),!0):!1;case 6:return a=o.pendingProps===""||a.nodeType!==3?null:a,a!==null?(o.stateNode=a,dn=o,fn=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(s=Fi!==null?{id:Io,overflow:Fo}:null,o.memoizedState={dehydrated:a,treeContext:s,retryLane:1073741824},s=Fn(18,null,null,0),s.stateNode=a,s.return=o,o.child=s,dn=o,fn=null,!0):!1;default:return!1}}function lf(o){return(o.mode&1)!==0&&(o.flags&128)===0}function sf(o){if(Xt){var a=fn;if(a){var s=a;if(!Ev(o,a)){if(lf(o))throw Error(r(418));a=Zo(s.nextSibling);var d=dn;a&&Ev(o,a)?Cv(d,s):(o.flags=o.flags&-4097|2,Xt=!1,dn=o)}}else{if(lf(o))throw Error(r(418));o.flags=o.flags&-4097|2,Xt=!1,dn=o}}}function Rv(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;dn=o}function mu(o){if(o!==dn)return!1;if(!Xt)return Rv(o),Xt=!0,!1;var a;if((a=o.tag!==3)&&!(a=o.tag!==5)&&(a=o.type,a=a!=="head"&&a!=="body"&&!Jd(o.type,o.memoizedProps)),a&&(a=fn)){if(lf(o))throw $v(),Error(r(418));for(;a;)Cv(o,a),a=Zo(a.nextSibling)}if(Rv(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 s=o.data;if(s==="/$"){if(a===0){fn=Zo(o.nextSibling);break e}a--}else s!=="$"&&s!=="$!"&&s!=="$?"||a++}o=o.nextSibling}fn=null}}else fn=dn?Zo(o.stateNode.nextSibling):null;return!0}function $v(){for(var o=fn;o;)o=Zo(o.nextSibling)}function _a(){fn=dn=null,Xt=!1}function uf(o){Xn===null?Xn=[o]:Xn.push(o)}var _E=M.ReactCurrentBatchConfig;function Nl(o,a,s){if(o=s.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var d=s.stateNode}if(!d)throw Error(r(147,o));var g=d,b=""+o;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===b?a.ref:(a=function(P){var z=g.refs;P===null?delete z[b]:z[b]=P},a._stringRef=b,a)}if(typeof o!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,o))}return o}function gu(o,a){throw o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o))}function Ov(o){var a=o._init;return a(o._payload)}function Pv(o){function a(te,K){if(o){var re=te.deletions;re===null?(te.deletions=[K],te.flags|=16):re.push(K)}}function s(te,K){if(!o)return null;for(;K!==null;)a(te,K),K=K.sibling;return null}function d(te,K){for(te=new Map;K!==null;)K.key!==null?te.set(K.key,K):te.set(K.index,K),K=K.sibling;return te}function g(te,K){return te=ci(te,K),te.index=0,te.sibling=null,te}function b(te,K,re){return te.index=re,o?(re=te.alternate,re!==null?(re=re.index,re<K?(te.flags|=2,K):re):(te.flags|=2,K)):(te.flags|=1048576,K)}function P(te){return o&&te.alternate===null&&(te.flags|=2),te}function z(te,K,re,Se){return K===null||K.tag!==6?(K=ep(re,te.mode,Se),K.return=te,K):(K=g(K,re),K.return=te,K)}function W(te,K,re,Se){var He=re.type;return He===_?he(te,K,re.props.children,Se,re.key):K!==null&&(K.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===D&&Ov(He)===K.type)?(Se=g(K,re.props),Se.ref=Nl(te,K,re),Se.return=te,Se):(Se=Du(re.type,re.key,re.props,null,te.mode,Se),Se.ref=Nl(te,K,re),Se.return=te,Se)}function oe(te,K,re,Se){return K===null||K.tag!==4||K.stateNode.containerInfo!==re.containerInfo||K.stateNode.implementation!==re.implementation?(K=tp(re,te.mode,Se),K.return=te,K):(K=g(K,re.children||[]),K.return=te,K)}function he(te,K,re,Se,He){return K===null||K.tag!==7?(K=Hi(re,te.mode,Se,He),K.return=te,K):(K=g(K,re),K.return=te,K)}function me(te,K,re){if(typeof K=="string"&&K!==""||typeof K=="number")return K=ep(""+K,te.mode,re),K.return=te,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case R:return re=Du(K.type,K.key,K.props,null,te.mode,re),re.ref=Nl(te,null,K),re.return=te,re;case T:return K=tp(K,te.mode,re),K.return=te,K;case D:var Se=K._init;return me(te,Se(K._payload),re)}if(at(K)||H(K))return K=Hi(K,te.mode,re,null),K.return=te,K;gu(te,K)}return null}function pe(te,K,re,Se){var He=K!==null?K.key:null;if(typeof re=="string"&&re!==""||typeof re=="number")return He!==null?null:z(te,K,""+re,Se);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case R:return re.key===He?W(te,K,re,Se):null;case T:return re.key===He?oe(te,K,re,Se):null;case D:return He=re._init,pe(te,K,He(re._payload),Se)}if(at(re)||H(re))return He!==null?null:he(te,K,re,Se,null);gu(te,re)}return null}function Ie(te,K,re,Se,He){if(typeof Se=="string"&&Se!==""||typeof Se=="number")return te=te.get(re)||null,z(K,te,""+Se,He);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case R:return te=te.get(Se.key===null?re:Se.key)||null,W(K,te,Se,He);case T:return te=te.get(Se.key===null?re:Se.key)||null,oe(K,te,Se,He);case D:var Qe=Se._init;return Ie(te,K,re,Qe(Se._payload),He)}if(at(Se)||H(Se))return te=te.get(re)||null,he(K,te,Se,He,null);gu(K,Se)}return null}function ze(te,K,re,Se){for(var He=null,Qe=null,Ye=K,it=K=0,wr=null;Ye!==null&&it<re.length;it++){Ye.index>it?(wr=Ye,Ye=null):wr=Ye.sibling;var $t=pe(te,Ye,re[it],Se);if($t===null){Ye===null&&(Ye=wr);break}o&&Ye&&$t.alternate===null&&a(te,Ye),K=b($t,K,it),Qe===null?He=$t:Qe.sibling=$t,Qe=$t,Ye=wr}if(it===re.length)return s(te,Ye),Xt&&ji(te,it),He;if(Ye===null){for(;it<re.length;it++)Ye=me(te,re[it],Se),Ye!==null&&(K=b(Ye,K,it),Qe===null?He=Ye:Qe.sibling=Ye,Qe=Ye);return Xt&&ji(te,it),He}for(Ye=d(te,Ye);it<re.length;it++)wr=Ie(Ye,te,it,re[it],Se),wr!==null&&(o&&wr.alternate!==null&&Ye.delete(wr.key===null?it:wr.key),K=b(wr,K,it),Qe===null?He=wr:Qe.sibling=wr,Qe=wr);return o&&Ye.forEach(function(di){return a(te,di)}),Xt&&ji(te,it),He}function Be(te,K,re,Se){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=K,it=K=0,wr=null,$t=re.next();Ye!==null&&!$t.done;it++,$t=re.next()){Ye.index>it?(wr=Ye,Ye=null):wr=Ye.sibling;var di=pe(te,Ye,$t.value,Se);if(di===null){Ye===null&&(Ye=wr);break}o&&Ye&&di.alternate===null&&a(te,Ye),K=b(di,K,it),Qe===null?He=di:Qe.sibling=di,Qe=di,Ye=wr}if($t.done)return s(te,Ye),Xt&&ji(te,it),He;if(Ye===null){for(;!$t.done;it++,$t=re.next())$t=me(te,$t.value,Se),$t!==null&&(K=b($t,K,it),Qe===null?He=$t:Qe.sibling=$t,Qe=$t);return Xt&&ji(te,it),He}for(Ye=d(te,Ye);!$t.done;it++,$t=re.next())$t=Ie(Ye,te,it,$t.value,Se),$t!==null&&(o&&$t.alternate!==null&&Ye.delete($t.key===null?it:$t.key),K=b($t,K,it),Qe===null?He=$t:Qe.sibling=$t,Qe=$t);return o&&Ye.forEach(function(u2){return a(te,u2)}),Xt&&ji(te,it),He}function or(te,K,re,Se){if(typeof re=="object"&&re!==null&&re.type===_&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case R:e:{for(var He=re.key,Qe=K;Qe!==null;){if(Qe.key===He){if(He=re.type,He===_){if(Qe.tag===7){s(te,Qe.sibling),K=g(Qe,re.props.children),K.return=te,te=K;break e}}else if(Qe.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===D&&Ov(He)===Qe.type){s(te,Qe.sibling),K=g(Qe,re.props),K.ref=Nl(te,Qe,re),K.return=te,te=K;break e}s(te,Qe);break}else a(te,Qe);Qe=Qe.sibling}re.type===_?(K=Hi(re.props.children,te.mode,Se,re.key),K.return=te,te=K):(Se=Du(re.type,re.key,re.props,null,te.mode,Se),Se.ref=Nl(te,K,re),Se.return=te,te=Se)}return P(te);case T:e:{for(Qe=re.key;K!==null;){if(K.key===Qe)if(K.tag===4&&K.stateNode.containerInfo===re.containerInfo&&K.stateNode.implementation===re.implementation){s(te,K.sibling),K=g(K,re.children||[]),K.return=te,te=K;break e}else{s(te,K);break}else a(te,K);K=K.sibling}K=tp(re,te.mode,Se),K.return=te,te=K}return P(te);case D:return Qe=re._init,or(te,K,Qe(re._payload),Se)}if(at(re))return ze(te,K,re,Se);if(H(re))return Be(te,K,re,Se);gu(te,re)}return typeof re=="string"&&re!==""||typeof re=="number"?(re=""+re,K!==null&&K.tag===6?(s(te,K.sibling),K=g(K,re),K.return=te,te=K):(s(te,K),K=ep(re,te.mode,Se),K.return=te,te=K),P(te)):s(te,K)}return or}var Ma=Pv(!0),Tv=Pv(!1),vu=ei(null),yu=null,Ia=null,cf=null;function df(){cf=Ia=yu=null}function ff(o){var a=vu.current;Vt(vu),o._currentValue=a}function pf(o,a,s){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===s)break;o=o.return}}function Fa(o,a){yu=o,cf=Ia=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&a&&(Zr=!0),o.firstContext=null)}function _n(o){var a=o._currentValue;if(cf!==o)if(o={context:o,memoizedValue:a,next:null},Ia===null){if(yu===null)throw Error(r(308));Ia=o,yu.dependencies={lanes:0,firstContext:o}}else Ia=Ia.next=o;return a}var ki=null;function hf(o){ki===null?ki=[o]:ki.push(o)}function _v(o,a,s,d){var g=a.interleaved;return g===null?(s.next=s,hf(a)):(s.next=g.next,g.next=s),a.interleaved=s,jo(o,d)}function jo(o,a){o.lanes|=a;var s=o.alternate;for(s!==null&&(s.lanes|=a),s=o,o=o.return;o!==null;)o.childLanes|=a,s=o.alternate,s!==null&&(s.childLanes|=a),s=o,o=o.return;return s.tag===3?s.stateNode:null}var ni=!1;function mf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mv(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 ko(o,a){return{eventTime:o,lane:a,tag:0,payload:null,callback:null,next:null}}function oi(o,a,s){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,Et&2){var g=d.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a,jo(o,s)}return g=d.interleaved,g===null?(a.next=a,hf(d)):(a.next=g.next,g.next=a),d.interleaved=a,jo(o,s)}function bu(o,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194240)!==0)){var d=a.lanes;d&=o.pendingLanes,s|=d,a.lanes=s,Ti(o,s)}}function Iv(o,a){var s=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var g=null,b=null;if(s=s.firstBaseUpdate,s!==null){do{var P={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};b===null?g=b=P:b=b.next=P,s=s.next}while(s!==null);b===null?g=b=a:b=b.next=a}else g=b=a;s={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:d.shared,effects:d.effects},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=a:o.next=a,s.lastBaseUpdate=a}function Su(o,a,s,d){var g=o.updateQueue;ni=!1;var b=g.firstBaseUpdate,P=g.lastBaseUpdate,z=g.shared.pending;if(z!==null){g.shared.pending=null;var W=z,oe=W.next;W.next=null,P===null?b=oe:P.next=oe,P=W;var he=o.alternate;he!==null&&(he=he.updateQueue,z=he.lastBaseUpdate,z!==P&&(z===null?he.firstBaseUpdate=oe:z.next=oe,he.lastBaseUpdate=W))}if(b!==null){var me=g.baseState;P=0,he=oe=W=null,z=b;do{var pe=z.lane,Ie=z.eventTime;if((d&pe)===pe){he!==null&&(he=he.next={eventTime:Ie,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});e:{var ze=o,Be=z;switch(pe=a,Ie=s,Be.tag){case 1:if(ze=Be.payload,typeof ze=="function"){me=ze.call(Ie,me,pe);break e}me=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Be.payload,pe=typeof ze=="function"?ze.call(Ie,me,pe):ze,pe==null)break e;me=A({},me,pe);break e;case 2:ni=!0}}z.callback!==null&&z.lane!==0&&(o.flags|=64,pe=g.effects,pe===null?g.effects=[z]:pe.push(z))}else Ie={eventTime:Ie,lane:pe,tag:z.tag,payload:z.payload,callback:z.callback,next:null},he===null?(oe=he=Ie,W=me):he=he.next=Ie,P|=pe;if(z=z.next,z===null){if(z=g.shared.pending,z===null)break;pe=z,z=pe.next,pe.next=null,g.lastBaseUpdate=pe,g.shared.pending=null}}while(!0);if(he===null&&(W=me),g.baseState=W,g.firstBaseUpdate=oe,g.lastBaseUpdate=he,a=g.shared.interleaved,a!==null){g=a;do P|=g.lane,g=g.next;while(g!==a)}else b===null&&(g.shared.lanes=0);Ai|=P,o.lanes=P,o.memoizedState=me}}function Fv(o,a,s){if(o=a.effects,a.effects=null,o!==null)for(a=0;a<o.length;a++){var d=o[a],g=d.callback;if(g!==null){if(d.callback=null,d=s,typeof g!="function")throw Error(r(191,g));g.call(d)}}}var Ll={},yo=ei(Ll),Al=ei(Ll),zl=ei(Ll);function Ni(o){if(o===Ll)throw Error(r(174));return o}function gf(o,a){switch(zt(zl,a),zt(Al,o),zt(yo,Ll),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)}Vt(yo),zt(yo,a)}function ja(){Vt(yo),Vt(Al),Vt(zl)}function jv(o){Ni(zl.current);var a=Ni(yo.current),s=Pt(a,o.type);a!==s&&(zt(Al,o),zt(yo,s))}function vf(o){Al.current===o&&(Vt(yo),Vt(Al))}var Jt=ei(0);function wu(o){for(var a=o;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.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 yf=[];function bf(){for(var o=0;o<yf.length;o++)yf[o]._workInProgressVersionPrimary=null;yf.length=0}var xu=M.ReactCurrentDispatcher,Sf=M.ReactCurrentBatchConfig,Li=0,Zt=null,fr=null,br=null,Cu=!1,Dl=!1,Bl=0,ME=0;function Mr(){throw Error(r(321))}function wf(o,a){if(a===null)return!1;for(var s=0;s<a.length&&s<o.length;s++)if(!Kn(o[s],a[s]))return!1;return!0}function xf(o,a,s,d,g,b){if(Li=b,Zt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,xu.current=o===null||o.memoizedState===null?kE:NE,o=s(d,g),Dl){b=0;do{if(Dl=!1,Bl=0,25<=b)throw Error(r(301));b+=1,br=fr=null,a.updateQueue=null,xu.current=LE,o=s(d,g)}while(Dl)}if(xu.current=$u,a=fr!==null&&fr.next!==null,Li=0,br=fr=Zt=null,Cu=!1,a)throw Error(r(300));return o}function Cf(){var o=Bl!==0;return Bl=0,o}function bo(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return br===null?Zt.memoizedState=br=o:br=br.next=o,br}function Mn(){if(fr===null){var o=Zt.alternate;o=o!==null?o.memoizedState:null}else o=fr.next;var a=br===null?Zt.memoizedState:br.next;if(a!==null)br=a,fr=o;else{if(o===null)throw Error(r(310));fr=o,o={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},br===null?Zt.memoizedState=br=o:br=br.next=o}return br}function Hl(o,a){return typeof a=="function"?a(o):a}function Ef(o){var a=Mn(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=o;var d=fr,g=d.baseQueue,b=s.pending;if(b!==null){if(g!==null){var P=g.next;g.next=b.next,b.next=P}d.baseQueue=g=b,s.pending=null}if(g!==null){b=g.next,d=d.baseState;var z=P=null,W=null,oe=b;do{var he=oe.lane;if((Li&he)===he)W!==null&&(W=W.next={lane:0,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),d=oe.hasEagerState?oe.eagerState:o(d,oe.action);else{var me={lane:he,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null};W===null?(z=W=me,P=d):W=W.next=me,Zt.lanes|=he,Ai|=he}oe=oe.next}while(oe!==null&&oe!==b);W===null?P=d:W.next=z,Kn(d,a.memoizedState)||(Zr=!0),a.memoizedState=d,a.baseState=P,a.baseQueue=W,s.lastRenderedState=d}if(o=s.interleaved,o!==null){g=o;do b=g.lane,Zt.lanes|=b,Ai|=b,g=g.next;while(g!==o)}else g===null&&(s.lanes=0);return[a.memoizedState,s.dispatch]}function Rf(o){var a=Mn(),s=a.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=o;var d=s.dispatch,g=s.pending,b=a.memoizedState;if(g!==null){s.pending=null;var P=g=g.next;do b=o(b,P.action),P=P.next;while(P!==g);Kn(b,a.memoizedState)||(Zr=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),s.lastRenderedState=b}return[b,d]}function kv(){}function Nv(o,a){var s=Zt,d=Mn(),g=a(),b=!Kn(d.memoizedState,g);if(b&&(d.memoizedState=g,Zr=!0),d=d.queue,$f(zv.bind(null,s,d,o),[o]),d.getSnapshot!==a||b||br!==null&&br.memoizedState.tag&1){if(s.flags|=2048,Vl(9,Av.bind(null,s,d,g,a),void 0,null),Sr===null)throw Error(r(349));Li&30||Lv(s,a,g)}return g}function Lv(o,a,s){o.flags|=16384,o={getSnapshot:a,value:s},a=Zt.updateQueue,a===null?(a={lastEffect:null,stores:null},Zt.updateQueue=a,a.stores=[o]):(s=a.stores,s===null?a.stores=[o]:s.push(o))}function Av(o,a,s,d){a.value=s,a.getSnapshot=d,Dv(a)&&Bv(o)}function zv(o,a,s){return s(function(){Dv(a)&&Bv(o)})}function Dv(o){var a=o.getSnapshot;o=o.value;try{var s=a();return!Kn(o,s)}catch{return!0}}function Bv(o){var a=jo(o,1);a!==null&&Zn(a,o,1,-1)}function Hv(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:Hl,lastRenderedState:o},a.queue=o,o=o.dispatch=jE.bind(null,Zt,o),[a.memoizedState,o]}function Vl(o,a,s,d){return o={tag:o,create:a,destroy:s,deps:d,next:null},a=Zt.updateQueue,a===null?(a={lastEffect:null,stores:null},Zt.updateQueue=a,a.lastEffect=o.next=o):(s=a.lastEffect,s===null?a.lastEffect=o.next=o:(d=s.next,s.next=o,o.next=d,a.lastEffect=o)),o}function Vv(){return Mn().memoizedState}function Eu(o,a,s,d){var g=bo();Zt.flags|=o,g.memoizedState=Vl(1|a,s,void 0,d===void 0?null:d)}function Ru(o,a,s,d){var g=Mn();d=d===void 0?null:d;var b=void 0;if(fr!==null){var P=fr.memoizedState;if(b=P.destroy,d!==null&&wf(d,P.deps)){g.memoizedState=Vl(a,s,b,d);return}}Zt.flags|=o,g.memoizedState=Vl(1|a,s,b,d)}function Wv(o,a){return Eu(8390656,8,o,a)}function $f(o,a){return Ru(2048,8,o,a)}function Uv(o,a){return Ru(4,2,o,a)}function qv(o,a){return Ru(4,4,o,a)}function Gv(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 Kv(o,a,s){return s=s!=null?s.concat([o]):null,Ru(4,4,Gv.bind(null,a,o),s)}function Of(){}function Xv(o,a){var s=Mn();a=a===void 0?null:a;var d=s.memoizedState;return d!==null&&a!==null&&wf(a,d[1])?d[0]:(s.memoizedState=[o,a],o)}function Qv(o,a){var s=Mn();a=a===void 0?null:a;var d=s.memoizedState;return d!==null&&a!==null&&wf(a,d[1])?d[0]:(o=o(),s.memoizedState=[o,a],o)}function Yv(o,a,s){return Li&21?(Kn(s,a)||(s=pa(),Zt.lanes|=s,Ai|=s,o.baseState=!0),a):(o.baseState&&(o.baseState=!1,Zr=!0),o.memoizedState=s)}function IE(o,a){var s=Ct;Ct=s!==0&&4>s?s:4,o(!0);var d=Sf.transition;Sf.transition={};try{o(!1),a()}finally{Ct=s,Sf.transition=d}}function Jv(){return Mn().memoizedState}function FE(o,a,s){var d=si(o);if(s={lane:d,action:s,hasEagerState:!1,eagerState:null,next:null},Zv(o))e0(a,s);else if(s=_v(o,a,s,d),s!==null){var g=qr();Zn(s,o,d,g),t0(s,a,d)}}function jE(o,a,s){var d=si(o),g={lane:d,action:s,hasEagerState:!1,eagerState:null,next:null};if(Zv(o))e0(a,g);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var P=a.lastRenderedState,z=b(P,s);if(g.hasEagerState=!0,g.eagerState=z,Kn(z,P)){var W=a.interleaved;W===null?(g.next=g,hf(a)):(g.next=W.next,W.next=g),a.interleaved=g;return}}catch{}finally{}s=_v(o,a,g,d),s!==null&&(g=qr(),Zn(s,o,d,g),t0(s,a,d))}}function Zv(o){var a=o.alternate;return o===Zt||a!==null&&a===Zt}function e0(o,a){Dl=Cu=!0;var s=o.pending;s===null?a.next=a:(a.next=s.next,s.next=a),o.pending=a}function t0(o,a,s){if(s&4194240){var d=a.lanes;d&=o.pendingLanes,s|=d,a.lanes=s,Ti(o,s)}}var $u={readContext:_n,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},kE={readContext:_n,useCallback:function(o,a){return bo().memoizedState=[o,a===void 0?null:a],o},useContext:_n,useEffect:Wv,useImperativeHandle:function(o,a,s){return s=s!=null?s.concat([o]):null,Eu(4194308,4,Gv.bind(null,a,o),s)},useLayoutEffect:function(o,a){return Eu(4194308,4,o,a)},useInsertionEffect:function(o,a){return Eu(4,2,o,a)},useMemo:function(o,a){var s=bo();return a=a===void 0?null:a,o=o(),s.memoizedState=[o,a],o},useReducer:function(o,a,s){var d=bo();return a=s!==void 0?s(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=FE.bind(null,Zt,o),[d.memoizedState,o]},useRef:function(o){var a=bo();return o={current:o},a.memoizedState=o},useState:Hv,useDebugValue:Of,useDeferredValue:function(o){return bo().memoizedState=o},useTransition:function(){var o=Hv(!1),a=o[0];return o=IE.bind(null,o[1]),bo().memoizedState=o,[a,o]},useMutableSource:function(){},useSyncExternalStore:function(o,a,s){var d=Zt,g=bo();if(Xt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=a(),Sr===null)throw Error(r(349));Li&30||Lv(d,a,s)}g.memoizedState=s;var b={value:s,getSnapshot:a};return g.queue=b,Wv(zv.bind(null,d,b,o),[o]),d.flags|=2048,Vl(9,Av.bind(null,d,b,s,a),void 0,null),s},useId:function(){var o=bo(),a=Sr.identifierPrefix;if(Xt){var s=Fo,d=Io;s=(d&~(1<<32-Tr(d)-1)).toString(32)+s,a=":"+a+"R"+s,s=Bl++,0<s&&(a+="H"+s.toString(32)),a+=":"}else s=ME++,a=":"+a+"r"+s.toString(32)+":";return o.memoizedState=a},unstable_isNewReconciler:!1},NE={readContext:_n,useCallback:Xv,useContext:_n,useEffect:$f,useImperativeHandle:Kv,useInsertionEffect:Uv,useLayoutEffect:qv,useMemo:Qv,useReducer:Ef,useRef:Vv,useState:function(){return Ef(Hl)},useDebugValue:Of,useDeferredValue:function(o){var a=Mn();return Yv(a,fr.memoizedState,o)},useTransition:function(){var o=Ef(Hl)[0],a=Mn().memoizedState;return[o,a]},useMutableSource:kv,useSyncExternalStore:Nv,useId:Jv,unstable_isNewReconciler:!1},LE={readContext:_n,useCallback:Xv,useContext:_n,useEffect:$f,useImperativeHandle:Kv,useInsertionEffect:Uv,useLayoutEffect:qv,useMemo:Qv,useReducer:Rf,useRef:Vv,useState:function(){return Rf(Hl)},useDebugValue:Of,useDeferredValue:function(o){var a=Mn();return fr===null?a.memoizedState=o:Yv(a,fr.memoizedState,o)},useTransition:function(){var o=Rf(Hl)[0],a=Mn().memoizedState;return[o,a]},useMutableSource:kv,useSyncExternalStore:Nv,useId:Jv,unstable_isNewReconciler:!1};function Qn(o,a){if(o&&o.defaultProps){a=A({},a),o=o.defaultProps;for(var s in o)a[s]===void 0&&(a[s]=o[s]);return a}return a}function Pf(o,a,s,d){a=o.memoizedState,s=s(d,a),s=s==null?a:A({},a,s),o.memoizedState=s,o.lanes===0&&(o.updateQueue.baseState=s)}var Ou={isMounted:function(o){return(o=o._reactInternals)?ut(o)===o:!1},enqueueSetState:function(o,a,s){o=o._reactInternals;var d=qr(),g=si(o),b=ko(d,g);b.payload=a,s!=null&&(b.callback=s),a=oi(o,b,g),a!==null&&(Zn(a,o,g,d),bu(a,o,g))},enqueueReplaceState:function(o,a,s){o=o._reactInternals;var d=qr(),g=si(o),b=ko(d,g);b.tag=1,b.payload=a,s!=null&&(b.callback=s),a=oi(o,b,g),a!==null&&(Zn(a,o,g,d),bu(a,o,g))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var s=qr(),d=si(o),g=ko(s,d);g.tag=2,a!=null&&(g.callback=a),a=oi(o,g,d),a!==null&&(Zn(a,o,d,s),bu(a,o,d))}};function r0(o,a,s,d,g,b,P){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,b,P):a.prototype&&a.prototype.isPureReactComponent?!Tl(s,d)||!Tl(g,b):!0}function n0(o,a,s){var d=!1,g=ti,b=a.contextType;return typeof b=="object"&&b!==null?b=_n(b):(g=Jr(a)?Ii:_r.current,d=a.contextTypes,b=(d=d!=null)?Oa(o,g):ti),a=new a(s,b),o.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ou,o.stateNode=a,a._reactInternals=o,d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=g,o.__reactInternalMemoizedMaskedChildContext=b),a}function o0(o,a,s,d){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,d),a.state!==o&&Ou.enqueueReplaceState(a,a.state,null)}function Tf(o,a,s,d){var g=o.stateNode;g.props=s,g.state=o.memoizedState,g.refs={},mf(o);var b=a.contextType;typeof b=="object"&&b!==null?g.context=_n(b):(b=Jr(a)?Ii:_r.current,g.context=Oa(o,b)),g.state=o.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Pf(o,a,b,s),g.state=o.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(a=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),a!==g.state&&Ou.enqueueReplaceState(g,g.state,null),Su(o,s,g,d),g.state=o.memoizedState),typeof g.componentDidMount=="function"&&(o.flags|=4194308)}function ka(o,a){try{var s="",d=a;do s+=ae(d),d=d.return;while(d);var g=s}catch(b){g=`
Error generating stack: `+b.message+`
`+b.stack}return{value:o,source:a,stack:g,digest:null}}function _f(o,a,s){return{value:o,source:null,stack:s??null,digest:a??null}}function Mf(o,a){try{console.error(a.value)}catch(s){setTimeout(function(){throw s})}}var AE=typeof WeakMap=="function"?WeakMap:Map;function i0(o,a,s){s=ko(-1,s),s.tag=3,s.payload={element:null};var d=a.value;return s.callback=function(){ju||(ju=!0,qf=d),Mf(o,a)},s}function a0(o,a,s){s=ko(-1,s),s.tag=3;var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var g=a.value;s.payload=function(){return d(g)},s.callback=function(){Mf(o,a)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(s.callback=function(){Mf(o,a),typeof d!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var P=a.stack;this.componentDidCatch(a.value,{componentStack:P!==null?P:""})}),s}function l0(o,a,s){var d=o.pingCache;if(d===null){d=o.pingCache=new AE;var g=new Set;d.set(a,g)}else g=d.get(a),g===void 0&&(g=new Set,d.set(a,g));g.has(s)||(g.add(s),o=JE.bind(null,o,a,s),a.then(o,o))}function s0(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 u0(o,a,s,d,g){return o.mode&1?(o.flags|=65536,o.lanes=g,o):(o===a?o.flags|=65536:(o.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(a=ko(-1,1),a.tag=2,oi(s,a,1))),s.lanes|=1),o)}var zE=M.ReactCurrentOwner,Zr=!1;function Ur(o,a,s,d){a.child=o===null?Tv(a,null,s,d):Ma(a,o.child,s,d)}function c0(o,a,s,d,g){s=s.render;var b=a.ref;return Fa(a,g),d=xf(o,a,s,d,b,g),s=Cf(),o!==null&&!Zr?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~g,No(o,a,g)):(Xt&&s&&of(a),a.flags|=1,Ur(o,a,d,g),a.child)}function d0(o,a,s,d,g){if(o===null){var b=s.type;return typeof b=="function"&&!Zf(b)&&b.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(a.tag=15,a.type=b,f0(o,a,b,d,g)):(o=Du(s.type,null,d,a,a.mode,g),o.ref=a.ref,o.return=a,a.child=o)}if(b=o.child,!(o.lanes&g)){var P=b.memoizedProps;if(s=s.compare,s=s!==null?s:Tl,s(P,d)&&o.ref===a.ref)return No(o,a,g)}return a.flags|=1,o=ci(b,d),o.ref=a.ref,o.return=a,a.child=o}function f0(o,a,s,d,g){if(o!==null){var b=o.memoizedProps;if(Tl(b,d)&&o.ref===a.ref)if(Zr=!1,a.pendingProps=d=b,(o.lanes&g)!==0)o.flags&131072&&(Zr=!0);else return a.lanes=o.lanes,No(o,a,g)}return If(o,a,s,d,g)}function p0(o,a,s){var d=a.pendingProps,g=d.children,b=o!==null?o.memoizedState:null;if(d.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},zt(La,pn),pn|=s;else{if(!(s&1073741824))return o=b!==null?b.baseLanes|s:s,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:o,cachePool:null,transitions:null},a.updateQueue=null,zt(La,pn),pn|=o,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=b!==null?b.baseLanes:s,zt(La,pn),pn|=d}else b!==null?(d=b.baseLanes|s,a.memoizedState=null):d=s,zt(La,pn),pn|=d;return Ur(o,a,g,s),a.child}function h0(o,a){var s=a.ref;(o===null&&s!==null||o!==null&&o.ref!==s)&&(a.flags|=512,a.flags|=2097152)}function If(o,a,s,d,g){var b=Jr(s)?Ii:_r.current;return b=Oa(a,b),Fa(a,g),s=xf(o,a,s,d,b,g),d=Cf(),o!==null&&!Zr?(a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~g,No(o,a,g)):(Xt&&d&&of(a),a.flags|=1,Ur(o,a,s,g),a.child)}function m0(o,a,s,d,g){if(Jr(s)){var b=!0;du(a)}else b=!1;if(Fa(a,g),a.stateNode===null)Tu(o,a),n0(a,s,d),Tf(a,s,d,g),d=!0;else if(o===null){var P=a.stateNode,z=a.memoizedProps;P.props=z;var W=P.context,oe=s.contextType;typeof oe=="object"&&oe!==null?oe=_n(oe):(oe=Jr(s)?Ii:_r.current,oe=Oa(a,oe));var he=s.getDerivedStateFromProps,me=typeof he=="function"||typeof P.getSnapshotBeforeUpdate=="function";me||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(z!==d||W!==oe)&&o0(a,P,d,oe),ni=!1;var pe=a.memoizedState;P.state=pe,Su(a,d,P,g),W=a.memoizedState,z!==d||pe!==W||Yr.current||ni?(typeof he=="function"&&(Pf(a,s,he,d),W=a.memoizedState),(z=ni||r0(a,s,z,d,pe,W,oe))?(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=W),P.props=d,P.state=W,P.context=oe,d=z):(typeof P.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{P=a.stateNode,Mv(o,a),z=a.memoizedProps,oe=a.type===a.elementType?z:Qn(a.type,z),P.props=oe,me=a.pendingProps,pe=P.context,W=s.contextType,typeof W=="object"&&W!==null?W=_n(W):(W=Jr(s)?Ii:_r.current,W=Oa(a,W));var Ie=s.getDerivedStateFromProps;(he=typeof Ie=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(z!==me||pe!==W)&&o0(a,P,d,W),ni=!1,pe=a.memoizedState,P.state=pe,Su(a,d,P,g);var ze=a.memoizedState;z!==me||pe!==ze||Yr.current||ni?(typeof Ie=="function"&&(Pf(a,s,Ie,d),ze=a.memoizedState),(oe=ni||r0(a,s,oe,d,pe,ze,W)||!1)?(he||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(d,ze,W),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(d,ze,W)),typeof P.componentDidUpdate=="function"&&(a.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof P.componentDidUpdate!="function"||z===o.memoizedProps&&pe===o.memoizedState||(a.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||z===o.memoizedProps&&pe===o.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=ze),P.props=d,P.state=ze,P.context=W,d=oe):(typeof P.componentDidUpdate!="function"||z===o.memoizedProps&&pe===o.memoizedState||(a.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||z===o.memoizedProps&&pe===o.memoizedState||(a.flags|=1024),d=!1)}return Ff(o,a,s,d,b,g)}function Ff(o,a,s,d,g,b){h0(o,a);var P=(a.flags&128)!==0;if(!d&&!P)return g&&Sv(a,s,!1),No(o,a,b);d=a.stateNode,zE.current=a;var z=P&&typeof s.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,z,b)):Ur(o,a,z,b),a.memoizedState=d.state,g&&Sv(a,s,!0),a.child}function g0(o){var a=o.stateNode;a.pendingContext?yv(o,a.pendingContext,a.pendingContext!==a.context):a.context&&yv(o,a.context,!1),gf(o,a.containerInfo)}function v0(o,a,s,d,g){return _a(),uf(g),a.flags|=256,Ur(o,a,s,d),a.child}var jf={dehydrated:null,treeContext:null,retryLane:0};function kf(o){return{baseLanes:o,cachePool:null,transitions:null}}function y0(o,a,s){var d=a.pendingProps,g=Jt.current,b=!1,P=(a.flags&128)!==0,z;if((z=P)||(z=o!==null&&o.memoizedState===null?!1:(g&2)!==0),z?(b=!0,a.flags&=-129):(o===null||o.memoizedState!==null)&&(g|=1),zt(Jt,g&1),o===null)return sf(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=Bu(P,d,0,null),o=Hi(o,d,s,null),b.return=a,o.return=a,b.sibling=o,a.child=b,a.child.memoizedState=kf(s),a.memoizedState=jf,o):Nf(a,P));if(g=o.memoizedState,g!==null&&(z=g.dehydrated,z!==null))return DE(o,a,P,d,z,g,s);if(b){b=d.fallback,P=a.mode,g=o.child,z=g.sibling;var W={mode:"hidden",children:d.children};return!(P&1)&&a.child!==g?(d=a.child,d.childLanes=0,d.pendingProps=W,a.deletions=null):(d=ci(g,W),d.subtreeFlags=g.subtreeFlags&14680064),z!==null?b=ci(z,b):(b=Hi(b,P,s,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?kf(s):{baseLanes:P.baseLanes|s,cachePool:null,transitions:P.transitions},b.memoizedState=P,b.childLanes=o.childLanes&~s,a.memoizedState=jf,d}return b=o.child,o=b.sibling,d=ci(b,{mode:"visible",children:d.children}),!(a.mode&1)&&(d.lanes=s),d.return=a,d.sibling=null,o!==null&&(s=a.deletions,s===null?(a.deletions=[o],a.flags|=16):s.push(o)),a.child=d,a.memoizedState=null,d}function Nf(o,a){return a=Bu({mode:"visible",children:a},o.mode,0,null),a.return=o,o.child=a}function Pu(o,a,s,d){return d!==null&&uf(d),Ma(a,o.child,null,s),o=Nf(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function DE(o,a,s,d,g,b,P){if(s)return a.flags&256?(a.flags&=-257,d=_f(Error(r(422))),Pu(o,a,P,d)):a.memoizedState!==null?(a.child=o.child,a.flags|=128,null):(b=d.fallback,g=a.mode,d=Bu({mode:"visible",children:d.children},g,0,null),b=Hi(b,g,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=kf(P),a.memoizedState=jf,b);if(!(a.mode&1))return Pu(o,a,P,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var z=d.dgst;return d=z,b=Error(r(419)),d=_f(b,d,void 0),Pu(o,a,P,d)}if(z=(P&o.childLanes)!==0,Zr||z){if(d=Sr,d!==null){switch(P&-P){case 4:g=2;break;case 16:g=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:g=32;break;case 536870912:g=268435456;break;default:g=0}g=g&(d.suspendedLanes|P)?0:g,g!==0&&g!==b.retryLane&&(b.retryLane=g,jo(o,g),Zn(d,o,g,-1))}return Jf(),d=_f(Error(r(421))),Pu(o,a,P,d)}return g.data==="$?"?(a.flags|=128,a.child=o.child,a=ZE.bind(null,o),g._reactRetry=a,null):(o=b.treeContext,fn=Zo(g.nextSibling),dn=a,Xt=!0,Xn=null,o!==null&&(Pn[Tn++]=Io,Pn[Tn++]=Fo,Pn[Tn++]=Fi,Io=o.id,Fo=o.overflow,Fi=a),a=Nf(a,d.children),a.flags|=4096,a)}function b0(o,a,s){o.lanes|=a;var d=o.alternate;d!==null&&(d.lanes|=a),pf(o.return,a,s)}function Lf(o,a,s,d,g){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:g}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=s,b.tailMode=g)}function S0(o,a,s){var d=a.pendingProps,g=d.revealOrder,b=d.tail;if(Ur(o,a,d.children,s),d=Jt.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&&b0(o,s,a);else if(o.tag===19)b0(o,s,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(zt(Jt,d),!(a.mode&1))a.memoizedState=null;else switch(g){case"forwards":for(s=a.child,g=null;s!==null;)o=s.alternate,o!==null&&wu(o)===null&&(g=s),s=s.sibling;s=g,s===null?(g=a.child,a.child=null):(g=s.sibling,s.sibling=null),Lf(a,!1,g,s,b);break;case"backwards":for(s=null,g=a.child,a.child=null;g!==null;){if(o=g.alternate,o!==null&&wu(o)===null){a.child=g;break}o=g.sibling,g.sibling=s,s=g,g=o}Lf(a,!0,s,null,b);break;case"together":Lf(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Tu(o,a){!(a.mode&1)&&o!==null&&(o.alternate=null,a.alternate=null,a.flags|=2)}function No(o,a,s){if(o!==null&&(a.dependencies=o.dependencies),Ai|=a.lanes,!(s&a.childLanes))return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,s=ci(o,o.pendingProps),a.child=s,s.return=a;o.sibling!==null;)o=o.sibling,s=s.sibling=ci(o,o.pendingProps),s.return=a;s.sibling=null}return a.child}function BE(o,a,s){switch(a.tag){case 3:g0(a),_a();break;case 5:jv(a);break;case 1:Jr(a.type)&&du(a);break;case 4:gf(a,a.stateNode.containerInfo);break;case 10:var d=a.type._context,g=a.memoizedProps.value;zt(vu,d._currentValue),d._currentValue=g;break;case 13:if(d=a.memoizedState,d!==null)return d.dehydrated!==null?(zt(Jt,Jt.current&1),a.flags|=128,null):s&a.child.childLanes?y0(o,a,s):(zt(Jt,Jt.current&1),o=No(o,a,s),o!==null?o.sibling:null);zt(Jt,Jt.current&1);break;case 19:if(d=(s&a.childLanes)!==0,o.flags&128){if(d)return S0(o,a,s);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),zt(Jt,Jt.current),d)break;return null;case 22:case 23:return a.lanes=0,p0(o,a,s)}return No(o,a,s)}var w0,Af,x0,C0;w0=function(o,a){for(var s=a.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Af=function(){},x0=function(o,a,s,d){var g=o.memoizedProps;if(g!==d){o=a.stateNode,Ni(yo.current);var b=null;switch(s){case"input":g=We(o,g),d=We(o,d),b=[];break;case"select":g=A({},g,{value:void 0}),d=A({},d,{value:void 0}),b=[];break;case"textarea":g=st(o,g),d=st(o,d),b=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(o.onclick=su)}je(s,d);var P;s=null;for(oe in g)if(!d.hasOwnProperty(oe)&&g.hasOwnProperty(oe)&&g[oe]!=null)if(oe==="style"){var z=g[oe];for(P in z)z.hasOwnProperty(P)&&(s||(s={}),s[P]="")}else oe!=="dangerouslySetInnerHTML"&&oe!=="children"&&oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&oe!=="autoFocus"&&(i.hasOwnProperty(oe)?b||(b=[]):(b=b||[]).push(oe,null));for(oe in d){var W=d[oe];if(z=g!=null?g[oe]:void 0,d.hasOwnProperty(oe)&&W!==z&&(W!=null||z!=null))if(oe==="style")if(z){for(P in z)!z.hasOwnProperty(P)||W&&W.hasOwnProperty(P)||(s||(s={}),s[P]="");for(P in W)W.hasOwnProperty(P)&&z[P]!==W[P]&&(s||(s={}),s[P]=W[P])}else s||(b||(b=[]),b.push(oe,s)),s=W;else oe==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,z=z?z.__html:void 0,W!=null&&z!==W&&(b=b||[]).push(oe,W)):oe==="children"?typeof W!="string"&&typeof W!="number"||(b=b||[]).push(oe,""+W):oe!=="suppressContentEditableWarning"&&oe!=="suppressHydrationWarning"&&(i.hasOwnProperty(oe)?(W!=null&&oe==="onScroll"&&Ht("scroll",o),b||z===W||(b=[])):(b=b||[]).push(oe,W))}s&&(b=b||[]).push("style",s);var oe=b;(a.updateQueue=oe)&&(a.flags|=4)}},C0=function(o,a,s,d){s!==d&&(a.flags|=4)};function Wl(o,a){if(!Xt)switch(o.tailMode){case"hidden":a=o.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?o.tail=null:s.sibling=null;break;case"collapsed":s=o.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function Ir(o){var a=o.alternate!==null&&o.alternate.child===o.child,s=0,d=0;if(a)for(var g=o.child;g!==null;)s|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)s|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=d,o.childLanes=s,a}function HE(o,a,s){var d=a.pendingProps;switch(af(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ir(a),null;case 1:return Jr(a.type)&&cu(),Ir(a),null;case 3:return d=a.stateNode,ja(),Vt(Yr),Vt(_r),bf(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(mu(a)?a.flags|=4:o===null||o.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Xn!==null&&(Xf(Xn),Xn=null))),Af(o,a),Ir(a),null;case 5:vf(a);var g=Ni(zl.current);if(s=a.type,o!==null&&a.stateNode!=null)x0(o,a,s,d,g),o.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!d){if(a.stateNode===null)throw Error(r(166));return Ir(a),null}if(o=Ni(yo.current),mu(a)){d=a.stateNode,s=a.type;var b=a.memoizedProps;switch(d[vo]=a,d[jl]=b,o=(a.mode&1)!==0,s){case"dialog":Ht("cancel",d),Ht("close",d);break;case"iframe":case"object":case"embed":Ht("load",d);break;case"video":case"audio":for(g=0;g<Ml.length;g++)Ht(Ml[g],d);break;case"source":Ht("error",d);break;case"img":case"image":case"link":Ht("error",d),Ht("load",d);break;case"details":Ht("toggle",d);break;case"input":Te(d,b),Ht("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!b.multiple},Ht("invalid",d);break;case"textarea":be(d,b),Ht("invalid",d)}je(s,b),g=null;for(var P in b)if(b.hasOwnProperty(P)){var z=b[P];P==="children"?typeof z=="string"?d.textContent!==z&&(b.suppressHydrationWarning!==!0&&lu(d.textContent,z,o),g=["children",z]):typeof z=="number"&&d.textContent!==""+z&&(b.suppressHydrationWarning!==!0&&lu(d.textContent,z,o),g=["children",""+z]):i.hasOwnProperty(P)&&z!=null&&P==="onScroll"&&Ht("scroll",d)}switch(s){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=su)}d=g,a.updateQueue=d,d!==null&&(a.flags|=4)}else{P=g.nodeType===9?g:g.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=tt(s)),o==="http://www.w3.org/1999/xhtml"?s==="script"?(o=P.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=P.createElement(s,{is:d.is}):(o=P.createElement(s),s==="select"&&(P=o,d.multiple?P.multiple=!0:d.size&&(P.size=d.size))):o=P.createElementNS(o,s),o[vo]=a,o[jl]=d,w0(o,a,!1,!1),a.stateNode=o;e:{switch(P=qe(s,d),s){case"dialog":Ht("cancel",o),Ht("close",o),g=d;break;case"iframe":case"object":case"embed":Ht("load",o),g=d;break;case"video":case"audio":for(g=0;g<Ml.length;g++)Ht(Ml[g],o);g=d;break;case"source":Ht("error",o),g=d;break;case"img":case"image":case"link":Ht("error",o),Ht("load",o),g=d;break;case"details":Ht("toggle",o),g=d;break;case"input":Te(o,d),g=We(o,d),Ht("invalid",o);break;case"option":g=d;break;case"select":o._wrapperState={wasMultiple:!!d.multiple},g=A({},d,{value:void 0}),Ht("invalid",o);break;case"textarea":be(o,d),g=st(o,d),Ht("invalid",o);break;default:g=d}je(s,g),z=g;for(b in z)if(z.hasOwnProperty(b)){var W=z[b];b==="style"?Ge(o,W):b==="dangerouslySetInnerHTML"?(W=W?W.__html:void 0,W!=null&&Dt(o,W)):b==="children"?typeof W=="string"?(s!=="textarea"||W!=="")&&St(o,W):typeof W=="number"&&St(o,""+W):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(i.hasOwnProperty(b)?W!=null&&b==="onScroll"&&Ht("scroll",o):W!=null&&$(o,b,W,P))}switch(s){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 g.onClick=="function"&&(o.onclick=su)}switch(s){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 Ir(a),null;case 6:if(o&&a.stateNode!=null)C0(o,a,o.memoizedProps,d);else{if(typeof d!="string"&&a.stateNode===null)throw Error(r(166));if(s=Ni(zl.current),Ni(yo.current),mu(a)){if(d=a.stateNode,s=a.memoizedProps,d[vo]=a,(b=d.nodeValue!==s)&&(o=dn,o!==null))switch(o.tag){case 3:lu(d.nodeValue,s,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&lu(d.nodeValue,s,(o.mode&1)!==0)}b&&(a.flags|=4)}else d=(s.nodeType===9?s:s.ownerDocument).createTextNode(d),d[vo]=a,a.stateNode=d}return Ir(a),null;case 13:if(Vt(Jt),d=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Xt&&fn!==null&&a.mode&1&&!(a.flags&128))$v(),_a(),a.flags|=98560,b=!1;else if(b=mu(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[vo]=a}else _a(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ir(a),b=!1}else Xn!==null&&(Xf(Xn),Xn=null),b=!0;if(!b)return a.flags&65536?a:null}return a.flags&128?(a.lanes=s,a):(d=d!==null,d!==(o!==null&&o.memoizedState!==null)&&d&&(a.child.flags|=8192,a.mode&1&&(o===null||Jt.current&1?pr===0&&(pr=3):Jf())),a.updateQueue!==null&&(a.flags|=4),Ir(a),null);case 4:return ja(),Af(o,a),o===null&&Il(a.stateNode.containerInfo),Ir(a),null;case 10:return ff(a.type._context),Ir(a),null;case 17:return Jr(a.type)&&cu(),Ir(a),null;case 19:if(Vt(Jt),b=a.memoizedState,b===null)return Ir(a),null;if(d=(a.flags&128)!==0,P=b.rendering,P===null)if(d)Wl(b,!1);else{if(pr!==0||o!==null&&o.flags&128)for(o=a.child;o!==null;){if(P=wu(o),P!==null){for(a.flags|=128,Wl(b,!1),d=P.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),a.subtreeFlags=0,d=s,s=a.child;s!==null;)b=s,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}),s=s.sibling;return zt(Jt,Jt.current&1|2),a.child}o=o.sibling}b.tail!==null&&wt()>Aa&&(a.flags|=128,d=!0,Wl(b,!1),a.lanes=4194304)}else{if(!d)if(o=wu(P),o!==null){if(a.flags|=128,d=!0,s=o.updateQueue,s!==null&&(a.updateQueue=s,a.flags|=4),Wl(b,!0),b.tail===null&&b.tailMode==="hidden"&&!P.alternate&&!Xt)return Ir(a),null}else 2*wt()-b.renderingStartTime>Aa&&s!==1073741824&&(a.flags|=128,d=!0,Wl(b,!1),a.lanes=4194304);b.isBackwards?(P.sibling=a.child,a.child=P):(s=b.last,s!==null?s.sibling=P:a.child=P,b.last=P)}return b.tail!==null?(a=b.tail,b.rendering=a,b.tail=a.sibling,b.renderingStartTime=wt(),a.sibling=null,s=Jt.current,zt(Jt,d?s&1|2:s&1),a):(Ir(a),null);case 22:case 23:return Yf(),d=a.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(a.flags|=8192),d&&a.mode&1?pn&1073741824&&(Ir(a),a.subtreeFlags&6&&(a.flags|=8192)):Ir(a),null;case 24:return null;case 25:return null}throw Error(r(156,a.tag))}function VE(o,a){switch(af(a),a.tag){case 1:return Jr(a.type)&&cu(),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return ja(),Vt(Yr),Vt(_r),bf(),o=a.flags,o&65536&&!(o&128)?(a.flags=o&-65537|128,a):null;case 5:return vf(a),null;case 13:if(Vt(Jt),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 Vt(Jt),null;case 4:return ja(),null;case 10:return ff(a.type._context),null;case 22:case 23:return Yf(),null;case 24:return null;default:return null}}var _u=!1,Fr=!1,WE=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Na(o,a){var s=o.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(d){tr(o,a,d)}else s.current=null}function zf(o,a,s){try{s()}catch(d){tr(o,a,d)}}var E0=!1;function UE(o,a){if(Qd=Qs,o=rv(),Hd(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var g=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{s.nodeType,b.nodeType}catch{s=null;break e}var P=0,z=-1,W=-1,oe=0,he=0,me=o,pe=null;t:for(;;){for(var Ie;me!==s||g!==0&&me.nodeType!==3||(z=P+g),me!==b||d!==0&&me.nodeType!==3||(W=P+d),me.nodeType===3&&(P+=me.nodeValue.length),(Ie=me.firstChild)!==null;)pe=me,me=Ie;for(;;){if(me===o)break t;if(pe===s&&++oe===g&&(z=P),pe===b&&++he===d&&(W=P),(Ie=me.nextSibling)!==null)break;me=pe,pe=me.parentNode}me=Ie}s=z===-1||W===-1?null:{start:z,end:W}}else s=null}s=s||{start:0,end:0}}else s=null;for(Yd={focusedElem:o,selectionRange:s},Qs=!1,Ae=a;Ae!==null;)if(a=Ae,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,Ae=o;else for(;Ae!==null;){a=Ae;try{var ze=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(ze!==null){var Be=ze.memoizedProps,or=ze.memoizedState,te=a.stateNode,K=te.getSnapshotBeforeUpdate(a.elementType===a.type?Be:Qn(a.type,Be),or);te.__reactInternalSnapshotBeforeUpdate=K}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(Se){tr(a,a.return,Se)}if(o=a.sibling,o!==null){o.return=a.return,Ae=o;break}Ae=a.return}return ze=E0,E0=!1,ze}function Ul(o,a,s){var d=a.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&o)===o){var b=g.destroy;g.destroy=void 0,b!==void 0&&zf(a,s,b)}g=g.next}while(g!==d)}}function Mu(o,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var s=a=a.next;do{if((s.tag&o)===o){var d=s.create;s.destroy=d()}s=s.next}while(s!==a)}}function Df(o){var a=o.ref;if(a!==null){var s=o.stateNode;switch(o.tag){case 5:o=s;break;default:o=s}typeof a=="function"?a(o):a.current=o}}function R0(o){var a=o.alternate;a!==null&&(o.alternate=null,R0(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&(delete a[vo],delete a[jl],delete a[tf],delete a[OE],delete a[PE])),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 $0(o){return o.tag===5||o.tag===3||o.tag===4}function O0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||$0(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 Bf(o,a,s){var d=o.tag;if(d===5||d===6)o=o.stateNode,a?s.nodeType===8?s.parentNode.insertBefore(o,a):s.insertBefore(o,a):(s.nodeType===8?(a=s.parentNode,a.insertBefore(o,s)):(a=s,a.appendChild(o)),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=su));else if(d!==4&&(o=o.child,o!==null))for(Bf(o,a,s),o=o.sibling;o!==null;)Bf(o,a,s),o=o.sibling}function Hf(o,a,s){var d=o.tag;if(d===5||d===6)o=o.stateNode,a?s.insertBefore(o,a):s.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for(Hf(o,a,s),o=o.sibling;o!==null;)Hf(o,a,s),o=o.sibling}var Er=null,Yn=!1;function ii(o,a,s){for(s=s.child;s!==null;)P0(o,a,s),s=s.sibling}function P0(o,a,s){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(yr,s)}catch{}switch(s.tag){case 5:Fr||Na(s,a);case 6:var d=Er,g=Yn;Er=null,ii(o,a,s),Er=d,Yn=g,Er!==null&&(Yn?(o=Er,s=s.stateNode,o.nodeType===8?o.parentNode.removeChild(s):o.removeChild(s)):Er.removeChild(s.stateNode));break;case 18:Er!==null&&(Yn?(o=Er,s=s.stateNode,o.nodeType===8?ef(o.parentNode,s):o.nodeType===1&&ef(o,s),go(o)):ef(Er,s.stateNode));break;case 4:d=Er,g=Yn,Er=s.stateNode.containerInfo,Yn=!0,ii(o,a,s),Er=d,Yn=g;break;case 0:case 11:case 14:case 15:if(!Fr&&(d=s.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var b=g,P=b.destroy;b=b.tag,P!==void 0&&(b&2||b&4)&&zf(s,a,P),g=g.next}while(g!==d)}ii(o,a,s);break;case 1:if(!Fr&&(Na(s,a),d=s.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=s.memoizedProps,d.state=s.memoizedState,d.componentWillUnmount()}catch(z){tr(s,a,z)}ii(o,a,s);break;case 21:ii(o,a,s);break;case 22:s.mode&1?(Fr=(d=Fr)||s.memoizedState!==null,ii(o,a,s),Fr=d):ii(o,a,s);break;default:ii(o,a,s)}}function T0(o){var a=o.updateQueue;if(a!==null){o.updateQueue=null;var s=o.stateNode;s===null&&(s=o.stateNode=new WE),a.forEach(function(d){var g=e2.bind(null,o,d);s.has(d)||(s.add(d),d.then(g,g))})}}function Jn(o,a){var s=a.deletions;if(s!==null)for(var d=0;d<s.length;d++){var g=s[d];try{var b=o,P=a,z=P;e:for(;z!==null;){switch(z.tag){case 5:Er=z.stateNode,Yn=!1;break e;case 3:Er=z.stateNode.containerInfo,Yn=!0;break e;case 4:Er=z.stateNode.containerInfo,Yn=!0;break e}z=z.return}if(Er===null)throw Error(r(160));P0(b,P,g),Er=null,Yn=!1;var W=g.alternate;W!==null&&(W.return=null),g.return=null}catch(oe){tr(g,a,oe)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)_0(a,o),a=a.sibling}function _0(o,a){var s=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Jn(a,o),So(o),d&4){try{Ul(3,o,o.return),Mu(3,o)}catch(Be){tr(o,o.return,Be)}try{Ul(5,o,o.return)}catch(Be){tr(o,o.return,Be)}}break;case 1:Jn(a,o),So(o),d&512&&s!==null&&Na(s,s.return);break;case 5:if(Jn(a,o),So(o),d&512&&s!==null&&Na(s,s.return),o.flags&32){var g=o.stateNode;try{St(g,"")}catch(Be){tr(o,o.return,Be)}}if(d&4&&(g=o.stateNode,g!=null)){var b=o.memoizedProps,P=s!==null?s.memoizedProps:b,z=o.type,W=o.updateQueue;if(o.updateQueue=null,W!==null)try{z==="input"&&b.type==="radio"&&b.name!=null&&Ve(g,b),qe(z,P);var oe=qe(z,b);for(P=0;P<W.length;P+=2){var he=W[P],me=W[P+1];he==="style"?Ge(g,me):he==="dangerouslySetInnerHTML"?Dt(g,me):he==="children"?St(g,me):$(g,he,me,oe)}switch(z){case"input":ft(g,b);break;case"textarea":Fe(g,b);break;case"select":var pe=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!b.multiple;var Ie=b.value;Ie!=null?Le(g,!!b.multiple,Ie,!1):pe!==!!b.multiple&&(b.defaultValue!=null?Le(g,!!b.multiple,b.defaultValue,!0):Le(g,!!b.multiple,b.multiple?[]:"",!1))}g[jl]=b}catch(Be){tr(o,o.return,Be)}}break;case 6:if(Jn(a,o),So(o),d&4){if(o.stateNode===null)throw Error(r(162));g=o.stateNode,b=o.memoizedProps;try{g.nodeValue=b}catch(Be){tr(o,o.return,Be)}}break;case 3:if(Jn(a,o),So(o),d&4&&s!==null&&s.memoizedState.isDehydrated)try{go(a.containerInfo)}catch(Be){tr(o,o.return,Be)}break;case 4:Jn(a,o),So(o);break;case 13:Jn(a,o),So(o),g=o.child,g.flags&8192&&(b=g.memoizedState!==null,g.stateNode.isHidden=b,!b||g.alternate!==null&&g.alternate.memoizedState!==null||(Uf=wt())),d&4&&T0(o);break;case 22:if(he=s!==null&&s.memoizedState!==null,o.mode&1?(Fr=(oe=Fr)||he,Jn(a,o),Fr=oe):Jn(a,o),So(o),d&8192){if(oe=o.memoizedState!==null,(o.stateNode.isHidden=oe)&&!he&&o.mode&1)for(Ae=o,he=o.child;he!==null;){for(me=Ae=he;Ae!==null;){switch(pe=Ae,Ie=pe.child,pe.tag){case 0:case 11:case 14:case 15:Ul(4,pe,pe.return);break;case 1:Na(pe,pe.return);var ze=pe.stateNode;if(typeof ze.componentWillUnmount=="function"){d=pe,s=pe.return;try{a=d,ze.props=a.memoizedProps,ze.state=a.memoizedState,ze.componentWillUnmount()}catch(Be){tr(d,s,Be)}}break;case 5:Na(pe,pe.return);break;case 22:if(pe.memoizedState!==null){F0(me);continue}}Ie!==null?(Ie.return=pe,Ae=Ie):F0(me)}he=he.sibling}e:for(he=null,me=o;;){if(me.tag===5){if(he===null){he=me;try{g=me.stateNode,oe?(b=g.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none"):(z=me.stateNode,W=me.memoizedProps.style,P=W!=null&&W.hasOwnProperty("display")?W.display:null,z.style.display=Je("display",P))}catch(Be){tr(o,o.return,Be)}}}else if(me.tag===6){if(he===null)try{me.stateNode.nodeValue=oe?"":me.memoizedProps}catch(Be){tr(o,o.return,Be)}}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:Jn(a,o),So(o),d&4&&T0(o);break;case 21:break;default:Jn(a,o),So(o)}}function So(o){var a=o.flags;if(a&2){try{e:{for(var s=o.return;s!==null;){if($0(s)){var d=s;break e}s=s.return}throw Error(r(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(St(g,""),d.flags&=-33);var b=O0(o);Hf(o,b,g);break;case 3:case 4:var P=d.stateNode.containerInfo,z=O0(o);Bf(o,z,P);break;default:throw Error(r(161))}}catch(W){tr(o,o.return,W)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function qE(o,a,s){Ae=o,M0(o)}function M0(o,a,s){for(var d=(o.mode&1)!==0;Ae!==null;){var g=Ae,b=g.child;if(g.tag===22&&d){var P=g.memoizedState!==null||_u;if(!P){var z=g.alternate,W=z!==null&&z.memoizedState!==null||Fr;z=_u;var oe=Fr;if(_u=P,(Fr=W)&&!oe)for(Ae=g;Ae!==null;)P=Ae,W=P.child,P.tag===22&&P.memoizedState!==null?j0(g):W!==null?(W.return=P,Ae=W):j0(g);for(;b!==null;)Ae=b,M0(b),b=b.sibling;Ae=g,_u=z,Fr=oe}I0(o)}else g.subtreeFlags&8772&&b!==null?(b.return=g,Ae=b):I0(o)}}function I0(o){for(;Ae!==null;){var a=Ae;if(a.flags&8772){var s=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:Fr||Mu(5,a);break;case 1:var d=a.stateNode;if(a.flags&4&&!Fr)if(s===null)d.componentDidMount();else{var g=a.elementType===a.type?s.memoizedProps:Qn(a.type,s.memoizedProps);d.componentDidUpdate(g,s.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var b=a.updateQueue;b!==null&&Fv(a,b,d);break;case 3:var P=a.updateQueue;if(P!==null){if(s=null,a.child!==null)switch(a.child.tag){case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}Fv(a,P,s)}break;case 5:var z=a.stateNode;if(s===null&&a.flags&4){s=z;var W=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":W.autoFocus&&s.focus();break;case"img":W.src&&(s.src=W.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var oe=a.alternate;if(oe!==null){var he=oe.memoizedState;if(he!==null){var me=he.dehydrated;me!==null&&go(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Fr||a.flags&512&&Df(a)}catch(pe){tr(a,a.return,pe)}}if(a===o){Ae=null;break}if(s=a.sibling,s!==null){s.return=a.return,Ae=s;break}Ae=a.return}}function F0(o){for(;Ae!==null;){var a=Ae;if(a===o){Ae=null;break}var s=a.sibling;if(s!==null){s.return=a.return,Ae=s;break}Ae=a.return}}function j0(o){for(;Ae!==null;){var a=Ae;try{switch(a.tag){case 0:case 11:case 15:var s=a.return;try{Mu(4,a)}catch(W){tr(a,s,W)}break;case 1:var d=a.stateNode;if(typeof d.componentDidMount=="function"){var g=a.return;try{d.componentDidMount()}catch(W){tr(a,g,W)}}var b=a.return;try{Df(a)}catch(W){tr(a,b,W)}break;case 5:var P=a.return;try{Df(a)}catch(W){tr(a,P,W)}}}catch(W){tr(a,a.return,W)}if(a===o){Ae=null;break}var z=a.sibling;if(z!==null){z.return=a.return,Ae=z;break}Ae=a.return}}var GE=Math.ceil,Iu=M.ReactCurrentDispatcher,Vf=M.ReactCurrentOwner,In=M.ReactCurrentBatchConfig,Et=0,Sr=null,sr=null,Rr=0,pn=0,La=ei(0),pr=0,ql=null,Ai=0,Fu=0,Wf=0,Gl=null,en=null,Uf=0,Aa=1/0,Lo=null,ju=!1,qf=null,ai=null,ku=!1,li=null,Nu=0,Kl=0,Gf=null,Lu=-1,Au=0;function qr(){return Et&6?wt():Lu!==-1?Lu:Lu=wt()}function si(o){return o.mode&1?Et&2&&Rr!==0?Rr&-Rr:_E.transition!==null?(Au===0&&(Au=pa()),Au):(o=Ct,o!==0||(o=window.event,o=o===void 0?16:Ng(o.type)),o):1}function Zn(o,a,s,d){if(50<Kl)throw Kl=0,Gf=null,Error(r(185));ho(o,s,d),(!(Et&2)||o!==Sr)&&(o===Sr&&(!(Et&2)&&(Fu|=s),pr===4&&ui(o,Rr)),tn(o,d),s===1&&Et===0&&!(a.mode&1)&&(Aa=wt()+500,fu&&ri()))}function tn(o,a){var s=o.callbackNode;$i(o,a);var d=Po(o,o===Sr?Rr:0);if(d===0)s!==null&&qt(s),o.callbackNode=null,o.callbackPriority=0;else if(a=d&-d,o.callbackPriority!==a){if(s!=null&&qt(s),a===1)o.tag===0?TE(N0.bind(null,o)):wv(N0.bind(null,o)),RE(function(){!(Et&6)&&ri()}),s=null;else{switch(ha(d)){case 1:s=xt;break;case 4:s=Gt;break;case 16:s=Qr;break;case 536870912:s=kt;break;default:s=Qr}s=W0(s,k0.bind(null,o))}o.callbackPriority=a,o.callbackNode=s}}function k0(o,a){if(Lu=-1,Au=0,Et&6)throw Error(r(327));var s=o.callbackNode;if(za()&&o.callbackNode!==s)return null;var d=Po(o,o===Sr?Rr:0);if(d===0)return null;if(d&30||d&o.expiredLanes||a)a=zu(o,d);else{a=d;var g=Et;Et|=2;var b=A0();(Sr!==o||Rr!==a)&&(Lo=null,Aa=wt()+500,Di(o,a));do try{QE();break}catch(z){L0(o,z)}while(!0);df(),Iu.current=b,Et=g,sr!==null?a=0:(Sr=null,Rr=0,a=pr)}if(a!==0){if(a===2&&(g=Oi(o),g!==0&&(d=g,a=Kf(o,g))),a===1)throw s=ql,Di(o,0),ui(o,d),tn(o,wt()),s;if(a===6)ui(o,d);else{if(g=o.current.alternate,!(d&30)&&!KE(g)&&(a=zu(o,d),a===2&&(b=Oi(o),b!==0&&(d=b,a=Kf(o,b))),a===1))throw s=ql,Di(o,0),ui(o,d),tn(o,wt()),s;switch(o.finishedWork=g,o.finishedLanes=d,a){case 0:case 1:throw Error(r(345));case 2:Bi(o,en,Lo);break;case 3:if(ui(o,d),(d&130023424)===d&&(a=Uf+500-wt(),10<a)){if(Po(o,0)!==0)break;if(g=o.suspendedLanes,(g&d)!==d){qr(),o.pingedLanes|=o.suspendedLanes&g;break}o.timeoutHandle=Zd(Bi.bind(null,o,en,Lo),a);break}Bi(o,en,Lo);break;case 4:if(ui(o,d),(d&4194240)===d)break;for(a=o.eventTimes,g=-1;0<d;){var P=31-Tr(d);b=1<<P,P=a[P],P>g&&(g=P),d&=~b}if(d=g,d=wt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*GE(d/1960))-d,10<d){o.timeoutHandle=Zd(Bi.bind(null,o,en,Lo),d);break}Bi(o,en,Lo);break;case 5:Bi(o,en,Lo);break;default:throw Error(r(329))}}}return tn(o,wt()),o.callbackNode===s?k0.bind(null,o):null}function Kf(o,a){var s=Gl;return o.current.memoizedState.isDehydrated&&(Di(o,a).flags|=256),o=zu(o,a),o!==2&&(a=en,en=s,a!==null&&Xf(a)),o}function Xf(o){en===null?en=o:en.push.apply(en,o)}function KE(o){for(var a=o;;){if(a.flags&16384){var s=a.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var d=0;d<s.length;d++){var g=s[d],b=g.getSnapshot;g=g.value;try{if(!Kn(b(),g))return!1}catch{return!1}}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;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 ui(o,a){for(a&=~Wf,a&=~Fu,o.suspendedLanes|=a,o.pingedLanes&=~a,o=o.expirationTimes;0<a;){var s=31-Tr(a),d=1<<s;o[s]=-1,a&=~d}}function N0(o){if(Et&6)throw Error(r(327));za();var a=Po(o,0);if(!(a&1))return tn(o,wt()),null;var s=zu(o,a);if(o.tag!==0&&s===2){var d=Oi(o);d!==0&&(a=d,s=Kf(o,d))}if(s===1)throw s=ql,Di(o,0),ui(o,a),tn(o,wt()),s;if(s===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=a,Bi(o,en,Lo),tn(o,wt()),null}function Qf(o,a){var s=Et;Et|=1;try{return o(a)}finally{Et=s,Et===0&&(Aa=wt()+500,fu&&ri())}}function zi(o){li!==null&&li.tag===0&&!(Et&6)&&za();var a=Et;Et|=1;var s=In.transition,d=Ct;try{if(In.transition=null,Ct=1,o)return o()}finally{Ct=d,In.transition=s,Et=a,!(Et&6)&&ri()}}function Yf(){pn=La.current,Vt(La)}function Di(o,a){o.finishedWork=null,o.finishedLanes=0;var s=o.timeoutHandle;if(s!==-1&&(o.timeoutHandle=-1,EE(s)),sr!==null)for(s=sr.return;s!==null;){var d=s;switch(af(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&cu();break;case 3:ja(),Vt(Yr),Vt(_r),bf();break;case 5:vf(d);break;case 4:ja();break;case 13:Vt(Jt);break;case 19:Vt(Jt);break;case 10:ff(d.type._context);break;case 22:case 23:Yf()}s=s.return}if(Sr=o,sr=o=ci(o.current,null),Rr=pn=a,pr=0,ql=null,Wf=Fu=Ai=0,en=Gl=null,ki!==null){for(a=0;a<ki.length;a++)if(s=ki[a],d=s.interleaved,d!==null){s.interleaved=null;var g=d.next,b=s.pending;if(b!==null){var P=b.next;b.next=g,d.next=P}s.pending=d}ki=null}return o}function L0(o,a){do{var s=sr;try{if(df(),xu.current=$u,Cu){for(var d=Zt.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}Cu=!1}if(Li=0,br=fr=Zt=null,Dl=!1,Bl=0,Vf.current=null,s===null||s.return===null){pr=1,ql=a,sr=null;break}e:{var b=o,P=s.return,z=s,W=a;if(a=Rr,z.flags|=32768,W!==null&&typeof W=="object"&&typeof W.then=="function"){var oe=W,he=z,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 Ie=s0(P);if(Ie!==null){Ie.flags&=-257,u0(Ie,P,z,b,a),Ie.mode&1&&l0(b,oe,a),a=Ie,W=oe;var ze=a.updateQueue;if(ze===null){var Be=new Set;Be.add(W),a.updateQueue=Be}else ze.add(W);break e}else{if(!(a&1)){l0(b,oe,a),Jf();break e}W=Error(r(426))}}else if(Xt&&z.mode&1){var or=s0(P);if(or!==null){!(or.flags&65536)&&(or.flags|=256),u0(or,P,z,b,a),uf(ka(W,z));break e}}b=W=ka(W,z),pr!==4&&(pr=2),Gl===null?Gl=[b]:Gl.push(b),b=P;do{switch(b.tag){case 3:b.flags|=65536,a&=-a,b.lanes|=a;var te=i0(b,W,a);Iv(b,te);break e;case 1:z=W;var K=b.type,re=b.stateNode;if(!(b.flags&128)&&(typeof K.getDerivedStateFromError=="function"||re!==null&&typeof re.componentDidCatch=="function"&&(ai===null||!ai.has(re)))){b.flags|=65536,a&=-a,b.lanes|=a;var Se=a0(b,z,a);Iv(b,Se);break e}}b=b.return}while(b!==null)}D0(s)}catch(He){a=He,sr===s&&s!==null&&(sr=s=s.return);continue}break}while(!0)}function A0(){var o=Iu.current;return Iu.current=$u,o===null?$u:o}function Jf(){(pr===0||pr===3||pr===2)&&(pr=4),Sr===null||!(Ai&268435455)&&!(Fu&268435455)||ui(Sr,Rr)}function zu(o,a){var s=Et;Et|=2;var d=A0();(Sr!==o||Rr!==a)&&(Lo=null,Di(o,a));do try{XE();break}catch(g){L0(o,g)}while(!0);if(df(),Et=s,Iu.current=d,sr!==null)throw Error(r(261));return Sr=null,Rr=0,pr}function XE(){for(;sr!==null;)z0(sr)}function QE(){for(;sr!==null&&!Rn();)z0(sr)}function z0(o){var a=V0(o.alternate,o,pn);o.memoizedProps=o.pendingProps,a===null?D0(o):sr=a,Vf.current=null}function D0(o){var a=o;do{var s=a.alternate;if(o=a.return,a.flags&32768){if(s=VE(s,a),s!==null){s.flags&=32767,sr=s;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{pr=6,sr=null;return}}else if(s=HE(s,a,pn),s!==null){sr=s;return}if(a=a.sibling,a!==null){sr=a;return}sr=a=o}while(a!==null);pr===0&&(pr=5)}function Bi(o,a,s){var d=Ct,g=In.transition;try{In.transition=null,Ct=1,YE(o,a,s,d)}finally{In.transition=g,Ct=d}return null}function YE(o,a,s,d){do za();while(li!==null);if(Et&6)throw Error(r(327));s=o.finishedWork;var g=o.finishedLanes;if(s===null)return null;if(o.finishedWork=null,o.finishedLanes=0,s===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var b=s.lanes|s.childLanes;if(Sl(o,b),o===Sr&&(sr=Sr=null,Rr=0),!(s.subtreeFlags&2064)&&!(s.flags&2064)||ku||(ku=!0,W0(Qr,function(){return za(),null})),b=(s.flags&15990)!==0,s.subtreeFlags&15990||b){b=In.transition,In.transition=null;var P=Ct;Ct=1;var z=Et;Et|=4,Vf.current=null,UE(o,s),_0(s,o),vE(Yd),Qs=!!Qd,Yd=Qd=null,o.current=s,qE(s),an(),Et=z,Ct=P,In.transition=b}else o.current=s;if(ku&&(ku=!1,li=o,Nu=g),b=o.pendingLanes,b===0&&(ai=null),Ko(s.stateNode),tn(o,wt()),a!==null)for(d=o.onRecoverableError,s=0;s<a.length;s++)g=a[s],d(g.value,{componentStack:g.stack,digest:g.digest});if(ju)throw ju=!1,o=qf,qf=null,o;return Nu&1&&o.tag!==0&&za(),b=o.pendingLanes,b&1?o===Gf?Kl++:(Kl=0,Gf=o):Kl=0,ri(),null}function za(){if(li!==null){var o=ha(Nu),a=In.transition,s=Ct;try{if(In.transition=null,Ct=16>o?16:o,li===null)var d=!1;else{if(o=li,li=null,Nu=0,Et&6)throw Error(r(331));var g=Et;for(Et|=4,Ae=o.current;Ae!==null;){var b=Ae,P=b.child;if(Ae.flags&16){var z=b.deletions;if(z!==null){for(var W=0;W<z.length;W++){var oe=z[W];for(Ae=oe;Ae!==null;){var he=Ae;switch(he.tag){case 0:case 11:case 15:Ul(8,he,b)}var me=he.child;if(me!==null)me.return=he,Ae=me;else for(;Ae!==null;){he=Ae;var pe=he.sibling,Ie=he.return;if(R0(he),he===oe){Ae=null;break}if(pe!==null){pe.return=Ie,Ae=pe;break}Ae=Ie}}}var ze=b.alternate;if(ze!==null){var Be=ze.child;if(Be!==null){ze.child=null;do{var or=Be.sibling;Be.sibling=null,Be=or}while(Be!==null)}}Ae=b}}if(b.subtreeFlags&2064&&P!==null)P.return=b,Ae=P;else e:for(;Ae!==null;){if(b=Ae,b.flags&2048)switch(b.tag){case 0:case 11:case 15:Ul(9,b,b.return)}var te=b.sibling;if(te!==null){te.return=b.return,Ae=te;break e}Ae=b.return}}var K=o.current;for(Ae=K;Ae!==null;){P=Ae;var re=P.child;if(P.subtreeFlags&2064&&re!==null)re.return=P,Ae=re;else e:for(P=K;Ae!==null;){if(z=Ae,z.flags&2048)try{switch(z.tag){case 0:case 11:case 15:Mu(9,z)}}catch(He){tr(z,z.return,He)}if(z===P){Ae=null;break e}var Se=z.sibling;if(Se!==null){Se.return=z.return,Ae=Se;break e}Ae=z.return}}if(Et=g,ri(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(yr,o)}catch{}d=!0}return d}finally{Ct=s,In.transition=a}}return!1}function B0(o,a,s){a=ka(s,a),a=i0(o,a,1),o=oi(o,a,1),a=qr(),o!==null&&(ho(o,1,a),tn(o,a))}function tr(o,a,s){if(o.tag===3)B0(o,o,s);else for(;a!==null;){if(a.tag===3){B0(a,o,s);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ai===null||!ai.has(d))){o=ka(s,o),o=a0(a,o,1),a=oi(a,o,1),o=qr(),a!==null&&(ho(a,1,o),tn(a,o));break}}a=a.return}}function JE(o,a,s){var d=o.pingCache;d!==null&&d.delete(a),a=qr(),o.pingedLanes|=o.suspendedLanes&s,Sr===o&&(Rr&s)===s&&(pr===4||pr===3&&(Rr&130023424)===Rr&&500>wt()-Uf?Di(o,0):Wf|=s),tn(o,a)}function H0(o,a){a===0&&(o.mode&1?(a=Hr,Hr<<=1,!(Hr&130023424)&&(Hr=4194304)):a=1);var s=qr();o=jo(o,a),o!==null&&(ho(o,a,s),tn(o,s))}function ZE(o){var a=o.memoizedState,s=0;a!==null&&(s=a.retryLane),H0(o,s)}function e2(o,a){var s=0;switch(o.tag){case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(s=g.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(r(314))}d!==null&&d.delete(a),H0(o,s)}var V0;V0=function(o,a,s){if(o!==null)if(o.memoizedProps!==a.pendingProps||Yr.current)Zr=!0;else{if(!(o.lanes&s)&&!(a.flags&128))return Zr=!1,BE(o,a,s);Zr=!!(o.flags&131072)}else Zr=!1,Xt&&a.flags&1048576&&xv(a,hu,a.index);switch(a.lanes=0,a.tag){case 2:var d=a.type;Tu(o,a),o=a.pendingProps;var g=Oa(a,_r.current);Fa(a,s),g=xf(null,a,d,o,g,s);var b=Cf();return a.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Jr(d)?(b=!0,du(a)):b=!1,a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,mf(a),g.updater=Ou,a.stateNode=g,g._reactInternals=a,Tf(a,d,o,s),a=Ff(null,a,d,!0,b,s)):(a.tag=0,Xt&&b&&of(a),Ur(null,a,g,s),a=a.child),a;case 16:d=a.elementType;e:{switch(Tu(o,a),o=a.pendingProps,g=d._init,d=g(d._payload),a.type=d,g=a.tag=r2(d),o=Qn(d,o),g){case 0:a=If(null,a,d,o,s);break e;case 1:a=m0(null,a,d,o,s);break e;case 11:a=c0(null,a,d,o,s);break e;case 14:a=d0(null,a,d,Qn(d.type,o),s);break e}throw Error(r(306,d,""))}return a;case 0:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Qn(d,g),If(o,a,d,g,s);case 1:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Qn(d,g),m0(o,a,d,g,s);case 3:e:{if(g0(a),o===null)throw Error(r(387));d=a.pendingProps,b=a.memoizedState,g=b.element,Mv(o,a),Su(a,d,null,s);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){g=ka(Error(r(423)),a),a=v0(o,a,d,s,g);break e}else if(d!==g){g=ka(Error(r(424)),a),a=v0(o,a,d,s,g);break e}else for(fn=Zo(a.stateNode.containerInfo.firstChild),dn=a,Xt=!0,Xn=null,s=Tv(a,null,d,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(_a(),d===g){a=No(o,a,s);break e}Ur(o,a,d,s)}a=a.child}return a;case 5:return jv(a),o===null&&sf(a),d=a.type,g=a.pendingProps,b=o!==null?o.memoizedProps:null,P=g.children,Jd(d,g)?P=null:b!==null&&Jd(d,b)&&(a.flags|=32),h0(o,a),Ur(o,a,P,s),a.child;case 6:return o===null&&sf(a),null;case 13:return y0(o,a,s);case 4:return gf(a,a.stateNode.containerInfo),d=a.pendingProps,o===null?a.child=Ma(a,null,d,s):Ur(o,a,d,s),a.child;case 11:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Qn(d,g),c0(o,a,d,g,s);case 7:return Ur(o,a,a.pendingProps,s),a.child;case 8:return Ur(o,a,a.pendingProps.children,s),a.child;case 12:return Ur(o,a,a.pendingProps.children,s),a.child;case 10:e:{if(d=a.type._context,g=a.pendingProps,b=a.memoizedProps,P=g.value,zt(vu,d._currentValue),d._currentValue=P,b!==null)if(Kn(b.value,P)){if(b.children===g.children&&!Yr.current){a=No(o,a,s);break e}}else for(b=a.child,b!==null&&(b.return=a);b!==null;){var z=b.dependencies;if(z!==null){P=b.child;for(var W=z.firstContext;W!==null;){if(W.context===d){if(b.tag===1){W=ko(-1,s&-s),W.tag=2;var oe=b.updateQueue;if(oe!==null){oe=oe.shared;var he=oe.pending;he===null?W.next=W:(W.next=he.next,he.next=W),oe.pending=W}}b.lanes|=s,W=b.alternate,W!==null&&(W.lanes|=s),pf(b.return,s,a),z.lanes|=s;break}W=W.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|=s,z=P.alternate,z!==null&&(z.lanes|=s),pf(P,s,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}Ur(o,a,g.children,s),a=a.child}return a;case 9:return g=a.type,d=a.pendingProps.children,Fa(a,s),g=_n(g),d=d(g),a.flags|=1,Ur(o,a,d,s),a.child;case 14:return d=a.type,g=Qn(d,a.pendingProps),g=Qn(d.type,g),d0(o,a,d,g,s);case 15:return f0(o,a,a.type,a.pendingProps,s);case 17:return d=a.type,g=a.pendingProps,g=a.elementType===d?g:Qn(d,g),Tu(o,a),a.tag=1,Jr(d)?(o=!0,du(a)):o=!1,Fa(a,s),n0(a,d,g),Tf(a,d,g,s),Ff(null,a,d,!0,o,s);case 19:return S0(o,a,s);case 22:return p0(o,a,s)}throw Error(r(156,a.tag))};function W0(o,a){return vr(o,a)}function t2(o,a,s,d){this.tag=o,this.key=s,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 Fn(o,a,s,d){return new t2(o,a,s,d)}function Zf(o){return o=o.prototype,!(!o||!o.isReactComponent)}function r2(o){if(typeof o=="function")return Zf(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Z)return 11;if(o===q)return 14}return 2}function ci(o,a){var s=o.alternate;return s===null?(s=Fn(o.tag,a,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=a,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&14680064,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,a=o.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s}function Du(o,a,s,d,g,b){var P=2;if(d=o,typeof o=="function")Zf(o)&&(P=1);else if(typeof o=="string")P=5;else e:switch(o){case _:return Hi(s.children,g,b,a);case F:P=8,g|=8;break;case j:return o=Fn(12,s,a,g|2),o.elementType=j,o.lanes=b,o;case X:return o=Fn(13,s,a,g),o.elementType=X,o.lanes=b,o;case U:return o=Fn(19,s,a,g),o.elementType=U,o.lanes=b,o;case k:return Bu(s,g,b,a);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:P=10;break e;case Q:P=9;break e;case Z:P=11;break e;case q:P=14;break e;case D:P=16,d=null;break e}throw Error(r(130,o==null?o:typeof o,""))}return a=Fn(P,s,a,g),a.elementType=o,a.type=d,a.lanes=b,a}function Hi(o,a,s,d){return o=Fn(7,o,d,a),o.lanes=s,o}function Bu(o,a,s,d){return o=Fn(22,o,d,a),o.elementType=k,o.lanes=s,o.stateNode={isHidden:!1},o}function ep(o,a,s){return o=Fn(6,o,null,a),o.lanes=s,o}function tp(o,a,s){return a=Fn(4,o.children!==null?o.children:[],o.key,a),a.lanes=s,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}function n2(o,a,s,d,g){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=g,this.mutableSourceEagerHydrationData=null}function rp(o,a,s,d,g,b,P,z,W){return o=new n2(o,a,s,z,W),a===1?(a=1,b===!0&&(a|=8)):a=0,b=Fn(3,null,null,a),o.current=b,b.stateNode=o,b.memoizedState={element:d,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},mf(b),o}function o2(o,a,s){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:d==null?null:""+d,children:o,containerInfo:a,implementation:s}}function U0(o){if(!o)return ti;o=o._reactInternals;e:{if(ut(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(Jr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(r(171))}if(o.tag===1){var s=o.type;if(Jr(s))return bv(o,s,a)}return a}function q0(o,a,s,d,g,b,P,z,W){return o=rp(s,d,!0,o,g,b,P,z,W),o.context=U0(null),s=o.current,d=qr(),g=si(s),b=ko(d,g),b.callback=a??null,oi(s,b,g),o.current.lanes=g,ho(o,g,d),tn(o,d),o}function Hu(o,a,s,d){var g=a.current,b=qr(),P=si(g);return s=U0(s),a.context===null?a.context=s:a.pendingContext=s,a=ko(b,P),a.payload={element:o},d=d===void 0?null:d,d!==null&&(a.callback=d),o=oi(g,a,P),o!==null&&(Zn(o,g,P,b),bu(o,g,P)),P}function Vu(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 G0(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var s=o.retryLane;o.retryLane=s!==0&&s<a?s:a}}function np(o,a){G0(o,a),(o=o.alternate)&&G0(o,a)}function i2(){return null}var K0=typeof reportError=="function"?reportError:function(o){console.error(o)};function op(o){this._internalRoot=o}Wu.prototype.render=op.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));Hu(o,a,null,null)},Wu.prototype.unmount=op.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;zi(function(){Hu(null,o,null,null)}),a[_o]=null}};function Wu(o){this._internalRoot=o}Wu.prototype.unstable_scheduleHydration=function(o){if(o){var a=ga();o={blockedOn:null,target:o,priority:a};for(var s=0;s<un.length&&a!==0&&a<un[s].priority;s++);un.splice(s,0,o),s===0&&Kt(o)}};function ip(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Uu(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function X0(){}function a2(o,a,s,d,g){if(g){if(typeof d=="function"){var b=d;d=function(){var oe=Vu(P);b.call(oe)}}var P=q0(a,d,o,0,null,!1,!1,"",X0);return o._reactRootContainer=P,o[_o]=P.current,Il(o.nodeType===8?o.parentNode:o),zi(),P}for(;g=o.lastChild;)o.removeChild(g);if(typeof d=="function"){var z=d;d=function(){var oe=Vu(W);z.call(oe)}}var W=rp(o,0,!1,null,null,!1,!1,"",X0);return o._reactRootContainer=W,o[_o]=W.current,Il(o.nodeType===8?o.parentNode:o),zi(function(){Hu(a,W,s,d)}),W}function qu(o,a,s,d,g){var b=s._reactRootContainer;if(b){var P=b;if(typeof g=="function"){var z=g;g=function(){var W=Vu(P);z.call(W)}}Hu(a,P,o,g)}else P=a2(s,a,o,g,d);return Vu(P)}ma=function(o){switch(o.tag){case 3:var a=o.stateNode;if(a.current.memoizedState.isDehydrated){var s=Oo(a.pendingLanes);s!==0&&(Ti(a,s|1),tn(a,wt()),!(Et&6)&&(Aa=wt()+500,ri()))}break;case 13:zi(function(){var d=jo(o,1);if(d!==null){var g=qr();Zn(d,o,1,g)}}),np(o,1)}},To=function(o){if(o.tag===13){var a=jo(o,134217728);if(a!==null){var s=qr();Zn(a,o,134217728,s)}np(o,134217728)}},sn=function(o){if(o.tag===13){var a=si(o),s=jo(o,a);if(s!==null){var d=qr();Zn(s,o,a,d)}np(o,a)}},ga=function(){return Ct},wl=function(o,a){var s=Ct;try{return Ct=o,a()}finally{Ct=s}},Ar=function(o,a,s){switch(a){case"input":if(ft(o,s),a=s.name,s.type==="radio"&&a!=null){for(s=o;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<s.length;a++){var d=s[a];if(d!==o&&d.form===o.form){var g=uu(d);if(!g)throw Error(r(90));_e(d),ft(d,g)}}}break;case"textarea":Fe(o,s);break;case"select":a=s.value,a!=null&&Le(o,!!s.multiple,a,!1)}},Lt=Qf,V=zi;var l2={usingClientEntryPoint:!1,Events:[kl,Ra,uu,Bt,Xr,Qf]},Xl={findFiberByHostInstance:Mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},s2={bundleType:Xl.bundleType,version:Xl.version,rendererPackageName:Xl.rendererPackageName,rendererConfig:Xl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Dr(o),o===null?null:o.stateNode},findFiberByHostInstance:Xl.findFiberByHostInstance||i2,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 Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{yr=Gu.inject(s2),Yt=Gu}catch{}}return rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l2,rn.createPortal=function(o,a){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ip(a))throw Error(r(200));return o2(o,a,null,s)},rn.createRoot=function(o,a){if(!ip(o))throw Error(r(299));var s=!1,d="",g=K0;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onRecoverableError!==void 0&&(g=a.onRecoverableError)),a=rp(o,1,!1,null,null,s,!1,d,g),o[_o]=a.current,Il(o.nodeType===8?o.parentNode:o),new op(a)},rn.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=Dr(a),o=o===null?null:o.stateNode,o},rn.flushSync=function(o){return zi(o)},rn.hydrate=function(o,a,s){if(!Uu(a))throw Error(r(200));return qu(null,o,a,!0,s)},rn.hydrateRoot=function(o,a,s){if(!ip(o))throw Error(r(405));var d=s!=null&&s.hydratedSources||null,g=!1,b="",P=K0;if(s!=null&&(s.unstable_strictMode===!0&&(g=!0),s.identifierPrefix!==void 0&&(b=s.identifierPrefix),s.onRecoverableError!==void 0&&(P=s.onRecoverableError)),a=q0(a,null,o,1,s??null,g,!1,b,P),o[_o]=a.current,Il(o),d)for(o=0;o<d.length;o++)s=d[o],g=s._getVersion,g=g(s._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[s,g]:a.mutableSourceEagerHydrationData.push(s,g);return new Wu(a)},rn.render=function(o,a,s){if(!Uu(a))throw Error(r(200));return qu(null,o,a,!1,s)},rn.unmountComponentAtNode=function(o){if(!Uu(o))throw Error(r(40));return o._reactRootContainer?(zi(function(){qu(null,null,o,!1,function(){o._reactRootContainer=null,o[_o]=null})}),!0):!1},rn.unstable_batchedUpdates=Qf,rn.unstable_renderSubtreeIntoContainer=function(o,a,s,d){if(!Uu(s))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return qu(o,a,s,!1,d)},rn.version="18.3.1-next-f1338f8080-20240426",rn}var ny;function X1(){if(ny)return sp.exports;ny=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(),sp.exports=m2(),sp.exports}var oy;function g2(){if(oy)return Ku;oy=1;var e=X1();return Ku.createRoot=e.createRoot,Ku.hydrateRoot=e.hydrateRoot,Ku}var v2=g2(),Yl={},iy;function y2(){if(iy)return Yl;iy=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.parse=u,Yl.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 u(y,C){const w=new l,x=y.length;if(x<2)return w;const S=(C==null?void 0:C.decode)||m;let E=0;do{const O=y.indexOf("=",E);if(O===-1)break;const $=y.indexOf(";",E),M=$===-1?x:$;if(O>M){E=y.lastIndexOf(";",O-1)+1;continue}const R=c(y,E,O),T=f(y,O,R),_=y.slice(R,T);if(w[_]===void 0){let F=c(y,O+1,M),j=f(y,M,F);const B=S(y.slice(F,j));w[_]=B}E=M+1}while(E<x);return w}function c(y,C,w){do{const x=y.charCodeAt(C);if(x!==32&&x!==9)return C}while(++C<w);return w}function f(y,C,w){for(;C>w;){const x=y.charCodeAt(--C);if(x!==32&&x!==9)return C+1}return w}function p(y,C,w){const x=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=x(C);if(!t.test(S))throw new TypeError(`argument val is invalid: ${C}`);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(!v(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 m(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function v(y){return i.call(y)==="[object Date]"}return Yl}y2();/**
 * 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 ay="popstate";function b2(e={}){function t(n,i){let{pathname:l,search:u,hash:c}=n.location;return ys("",{pathname:l,search:u,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:wi(i)}return w2(t,r,null,e)}function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function S2(){return Math.random().toString(36).substring(2,10)}function ly(e,t){return{usr:e.state,key:e.key,idx:t}}function ys(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ci(t):t,state:r,key:t&&t.key||n||S2()}}function wi({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 Ci(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 w2(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:l=!1}=n,u=i.history,c="POP",f=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function v(){c="POP";let S=m(),E=S==null?null:S-p;p=S,f&&f({action:c,location:x.location,delta:E})}function y(S,E){c="PUSH";let O=ys(x.location,S,E);p=m()+1;let $=ly(O,p),M=x.createHref(O);try{u.pushState($,"",M)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(M)}l&&f&&f({action:c,location:x.location,delta:1})}function C(S,E){c="REPLACE";let O=ys(x.location,S,E);p=m();let $=ly(O,p),M=x.createHref(O);u.replaceState($,"",M),l&&f&&f({action:c,location:x.location,delta:0})}function w(S){let E=i.location.origin!=="null"?i.location.origin:i.location.href,O=typeof S=="string"?S:wi(S);return O=O.replace(/ $/,"%20"),dt(E,`No window.location.(origin|href) available to create URL for href: ${O}`),new URL(O,E)}let x={get action(){return c},get location(){return e(i,u)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(ay,v),f=S,()=>{i.removeEventListener(ay,v),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:C,go(S){return u.go(S)}};return x}var x2=new Set(["lazy","caseSensitive","path","id","index","children"]);function C2(e){return e.index===!0}function Nc(e,t,r=[],n={}){return e.map((i,l)=>{let u=[...r,String(l)],c=typeof i.id=="string"?i.id:u.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`),C2(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=Nc(i.children,t,u,n)),f}})}function mi(e,t,r="/"){return Sc(e,t,r,!1)}function Sc(e,t,r,n){let i=typeof t=="string"?Ci(t):t,l=so(i.pathname||"/",r);if(l==null)return null;let u=Q1(e);R2(u);let c=null;for(let f=0;c==null&&f<u.length;++f){let p=N2(l);c=j2(u[f],p,n)}return c}function E2(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 Q1(e,t=[],r=[],n=""){let i=(l,u,c)=>{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:u,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=Ro([n,f.relativePath]),m=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}".`),Q1(l.children,t,m,p)),!(l.path==null&&!l.index)&&t.push({path:p,score:I2(p,l.index),routesMeta:m})};return e.forEach((l,u)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))i(l,u);else for(let f of Y1(l.path))i(l,u,f)}),t}function Y1(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 u=Y1(n.join("/")),c=[];return c.push(...u.map(f=>f===""?l:[l,f].join("/"))),i&&c.push(...u),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function R2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:F2(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var $2=/^:[\w-]+$/,O2=3,P2=2,T2=1,_2=10,M2=-2,sy=e=>e==="*";function I2(e,t){let r=e.split("/"),n=r.length;return r.some(sy)&&(n+=M2),t&&(n+=P2),r.filter(i=>!sy(i)).reduce((i,l)=>i+($2.test(l)?O2:l===""?T2:_2),n)}function F2(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 j2(e,t,r=!1){let{routesMeta:n}=e,i={},l="/",u=[];for(let c=0;c<n.length;++c){let f=n[c],p=c===n.length-1,m=l==="/"?t:t.slice(l.length)||"/",v=Lc({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},m),y=f.route;if(!v&&p&&r&&!n[n.length-1].route.index&&(v=Lc({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!v)return null;Object.assign(i,v.params),u.push({params:i,pathname:Ro([l,v.pathname]),pathnameBase:z2(Ro([l,v.pathnameBase])),route:y}),v.pathnameBase!=="/"&&(l=Ro([l,v.pathnameBase]))}return u}function Lc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=k2(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],u=l.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:n.reduce((p,{paramName:m,isOptional:v},y)=>{if(m==="*"){let w=c[y]||"";u=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const C=c[y];return v&&!C?p[m]=void 0:p[m]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:e}}function k2(e,t=!1,r=!0){Cn(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,(u,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 N2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cn(!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 so(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 L2(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ci(e):e;return{pathname:r?r.startsWith("/")?r:A2(r,t):t,search:D2(n),hash:B2(i)}}function A2(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 dp(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 J1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function rd(e){let t=J1(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function nd(e,t,r,n=!1){let i;typeof e=="string"?i=Ci(e):(i={...e},dt(!i.pathname||!i.pathname.includes("?"),dp("?","pathname","search",i)),dt(!i.pathname||!i.pathname.includes("#"),dp("#","pathname","hash",i)),dt(!i.search||!i.search.includes("#"),dp("#","search","hash",i)));let l=e===""||i.pathname==="",u=l?"/":i.pathname,c;if(u==null)c=r;else{let v=t.length-1;if(!n&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),v-=1;i.pathname=y.join("/")}c=v>=0?t[v]:"/"}let f=L2(i,c),p=u&&u!=="/"&&u.endsWith("/"),m=(l||u===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(p||m)&&(f.pathname+="/"),f}var Ro=e=>e.join("/").replace(/\/\/+/g,"/"),z2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,B2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ac=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 od(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Z1=["POST","PUT","PATCH","DELETE"],H2=new Set(Z1),V2=["GET",...Z1],W2=new Set(V2),U2=new Set([301,302,303,307,308]),q2=new Set([307,308]),fp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_m=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),eS="remix-router-transitions",tS=Symbol("ResetLoaderData");function X2(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||K2,i={},l=Nc(e.routes,n,void 0,i),u,c=e.basename||"/",f=e.dataStrategy||eR,p=e.patchRoutesOnNavigation,m={...e.future},v=null,y=new Set,C=null,w=null,x=null,S=e.hydrationData!=null,E=mi(l,e.history.location,c),O=null;if(E==null&&!p){let V=Ln(404,{pathname:e.history.location.pathname}),{matches:G,route:J}=by(l);E=G,O={[J.id]:V}}E&&!e.hydrationData&&Ut(E,l,e.history.location.pathname).active&&(E=null);let $;if(E)if(E.some(V=>V.route.lazy))$=!1;else if(!E.some(V=>V.route.loader))$=!0;else{let V=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null;if(G){let J=E.findIndex(fe=>G[fe.route.id]!==void 0);$=E.slice(0,J+1).every(fe=>!vh(fe.route,V,G))}else $=E.every(J=>!vh(J.route,V,G))}else{$=!1,E=[];let V=Ut(null,l,e.history.location.pathname);V.active&&V.matches&&(E=V.matches)}let M,R={historyAction:e.history.action,location:e.history.location,matches:E,initialized:$,navigation:fp,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||O,fetchers:new Map,blockers:new Map},T="POP",_=!1,F,j=!1,B=new Map,Q=null,Z=!1,X=!1,U=new Set,q=new Map,D=0,k=-1,N=new Map,H=new Set,A=new Map,I=new Map,L=new Set,ne=new Map,Y,ae=null;function ue(){if(v=e.history.listen(({action:V,location:G,delta:J})=>{if(Y){Y(),Y=void 0;return}Cn(ne.size===0||J!=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 fe=qe({currentLocation:R.location,nextLocation:G,historyAction:V});if(fe&&J!=null){let Oe=new Promise(xe=>{Y=xe});e.history.go(J*-1),je(fe,{state:"blocked",location:G,proceed(){je(fe,{state:"proceeding",proceed:void 0,reset:void 0,location:G}),Oe.then(()=>e.history.go(J))},reset(){let xe=new Map(R.blockers);xe.set(fe,Jl),de({blockers:xe})}});return}return Me(V,G)}),r){dR(t,B);let V=()=>fR(t,B);t.addEventListener("pagehide",V),Q=()=>t.removeEventListener("pagehide",V)}return R.initialized||Me("POP",R.location,{initialHydration:!0}),M}function se(){v&&v(),Q&&Q(),y.clear(),F&&F.abort(),R.fetchers.forEach((V,G)=>bt(G)),R.blockers.forEach((V,G)=>nr(G))}function ce(V){return y.add(V),()=>y.delete(V)}function de(V,G={}){R={...R,...V};let J=[],fe=[];R.fetchers.forEach((Oe,xe)=>{Oe.state==="idle"&&(L.has(xe)?J.push(xe):fe.push(xe))}),[...y].forEach(Oe=>Oe(R,{deletedFetchers:J,viewTransitionOpts:G.viewTransitionOpts,flushSync:G.flushSync===!0})),J.forEach(Oe=>bt(Oe)),fe.forEach(Oe=>R.fetchers.delete(Oe))}function we(V,G,{flushSync:J}={}){var ve,Ke;let fe=R.actionData!=null&&R.navigation.formMethod!=null&&to(R.navigation.formMethod)&&R.navigation.state==="loading"&&((ve=V.state)==null?void 0:ve._isRedirect)!==!0,Oe;G.actionData?Object.keys(G.actionData).length>0?Oe=G.actionData:Oe=null:fe?Oe=R.actionData:Oe=null;let xe=G.loaderData?vy(R.loaderData,G.loaderData,G.matches||[],G.errors):R.loaderData,$e=R.blockers;$e.size>0&&($e=new Map($e),$e.forEach((ot,vt)=>$e.set(vt,Jl)));let Ce=_===!0||R.navigation.formMethod!=null&&to(R.navigation.formMethod)&&((Ke=V.state)==null?void 0:Ke._isRedirect)!==!0;u&&(l=u,u=void 0),Z||T==="POP"||(T==="PUSH"?e.history.push(V,V.state):T==="REPLACE"&&e.history.replace(V,V.state));let Re;if(T==="POP"){let ot=B.get(R.location.pathname);ot&&ot.has(V.pathname)?Re={currentLocation:R.location,nextLocation:V}:B.has(V.pathname)&&(Re={currentLocation:V,nextLocation:R.location})}else if(j){let ot=B.get(R.location.pathname);ot?ot.add(V.pathname):(ot=new Set([V.pathname]),B.set(R.location.pathname,ot)),Re={currentLocation:R.location,nextLocation:V}}de({...G,actionData:Oe,loaderData:xe,historyAction:T,location:V,initialized:!0,navigation:fp,revalidation:"idle",restoreScrollPosition:dr(V,G.matches||R.matches),preventScrollReset:Ce,blockers:$e},{viewTransitionOpts:Re,flushSync:J===!0}),T="POP",_=!1,j=!1,Z=!1,X=!1,ae==null||ae.resolve(),ae=null}async function De(V,G){if(typeof V=="number"){e.history.go(V);return}let J=gh(R.location,R.matches,c,V,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:fe,submission:Oe,error:xe}=uy(!1,J,G),$e=R.location,Ce=ys(R.location,fe,G&&G.state);Ce={...Ce,...e.history.encodeLocation(Ce)};let Re=G&&G.replace!=null?G.replace:void 0,ve="PUSH";Re===!0?ve="REPLACE":Re===!1||Oe!=null&&to(Oe.formMethod)&&Oe.formAction===R.location.pathname+R.location.search&&(ve="REPLACE");let Ke=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,ot=(G&&G.flushSync)===!0,vt=qe({currentLocation:$e,nextLocation:Ce,historyAction:ve});if(vt){je(vt,{state:"blocked",location:Ce,proceed(){je(vt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),De(V,G)},reset(){let Mt=new Map(R.blockers);Mt.set(vt,Jl),de({blockers:Mt})}});return}await Me(ve,Ce,{submission:Oe,pendingError:xe,preventScrollReset:Ke,replace:G&&G.replace,enableViewTransition:G&&G.viewTransition,flushSync:ot})}function _e(){ae||(ae=pR()),Fe(),de({revalidation:"loading"});let V=ae.promise;return R.navigation.state==="submitting"?V:R.navigation.state==="idle"?(Me(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),V):(Me(T||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:j===!0}),V)}async function Me(V,G,J){F&&F.abort(),F=null,T=V,Z=(J&&J.startUninterruptedRevalidation)===!0,zr(R.location,R.matches),_=(J&&J.preventScrollReset)===!0,j=(J&&J.enableViewTransition)===!0;let fe=u||l,Oe=J&&J.overrideNavigation,xe=mi(fe,G,c),$e=(J&&J.flushSync)===!0,Ce=Ut(xe,fe,G.pathname);if(Ce.active&&Ce.matches&&(xe=Ce.matches),!xe){let{error:ut,notFoundMatches:mt,route:Rt}=_t(G.pathname);we(G,{matches:mt,loaderData:{},errors:{[Rt.id]:ut}},{flushSync:$e});return}if(R.initialized&&!X&&aR(R.location,G)&&!(J&&J.submission&&to(J.submission.formMethod))){we(G,{matches:xe},{flushSync:$e});return}F=new AbortController;let Re=Da(e.history,G,F.signal,J&&J.submission),ve;if(J&&J.pendingError)ve=[Ui(xe).route.id,{type:"error",error:J.pendingError}];else if(J&&J.submission&&to(J.submission.formMethod)){let ut=await We(Re,G,J.submission,xe,Ce.active,{replace:J.replace,flushSync:$e});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[mt,Rt]=ut.pendingActionResult;if(bn(Rt)&&od(Rt.error)&&Rt.error.status===404){F=null,we(G,{matches:ut.matches,loaderData:{},errors:{[mt]:Rt.error}});return}}xe=ut.matches||xe,ve=ut.pendingActionResult,Oe=pp(G,J.submission),$e=!1,Ce.active=!1,Re=Da(e.history,Re.url,Re.signal)}let{shortCircuited:Ke,matches:ot,loaderData:vt,errors:Mt}=await Te(Re,G,xe,Ce.active,Oe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,J&&J.initialHydration===!0,$e,ve);Ke||(F=null,we(G,{matches:ot||xe,...yy(ve),loaderData:vt,errors:Mt}))}async function We(V,G,J,fe,Oe,xe={}){Fe();let $e=uR(G,J);if(de({navigation:$e},{flushSync:xe.flushSync===!0}),Oe){let ve=await Bt(fe,G.pathname,V.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){let Ke=Ui(ve.partialMatches).route.id;return{matches:ve.partialMatches,pendingActionResult:[Ke,{type:"error",error:ve.error}]}}else if(ve.matches)fe=ve.matches;else{let{notFoundMatches:Ke,error:ot,route:vt}=_t(G.pathname);return{matches:Ke,pendingActionResult:[vt.id,{type:"error",error:ot}]}}}let Ce,Re=ls(fe,G);if(!Re.route.action&&!Re.route.lazy)Ce={type:"error",error:Ln(405,{method:V.method,pathname:G.pathname,routeId:Re.route.id})};else if(Ce=(await st("action",R,V,[Re],fe,null))[Re.route.id],V.signal.aborted)return{shortCircuited:!0};if(Gi(Ce)){let ve;return xe&&xe.replace!=null?ve=xe.replace:ve=hy(Ce.response.headers.get("Location"),new URL(V.url),c)===R.location.pathname+R.location.search,await Le(V,Ce,!0,{submission:J,replace:ve}),{shortCircuited:!0}}if(bn(Ce)){let ve=Ui(fe,Re.route.id);return(xe&&xe.replace)!==!0&&(T="PUSH"),{matches:fe,pendingActionResult:[ve.route.id,Ce]}}return{matches:fe,pendingActionResult:[Re.route.id,Ce]}}async function Te(V,G,J,fe,Oe,xe,$e,Ce,Re,ve,Ke){let ot=Oe||pp(G,xe),vt=xe||$e||wy(ot),Mt=!Z&&!Re;if(fe){if(Mt){let Gt=Ve(Ke);de({navigation:ot,...Gt!==void 0?{actionData:Gt}:{}},{flushSync:ve})}let xt=await Bt(J,G.pathname,V.signal);if(xt.type==="aborted")return{shortCircuited:!0};if(xt.type==="error"){let Gt=Ui(xt.partialMatches).route.id;return{matches:xt.partialMatches,loaderData:{},errors:{[Gt]:xt.error}}}else if(xt.matches)J=xt.matches;else{let{error:Gt,notFoundMatches:Qr,route:Br}=_t(G.pathname);return{matches:Qr,loaderData:{},errors:{[Br.id]:Gt}}}}let ut=u||l,[mt,Rt]=dy(e.history,R,J,vt,G,Re===!0,X,U,L,A,H,ut,c,Ke);if(k=++D,mt.length===0&&Rt.length===0){let xt=ht();return we(G,{matches:J,loaderData:{},errors:Ke&&bn(Ke[1])?{[Ke[0]]:Ke[1].error}:null,...yy(Ke),...xt?{fetchers:new Map(R.fetchers)}:{}},{flushSync:ve}),{shortCircuited:!0}}if(Mt){let xt={};if(!fe){xt.navigation=ot;let Gt=Ve(Ke);Gt!==void 0&&(xt.actionData=Gt)}Rt.length>0&&(xt.fetchers=ft(Rt)),de(xt,{flushSync:ve})}Rt.forEach(xt=>{St(xt.key),xt.controller&&q.set(xt.key,xt.controller)});let jt=()=>Rt.forEach(xt=>St(xt.key));F&&F.signal.addEventListener("abort",jt);let{loaderResults:Dr,fetcherResults:ar}=await be(R,J,mt,Rt,V);if(V.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",jt),Rt.forEach(xt=>q.delete(xt.key));let vr=Xu(Dr);if(vr)return await Le(V,vr.result,!0,{replace:Ce}),{shortCircuited:!0};if(vr=Xu(ar),vr)return H.add(vr.key),await Le(V,vr.result,!0,{replace:Ce}),{shortCircuited:!0};let{loaderData:qt,errors:Rn}=gy(R,J,Dr,Ke,Rt,ar);Re&&R.errors&&(Rn={...R.errors,...Rn});let an=ht(),wt=Je(k),qn=an||wt||Rt.length>0;return{matches:J,loaderData:qt,errors:Rn,...qn?{fetchers:new Map(R.fetchers)}:{}}}function Ve(V){if(V&&!bn(V[1]))return{[V[0]]:V[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function ft(V){return V.forEach(G=>{let J=R.fetchers.get(G.key),fe=Zl(void 0,J?J.data:void 0);R.fetchers.set(G.key,fe)}),new Map(R.fetchers)}async function Ze(V,G,J,fe){St(V);let Oe=(fe&&fe.flushSync)===!0,xe=u||l,$e=gh(R.location,R.matches,c,J,G,fe==null?void 0:fe.relative),Ce=mi(xe,$e,c),Re=Ut(Ce,xe,$e);if(Re.active&&Re.matches&&(Ce=Re.matches),!Ce){tt(V,G,Ln(404,{pathname:$e}),{flushSync:Oe});return}let{path:ve,submission:Ke,error:ot}=uy(!0,$e,fe);if(ot){tt(V,G,ot,{flushSync:Oe});return}let vt=ls(Ce,ve),Mt=(fe&&fe.preventScrollReset)===!0;if(Ke&&to(Ke.formMethod)){await pt(V,G,ve,vt,Ce,Re.active,Oe,Mt,Ke);return}A.set(V,{routeId:G,path:ve}),await at(V,G,ve,vt,Ce,Re.active,Oe,Mt,Ke)}async function pt(V,G,J,fe,Oe,xe,$e,Ce,Re){Fe(),A.delete(V);function ve(kt){if(!kt.route.action&&!kt.route.lazy){let yr=Ln(405,{method:Re.formMethod,pathname:J,routeId:G});return tt(V,G,yr,{flushSync:$e}),!0}return!1}if(!xe&&ve(fe))return;let Ke=R.fetchers.get(V);Ue(V,cR(Re,Ke),{flushSync:$e});let ot=new AbortController,vt=Da(e.history,J,ot.signal,Re);if(xe){let kt=await Bt(Oe,J,vt.signal);if(kt.type==="aborted")return;if(kt.type==="error"){tt(V,G,kt.error,{flushSync:$e});return}else if(kt.matches){if(Oe=kt.matches,fe=ls(Oe,J),ve(fe))return}else{tt(V,G,Ln(404,{pathname:J}),{flushSync:$e});return}}q.set(V,ot);let Mt=D,mt=(await st("action",R,vt,[fe],Oe,V))[fe.route.id];if(vt.signal.aborted){q.get(V)===ot&&q.delete(V);return}if(L.has(V)){if(Gi(mt)||bn(mt)){Ue(V,pi(void 0));return}}else{if(Gi(mt))if(q.delete(V),k>Mt){Ue(V,pi(void 0));return}else return H.add(V),Ue(V,Zl(Re)),Le(vt,mt,!1,{fetcherSubmission:Re,preventScrollReset:Ce});if(bn(mt)){tt(V,G,mt.error);return}}let Rt=R.navigation.location||R.location,jt=Da(e.history,Rt,ot.signal),Dr=u||l,ar=R.navigation.state!=="idle"?mi(Dr,R.navigation.location,c):R.matches;dt(ar,"Didn't find any matches after fetcher action");let vr=++D;N.set(V,vr);let qt=Zl(Re,mt.data);R.fetchers.set(V,qt);let[Rn,an]=dy(e.history,R,ar,Re,Rt,!1,X,U,L,A,H,Dr,c,[fe.route.id,mt]);an.filter(kt=>kt.key!==V).forEach(kt=>{let yr=kt.key,Yt=R.fetchers.get(yr),Ko=Zl(void 0,Yt?Yt.data:void 0);R.fetchers.set(yr,Ko),St(yr),kt.controller&&q.set(yr,kt.controller)}),de({fetchers:new Map(R.fetchers)});let wt=()=>an.forEach(kt=>St(kt.key));ot.signal.addEventListener("abort",wt);let{loaderResults:qn,fetcherResults:xt}=await be(R,ar,Rn,an,jt);if(ot.signal.aborted)return;ot.signal.removeEventListener("abort",wt),N.delete(V),q.delete(V),an.forEach(kt=>q.delete(kt.key));let Gt=Xu(qn);if(Gt)return Le(jt,Gt.result,!1,{preventScrollReset:Ce});if(Gt=Xu(xt),Gt)return H.add(Gt.key),Le(jt,Gt.result,!1,{preventScrollReset:Ce});let{loaderData:Qr,errors:Br}=gy(R,ar,qn,void 0,an,xt);if(R.fetchers.has(V)){let kt=pi(mt.data);R.fetchers.set(V,kt)}Je(vr),R.navigation.state==="loading"&&vr>k?(dt(T,"Expected pending action"),F&&F.abort(),we(R.navigation.location,{matches:ar,loaderData:Qr,errors:Br,fetchers:new Map(R.fetchers)})):(de({errors:Br,loaderData:vy(R.loaderData,Qr,ar,Br),fetchers:new Map(R.fetchers)}),X=!1)}async function at(V,G,J,fe,Oe,xe,$e,Ce,Re){let ve=R.fetchers.get(V);Ue(V,Zl(Re,ve?ve.data:void 0),{flushSync:$e});let Ke=new AbortController,ot=Da(e.history,J,Ke.signal);if(xe){let mt=await Bt(Oe,J,ot.signal);if(mt.type==="aborted")return;if(mt.type==="error"){tt(V,G,mt.error,{flushSync:$e});return}else if(mt.matches)Oe=mt.matches,fe=ls(Oe,J);else{tt(V,G,Ln(404,{pathname:J}),{flushSync:$e});return}}q.set(V,Ke);let vt=D,ut=(await st("loader",R,ot,[fe],Oe,V))[fe.route.id];if(q.get(V)===Ke&&q.delete(V),!ot.signal.aborted){if(L.has(V)){Ue(V,pi(void 0));return}if(Gi(ut))if(k>vt){Ue(V,pi(void 0));return}else{H.add(V),await Le(ot,ut,!1,{preventScrollReset:Ce});return}if(bn(ut)){tt(V,G,ut.error);return}Ue(V,pi(ut.data))}}async function Le(V,G,J,{submission:fe,fetcherSubmission:Oe,preventScrollReset:xe,replace:$e}={}){G.response.headers.has("X-Remix-Revalidate")&&(X=!0);let Ce=G.response.headers.get("Location");dt(Ce,"Expected a Location header on the redirect Response"),Ce=hy(Ce,new URL(V.url),c);let Re=ys(R.location,Ce,{_isRedirect:!0});if(r){let ut=!1;if(G.response.headers.has("X-Remix-Reload-Document"))ut=!0;else if(_m.test(Ce)){const mt=e.history.createURL(Ce);ut=mt.origin!==t.location.origin||so(mt.pathname,c)==null}if(ut){$e?t.location.replace(Ce):t.location.assign(Ce);return}}F=null;let ve=$e===!0||G.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ke,formAction:ot,formEncType:vt}=R.navigation;!fe&&!Oe&&Ke&&ot&&vt&&(fe=wy(R.navigation));let Mt=fe||Oe;if(q2.has(G.response.status)&&Mt&&to(Mt.formMethod))await Me(ve,Re,{submission:{...Mt,formAction:Ce},preventScrollReset:xe||_,enableViewTransition:J?j:void 0});else{let ut=pp(Re,fe);await Me(ve,Re,{overrideNavigation:ut,fetcherSubmission:Oe,preventScrollReset:xe||_,enableViewTransition:J?j:void 0})}}async function st(V,G,J,fe,Oe,xe){let $e,Ce={};try{$e=await tR(f,V,G,J,fe,Oe,xe,i,n)}catch(Re){return fe.forEach(ve=>{Ce[ve.route.id]={type:"error",error:Re}}),Ce}for(let[Re,ve]of Object.entries($e))if(lR(ve)){let Ke=ve.result;Ce[Re]={type:"redirect",response:oR(Ke,J,Re,Oe,c)}}else Ce[Re]=await nR(ve);return Ce}async function be(V,G,J,fe,Oe){let xe=st("loader",V,Oe,J,G,null),$e=Promise.all(fe.map(async ve=>{if(ve.matches&&ve.match&&ve.controller){let ot=(await st("loader",V,Da(e.history,ve.path,ve.controller.signal),[ve.match],ve.matches,ve.key))[ve.match.route.id];return{[ve.key]:ot}}else return Promise.resolve({[ve.key]:{type:"error",error:Ln(404,{pathname:ve.path})}})})),Ce=await xe,Re=(await $e).reduce((ve,Ke)=>Object.assign(ve,Ke),{});return{loaderResults:Ce,fetcherResults:Re}}function Fe(){X=!0,A.forEach((V,G)=>{q.has(G)&&U.add(G),St(G)})}function Ue(V,G,J={}){R.fetchers.set(V,G),de({fetchers:new Map(R.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function tt(V,G,J,fe={}){let Oe=Ui(R.matches,G);bt(V),de({errors:{[Oe.route.id]:J},fetchers:new Map(R.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function Pt(V){return I.set(V,(I.get(V)||0)+1),L.has(V)&&L.delete(V),R.fetchers.get(V)||G2}function bt(V){let G=R.fetchers.get(V);q.has(V)&&!(G&&G.state==="loading"&&N.has(V))&&St(V),A.delete(V),N.delete(V),H.delete(V),L.delete(V),U.delete(V),R.fetchers.delete(V)}function Dt(V){let G=(I.get(V)||0)-1;G<=0?(I.delete(V),L.add(V)):I.set(V,G),de({fetchers:new Map(R.fetchers)})}function St(V){let G=q.get(V);G&&(G.abort(),q.delete(V))}function Qt(V){for(let G of V){let J=Pt(G),fe=pi(J.data);R.fetchers.set(G,fe)}}function ht(){let V=[],G=!1;for(let J of H){let fe=R.fetchers.get(J);dt(fe,`Expected fetcher: ${J}`),fe.state==="loading"&&(H.delete(J),V.push(J),G=!0)}return Qt(V),G}function Je(V){let G=[];for(let[J,fe]of N)if(fe<V){let Oe=R.fetchers.get(J);dt(Oe,`Expected fetcher: ${J}`),Oe.state==="loading"&&(St(J),N.delete(J),G.push(J))}return Qt(G),G.length>0}function Ge(V,G){let J=R.blockers.get(V)||Jl;return ne.get(V)!==G&&ne.set(V,G),J}function nr(V){R.blockers.delete(V),ne.delete(V)}function je(V,G){let J=R.blockers.get(V)||Jl;dt(J.state==="unblocked"&&G.state==="blocked"||J.state==="blocked"&&G.state==="blocked"||J.state==="blocked"&&G.state==="proceeding"||J.state==="blocked"&&G.state==="unblocked"||J.state==="proceeding"&&G.state==="unblocked",`Invalid blocker state transition: ${J.state} -> ${G.state}`);let fe=new Map(R.blockers);fe.set(V,G),de({blockers:fe})}function qe({currentLocation:V,nextLocation:G,historyAction:J}){if(ne.size===0)return;ne.size>1&&Cn(!1,"A router only supports one blocker at a time");let fe=Array.from(ne.entries()),[Oe,xe]=fe[fe.length-1],$e=R.blockers.get(Oe);if(!($e&&$e.state==="proceeding")&&xe({currentLocation:V,nextLocation:G,historyAction:J}))return Oe}function _t(V){let G=Ln(404,{pathname:V}),J=u||l,{matches:fe,route:Oe}=by(J);return{notFoundMatches:fe,route:Oe,error:G}}function Lr(V,G,J){if(C=V,x=G,w=J||null,!S&&R.navigation===fp){S=!0;let fe=dr(R.location,R.matches);fe!=null&&de({restoreScrollPosition:fe})}return()=>{C=null,x=null,w=null}}function Ar(V,G){return w&&w(V,G.map(fe=>E2(fe,R.loaderData)))||V.key}function zr(V,G){if(C&&x){let J=Ar(V,G);C[J]=x()}}function dr(V,G){if(C){let J=Ar(V,G),fe=C[J];if(typeof fe=="number")return fe}return null}function Ut(V,G,J){if(p)if(V){if(Object.keys(V[0].params).length>0)return{active:!0,matches:Sc(G,J,c,!0)}}else return{active:!0,matches:Sc(G,J,c,!0)||[]};return{active:!1,matches:null}}async function Bt(V,G,J){if(!p)return{type:"success",matches:V};let fe=V;for(;;){let Oe=u==null,xe=u||l,$e=i;try{await p({path:G,matches:fe,patch:(ve,Ke)=>{J.aborted||py(ve,Ke,xe,$e,n)}})}catch(ve){return{type:"error",error:ve,partialMatches:fe}}finally{Oe&&!J.aborted&&(l=[...l])}if(J.aborted)return{type:"aborted"};let Ce=mi(xe,G,c);if(Ce)return{type:"success",matches:Ce};let Re=Sc(xe,G,c,!0);if(!Re||fe.length===Re.length&&fe.every((ve,Ke)=>ve.route.id===Re[Ke].route.id))return{type:"success",matches:null};fe=Re}}function Xr(V){i={},u=Nc(V,n,void 0,i)}function Lt(V,G){let J=u==null;py(V,G,u||l,i,n),J&&(l=[...l],de({}))}return M={get basename(){return c},get future(){return m},get state(){return R},get routes(){return l},get window(){return t},initialize:ue,subscribe:ce,enableScrollRestoration:Lr,navigate:De,fetch:Ze,revalidate:_e,createHref:V=>e.history.createHref(V),encodeLocation:V=>e.history.encodeLocation(V),getFetcher:Pt,deleteFetcher:Dt,dispose:se,getBlocker:Ge,deleteBlocker:nr,patchRoutes:Lt,_internalFetchControllers:q,_internalSetRoutes:Xr},M}function Q2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gh(e,t,r,n,i,l){let u,c;if(i){u=[];for(let p of t)if(u.push(p),p.route.id===i){c=p;break}}else u=t,c=t[t.length-1];let f=nd(n||".",rd(u),so(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=Mm(f.search);if(c.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&p){let m=new URLSearchParams(f.search),v=m.getAll("index");m.delete("index"),v.filter(C=>C).forEach(C=>m.append("index",C));let y=m.toString();f.search=y?`?${y}`:""}}return r!=="/"&&(f.pathname=f.pathname==="/"?r:Ro([r,f.pathname])),wi(f)}function uy(e,t,r){if(!r||!Q2(r))return{path:t};if(r.formMethod&&!sR(r.formMethod))return{path:t,error:Ln(405,{method:r.formMethod})};let n=()=>({path:t,error:Ln(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),u=nS(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!to(l))return n();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,[C,w])=>`${y}${C}=${w}
`,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!to(l))return n();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return n()}}}dt(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=yh(r.formData),f=r.formData;else if(r.body instanceof FormData)c=yh(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=my(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=my(c)}catch{return n()}let p={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(to(p.formMethod))return{path:t,submission:p};let m=Ci(t);return e&&m.search&&Mm(m.search)&&c.append("index",""),m.search=`?${c}`,{path:wi(m),submission:p}}function cy(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 dy(e,t,r,n,i,l,u,c,f,p,m,v,y,C){let w=C?bn(C[1])?C[1].error:C[1].data:void 0,x=e.createURL(t.location),S=e.createURL(i),E=r;l&&t.errors?E=cy(r,Object.keys(t.errors)[0],!0):C&&bn(C[1])&&(E=cy(r,C[0]));let O=C?C[1].statusCode:void 0,$=O&&O>=400,M=E.filter((T,_)=>{let{route:F}=T;if(F.lazy)return!0;if(F.loader==null)return!1;if(l)return vh(F,t.loaderData,t.errors);if(Y2(t.loaderData,t.matches[_],T))return!0;let j=t.matches[_],B=T;return fy(T,{currentUrl:x,currentParams:j.params,nextUrl:S,nextParams:B.params,...n,actionResult:w,actionStatus:O,defaultShouldRevalidate:$?!1:u||x.pathname+x.search===S.pathname+S.search||x.search!==S.search||J2(j,B)})}),R=[];return p.forEach((T,_)=>{if(l||!r.some(Z=>Z.route.id===T.routeId)||f.has(_))return;let F=mi(v,T.path,y);if(!F){R.push({key:_,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(_),B=ls(F,T.path),Q=!1;m.has(_)?Q=!1:c.has(_)?(c.delete(_),Q=!0):j&&j.state!=="idle"&&j.data===void 0?Q=u:Q=fy(B,{currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params,...n,actionResult:w,actionStatus:O,defaultShouldRevalidate:$?!1:u}),Q&&R.push({key:_,routeId:T.routeId,path:T.path,matches:F,match:B,controller:new AbortController})}),[M,R]}function vh(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 Y2(e,t,r){let n=!t||r.route.id!==t.route.id,i=!e.hasOwnProperty(r.route.id);return n||i}function J2(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function fy(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function py(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 u=t.filter(f=>!l.some(p=>rS(f,p))),c=Nc(u,i,[e||"_","patch",String((l==null?void 0:l.length)||"0")],n);l.push(...c)}function rS(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=>rS(r,l))}):!1}async function Z2(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 u in n){let f=i[u]!==void 0&&u!=="hasErrorBoundary";Cn(!f,`Route "${i.id}" has a static property "${u}" defined but its lazy function is also returning a value for this property. The lazy route property "${u}" will be ignored.`),!f&&!x2.has(u)&&(l[u]=n[u])}Object.assign(i,l),Object.assign(i,{...t(i),lazy:void 0})}async function eR({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 tR(e,t,r,n,i,l,u,c,f,p){let m=l.map(C=>C.route.lazy?Z2(C.route,f,c):void 0),v=l.map((C,w)=>{let x=m[w],S=i.some(O=>O.route.id===C.route.id);return{...C,shouldLoad:S,resolve:async O=>(O&&n.method==="GET"&&(C.route.lazy||C.route.loader)&&(S=!0),S?rR(t,n,C,x,O,p):Promise.resolve({type:"data",result:void 0}))}}),y=await e({matches:v,request:n,params:l[0].params,fetcherKey:u,context:p});try{await Promise.all(m)}catch{}return y}async function rR(e,t,r,n,i,l){let u,c,f=p=>{let m,v=new Promise((w,x)=>m=x);c=()=>m(),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]:[]),C=(async()=>{try{return{type:"data",result:await(i?i(x=>y(x)):y())}}catch(w){return{type:"error",result:w}}})();return Promise.race([C,v])};try{let p=r.route[e];if(n)if(p){let m,[v]=await Promise.all([f(p).catch(y=>{m=y}),n]);if(m!==void 0)throw m;u=v}else if(await n,p=r.route[e],p)u=await f(p);else if(e==="action"){let m=new URL(t.url),v=m.pathname+m.search;throw Ln(405,{method:t.method,pathname:v,routeId:r.route.id})}else return{type:"data",result:void 0};else if(p)u=await f(p);else{let m=new URL(t.url),v=m.pathname+m.search;throw Ln(404,{pathname:v})}}catch(p){return{type:"error",result:p}}finally{c&&t.signal.removeEventListener("abort",c)}return u}async function nR(e){var n,i,l,u;let{result:t,type:r}=e;if(oS(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 Ac(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(Sy(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(n=t.init)==null?void 0:n.status};t=new Ac(((i=t.init)==null?void 0:i.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:od(t)?t.status:void 0}}return Sy(t)?{type:"data",data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function oR(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"),!_m.test(l)){let u=n.slice(0,n.findIndex(c=>c.route.id===r)+1);l=gh(new URL(t.url),u,i,l),e.headers.set("Location",l)}return e}function hy(e,t,r){if(_m.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),l=so(i.pathname,r)!=null;if(i.origin===t.origin&&l)return i.pathname+i.search+i.hash}return e}function Da(e,t,r,n){let i=e.createURL(nS(t)).toString(),l={signal:r};if(n&&to(n.formMethod)){let{formMethod:u,formEncType:c}=n;l.method=u.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=yh(n.formData):l.body=n.formData}return new Request(i,l)}function yh(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function my(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function iR(e,t,r,n=!1,i=!1){let l={},u=null,c,f=!1,p={},m=r&&bn(r[1])?r[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let y=v.route.id,C=t[y];if(dt(!Gi(C),"Cannot handle redirect results in processLoaderData"),bn(C)){let w=C.error;if(m!==void 0&&(w=m,m=void 0),u=u||{},i)u[y]=w;else{let x=Ui(e,y);u[x.route.id]==null&&(u[x.route.id]=w)}n||(l[y]=tS),f||(f=!0,c=od(C.error)?C.error.status:500),C.headers&&(p[y]=C.headers)}else l[y]=C.data,C.statusCode&&C.statusCode!==200&&!f&&(c=C.statusCode),C.headers&&(p[y]=C.headers)}),m!==void 0&&r&&(u={[r[0]]:m},l[r[0]]=void 0),{loaderData:l,errors:u,statusCode:c||200,loaderHeaders:p}}function gy(e,t,r,n,i,l){let{loaderData:u,errors:c}=iR(t,r,n);return i.forEach(f=>{let{key:p,match:m,controller:v}=f,y=l[p];if(dt(y,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(bn(y)){let C=Ui(e.matches,m==null?void 0:m.route.id);c&&c[C.route.id]||(c={...c,[C.route.id]:y.error}),e.fetchers.delete(p)}else if(Gi(y))dt(!1,"Unhandled fetcher revalidation redirect");else{let C=pi(y.data);e.fetchers.set(p,C)}}),{loaderData:u,errors:c}}function vy(e,t,r,n){let i=Object.entries(t).filter(([,l])=>l!==tS).reduce((l,[u,c])=>(l[u]=c,l),{});for(let l of r){let u=l.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&l.route.loader&&(i[u]=e[u]),n&&n.hasOwnProperty(u))break}return i}function yy(e){return e?bn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ui(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 by(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 Ln(e,{pathname:t,routeId:r,method:n,type:i,message:l}={}){let u="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(u="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?(u="Forbidden",c=`Route "${r}" does not match URL "${t}"`):e===404?(u="Not Found",c=`No route matches URL "${t}"`):e===405&&(u="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 Ac(e||500,u,new Error(c),!0)}function Xu(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 nS(e){let t=typeof e=="string"?Ci(e):e;return wi({...t,hash:""})}function aR(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function lR(e){return oS(e.result)&&U2.has(e.result.status)}function bn(e){return e.type==="error"}function Gi(e){return(e&&e.type)==="redirect"}function Sy(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function oS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function sR(e){return W2.has(e.toUpperCase())}function to(e){return H2.has(e.toUpperCase())}function Mm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ls(e,t){let r=typeof t=="string"?Ci(t).search:t.search;if(e[e.length-1].route.index&&Mm(r||""))return e[e.length-1];let n=J1(e);return n[n.length-1]}function wy(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:l,json:u}=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(u!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:u,text:void 0}}}function pp(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 uR(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 Zl(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 cR(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 pi(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 dR(e,t){try{let r=e.sessionStorage.getItem(eS);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 fR(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(eS,JSON.stringify(r))}catch(n){Cn(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function pR(){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=h.createContext(null);ua.displayName="DataRouter";var As=h.createContext(null);As.displayName="DataRouterState";var Im=h.createContext({isTransitioning:!1});Im.displayName="ViewTransition";var iS=h.createContext(new Map);iS.displayName="Fetchers";var hR=h.createContext(null);hR.displayName="Await";var uo=h.createContext(null);uo.displayName="Navigation";var id=h.createContext(null);id.displayName="Location";var co=h.createContext({outlet:null,matches:[],isDataRoute:!1});co.displayName="Route";var Fm=h.createContext(null);Fm.displayName="RouteError";function mR(e,{relative:t}={}){dt(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=h.useContext(uo),{hash:i,pathname:l,search:u}=zs(e,{relative:t}),c=l;return r!=="/"&&(c=l==="/"?r:Ro([r,l])),n.createHref({pathname:c,search:u,hash:i})}function ul(){return h.useContext(id)!=null}function Wo(){return dt(ul(),"useLocation() may be used only in the context of a <Router> component."),h.useContext(id).location}var aS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lS(e){h.useContext(uo).static||h.useLayoutEffect(e)}function jm(){let{isDataRoute:e}=h.useContext(co);return e?_R():gR()}function gR(){dt(ul(),"useNavigate() may be used only in the context of a <Router> component.");let e=h.useContext(ua),{basename:t,navigator:r}=h.useContext(uo),{matches:n}=h.useContext(co),{pathname:i}=Wo(),l=JSON.stringify(rd(n)),u=h.useRef(!1);return lS(()=>{u.current=!0}),h.useCallback((f,p={})=>{if(Cn(u.current,aS),!u.current)return;if(typeof f=="number"){r.go(f);return}let m=nd(f,JSON.parse(l),i,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ro([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,i,e])}var vR=h.createContext(null);function yR(e){let t=h.useContext(co).outlet;return t&&h.createElement(vR.Provider,{value:e},t)}function zs(e,{relative:t}={}){let{matches:r}=h.useContext(co),{pathname:n}=Wo(),i=JSON.stringify(rd(r));return h.useMemo(()=>nd(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function bR(e,t,r,n){dt(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=h.useContext(uo),{matches:l}=h.useContext(co),u=l[l.length-1],c=u?u.params:{};u&&u.pathname;let f=u?u.pathnameBase:"/";u&&u.route;let p=Wo(),m;m=p;let v=m.pathname||"/",y=v;if(f!=="/"){let x=f.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(x.length).join("/")}let C=mi(e,{pathname:y});return ER(C&&C.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:Ro([f,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:Ro([f,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,r,n)}function SR(){let e=TR(),t=od(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:i},r):null,null)}var wR=h.createElement(SR,null),xR=class extends h.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?h.createElement(co.Provider,{value:this.props.routeContext},h.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function CR({routeContext:e,match:t,children:r}){let n=h.useContext(ua);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),h.createElement(co.Provider,{value:e},r)}function ER(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 u=!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:m,errors:v}=r,y=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||y){u=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((f,p,m)=>{let v,y=!1,C=null,w=null;r&&(v=l&&p.route.id?l[p.route.id]:void 0,C=p.route.errorElement||wR,u&&(c<0&&m===0?(MR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):c===m&&(y=!0,w=p.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,m+1)),S=()=>{let E;return v?E=C:y?E=w:p.route.Component?E=h.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=f,h.createElement(CR,{match:p,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:E})};return r&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?h.createElement(xR,{location:r.location,revalidation:r.revalidation,component:C,error:v,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function km(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function RR(e){let t=h.useContext(ua);return dt(t,km(e)),t}function $R(e){let t=h.useContext(As);return dt(t,km(e)),t}function OR(e){let t=h.useContext(co);return dt(t,km(e)),t}function Nm(e){let t=OR(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 PR(){return Nm("useRouteId")}function TR(){var n;let e=h.useContext(Fm),t=$R("useRouteError"),r=Nm("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function _R(){let{router:e}=RR("useNavigate"),t=Nm("useNavigate"),r=h.useRef(!1);return lS(()=>{r.current=!0}),h.useCallback(async(i,l={})=>{Cn(r.current,aS),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var xy={};function MR(e,t,r){xy[e]||(xy[e]=!0,Cn(!1,r))}var Cy={};function Ey(e,t){!e&&!Cy[t]&&(Cy[t]=!0,console.warn(t))}function IR(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var FR=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 jR({router:e,flushSync:t}){let[r,n]=h.useState(e.state),[i,l]=h.useState(),[u,c]=h.useState({isTransitioning:!1}),[f,p]=h.useState(),[m,v]=h.useState(),[y,C]=h.useState(),w=h.useRef(new Map),x=h.useCallback(($,{deletedFetchers:M,flushSync:R,viewTransitionOpts:T})=>{M.forEach(F=>w.current.delete(F)),$.fetchers.forEach((F,j)=>{F.data!==void 0&&w.current.set(j,F.data)}),Ey(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 _=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Ey(T==null||_,"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."),!T||!_){t&&R?t(()=>n($)):h.startTransition(()=>n($));return}if(t&&R){t(()=>{m&&(f&&f.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>n($))});F.finished.finally(()=>{t(()=>{p(void 0),v(void 0),l(void 0),c({isTransitioning:!1})})}),t(()=>v(F));return}m?(f&&f.resolve(),m.skipTransition(),C({state:$,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(l($),c({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[e.window,t,m,f]);h.useLayoutEffect(()=>e.subscribe(x),[e,x]),h.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new FR)},[u]),h.useEffect(()=>{if(f&&i&&e.window){let $=i,M=f.promise,R=e.window.document.startViewTransition(async()=>{h.startTransition(()=>n($)),await M});R.finished.finally(()=>{p(void 0),v(void 0),l(void 0),c({isTransitioning:!1})}),v(R)}},[i,f,e.window]),h.useEffect(()=>{f&&i&&r.location.key===i.location.key&&f.resolve()},[f,m,r.location,i]),h.useEffect(()=>{!u.isTransitioning&&y&&(l(y.state),c({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),C(void 0))},[u.isTransitioning,y]);let S=h.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:$=>e.navigate($),push:($,M,R)=>e.navigate($,{state:M,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:($,M,R)=>e.navigate($,{replace:!0,state:M,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[e]),E=e.basename||"/",O=h.useMemo(()=>({router:e,navigator:S,static:!1,basename:E}),[e,S,E]);return h.createElement(h.Fragment,null,h.createElement(ua.Provider,{value:O},h.createElement(As.Provider,{value:r},h.createElement(iS.Provider,{value:w.current},h.createElement(Im.Provider,{value:u},h.createElement(LR,{basename:E,location:r.location,navigationType:r.historyAction,navigator:S},h.createElement(kR,{routes:e.routes,future:e.future,state:r})))))),null)}var kR=h.memo(NR);function NR({routes:e,future:t,state:r}){return bR(e,void 0,r,t)}function sS({to:e,replace:t,state:r,relative:n}){dt(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=h.useContext(uo);Cn(!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}=h.useContext(co),{pathname:u}=Wo(),c=jm(),f=nd(e,rd(l),u,n==="path"),p=JSON.stringify(f);return h.useEffect(()=>{c(JSON.parse(p),{replace:t,state:r,relative:n})},[c,p,n,t,r]),null}function Ds(e){return yR(e.context)}function vn(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 LR({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:l=!1}){dt(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=h.useMemo(()=>({basename:u,navigator:i,static:l,future:{}}),[u,i,l]);typeof r=="string"&&(r=Ci(r));let{pathname:f="/",search:p="",hash:m="",state:v=null,key:y="default"}=r,C=h.useMemo(()=>{let w=so(f,u);return w==null?null:{location:{pathname:w,search:p,hash:m,state:v,key:y},navigationType:n}},[u,f,p,m,v,y,n]);return Cn(C!=null,`<Router basename="${u}"> is not able to match the URL "${f}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:h.createElement(uo.Provider,{value:c},h.createElement(id.Provider,{children:t,value:C}))}function bh(e,t=[]){let r=[];return h.Children.forEach(e,(n,i)=>{if(!h.isValidElement(n))return;let l=[...t,i];if(n.type===h.Fragment){r.push.apply(r,bh(n.props.children,l));return}dt(n.type===vn,`[${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 u={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&&(u.children=bh(n.props.children,l)),r.push(u)}),r}var wc="get",xc="application/x-www-form-urlencoded";function ad(e){return e!=null&&typeof e.tagName=="string"}function AR(e){return ad(e)&&e.tagName.toLowerCase()==="button"}function zR(e){return ad(e)&&e.tagName.toLowerCase()==="form"}function DR(e){return ad(e)&&e.tagName.toLowerCase()==="input"}function BR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HR(e,t){return e.button===0&&(!t||t==="_self")&&!BR(e)}var Qu=null;function VR(){if(Qu===null)try{new FormData(document.createElement("form"),0),Qu=!1}catch{Qu=!0}return Qu}var WR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hp(e){return e!=null&&!WR.has(e)?(Cn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xc}"`),null):e}function UR(e,t){let r,n,i,l,u;if(zR(e)){let c=e.getAttribute("action");n=c?so(c,t):null,r=e.getAttribute("method")||wc,i=hp(e.getAttribute("enctype"))||xc,l=new FormData(e)}else if(AR(e)||DR(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?so(f,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||wc,i=hp(e.getAttribute("formenctype"))||hp(c.getAttribute("enctype"))||xc,l=new FormData(c,e),!VR()){let{name:p,type:m,value:v}=e;if(m==="image"){let y=p?`${p}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else p&&l.append(p,v)}}else{if(ad(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wc,n=null,i=xc,u=e}return l&&i==="text/plain"&&(u=l,l=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:l,body:u}}function Lm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function qR(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 GR(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 KR(e,t,r){let n=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let u=await qR(l,r);return u.links?u.links():[]}return[]}));return JR(n.flat(1).filter(GR).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ry(e,t,r,n,i,l){let u=(f,p)=>r[p]?f.route.id!==r[p].route.id:!0,c=(f,p)=>{var m;return r[p].pathname!==f.pathname||((m=r[p].route.path)==null?void 0:m.endsWith("*"))&&r[p].params["*"]!==f.params["*"]};return l==="assets"?t.filter((f,p)=>u(f,p)||c(f,p)):l==="data"?t.filter((f,p)=>{var v;let m=n.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(u(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:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function XR(e,t){return QR(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 QR(e){return[...new Set(e)]}function YR(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function JR(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let l=JSON.stringify(YR(i));return r.has(l)||(r.add(l),n.push({key:l,link:i})),n},[])}function ZR(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 e$(){let e=h.useContext(ua);return Lm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function t$(){let e=h.useContext(As);return Lm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Am=h.createContext(void 0);Am.displayName="FrameworkContext";function uS(){let e=h.useContext(Am);return Lm(e,"You must render this element inside a <HydratedRouter> element"),e}function r$(e,t){let r=h.useContext(Am),[n,i]=h.useState(!1),[l,u]=h.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:p,onMouseLeave:m,onTouchStart:v}=t,y=h.useRef(null);h.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let x=E=>{E.forEach(O=>{u(O.isIntersecting)})},S=new IntersectionObserver(x,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),h.useEffect(()=>{if(n){let x=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(x)}}},[n]);let C=()=>{i(!0)},w=()=>{i(!1),u(!1)};return r?e!=="intent"?[l,y,{}]:[l,y,{onFocus:es(c,C),onBlur:es(f,w),onMouseEnter:es(p,C),onMouseLeave:es(m,w),onTouchStart:es(v,C)}]:[!1,y,{}]}function es(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function n$({page:e,...t}){let{router:r}=e$(),n=h.useMemo(()=>mi(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?h.createElement(i$,{page:e,matches:n,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function o$(e){let{manifest:t,routeModules:r}=uS(),[n,i]=h.useState([]);return h.useEffect(()=>{let l=!1;return KR(e,t,r).then(u=>{l||i(u)}),()=>{l=!0}},[e,t,r]),n}function i$({page:e,matches:t,...r}){let n=Wo(),{manifest:i,routeModules:l}=uS(),{loaderData:u,matches:c}=t$(),f=h.useMemo(()=>Ry(e,t,c,i,n,"data"),[e,t,c,i,n]),p=h.useMemo(()=>Ry(e,t,c,i,n,"assets"),[e,t,c,i,n]),m=h.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let C=new Set,w=!1;if(t.forEach(S=>{var O;let E=i.routes[S.route.id];!E||!E.hasLoader||(!f.some($=>$.route.id===S.route.id)&&S.route.id in u&&((O=l[S.route.id])!=null&&O.shouldRevalidate)||E.hasClientLoader?w=!0:C.add(S.route.id))}),C.size===0)return[];let x=ZR(e);return w&&C.size>0&&x.searchParams.set("_routes",t.filter(S=>C.has(S.route.id)).map(S=>S.route.id).join(",")),[x.pathname+x.search]},[u,n,i,f,t,e,l]),v=h.useMemo(()=>XR(p,i),[p,i]),y=o$(p);return h.createElement(h.Fragment,null,m.map(C=>h.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),v.map(C=>h.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),y.map(({key:C,link:w})=>h.createElement("link",{key:C,...w})))}function a$(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var cS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cS&&(window.__reactRouterVersion="7.0.1")}catch{}function l$(e,t){return X2({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:b2({window:t==null?void 0:t.window}),hydrationData:s$(),routes:e,mapRouteProperties:IR,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function s$(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:u$(e.errors)}),e}function u$(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 Ac(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 u=new l(i.message);u.stack="",r[n]=u}catch{}}if(r[n]==null){let l=new Error(i.message);l.stack="",r[n]=l}}else r[n]=i;return r}var dS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ld=h.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:l,replace:u,state:c,target:f,to:p,preventScrollReset:m,viewTransition:v,...y},C){let{basename:w}=h.useContext(uo),x=typeof p=="string"&&dS.test(p),S,E=!1;if(typeof p=="string"&&x&&(S=p,cS))try{let j=new URL(window.location.href),B=p.startsWith("//")?new URL(j.protocol+p):new URL(p),Q=so(B.pathname,w);B.origin===j.origin&&Q!=null?p=Q+B.search+B.hash:E=!0}catch{Cn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=mR(p,{relative:i}),[$,M,R]=r$(n,y),T=p$(p,{replace:u,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:v});function _(j){t&&t(j),j.defaultPrevented||T(j)}let F=h.createElement("a",{...y,...R,href:S||O,onClick:E||l?t:_,ref:a$(C,M),target:f,"data-discover":!x&&r==="render"?"true":void 0});return $&&!x?h.createElement(h.Fragment,null,F,h.createElement(n$,{page:O})):F});ld.displayName="Link";var c$=h.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:l,to:u,viewTransition:c,children:f,...p},m){let v=zs(u,{relative:p.relative}),y=Wo(),C=h.useContext(As),{navigator:w,basename:x}=h.useContext(uo),S=C!=null&&y$(v)&&c===!0,E=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,O=y.pathname,$=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(O=O.toLowerCase(),$=$?$.toLowerCase():null,E=E.toLowerCase()),$&&x&&($=so($,x)||$);const M=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let R=O===E||!i&&O.startsWith(E)&&O.charAt(M)==="/",T=$!=null&&($===E||!i&&$.startsWith(E)&&$.charAt(E.length)==="/"),_={isActive:R,isPending:T,isTransitioning:S},F=R?t:void 0,j;typeof n=="function"?j=n(_):j=[n,R?"active":null,T?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let B=typeof l=="function"?l(_):l;return h.createElement(ld,{...p,"aria-current":F,className:j,ref:m,style:B,to:u,viewTransition:c},typeof f=="function"?f(_):f)});c$.displayName="NavLink";var d$=h.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:l,method:u=wc,action:c,onSubmit:f,relative:p,preventScrollReset:m,viewTransition:v,...y},C)=>{let w=g$(),x=v$(c,{relative:p}),S=u.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&dS.test(c),O=$=>{if(f&&f($),$.defaultPrevented)return;$.preventDefault();let M=$.nativeEvent.submitter,R=(M==null?void 0:M.getAttribute("formmethod"))||u;w(M||$.currentTarget,{fetcherKey:t,method:R,navigate:r,replace:i,state:l,relative:p,preventScrollReset:m,viewTransition:v})};return h.createElement("form",{ref:C,method:S,action:x,onSubmit:n?f:O,...y,"data-discover":!E&&e==="render"?"true":void 0})});d$.displayName="Form";function f$(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function fS(e){let t=h.useContext(ua);return dt(t,f$(e)),t}function p$(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:l,viewTransition:u}={}){let c=jm(),f=Wo(),p=zs(e,{relative:l});return h.useCallback(m=>{if(HR(m,t)){m.preventDefault();let v=r!==void 0?r:wi(f)===wi(p);c(e,{replace:v,state:n,preventScrollReset:i,relative:l,viewTransition:u})}},[f,c,p,r,n,t,e,i,l,u])}var h$=0,m$=()=>`__${String(++h$)}__`;function g$(){let{router:e}=fS("useSubmit"),{basename:t}=h.useContext(uo),r=PR();return h.useCallback(async(n,i={})=>{let{action:l,method:u,encType:c,formData:f,body:p}=UR(n,t);if(i.navigate===!1){let m=i.fetcherKey||m$();await e.fetch(m,r,i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||u,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||u,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function v$(e,{relative:t}={}){let{basename:r}=h.useContext(uo),n=h.useContext(co);dt(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),l={...zs(e||".",{relative:t})},u=Wo();if(e==null){l.search=u.search;let c=new URLSearchParams(l.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(v=>v).forEach(v=>c.append("index",v));let m=c.toString();l.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Ro([r,l.pathname])),wi(l)}function y$(e,t={}){let r=h.useContext(Im);dt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=fS("useViewTransitionState"),i=zs(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=so(r.currentLocation.pathname,n)||r.currentLocation.pathname,u=so(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Lc(i.pathname,u)!=null||Lc(i.pathname,l)!=null}new TextEncoder;var mp={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var $y;function b$(){return $y||($y=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",u=0;u<arguments.length;u++){var c=arguments[u];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 u="";for(var c in l)t.call(l,c)&&l[c]&&(u=i(u,c));return u}function i(l,u){return u?l?l+" "+u:l+u:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(mp)),mp.exports}var S$=b$();const Pe=Ns(S$);function Ot(){return Ot=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},Ot.apply(null,arguments)}var gp={exports:{}},Tt={};/**
 * @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 Oy;function w$(){if(Oy)return Tt;Oy=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"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function x(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 m:return S;default:switch(S=S&&S.$$typeof,S){case c:case u:case f:case y:case v:case l:return S;default:return E}}case t:return E}}}return Tt.ContextConsumer=u,Tt.ContextProvider=l,Tt.Element=e,Tt.ForwardRef=f,Tt.Fragment=r,Tt.Lazy=y,Tt.Memo=v,Tt.Portal=t,Tt.Profiler=i,Tt.StrictMode=n,Tt.Suspense=p,Tt.SuspenseList=m,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(S){return x(S)===u},Tt.isContextProvider=function(S){return x(S)===l},Tt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Tt.isForwardRef=function(S){return x(S)===f},Tt.isFragment=function(S){return x(S)===r},Tt.isLazy=function(S){return x(S)===y},Tt.isMemo=function(S){return x(S)===v},Tt.isPortal=function(S){return x(S)===t},Tt.isProfiler=function(S){return x(S)===i},Tt.isStrictMode=function(S){return x(S)===n},Tt.isSuspense=function(S){return x(S)===p},Tt.isSuspenseList=function(S){return x(S)===m},Tt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===i||S===n||S===p||S===m||S===C||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===v||S.$$typeof===l||S.$$typeof===u||S.$$typeof===f||S.$$typeof===w||S.getModuleId!==void 0)},Tt.typeOf=x,Tt}var Py;function x$(){return Py||(Py=1,gp.exports=w$()),gp.exports}var cs=x$();function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ye.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Zi(n)):cs.isFragment(n)&&n.props?r=r.concat(Zi(n.props.children,t)):r.push(n))}),r}var Sh={},C$=function(t){};function E$(e,t){}function R$(e,t){}function $$(){Sh={}}function pS(e,t,r){!t&&!Sh[r]&&(e(!1,r),Sh[r]=!0)}function wn(e,t){pS(E$,e,t)}function O$(e,t){pS(R$,e,t)}wn.preMessage=C$;wn.resetWarned=$$;wn.noteOnce=O$;function nt(e){"@babel/helpers - typeof";return nt=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},nt(e)}function P$(e,t){if(nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hS(e){var t=P$(e,"string");return nt(t)=="symbol"?t:t+""}function ee(e,t,r){return(t=hS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ty(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 ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ty(Object(r),!0).forEach(function(n){ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ty(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var zm=X1();const wh=Ns(zm),T$=K1({__proto__:null,default:wh},[zm]);function bs(e){return e instanceof HTMLElement||e instanceof SVGElement}function mS(e){return e&&nt(e)==="object"&&bs(e.nativeElement)?e.nativeElement:bs(e)?e:null}function Cc(e){var t=mS(e);if(t)return t;if(e instanceof ye.Component){var r;return(r=wh.findDOMNode)===null||r===void 0?void 0:r.call(wh,e)}return null}function Dm(e,t,r){var n=h.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Bm=function(t,r){typeof t=="function"?t(r):nt(t)==="object"&&t&&"current"in t&&(t.current=r)},Wn=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(u){Bm(u,l)})}},sd=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Dm(function(){return Wn.apply(void 0,r)},r,function(i,l){return i.length!==l.length||i.every(function(u,c){return u!==l[c]})})},cl=function(t){var r,n,i=cs.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==cs.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==cs.ForwardRef)};function _y(e){return h.isValidElement(e)&&!cs.isFragment(e)}Number(h.version.split(".")[0])>=19;var xh=h.createContext(null);function _$(e){var t=e.children,r=e.onBatchResize,n=h.useRef(0),i=h.useRef([]),l=h.useContext(xh),u=h.useCallback(function(c,f,p){n.current+=1;var m=n.current;i.current.push({size:c,element:f,data:p}),Promise.resolve().then(function(){m===n.current&&(r==null||r(i.current),i.current=[])}),l==null||l(c,f,p)},[r,l]);return h.createElement(xh.Provider,{value:u},t)}var gS=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 u=l[i];r.call(n,u[1],u[0])}},t}()}(),Ch=typeof window<"u"&&typeof document<"u"&&window.document===document,zc=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")()}(),M$=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(zc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),I$=2;function F$(e,t){var r=!1,n=!1,i=0;function l(){r&&(r=!1,e()),n&&c()}function u(){M$(l)}function c(){var f=Date.now();if(r){if(f-i<I$)return;n=!0}else r=!0,n=!1,setTimeout(u,t);i=f}return c}var j$=20,k$=["top","right","bottom","left","width","height","size","weight"],N$=typeof MutationObserver<"u",L$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=F$(this.refresh.bind(this),j$)}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(){!Ch||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N$?(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(){!Ch||!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=k$.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}(),vS=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},rl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||zc},yS=ud(0,0,0,0);function Dc(e){return parseFloat(e)||0}function My(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+Dc(l)},0)}function A$(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var l=i[n],u=e["padding-"+l];r[l]=Dc(u)}return r}function z$(e){var t=e.getBBox();return ud(0,0,t.width,t.height)}function D$(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return yS;var n=rl(e).getComputedStyle(e),i=A$(n),l=i.left+i.right,u=i.top+i.bottom,c=Dc(n.width),f=Dc(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+l)!==t&&(c-=My(n,"left","right")+l),Math.round(f+u)!==r&&(f-=My(n,"top","bottom")+u)),!H$(e)){var p=Math.round(c+l)-t,m=Math.round(f+u)-r;Math.abs(p)!==1&&(c-=p),Math.abs(m)!==1&&(f-=m)}return ud(i.left,i.top,c,f)}var B$=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof rl(e).SVGGraphicsElement}:function(e){return e instanceof rl(e).SVGElement&&typeof e.getBBox=="function"}}();function H$(e){return e===rl(e).document.documentElement}function V$(e){return Ch?B$(e)?z$(e):D$(e):yS}function W$(e){var t=e.x,r=e.y,n=e.width,i=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(l.prototype);return vS(u,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),u}function ud(e,t,r,n){return{x:e,y:t,width:r,height:n}}var U$=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ud(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=V$(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}(),q$=function(){function e(t,r){var n=W$(r);vS(this,{target:t,contentRect:n})}return e}(),G$=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new gS,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 rl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new U$(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 rl(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 q$(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}(),bS=typeof WeakMap<"u"?new WeakMap:new gS,SS=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=L$.getInstance(),n=new G$(t,r,this);bS.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){SS.prototype[e]=function(){var t;return(t=bS.get(this))[e].apply(t,arguments)}});var K$=function(){return typeof zc.ResizeObserver<"u"?zc.ResizeObserver:SS}(),gi=new Map;function X$(e){e.forEach(function(t){var r,n=t.target;(r=gi.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var wS=new K$(X$);function Q$(e,t){gi.has(e)||(gi.set(e,new Set),wS.observe(e)),gi.get(e).add(t)}function Y$(e,t){gi.has(e)&&(gi.get(e).delete(t),gi.get(e).size||(wS.unobserve(e),gi.delete(e)))}function mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iy(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,hS(n.key),n)}}function gr(e,t,r){return t&&Iy(e.prototype,t),r&&Iy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ss(e,t)}function Uo(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&&Ss(e,t)}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ea(e)}function cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cd=function(){return!!e})()}function ct(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xS(e,t){if(t&&(nt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ct(e)}function Ei(e){var t=cd();return function(){var r,n=ea(e);if(t){var i=ea(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return xS(this,r)}}var J$=function(e){Uo(r,e);var t=Ei(r);function r(){return mr(this,r),t.apply(this,arguments)}return gr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h.Component);function Z$(e,t){var r=e.children,n=e.disabled,i=h.useRef(null),l=h.useRef(null),u=h.useContext(xh),c=typeof r=="function",f=c?r(i):r,p=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!c&&h.isValidElement(f)&&cl(f),v=m?f.ref:null,y=sd(v,i),C=function(){var E;return Cc(i.current)||(i.current&&nt(i.current)==="object"?Cc((E=i.current)===null||E===void 0?void 0:E.nativeElement):null)||Cc(l.current)};h.useImperativeHandle(t,function(){return C()});var w=h.useRef(e);w.current=e;var x=h.useCallback(function(S){var E=w.current,O=E.onResize,$=E.data,M=S.getBoundingClientRect(),R=M.width,T=M.height,_=S.offsetWidth,F=S.offsetHeight,j=Math.floor(R),B=Math.floor(T);if(p.current.width!==j||p.current.height!==B||p.current.offsetWidth!==_||p.current.offsetHeight!==F){var Q={width:j,height:B,offsetWidth:_,offsetHeight:F};p.current=Q;var Z=_===Math.round(R)?R:_,X=F===Math.round(T)?T:F,U=ie(ie({},Q),{},{offsetWidth:Z,offsetHeight:X});u==null||u(U,S,$),O&&Promise.resolve().then(function(){O(U,S)})}},[]);return h.useEffect(function(){var S=C();return S&&!n&&Q$(S,x),function(){return Y$(S,x)}},[i.current,n]),h.createElement(J$,{ref:l},m?h.cloneElement(f,{ref:y}):f)}var eO=h.forwardRef(Z$),tO="rc-observer-key";function rO(e,t){var r=e.children,n=typeof r=="function"?[r]:Zi(r);return n.map(function(i,l){var u=(i==null?void 0:i.key)||"".concat(tO,"-").concat(l);return h.createElement(eO,Ot({},e,{key:u,ref:l===0?t:void 0}),i)})}var Bs=h.forwardRef(rO);Bs.Collection=_$;function qo(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Eh(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 nO(e){if(Array.isArray(e))return Eh(e)}function CS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hm(e,t){if(e){if(typeof e=="string")return Eh(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)?Eh(e,t):void 0}}function oO(){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 nO(e)||CS(e)||Hm(e)||oO()}var ES=function(t){return+setTimeout(t,16)},RS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ES=function(t){return window.requestAnimationFrame(t)},RS=function(t){return window.cancelAnimationFrame(t)});var Fy=0,Vm=new Map;function $S(e){Vm.delete(e)}var Hn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fy+=1;var n=Fy;function i(l){if(l===0)$S(n),t();else{var u=ES(function(){i(l-1)});Vm.set(n,u)}}return i(r),n};Hn.cancel=function(e){var t=Vm.get(e);return $S(e),RS(t)};function OS(e){if(Array.isArray(e))return e}function iO(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,l,u,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(m){p=!0,i=m}finally{try{if(!f&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(p)throw i}}return c}}function PS(){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 Ee(e,t){return OS(e)||iO(e,t)||Hm(e,t)||PS()}function ws(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 on(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aO(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 jy="data-rc-order",ky="data-rc-priority",lO="rc-util-key",Rh=new Map;function TS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):lO}function dd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sO(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wm(e){return Array.from((Rh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _S(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!on())return null;var r=t.csp,n=t.prepend,i=t.priority,l=i===void 0?0:i,u=sO(n),c=u==="prependQueue",f=document.createElement("style");f.setAttribute(jy,u),c&&l&&f.setAttribute(ky,"".concat(l)),r!=null&&r.nonce&&(f.nonce=r==null?void 0:r.nonce),f.innerHTML=e;var p=dd(t),m=p.firstChild;if(n){if(c){var v=(t.styles||Wm(p)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(jy)))return!1;var C=Number(y.getAttribute(ky)||0);return l>=C});if(v.length)return p.insertBefore(f,v[v.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function MS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=dd(t);return(t.styles||Wm(r)).find(function(n){return n.getAttribute(TS(t))===e})}function xs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=MS(e,t);if(r){var n=dd(t);n.removeChild(r)}}function uO(e,t){var r=Rh.get(e);if(!r||!aO(document,r)){var n=_S("",t),i=n.parentNode;Rh.set(e,i),e.removeChild(n)}}function zo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=dd(r),i=Wm(n),l=ie(ie({},r),{},{styles:i});uO(n,l);var u=MS(t,l);if(u){var c,f;if((c=l.csp)!==null&&c!==void 0&&c.nonce&&u.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var p;u.nonce=(p=l.csp)===null||p===void 0?void 0:p.nonce}return u.innerHTML!==e&&(u.innerHTML=e),u}var m=_S(e,l);return m.setAttribute(TS(l),t),m}function cO(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 Or(e,t){if(e==null)return{};var r,n,i=cO(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 $h(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=n.has(l);if(wn(!f,"Warning: There may be circular references"),f)return!1;if(l===u)return!0;if(r&&c>1)return!1;n.add(l);var p=c+1;if(Array.isArray(l)){if(!Array.isArray(u)||l.length!==u.length)return!1;for(var m=0;m<l.length;m++)if(!i(l[m],u[m],p))return!1;return!0}if(l&&u&&nt(l)==="object"&&nt(u)==="object"){var v=Object.keys(l);return v.length!==Object.keys(u).length?!1:v.every(function(y){return i(l[y],u[y],p)})}return!1}return i(e,t)}var dO="%";function Oh(e){return e.join(dO)}var fO=function(){function e(t){mr(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),this.instanceId=t}return gr(e,[{key:"get",value:function(r){return this.opGet(Oh(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Oh(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}(),nl="data-token-hash",io="data-css-hash",vi="__cssinjs_instance__";function pO(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(io,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[vi]=i[vi]||e,i[vi]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(io,"]"))).forEach(function(i){var l=i.getAttribute(io);if(n[l]){if(i[vi]===e){var u;(u=i.parentNode)===null||u===void 0||u.removeChild(i)}}else n[l]=!0})}return new fO(e)}var fd=h.createContext({hashPriority:"low",cache:pO(),defaultCache:!0});function hO(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 Um=function(){function e(){mr(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return gr(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,u={map:this.cache};return r.forEach(function(c){if(!u)u=void 0;else{var f;u=(f=u)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(c)}}),(n=u)!==null&&n!==void 0&&n.value&&l&&(u.value[1]=this.cacheCallTimes++),(i=u)===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,m){var v=Ee(p,2),y=v[1];return i.internalGet(m)[1]<y?[m,i.internalGet(m)[1]]:p},[this.keys[0],this.cacheCallTimes]),u=Ee(l,1),c=u[0];this.delete(c)}this.keys.push(r)}var f=this.cache;r.forEach(function(p,m){if(m===r.length-1)f.set(p,{value:[n,i.cacheCallTimes++]});else{var v=f.get(p);v?v.map||(v.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 u=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),u}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!hO(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();ee(Um,"MAX_CACHE_SIZE",20);ee(Um,"MAX_CACHE_OFFSET",5);var Ny=0,IS=function(){function e(t){mr(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ny,t.length===0&&(t.length>0,void 0),Ny+=1}return gr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),vp=new Um;function Ph(e){var t=Array.isArray(e)?e:[e];return vp.has(t)||vp.set(t,new IS(t)),vp.get(t)}var mO=new WeakMap,yp={};function gO(e,t){for(var r=mO,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(yp)||r.set(yp,e()),r.get(yp)}var Ly=new WeakMap;function ds(e){var t=Ly.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof IS?t+=n.id:n&&nt(n)==="object"?t+=ds(n):t+=n}),t=ws(t),Ly.set(e,t)),t}function Ay(e,t){return ws("".concat(t,"_").concat(ds(e)))}var Th=on();function rt(e){return typeof e=="number"?"".concat(e,"px"):e}function Bc(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 u=ie(ie({},i),{},(n={},ee(n,nl,t),ee(n,io,r),n)),c=Object.keys(u).map(function(f){var p=u[f];return p?"".concat(f,'="').concat(p,'"'):null}).filter(function(f){return f}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var Ec=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()},vO=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=Ee(i,2),u=l[0],c=l[1];return"".concat(u,":").concat(c,";")}).join(""),"}"):""},FS=function(t,r,n){var i={},l={};return Object.entries(t).forEach(function(u){var c,f,p=Ee(u,2),m=p[0],v=p[1];if(n!=null&&(c=n.preserve)!==null&&c!==void 0&&c[m])l[m]=v;else if((typeof v=="string"||typeof v=="number")&&!(n!=null&&(f=n.ignore)!==null&&f!==void 0&&f[m])){var y,C=Ec(m,n==null?void 0:n.prefix);i[C]=typeof v=="number"&&!(n!=null&&(y=n.unitless)!==null&&y!==void 0&&y[m])?"".concat(v,"px"):String(v),l[m]="var(".concat(C,")")}}),[l,vO(i,r,{scope:n==null?void 0:n.scope})]},zy=on()?h.useLayoutEffect:h.useEffect,Wt=function(t,r){var n=h.useRef(!0);zy(function(){return t(n.current)},r),zy(function(){return n.current=!1,function(){n.current=!0}},[])},Dy=function(t,r){Wt(function(n){if(!n)return t()},r)},yO=ie({},td),By=yO.useInsertionEffect,bO=function(t,r,n){h.useMemo(t,n),Wt(function(){return r(!0)},n)},SO=By?function(e,t,r){return By(function(){return e(),t()},r)}:bO,wO=ie({},td),xO=wO.useInsertionEffect,CO=function(t){var r=[],n=!1;function i(l){n||r.push(l)}return h.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(l){return l()})}},t),i},EO=function(){return function(t){t()}},RO=typeof xO<"u"?CO:EO;function qm(e,t,r,n,i){var l=h.useContext(fd),u=l.cache,c=[e].concat(Ne(t)),f=Oh(c),p=RO([f]),m=function(w){u.opUpdate(f,function(x){var S=x||[void 0,void 0],E=Ee(S,2),O=E[0],$=O===void 0?0:O,M=E[1],R=M,T=R||r(),_=[$,T];return w?w(_):_})};h.useMemo(function(){m()},[f]);var v=u.opGet(f),y=v[1];return SO(function(){i==null||i(y)},function(C){return m(function(w){var x=Ee(w,2),S=x[0],E=x[1];return C&&S===0&&(i==null||i(y)),[S+1,E]}),function(){u.opUpdate(f,function(w){var x=w||[],S=Ee(x,2),E=S[0],O=E===void 0?0:E,$=S[1],M=O-1;return M===0?(p(function(){(C||!u.opGet(f))&&(n==null||n($,!1))}),null):[O-1,$]})}},[f]),y}var $O={},OO="css",qi=new Map;function PO(e){qi.set(e,(qi.get(e)||0)+1)}function TO(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(nl,'="').concat(e,'"]'));r.forEach(function(n){if(n[vi]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var _O=0;function MO(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>_O&&n.forEach(function(i){TO(i,t),qi.delete(i)})}var IO=function(t,r,n,i){var l=n.getDerivativeToken(t),u=ie(ie({},l),r);return i&&(u=i(u)),u},jS="token";function FO(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=h.useContext(fd),i=n.cache.instanceId,l=n.container,u=r.salt,c=u===void 0?"":u,f=r.override,p=f===void 0?$O:f,m=r.formatToken,v=r.getComputedToken,y=r.cssVar,C=gO(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),w=ds(C),x=ds(p),S=y?ds(y):"",E=qm(jS,[c,e.id,w,x,S],function(){var O,$=v?v(C,p,e):IO(C,p,e,m),M=ie({},$),R="";if(y){var T=FS($,y.key,{prefix:y.prefix,ignore:y.ignore,unitless:y.unitless,preserve:y.preserve}),_=Ee(T,2);$=_[0],R=_[1]}var F=Ay($,c);$._tokenKey=F,M._tokenKey=Ay(M,c);var j=(O=y==null?void 0:y.key)!==null&&O!==void 0?O:F;$._themeKey=j,PO(j);var B="".concat(OO,"-").concat(ws(F));return $._hashId=B,[$,B,M,R,(y==null?void 0:y.key)||""]},function(O){MO(O[0]._themeKey,i)},function(O){var $=Ee(O,4),M=$[0],R=$[3];if(y&&R){var T=zo(R,ws("css-variables-".concat(M._themeKey)),{mark:io,prepend:"queue",attachTo:l,priority:-999});T[vi]=i,T.setAttribute(nl,M._themeKey)}});return E}var jO=function(t,r,n){var i=Ee(t,5),l=i[2],u=i[3],c=i[4],f=n||{},p=f.plain;if(!u)return null;var m=l._tokenKey,v=-999,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},C=Bc(u,c,m,y,p);return[v,m,C]},kO={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},kS="comm",NS="rule",LS="decl",NO="@import",LO="@keyframes",AO="@layer",AS=Math.abs,Gm=String.fromCharCode;function zS(e){return e.trim()}function Rc(e,t,r){return e.replace(t,r)}function zO(e,t,r){return e.indexOf(t,r)}function Cs(e,t){return e.charCodeAt(t)|0}function ol(e,t,r){return e.slice(t,r)}function xo(e){return e.length}function DO(e){return e.length}function Yu(e,t){return t.push(e),e}var pd=1,il=1,DS=0,Vn=0,ur=0,dl="";function Km(e,t,r,n,i,l,u,c){return{value:e,root:t,parent:r,type:n,props:i,children:l,line:pd,column:il,length:u,return:"",siblings:c}}function BO(){return ur}function HO(){return ur=Vn>0?Cs(dl,--Vn):0,il--,ur===10&&(il=1,pd--),ur}function ao(){return ur=Vn<DS?Cs(dl,Vn++):0,il++,ur===10&&(il=1,pd++),ur}function yi(){return Cs(dl,Vn)}function $c(){return Vn}function hd(e,t){return ol(dl,e,t)}function Es(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 VO(e){return pd=il=1,DS=xo(dl=e),Vn=0,[]}function WO(e){return dl="",e}function bp(e){return zS(hd(Vn-1,_h(e===91?e+2:e===40?e+1:e)))}function UO(e){for(;(ur=yi())&&ur<33;)ao();return Es(e)>2||Es(ur)>3?"":" "}function qO(e,t){for(;--t&&ao()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return hd(e,$c()+(t<6&&yi()==32&&ao()==32))}function _h(e){for(;ao();)switch(ur){case e:return Vn;case 34:case 39:e!==34&&e!==39&&_h(ur);break;case 40:e===41&&_h(e);break;case 92:ao();break}return Vn}function GO(e,t){for(;ao()&&e+ur!==57;)if(e+ur===84&&yi()===47)break;return"/*"+hd(t,Vn-1)+"*"+Gm(e===47?e:ao())}function KO(e){for(;!Es(yi());)ao();return hd(e,Vn)}function XO(e){return WO(Oc("",null,null,null,[""],e=VO(e),0,[0],e))}function Oc(e,t,r,n,i,l,u,c,f){for(var p=0,m=0,v=u,y=0,C=0,w=0,x=1,S=1,E=1,O=0,$="",M=i,R=l,T=n,_=$;S;)switch(w=O,O=ao()){case 40:if(w!=108&&Cs(_,v-1)==58){zO(_+=Rc(bp(O),"&","&\f"),"&\f",AS(p?c[p-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:_+=bp(O);break;case 9:case 10:case 13:case 32:_+=UO(w);break;case 92:_+=qO($c()-1,7);continue;case 47:switch(yi()){case 42:case 47:Yu(QO(GO(ao(),$c()),t,r,f),f),(Es(w||1)==5||Es(yi()||1)==5)&&xo(_)&&ol(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*x:c[p++]=xo(_)*E;case 125*x:case 59:case 0:switch(O){case 0:case 125:S=0;case 59+m:E==-1&&(_=Rc(_,/\f/g,"")),C>0&&(xo(_)-v||x===0&&w===47)&&Yu(C>32?Vy(_+";",n,r,v-1,f):Vy(Rc(_," ","")+";",n,r,v-2,f),f);break;case 59:_+=";";default:if(Yu(T=Hy(_,t,r,p,m,i,c,$,M=[],R=[],v,l),l),O===123)if(m===0)Oc(_,t,T,T,M,l,v,c,R);else switch(y===99&&Cs(_,3)===110?100:y){case 100:case 108:case 109:case 115:Oc(e,T,T,n&&Yu(Hy(e,T,T,0,0,i,c,$,i,M=[],v,R),R),i,R,v,c,n?M:R);break;default:Oc(_,T,T,T,[""],R,0,c,R)}}p=m=C=0,x=E=1,$=_="",v=u;break;case 58:v=1+xo(_),C=w;default:if(x<1){if(O==123)--x;else if(O==125&&x++==0&&HO()==125)continue}switch(_+=Gm(O),O*x){case 38:E=m>0?1:(_+="\f",-1);break;case 44:c[p++]=(xo(_)-1)*E,E=1;break;case 64:yi()===45&&(_+=bp(ao())),y=yi(),m=v=xo($=_+=KO($c())),O++;break;case 45:w===45&&xo(_)==2&&(x=0)}}return l}function Hy(e,t,r,n,i,l,u,c,f,p,m,v){for(var y=i-1,C=i===0?l:[""],w=DO(C),x=0,S=0,E=0;x<n;++x)for(var O=0,$=ol(e,y+1,y=AS(S=u[x])),M=e;O<w;++O)(M=zS(S>0?C[O]+" "+$:Rc($,/&\f/g,C[O])))&&(f[E++]=M);return Km(e,t,r,i===0?NS:c,f,p,m,v)}function QO(e,t,r,n){return Km(e,t,r,kS,Gm(BO()),ol(e,2,-2),0,n)}function Vy(e,t,r,n,i){return Km(e,t,r,LS,ol(e,0,n),ol(e,n+1,-1),n,i)}function Mh(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function YO(e,t,r,n){switch(e.type){case AO:if(e.children.length)break;case NO:case LS:return e.return=e.return||e.value;case kS:return"";case LO:return e.return=e.value+"{"+Mh(e.children,n)+"}";case NS:if(!xo(e.value=e.props.join(",")))return""}return xo(r=Mh(e.children,n))?e.return=e.value+"{"+r+"}":""}var Wy="data-ant-cssinjs-cache-path",BS="_FILE_STYLE__",Yi,HS=!0;function JO(){if(!Yi&&(Yi={},on())){var e=document.createElement("div");e.className=Wy,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(":"),u=Ee(l,2),c=u[0],f=u[1];Yi[c]=f});var r=document.querySelector("style[".concat(Wy,"]"));if(r){var n;HS=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function ZO(e){return JO(),!!Yi[e]}function eP(e){var t=Yi[e],r=null;if(t&&on())if(HS)r=BS;else{var n=document.querySelector("style[".concat(io,'="').concat(Yi[e],'"]'));n?r=n.innerHTML:delete Yi[e]}return[r,t]}var tP="_skip_check_",VS="_multi_value_";function Pc(e){var t=Mh(XO(e),YO);return t.replace(/\{%%%\:[^;];}/g,";")}function rP(e){return nt(e)==="object"&&e&&(tP in e||VS in e)}function Uy(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,l=e.split(",").map(function(u){var c,f=u.trim().split(/\s+/),p=f[0]||"",m=((c=p.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return p="".concat(m).concat(i).concat(p.slice(m.length)),[p].concat(Ne(f.slice(1))).join(" ")});return l.join(",")}var nP=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,u=n.parentSelectors,c=r.hashId,f=r.layer;r.path;var p=r.hashPriority,m=r.transformers,v=m===void 0?[]:m;r.linters;var y="",C={};function w(E){var O=E.getName(c);if(!C[O]){var $=e(E.style,r,{root:!1,parentSelectors:u}),M=Ee($,1),R=M[0];C[O]="@keyframes ".concat(E.getName(c)).concat(R)}}function x(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function($){Array.isArray($)?x($,O):$&&O.push($)}),O}var S=x(Array.isArray(t)?t:[t]);return S.forEach(function(E){var O=typeof E=="string"&&!i?{}:E;if(typeof O=="string")y+="".concat(O,`
`);else if(O._keyframe)w(O);else{var $=v.reduce(function(M,R){var T;return(R==null||(T=R.visit)===null||T===void 0?void 0:T.call(R,M))||M},O);Object.keys($).forEach(function(M){var R=$[M];if(nt(R)==="object"&&R&&(M!=="animationName"||!R._keyframe)&&!rP(R)){var T=!1,_=M.trim(),F=!1;(i||l)&&c?_.startsWith("@")?T=!0:_==="&"?_=Uy("",c,p):_=Uy(M,c,p):i&&!c&&(_==="&"||_==="")&&(_="",F=!0);var j=e(R,r,{root:F,injectHash:T,parentSelectors:[].concat(Ne(u),[_])}),B=Ee(j,2),Q=B[0],Z=B[1];C=ie(ie({},C),Z),y+="".concat(_).concat(Q)}else{let q=function(D,k){var N=D.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),H=k;!kO[D]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),D==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(w(k),H=k.getName(c)),y+="".concat(N,":").concat(H,";")};var X,U=(X=R==null?void 0:R.value)!==null&&X!==void 0?X:R;nt(R)==="object"&&R!==null&&R!==void 0&&R[VS]&&Array.isArray(U)?U.forEach(function(D){q(M,D)}):q(M,U)}})}}),i?f&&(y="@layer ".concat(f.name," {").concat(y,"}"),f.dependencies&&(C["@layer ".concat(f.name)]=f.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(f.name,";")}).join(`
`))):y="{".concat(y,"}"),[y,C]};function WS(e,t){return ws("".concat(e.join("%")).concat(t))}function oP(){return null}var US="style";function Ih(e,t){var r=e.token,n=e.path,i=e.hashId,l=e.layer,u=e.nonce,c=e.clientOnly,f=e.order,p=f===void 0?0:f,m=h.useContext(fd),v=m.autoClear;m.mock;var y=m.defaultCache,C=m.hashPriority,w=m.container,x=m.ssrInline,S=m.transformers,E=m.linters,O=m.cache,$=m.layer,M=r._tokenKey,R=[M];$&&R.push("layer"),R.push.apply(R,Ne(n));var T=Th,_=qm(US,R,function(){var Z=R.join("|");if(ZO(Z)){var X=eP(Z),U=Ee(X,2),q=U[0],D=U[1];if(q)return[q,M,D,{},c,p]}var k=t(),N=nP(k,{hashId:i,hashPriority:C,layer:$?l:void 0,path:n.join("-"),transformers:S,linters:E}),H=Ee(N,2),A=H[0],I=H[1],L=Pc(A),ne=WS(R,L);return[L,M,ne,I,c,p]},function(Z,X){var U=Ee(Z,3),q=U[2];(X||v)&&Th&&xs(q,{mark:io})},function(Z){var X=Ee(Z,4),U=X[0];X[1];var q=X[2],D=X[3];if(T&&U!==BS){var k={mark:io,prepend:$?!1:"queue",attachTo:w,priority:p},N=typeof u=="function"?u():u;N&&(k.csp={nonce:N});var H=[],A=[];Object.keys(D).forEach(function(L){L.startsWith("@layer")?H.push(L):A.push(L)}),H.forEach(function(L){zo(Pc(D[L]),"_layer-".concat(L),ie(ie({},k),{},{prepend:!0}))});var I=zo(U,q,k);I[vi]=O.instanceId,I.setAttribute(nl,M),A.forEach(function(L){zo(Pc(D[L]),"_effect-".concat(L),k)})}}),F=Ee(_,3),j=F[0],B=F[1],Q=F[2];return function(Z){var X;if(!x||T||!y)X=h.createElement(oP,null);else{var U;X=h.createElement("style",Ot({},(U={},ee(U,nl,B),ee(U,io,Q),U),{dangerouslySetInnerHTML:{__html:j}}))}return h.createElement(h.Fragment,null,X,Z)}}var iP=function(t,r,n){var i=Ee(t,6),l=i[0],u=i[1],c=i[2],f=i[3],p=i[4],m=i[5],v=n||{},y=v.plain;if(p)return null;var C=l,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return C=Bc(l,u,c,w,y),f&&Object.keys(f).forEach(function(x){if(!r[x]){r[x]=!0;var S=Pc(f[x]),E=Bc(S,u,"_effect-".concat(x),w,y);x.startsWith("@layer")?C=E+C:C+=E}}),[m,c,C]},qS="cssVar",aP=function(t,r){var n=t.key,i=t.prefix,l=t.unitless,u=t.ignore,c=t.token,f=t.scope,p=f===void 0?"":f,m=h.useContext(fd),v=m.cache.instanceId,y=m.container,C=c._tokenKey,w=[].concat(Ne(t.path),[n,p,C]),x=qm(qS,w,function(){var S=r(),E=FS(S,n,{prefix:i,unitless:l,ignore:u,scope:p}),O=Ee(E,2),$=O[0],M=O[1],R=WS(w,M);return[$,M,R,n]},function(S){var E=Ee(S,3),O=E[2];Th&&xs(O,{mark:io})},function(S){var E=Ee(S,3),O=E[1],$=E[2];if(O){var M=zo(O,$,{mark:io,prepend:"queue",attachTo:y,priority:-999});M[vi]=v,M.setAttribute(nl,n)}});return x},lP=function(t,r,n){var i=Ee(t,4),l=i[1],u=i[2],c=i[3],f=n||{},p=f.plain;if(!l)return null;var m=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},y=Bc(l,c,u,v,p);return[m,u,y]},ts;ts={},ee(ts,US,iP),ee(ts,jS,jO),ee(ts,qS,lP);var Un=function(){function e(t,r){mr(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return gr(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 Ba(e){return e.notSplit=!0,e}Ba(["borderTop","borderBottom"]),Ba(["borderTop"]),Ba(["borderBottom"]),Ba(["borderLeft","borderRight"]),Ba(["borderLeft"]),Ba(["borderRight"]);var Xm=h.createContext({});function sP(e){return OS(e)||CS(e)||Hm(e)||PS()}function zn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function GS(e,t,r,n){if(!t.length)return r;var i=sP(t),l=i[0],u=i.slice(1),c;return!e&&typeof l=="number"?c=[]:Array.isArray(e)?c=Ne(e):c=ie({},e),n&&r===void 0&&u.length===1?delete c[l][u[0]]:c[l]=GS(c[l],u,r,n),c}function An(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!zn(e,t.slice(0,-1))?e:GS(e,t,r,n)}function uP(e){return nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function qy(e){return Array.isArray(e)?[]:{}}var cP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ka(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=qy(t[0]);return t.forEach(function(i){function l(u,c){var f=new Set(c),p=zn(i,u),m=Array.isArray(p);if(m||uP(p)){if(!f.has(p)){f.add(p);var v=zn(n,u);m?n=An(n,u,[]):(!v||nt(v)!=="object")&&(n=An(n,u,qy(p))),cP(p).forEach(function(y){l([].concat(Ne(u),[y]),f)})}}else n=An(n,u,p)}l([])}),n}function dP(){}const fP=h.createContext({}),Qm=()=>{const e=()=>{};return e.deprecated=dP,e},KS=h.createContext(void 0);var pP={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"},hP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},mP=ie(ie({},hP),{},{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 XS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Gy={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"]},mP),timePickerLocale:Object.assign({},XS)},hn="${label} is not a valid ${type}",ta={locale:"en",Pagination:pP,DatePicker:Gy,TimePicker:XS,Calendar:Gy,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:hn,method:hn,array:hn,object:hn,number:hn,date:hn,boolean:hn,integer:hn,float:hn,regexp:hn,email:hn,url:hn,hex:hn},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 Tc=[];const Ky=()=>Tc.reduce((e,t)=>Object.assign(Object.assign({},e),t),ta.Modal);function gP(e){if(e){const t=Object.assign({},e);return Tc.push(t),Ky(),()=>{Tc=Tc.filter(r=>r!==t),Ky()}}Object.assign({},ta.Modal)}const Ym=h.createContext(void 0),QS=(e,t)=>{const r=h.useContext(Ym),n=h.useMemo(()=>{var l;const u=ta[e],c=(l=r==null?void 0:r[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof u=="function"?u():u),c||{})},[e,t,r]),i=h.useMemo(()=>{const l=r==null?void 0:r.locale;return r!=null&&r.exist&&!l?ta.locale:l},[r]);return[n,i]},vP="internalMark",yP=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;h.useEffect(()=>gP(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Ym.Provider,{value:i},r)};function $r(e,t){bP(e)&&(e="100%");var r=SP(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 Ju(e){return Math.min(1,Math.max(0,e))}function bP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function SP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function YS(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Zu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ki(e){return e.length===1?"0"+e:String(e)}function wP(e,t,r){return{r:$r(e,255)*255,g:$r(t,255)*255,b:$r(r,255)*255}}function Xy(e,t,r){e=$r(e,255),t=$r(t,255),r=$r(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),l=0,u=0,c=(n+i)/2;if(n===i)u=0,l=0;else{var f=n-i;switch(u=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:u,l:c}}function Sp(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 xP(e,t,r){var n,i,l;if(e=$r(e,360),t=$r(t,100),r=$r(r,100),t===0)i=r,l=r,n=r;else{var u=r<.5?r*(1+t):r+t-r*t,c=2*r-u;n=Sp(c,u,e+1/3),i=Sp(c,u,e),l=Sp(c,u,e-1/3)}return{r:n*255,g:i*255,b:l*255}}function Fh(e,t,r){e=$r(e,255),t=$r(t,255),r=$r(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),l=0,u=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:u}}function CP(e,t,r){e=$r(e,360)*6,t=$r(t,100),r=$r(r,100);var n=Math.floor(e),i=e-n,l=r*(1-t),u=r*(1-i*t),c=r*(1-(1-i)*t),f=n%6,p=[r,u,l,l,c,r][f],m=[c,r,r,u,l,l][f],v=[l,l,c,r,r,u][f];return{r:p*255,g:m*255,b:v*255}}function jh(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 EP(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(RP(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 RP(e){return Math.round(parseFloat(e)*255).toString(16)}function Qy(e){return yn(e)/255}function yn(e){return parseInt(e,16)}function $P(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 Ga(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,l=null,u=!1,c=!1;return typeof e=="string"&&(e=TP(e)),typeof e=="object"&&(Ao(e.r)&&Ao(e.g)&&Ao(e.b)?(t=wP(e.r,e.g,e.b),u=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ao(e.h)&&Ao(e.s)&&Ao(e.v)?(n=Zu(e.s),i=Zu(e.v),t=CP(e.h,n,i),u=!0,c="hsv"):Ao(e.h)&&Ao(e.s)&&Ao(e.l)&&(n=Zu(e.s),l=Zu(e.l),t=xP(e.h,n,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=YS(r),{ok:u,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 OP="[-\\+]?\\d+%?",PP="[-\\+]?\\d*\\.\\d+%?",bi="(?:".concat(PP,")|(?:").concat(OP,")"),wp="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),xp="[\\s|\\(]+(".concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")[,|\\s]+(").concat(bi,")\\s*\\)?"),eo={CSS_UNIT:new RegExp(bi),rgb:new RegExp("rgb"+wp),rgba:new RegExp("rgba"+xp),hsl:new RegExp("hsl"+wp),hsla:new RegExp("hsla"+xp),hsv:new RegExp("hsv"+wp),hsva:new RegExp("hsva"+xp),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 TP(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=eo.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=eo.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=eo.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=eo.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=eo.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=eo.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=eo.hex8.exec(e),r?{r:yn(r[1]),g:yn(r[2]),b:yn(r[3]),a:Qy(r[4]),format:t?"name":"hex8"}:(r=eo.hex6.exec(e),r?{r:yn(r[1]),g:yn(r[2]),b:yn(r[3]),format:t?"name":"hex"}:(r=eo.hex4.exec(e),r?{r:yn(r[1]+r[1]),g:yn(r[2]+r[2]),b:yn(r[3]+r[3]),a:Qy(r[4]+r[4]),format:t?"name":"hex8"}:(r=eo.hex3.exec(e),r?{r:yn(r[1]+r[1]),g:yn(r[2]+r[2]),b:yn(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ao(e){return!!eo.CSS_UNIT.exec(String(e))}var Gr=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=$P(t)),this.originalInput=t;var i=Ga(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,u=t.g/255,c=t.b/255;return l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),u<=.03928?n=u/12.92:n=Math.pow((u+.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=YS(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=Fh(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=Fh(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=Xy(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=Xy(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),jh(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),EP(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($r(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($r(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="#"+jh(this.r,this.g,this.b,!1),r=0,n=Object.entries(kh);r<n.length;r++){var i=n[r],l=i[0],u=i[1];if(t===u)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=Ju(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=Ju(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=Ju(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=Ju(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,u={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(u)},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,u=[],c=1/t;t--;)u.push(new e({h:n,s:i,v:l})),l=(l+c)%1;return u},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,u=1;u<t;u++)i.push(new e({h:(n+u*l)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ec=2,Yy=.16,_P=.05,MP=.05,IP=.15,JS=5,ZS=4,FP=[{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 Jy(e){var t=e.r,r=e.g,n=e.b,i=Fh(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function tc(e){var t=e.r,r=e.g,n=e.b;return"#".concat(jh(t,r,n,!1))}function jP(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 Zy(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-ec*t:Math.round(e.h)+ec*t:n=r?Math.round(e.h)+ec*t:Math.round(e.h)-ec*t,n<0?n+=360:n>=360&&(n-=360),n}function eb(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Yy*t:t===ZS?n=e.s+Yy:n=e.s+_P*t,n>1&&(n=1),r&&t===JS&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function tb(e,t,r){var n;return r?n=e.v+MP*t:n=e.v-IP*t,n>1&&(n=1),Number(n.toFixed(2))}function Rs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Ga(e),i=JS;i>0;i-=1){var l=Jy(n),u=tc(Ga({h:Zy(l,i,!0),s:eb(l,i,!0),v:tb(l,i,!0)}));r.push(u)}r.push(tc(n));for(var c=1;c<=ZS;c+=1){var f=Jy(n),p=tc(Ga({h:Zy(f,c),s:eb(f,c),v:tb(f,c)}));r.push(p)}return t.theme==="dark"?FP.map(function(m){var v=m.index,y=m.opacity,C=tc(jP(Ga(t.backgroundColor||"#141414"),Ga(r[v]),y*100));return C}):r}var Cp={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"},Nh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Nh.primary=Nh[5];var Lh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Lh.primary=Lh[5];var Ah=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ah.primary=Ah[5];var Hc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Hc.primary=Hc[5];var zh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zh.primary=zh[5];var Dh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Dh.primary=Dh[5];var Bh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Bh.primary=Bh[5];var Hh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Hh.primary=Hh[5];var Vc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Vc.primary=Vc[5];var Vh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vh.primary=Vh[5];var Wh=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wh.primary=Wh[5];var Uh=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Uh.primary=Uh[5];var qh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];qh.primary=qh[5];var Ep={red:Nh,volcano:Lh,orange:Ah,gold:Hc,yellow:zh,lime:Dh,green:Bh,cyan:Hh,blue:Vc,geekblue:Vh,purple:Wh,magenta:Uh,grey:qh};const ew={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"},$s=Object.assign(Object.assign({},ew),{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 kP(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:l,colorError:u,colorInfo:c,colorPrimary:f,colorBgBase:p,colorTextBase:m}=e,v=r(f),y=r(i),C=r(l),w=r(u),x=r(c),S=n(p,m),E=e.colorLink||e.colorInfo,O=r(E),$=new Gr(w[1]).mix(new Gr(w[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[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:$,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:C[1],colorWarningBgHover:C[2],colorWarningBorder:C[3],colorWarningBorderHover:C[4],colorWarningHover:C[4],colorWarning:C[6],colorWarningActive:C[7],colorWarningTextHover:C[8],colorWarningText:C[9],colorWarningTextActive:C[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new Gr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const NP=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 LP(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},NP(n))}const AP=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function _c(e){return(e+8)/e}function zP(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,l=e*Math.pow(Math.E,i/5),u=n>1?Math.floor(l):Math.ceil(l);return Math.floor(u/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:_c(r)}))}const DP=e=>{const t=zP(e),r=t.map(m=>m.size),n=t.map(m=>m.lineHeight),i=r[1],l=r[0],u=r[2],c=n[1],f=n[0],p=n[2];return{fontSizeSM:l,fontSize:i,fontSizeLG:u,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*u),fontHeightSM:Math.round(f*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function BP(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 jn=(e,t)=>new Gr(e).setAlpha(t).toRgbString(),rs=(e,t)=>new Gr(e).darken(t).toHexString(),HP=e=>{const t=Rs(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]}},VP=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:jn(n,.88),colorTextSecondary:jn(n,.65),colorTextTertiary:jn(n,.45),colorTextQuaternary:jn(n,.25),colorFill:jn(n,.15),colorFillSecondary:jn(n,.06),colorFillTertiary:jn(n,.04),colorFillQuaternary:jn(n,.02),colorBgSolid:jn(n,1),colorBgSolidHover:jn(n,.75),colorBgSolidActive:jn(n,.95),colorBgLayout:rs(r,4),colorBgContainer:rs(r,0),colorBgElevated:rs(r,0),colorBgSpotlight:jn(n,.85),colorBgBlur:"transparent",colorBorder:rs(r,15),colorBorderSecondary:rs(r,6)}};function WP(e){Cp.pink=Cp.magenta,Ep.pink=Ep.magenta;const t=Object.keys(ew).map(r=>{const n=e[r]===Cp[r]?Ep[r]:Rs(e[r]);return new Array(10).fill(1).reduce((i,l,u)=>(i[`${r}-${u+1}`]=n[u],i[`${r}${u+1}`]=n[u],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),kP(e,{generateColorPalettes:HP,generateNeutralColorPalettes:VP})),DP(e.fontSize)),BP(e)),AP(e)),LP(e))}const tw=Ph(WP),Gh={token:$s,override:{override:$s},hashed:!0},rw=ye.createContext(Gh),Os="ant",nw="anticon",UP=["outlined","borderless","filled"],qP=(e,t)=>t||(e?`${Os}-${e}`:Os),Ft=h.createContext({getPrefixCls:qP,iconPrefixCls:nw}),GP=`-ant-${Date.now()}-${Math.random()}`;function KP(e,t){const r={},n=(u,c)=>{let f=u.clone();return f=(c==null?void 0:c(f))||f,f.toRgbString()},i=(u,c)=>{const f=new Gr(u),p=Rs(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 u=new Gr(t.primaryColor),c=Rs(u.toRgbString());c.forEach((p,m)=>{r[`primary-${m+1}`]=p}),r["primary-color-deprecated-l-35"]=n(u,p=>p.lighten(35)),r["primary-color-deprecated-l-20"]=n(u,p=>p.lighten(20)),r["primary-color-deprecated-t-20"]=n(u,p=>p.tint(20)),r["primary-color-deprecated-t-50"]=n(u,p=>p.tint(50)),r["primary-color-deprecated-f-12"]=n(u,p=>p.setAlpha(p.getAlpha()*.12));const f=new Gr(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(u=>`--${e}-${u}: ${r[u]};`).join(`
`)}
  }
  `.trim()}function XP(e,t){const r=KP(e,t);on()&&zo(r,`${GP}-dynamic-theme`)}const Bo=h.createContext(!1),ow=e=>{let{children:t,disabled:r}=e;const n=h.useContext(Bo);return h.createElement(Bo.Provider,{value:r??n},t)},ra=h.createContext(void 0),QP=e=>{let{children:t,size:r}=e;const n=h.useContext(ra);return h.createElement(ra.Provider,{value:r||n},t)};function YP(){const e=h.useContext(Bo),t=h.useContext(ra);return{componentDisabled:e,componentSize:t}}var iw=gr(function e(){mr(this,e)}),aw="CALC_UNIT",JP=new RegExp(aw,"g");function Rp(e){return typeof e=="number"?"".concat(e).concat(aw):e}var ZP=function(e){Uo(r,e);var t=Ei(r);function r(n,i){var l;mr(this,r),l=t.call(this),ee(ct(l),"result",""),ee(ct(l),"unitlessCssVar",void 0),ee(ct(l),"lowPriority",void 0);var u=nt(n);return l.unitlessCssVar=i,n instanceof r?l.result="(".concat(n.result,")"):u==="number"?l.result=Rp(n):u==="string"&&(l.result=n),l}return gr(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(Rp(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(Rp(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,u=i||{},c=u.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(JP,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(iw),eT=function(e){Uo(r,e);var t=Ei(r);function r(n){var i;return mr(this,r),i=t.call(this),ee(ct(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return gr(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}(iw),tT=function(t,r){var n=t==="css"?ZP:eT;return function(i){return new n(i,r)}},rb=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 jr(e){var t=h.useRef();t.current=e;var r=h.useCallback(function(){for(var n,i=arguments.length,l=new Array(i),u=0;u<i;u++)l[u]=arguments[u];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(l))},[]);return r}function al(e){var t=h.useRef(!1),r=h.useState(e),n=Ee(r,2),i=n[0],l=n[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function u(c,f){f&&t.current||l(c)}return[i,u]}function $p(e){return e!==void 0}function na(e,t){var r=t||{},n=r.defaultValue,i=r.value,l=r.onChange,u=r.postState,c=al(function(){return $p(i)?i:$p(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),f=Ee(c,2),p=f[0],m=f[1],v=i!==void 0?i:p,y=u?u(v):v,C=jr(l),w=al([v]),x=Ee(w,2),S=x[0],E=x[1];Dy(function(){var $=S[0];p!==$&&C(p,$)},[S]),Dy(function(){$p(i)||m(i)},[i]);var O=jr(function($,M){m($,M),E([v],M)});return[y,O]}function nb(e,t,r,n){var i=ie({},t[e]);if(n!=null&&n.deprecatedTokens){var l=n.deprecatedTokens;l.forEach(function(c){var f=Ee(c,2),p=f[0],m=f[1];if(i!=null&&i[p]||i!=null&&i[m]){var v;(v=i[m])!==null&&v!==void 0||(i[m]=i==null?void 0:i[p])}})}var u=ie(ie({},r),i);return Object.keys(u).forEach(function(c){u[c]===t[c]&&delete u[c]}),u}var lw=typeof CSSINJS_STATISTIC<"u",Kh=!0;function Nr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!lw)return Object.assign.apply(Object,[{}].concat(t));Kh=!1;var n={};return t.forEach(function(i){if(nt(i)==="object"){var l=Object.keys(i);l.forEach(function(u){Object.defineProperty(n,u,{configurable:!0,enumerable:!0,get:function(){return i[u]}})})}}),Kh=!0,n}var ob={};function rT(){}var nT=function(t){var r,n=t,i=rT;return lw&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(u,c){if(Kh){var f;(f=r)===null||f===void 0||f.add(c)}return u[c]}}),i=function(u,c){var f;ob[u]={global:Array.from(r),component:ie(ie({},(f=ob[u])===null||f===void 0?void 0:f.component),c)}}),{token:n,keys:r,flush:i}};function ib(e,t,r){if(typeof r=="function"){var n;return r(Nr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function oT(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 rt(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 rt(l)}).join(","),")")}}}var iT=1e3*60*10,aT=function(){function e(){mr(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return gr(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&&nt(l)==="object"?"obj_".concat(n.getObjectID(l)):"".concat(nt(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>iT&&(r.map.delete(l),r.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),ab=new aT;function lT(e,t){return ye.useMemo(function(){var r=ab.get(t);if(r)return r;var n=e();return ab.set(t,n),n},t)}var sT=function(){return{}};function uT(e){var t=e.useCSP,r=t===void 0?sT:t,n=e.useToken,i=e.usePrefix,l=e.getResetStyles,u=e.getCommonStyle,c=e.getCompUnitless;function f(y,C,w,x){var S=Array.isArray(y)?y[0]:y;function E(F){return"".concat(String(S)).concat(F.slice(0,1).toUpperCase()).concat(F.slice(1))}var O=(x==null?void 0:x.unitless)||{},$=typeof c=="function"?c(y):{},M=ie(ie({},$),{},ee({},E("zIndexPopup"),!0));Object.keys(O).forEach(function(F){M[E(F)]=O[F]});var R=ie(ie({},x),{},{unitless:M,prefixToken:E}),T=m(y,C,w,R),_=p(S,w,R);return function(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F,B=T(F,j),Q=Ee(B,2),Z=Q[1],X=_(j),U=Ee(X,2),q=U[0],D=U[1];return[q,Z,D]}}function p(y,C,w){var x=w.unitless,S=w.injectStyle,E=S===void 0?!0:S,O=w.prefixToken,$=w.ignore,M=function(_){var F=_.rootCls,j=_.cssVar,B=j===void 0?{}:j,Q=n(),Z=Q.realToken;return aP({path:[y],prefix:B.prefix,key:B.key,unitless:x,ignore:$,token:Z,scope:F},function(){var X=ib(y,Z,C),U=nb(y,Z,X,{deprecatedTokens:w==null?void 0:w.deprecatedTokens});return Object.keys(X).forEach(function(q){U[O(q)]=U[q],delete U[q]}),U}),null},R=function(_){var F=n(),j=F.cssVar;return[function(B){return E&&j?ye.createElement(ye.Fragment,null,ye.createElement(M,{rootCls:_,cssVar:j,component:y}),B):B},j==null?void 0:j.key]};return R}function m(y,C,w){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],E=Ee(S,1),O=E[0],$=S.join("-"),M=e.layer||{name:"antd"};return function(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,_=n(),F=_.theme,j=_.realToken,B=_.hashId,Q=_.token,Z=_.cssVar,X=i(),U=X.rootPrefixCls,q=X.iconPrefixCls,D=r(),k=Z?"css":"js",N=lT(function(){var Y=new Set;return Z&&Object.keys(x.unitless||{}).forEach(function(ae){Y.add(Ec(ae,Z.prefix)),Y.add(Ec(ae,rb(O,Z.prefix)))}),tT(k,Y)},[k,O,Z==null?void 0:Z.prefix]),H=oT(k),A=H.max,I=H.min,L={theme:F,token:Q,hashId:B,nonce:function(){return D.nonce},clientOnly:x.clientOnly,layer:M,order:x.order||-999};Ih(ie(ie({},L),{},{clientOnly:!1,path:["Shared",U]}),function(){return typeof l=="function"?l(Q):[]});var ne=Ih(ie(ie({},L),{},{path:[$,R,q]}),function(){if(x.injectStyle===!1)return[];var Y=nT(Q),ae=Y.token,ue=Y.flush,se=ib(O,j,w),ce=".".concat(R),de=nb(O,j,se,{deprecatedTokens:x.deprecatedTokens});Z&&se&&nt(se)==="object"&&Object.keys(se).forEach(function(Me){se[Me]="var(".concat(Ec(Me,rb(O,Z.prefix)),")")});var we=Nr(ae,{componentCls:ce,prefixCls:R,iconCls:".".concat(q),antCls:".".concat(U),calc:N,max:A,min:I},Z?se:de),De=C(we,{hashId:B,prefixCls:R,rootPrefixCls:U,iconPrefixCls:q});ue(O,de);var _e=typeof u=="function"?u(we,R,T,x.resetFont):null;return[x.resetStyle===!1?null:_e,De]});return[ne,B]}}function v(y,C,w){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=m(y,C,w,ie({resetStyle:!1,order:-998},x)),E=function($){var M=$.prefixCls,R=$.rootCls,T=R===void 0?M:R;return S(M,T),null};return E}return{genStyleHooks:f,genSubStyleComponent:v,genComponentStyleHook:m}}const Wc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],cT="5.22.2";function Op(e){return e>=0&&e<=255}function rc(e,t){const{r,g:n,b:i,a:l}=new Gr(e).toRgb();if(l<1)return e;const{r:u,g:c,b:f}=new Gr(t).toRgb();for(let p=.01;p<=1;p+=.01){const m=Math.round((r-u*(1-p))/p),v=Math.round((n-c*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(Op(m)&&Op(v)&&Op(y))return new Gr({r:m,g:v,b:y,a:Math.round(p*100)/100}).toRgbString()}return new Gr({r,g:n,b:i,a:1}).toRgbString()}var dT=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 sw(e){const{override:t}=e,r=dT(e,["override"]),n=Object.assign({},t);Object.keys($s).forEach(y=>{delete n[y]});const i=Object.assign(Object.assign({},r),n),l=480,u=576,c=768,f=992,p=1200,m=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:rc(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:rc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:rc(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:rc(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:u-1,screenSM:u,screenSMMin:u,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Gr("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Gr("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Gr("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 lb=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 uw={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},fT={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},pT={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},cw=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,l=lb(t,["override"]);let u=Object.assign(Object.assign({},n),{override:i});return u=sw(u),l&&Object.entries(l).forEach(c=>{let[f,p]=c;const{theme:m}=p,v=lb(p,["theme"]);let y=v;m&&(y=cw(Object.assign(Object.assign({},u),v),{override:v},m)),u[f]=y}),u};function Go(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=ye.useContext(rw),l=`${cT}-${t||""}`,u=r||tw,[c,f,p]=FO(u,[$s,e],{salt:l,override:n,getComputedToken:cw,formatToken:sw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:uw,ignore:fT,preserve:pT}});return[u,p,t?f:"",c,i]}const Do=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}},hT=()=>({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"}}),mT=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gT=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"}}}),vT=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,l=r?`.${r}`:i,u={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),u),{[i]:u})}},dw=e=>({outline:`${rt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),fw=e=>({"&:focus-visible":Object.assign({},dw(e))}),pw=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"},fw(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),hw=(e,t)=>{const[r,n]=Go();return Ih({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({},hT()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:fo,genComponentStyleHook:yT,genSubStyleComponent:mw}=uT({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(Ft);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=Go();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=h.useContext(Ft);return hw(t,e),e??{}},getResetStyles:e=>[{"&":gT(e)}],getCommonStyle:vT,getCompUnitless:()=>uw});function bT(e,t){return Wc.reduce((r,n)=>{const i=e[`${n}1`],l=e[`${n}3`],u=e[`${n}6`],c=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:l,darkColor:u,textColor:c}))},{})}const ST=Object.assign({},td),{useId:sb}=ST,wT=()=>"",xT=typeof sb>"u"?wT:sb;function CT(e,t,r){var n;Qm();const i=e||{},l=i.inherit===!1||!t?Object.assign(Object.assign({},Gh),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Gh.hashed,cssVar:t==null?void 0:t.cssVar}):t,u=xT();return Dm(()=>{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 m=`css-var-${u.replace(/:/g,"")}`,v=((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)||m});return Object.assign(Object.assign(Object.assign({},l),i),{token:Object.assign(Object.assign({},l.token),i.token),components:p,cssVar:v})},[i,l],(c,f)=>c.some((p,m)=>{const v=f[m];return!$h(p,v,!0)}))}var ET=["children"],gw=h.createContext({});function RT(e){var t=e.children,r=Or(e,ET);return h.createElement(gw.Provider,{value:r},t)}var $T=function(e){Uo(r,e);var t=Ei(r);function r(){return mr(this,r),t.apply(this,arguments)}return gr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h.Component);function OT(e){var t=h.useReducer(function(c){return c+1},0),r=Ee(t,2),n=r[1],i=h.useRef(e),l=jr(function(){return i.current}),u=jr(function(c){i.current=typeof c=="function"?c(i.current):c,n()});return[l,u]}var hi="none",nc="appear",oc="enter",ic="leave",ub="none",ro="prepare",Xa="start",Qa="active",Jm="end",vw="prepared";function cb(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 PT(e,t){var r={animationend:cb("Animation","AnimationEnd"),transitionend:cb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var TT=PT(on(),typeof window<"u"?window:{}),yw={};if(on()){var _T=document.createElement("div");yw=_T.style}var ac={};function bw(e){if(ac[e])return ac[e];var t=TT[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 yw)return ac[e]=t[l],ac[e]}return""}var Sw=bw("animationend"),ww=bw("transitionend"),xw=!!(Sw&&ww),db=Sw||"animationend",fb=ww||"transitionend";function pb(e,t){if(!e)return null;if(nt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const MT=function(e){var t=h.useRef();function r(i){i&&(i.removeEventListener(fb,e),i.removeEventListener(db,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(fb,e),i.addEventListener(db,e),t.current=i)}return h.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var Cw=on()?h.useLayoutEffect:h.useEffect;const IT=function(){var e=h.useRef(null);function t(){Hn.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Hn(function(){i<=1?n({isCanceled:function(){return l!==e.current}}):r(n,i-1)});e.current=l}return h.useEffect(function(){return function(){t()}},[]),[r,t]};var FT=[ro,Xa,Qa,Jm],jT=[ro,vw],Ew=!1,kT=!0;function Rw(e){return e===Qa||e===Jm}const NT=function(e,t,r){var n=al(ub),i=Ee(n,2),l=i[0],u=i[1],c=IT(),f=Ee(c,2),p=f[0],m=f[1];function v(){u(ro,!0)}var y=t?jT:FT;return Cw(function(){if(l!==ub&&l!==Jm){var C=y.indexOf(l),w=y[C+1],x=r(l);x===Ew?u(w,!0):w&&p(function(S){function E(){S.isCanceled()||u(w,!0)}x===!0?E():Promise.resolve(x).then(E)})}},[e,l]),h.useEffect(function(){return function(){m()}},[]),[v,l]};function LT(e,t,r,n){var i=n.motionEnter,l=i===void 0?!0:i,u=n.motionAppear,c=u===void 0?!0:u,f=n.motionLeave,p=f===void 0?!0:f,m=n.motionDeadline,v=n.motionLeaveImmediately,y=n.onAppearPrepare,C=n.onEnterPrepare,w=n.onLeavePrepare,x=n.onAppearStart,S=n.onEnterStart,E=n.onLeaveStart,O=n.onAppearActive,$=n.onEnterActive,M=n.onLeaveActive,R=n.onAppearEnd,T=n.onEnterEnd,_=n.onLeaveEnd,F=n.onVisibleChanged,j=al(),B=Ee(j,2),Q=B[0],Z=B[1],X=OT(hi),U=Ee(X,2),q=U[0],D=U[1],k=al(null),N=Ee(k,2),H=N[0],A=N[1],I=q(),L=h.useRef(!1),ne=h.useRef(null);function Y(){return r()}var ae=h.useRef(!1);function ue(){D(hi),A(null,!0)}var se=jr(function(at){var Le=q();if(Le!==hi){var st=Y();if(!(at&&!at.deadline&&at.target!==st)){var be=ae.current,Fe;Le===nc&&be?Fe=R==null?void 0:R(st,at):Le===oc&&be?Fe=T==null?void 0:T(st,at):Le===ic&&be&&(Fe=_==null?void 0:_(st,at)),be&&Fe!==!1&&ue()}}}),ce=MT(se),de=Ee(ce,1),we=de[0],De=function(Le){switch(Le){case nc:return ee(ee(ee({},ro,y),Xa,x),Qa,O);case oc:return ee(ee(ee({},ro,C),Xa,S),Qa,$);case ic:return ee(ee(ee({},ro,w),Xa,E),Qa,M);default:return{}}},_e=h.useMemo(function(){return De(I)},[I]),Me=NT(I,!e,function(at){if(at===ro){var Le=_e[ro];return Le?Le(Y()):Ew}if(Ve in _e){var st;A(((st=_e[Ve])===null||st===void 0?void 0:st.call(_e,Y(),null))||null)}return Ve===Qa&&I!==hi&&(we(Y()),m>0&&(clearTimeout(ne.current),ne.current=setTimeout(function(){se({deadline:!0})},m))),Ve===vw&&ue(),kT}),We=Ee(Me,2),Te=We[0],Ve=We[1],ft=Rw(Ve);ae.current=ft,Cw(function(){Z(t);var at=L.current;L.current=!0;var Le;!at&&t&&c&&(Le=nc),at&&t&&l&&(Le=oc),(at&&!t&&p||!at&&v&&!t&&p)&&(Le=ic);var st=De(Le);Le&&(e||st[ro])?(D(Le),Te()):D(hi)},[t]),h.useEffect(function(){(I===nc&&!c||I===oc&&!l||I===ic&&!p)&&D(hi)},[c,l,p]),h.useEffect(function(){return function(){L.current=!1,clearTimeout(ne.current)}},[]);var Ze=h.useRef(!1);h.useEffect(function(){Q&&(Ze.current=!0),Q!==void 0&&I===hi&&((Ze.current||Q)&&(F==null||F(Q)),Ze.current=!0)},[Q,I]);var pt=H;return _e[ro]&&Ve===Xa&&(pt=ie({transition:"none"},pt)),[I,Ve,pt,Q??t]}function AT(e){var t=e;nt(e)==="object"&&(t=e.transitionSupport);function r(i,l){return!!(i.motionName&&t&&l!==!1)}var n=h.forwardRef(function(i,l){var u=i.visible,c=u===void 0?!0:u,f=i.removeOnLeave,p=f===void 0?!0:f,m=i.forceRender,v=i.children,y=i.motionName,C=i.leavedClassName,w=i.eventProps,x=h.useContext(gw),S=x.motion,E=r(i,S),O=h.useRef(),$=h.useRef();function M(){try{return O.current instanceof HTMLElement?O.current:Cc($.current)}catch{return null}}var R=LT(E,c,M,i),T=Ee(R,4),_=T[0],F=T[1],j=T[2],B=T[3],Q=h.useRef(B);B&&(Q.current=!0);var Z=h.useCallback(function(H){O.current=H,Bm(l,H)},[l]),X,U=ie(ie({},w),{},{visible:c});if(!v)X=null;else if(_===hi)B?X=v(ie({},U),Z):!p&&Q.current&&C?X=v(ie(ie({},U),{},{className:C}),Z):m||!p&&!C?X=v(ie(ie({},U),{},{style:{display:"none"}}),Z):X=null;else{var q;F===ro?q="prepare":Rw(F)?q="active":F===Xa&&(q="start");var D=pb(y,"".concat(_,"-").concat(q));X=v(ie(ie({},U),{},{className:Pe(pb(y,_),ee(ee({},D,D&&q),y,typeof y=="string")),style:j}),Z)}if(h.isValidElement(X)&&cl(X)){var k=X,N=k.ref;N||(X=h.cloneElement(X,{ref:Z}))}return h.createElement($T,{ref:$},X)});return n.displayName="CSSMotion",n}const ca=AT(xw);var Xh="add",Qh="keep",Yh="remove",Pp="removed";function zT(e){var t;return e&&nt(e)==="object"&&"key"in e?t=e:t={key:e},ie(ie({},t),{},{key:String(t.key)})}function Jh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(zT)}function DT(){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=Jh(e),u=Jh(t);l.forEach(function(p){for(var m=!1,v=n;v<i;v+=1){var y=u[v];if(y.key===p.key){n<v&&(r=r.concat(u.slice(n,v).map(function(C){return ie(ie({},C),{},{status:Xh})})),n=v),r.push(ie(ie({},y),{},{status:Qh})),n+=1,m=!0;break}}m||r.push(ie(ie({},p),{},{status:Yh}))}),n<i&&(r=r.concat(u.slice(n).map(function(p){return ie(ie({},p),{},{status:Xh})})));var c={};r.forEach(function(p){var m=p.key;c[m]=(c[m]||0)+1});var f=Object.keys(c).filter(function(p){return c[p]>1});return f.forEach(function(p){r=r.filter(function(m){var v=m.key,y=m.status;return v!==p||y!==Yh}),r.forEach(function(m){m.key===p&&(m.status=Qh)})}),r}var BT=["component","children","onVisibleChanged","onAllRemoved"],HT=["status"],VT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function WT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca,r=function(n){Uo(l,n);var i=Ei(l);function l(){var u;mr(this,l);for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return u=i.call.apply(i,[this].concat(f)),ee(ct(u),"state",{keyEntities:[]}),ee(ct(u),"removeKey",function(m){u.setState(function(v){var y=v.keyEntities.map(function(C){return C.key!==m?C:ie(ie({},C),{},{status:Pp})});return{keyEntities:y}},function(){var v=u.state.keyEntities,y=v.filter(function(C){var w=C.status;return w!==Pp}).length;y===0&&u.props.onAllRemoved&&u.props.onAllRemoved()})}),u}return gr(l,[{key:"render",value:function(){var c=this,f=this.state.keyEntities,p=this.props,m=p.component,v=p.children,y=p.onVisibleChanged;p.onAllRemoved;var C=Or(p,BT),w=m||h.Fragment,x={};return VT.forEach(function(S){x[S]=C[S],delete C[S]}),delete C.keys,h.createElement(w,C,f.map(function(S,E){var O=S.status,$=Or(S,HT),M=O===Xh||O===Qh;return h.createElement(t,Ot({},x,{key:$.key,visible:M,eventProps:$,onVisibleChanged:function(T){y==null||y(T,{key:$.key}),T||c.removeKey($.key)}}),function(R,T){return v(ie(ie({},R),{},{index:E}),T)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,f){var p=c.keys,m=f.keyEntities,v=Jh(p),y=DT(m,v);return{keyEntities:y.filter(function(C){var w=m.find(function(x){var S=x.key;return C.key===S});return!(w&&w.status===Pp&&C.status===Yh)})}}}]),l}(h.Component);return ee(r,"defaultProps",{component:"div"}),r}const UT=WT(xw);function qT(e){const{children:t}=e,[,r]=Go(),{motion:n}=r,i=h.useRef(!1);return i.current=i.current||n===!1,i.current?h.createElement(RT,{motion:n},t):t}const GT=()=>null;var KT=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 XT=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $w;function QT(){return $w||Os}function YT(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const JT=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&($w=t),n&&YT(n)&&XP(QT(),n)},ZT=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:l,form:u,locale:c,componentSize:f,direction:p,space:m,splitter:v,virtual:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,popupOverflow:x,legacyLocale:S,parentContext:E,iconPrefixCls:O,theme:$,componentDisabled:M,segmented:R,statistic:T,spin:_,calendar:F,carousel:j,cascader:B,collapse:Q,typography:Z,checkbox:X,descriptions:U,divider:q,drawer:D,skeleton:k,steps:N,image:H,layout:A,list:I,mentions:L,modal:ne,progress:Y,result:ae,slider:ue,breadcrumb:se,menu:ce,pagination:de,input:we,textArea:De,empty:_e,badge:Me,radio:We,rate:Te,switch:Ve,transfer:ft,avatar:Ze,message:pt,tag:at,table:Le,card:st,tabs:be,timeline:Fe,timePicker:Ue,upload:tt,notification:Pt,tree:bt,colorPicker:Dt,datePicker:St,rangePicker:Qt,flex:ht,wave:Je,dropdown:Ge,warning:nr,tour:je,floatButtonGroup:qe,variant:_t,inputNumber:Lr,treeSelect:Ar}=e,zr=h.useCallback((xe,$e)=>{const{prefixCls:Ce}=e;if($e)return $e;const Re=Ce||E.getPrefixCls("");return xe?`${Re}-${xe}`:Re},[E.getPrefixCls,e.prefixCls]),dr=O||E.iconPrefixCls||nw,Ut=r||E.csp;hw(dr,Ut);const Bt=CT($,E.theme,{prefixCls:zr("")}),Xr={csp:Ut,autoInsertSpaceInButton:n,alert:i,anchor:l,locale:c||S,direction:p,space:m,splitter:v,virtual:y,popupMatchSelectWidth:w??C,popupOverflow:x,getPrefixCls:zr,iconPrefixCls:dr,theme:Bt,segmented:R,statistic:T,spin:_,calendar:F,carousel:j,cascader:B,collapse:Q,typography:Z,checkbox:X,descriptions:U,divider:q,drawer:D,skeleton:k,steps:N,image:H,input:we,textArea:De,layout:A,list:I,mentions:L,modal:ne,progress:Y,result:ae,slider:ue,breadcrumb:se,menu:ce,pagination:de,empty:_e,badge:Me,radio:We,rate:Te,switch:Ve,transfer:ft,avatar:Ze,message:pt,tag:at,table:Le,card:st,tabs:be,timeline:Fe,timePicker:Ue,upload:tt,notification:Pt,tree:bt,colorPicker:Dt,datePicker:St,rangePicker:Qt,flex:ht,wave:Je,dropdown:Ge,warning:nr,tour:je,floatButtonGroup:qe,variant:_t,inputNumber:Lr,treeSelect:Ar},Lt=Object.assign({},E);Object.keys(Xr).forEach(xe=>{Xr[xe]!==void 0&&(Lt[xe]=Xr[xe])}),XT.forEach(xe=>{const $e=e[xe];$e&&(Lt[xe]=$e)}),typeof n<"u"&&(Lt.button=Object.assign({autoInsertSpace:n},Lt.button));const V=Dm(()=>Lt,Lt,(xe,$e)=>{const Ce=Object.keys(xe),Re=Object.keys($e);return Ce.length!==Re.length||Ce.some(ve=>xe[ve]!==$e[ve])}),G=h.useMemo(()=>({prefixCls:dr,csp:Ut}),[dr,Ut]);let J=h.createElement(h.Fragment,null,h.createElement(GT,{dropdownMatchSelectWidth:C}),t);const fe=h.useMemo(()=>{var xe,$e,Ce,Re;return Ka(((xe=ta.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((Ce=($e=V.locale)===null||$e===void 0?void 0:$e.Form)===null||Ce===void 0?void 0:Ce.defaultValidateMessages)||{},((Re=V.form)===null||Re===void 0?void 0:Re.validateMessages)||{},(u==null?void 0:u.validateMessages)||{})},[V,u==null?void 0:u.validateMessages]);Object.keys(fe).length>0&&(J=h.createElement(KS.Provider,{value:fe},J)),c&&(J=h.createElement(yP,{locale:c,_ANT_MARK__:vP},J)),(dr||Ut)&&(J=h.createElement(Xm.Provider,{value:G},J)),f&&(J=h.createElement(QP,{size:f},J)),J=h.createElement(qT,null,J);const Oe=h.useMemo(()=>{const xe=Bt||{},{algorithm:$e,token:Ce,components:Re,cssVar:ve}=xe,Ke=KT(xe,["algorithm","token","components","cssVar"]),ot=$e&&(!Array.isArray($e)||$e.length>0)?Ph($e):tw,vt={};Object.entries(Re||{}).forEach(ut=>{let[mt,Rt]=ut;const jt=Object.assign({},Rt);"algorithm"in jt&&(jt.algorithm===!0?jt.theme=ot:(Array.isArray(jt.algorithm)||typeof jt.algorithm=="function")&&(jt.theme=Ph(jt.algorithm)),delete jt.algorithm),vt[mt]=jt});const Mt=Object.assign(Object.assign({},$s),Ce);return Object.assign(Object.assign({},Ke),{theme:ot,token:Mt,components:vt,override:Object.assign({override:Mt},vt),cssVar:ve})},[Bt]);return $&&(J=h.createElement(rw.Provider,{value:Oe},J)),V.warning&&(J=h.createElement(fP.Provider,{value:V.warning},J)),M!==void 0&&(J=h.createElement(ow,{disabled:M},J)),h.createElement(Ft.Provider,{value:V},J)},fl=e=>{const t=h.useContext(Ft),r=h.useContext(Ym);return h.createElement(ZT,Object.assign({parentContext:t,legacyLocale:r},e))};fl.ConfigContext=Ft;fl.SizeContext=ra;fl.config=JT;fl.useConfig=YP;Object.defineProperty(fl,"SizeContext",{get:()=>ra});var e_={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 Ow(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function t_(e){return Ow(e)instanceof ShadowRoot}function Uc(e){return t_(e)?Ow(e):null}function r_(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function n_(e,t){wn(e,"[@ant-design/icons] ".concat(t))}function hb(e){return nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nt(e.icon)==="object"||typeof e.icon=="function")}function mb(){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[r_(r)]=n}return t},{})}function Zh(e,t,r){return r?ye.createElement(e.tag,ie(ie({key:t},mb(e.attrs)),r),(e.children||[]).map(function(n,i){return Zh(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ye.createElement(e.tag,ie({key:t},mb(e.attrs)),(e.children||[]).map(function(n,i){return Zh(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Pw(e){return Rs(e)[0]}function Tw(e){return e?Array.isArray(e)?e:[e]:[]}var o_=`
.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);
  }
}
`,i_=function(t){var r=h.useContext(Xm),n=r.csp,i=r.prefixCls,l=o_;i&&(l=l.replace(/anticon/g,i)),h.useEffect(function(){var u=t.current,c=Uc(u);zo(l,"@ant-design-icons",{prepend:!0,csp:n,attachTo:c})},[])},a_=["icon","className","onClick","style","primaryColor","secondaryColor"],fs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function l_(e){var t=e.primaryColor,r=e.secondaryColor;fs.primaryColor=t,fs.secondaryColor=r||Pw(t),fs.calculated=!!r}function s_(){return ie({},fs)}var pl=function(t){var r=t.icon,n=t.className,i=t.onClick,l=t.style,u=t.primaryColor,c=t.secondaryColor,f=Or(t,a_),p=h.useRef(),m=fs;if(u&&(m={primaryColor:u,secondaryColor:c||Pw(u)}),i_(p),n_(hb(r),"icon should be icon definiton, but got ".concat(r)),!hb(r))return null;var v=r;return v&&typeof v.icon=="function"&&(v=ie(ie({},v),{},{icon:v.icon(m.primaryColor,m.secondaryColor)})),Zh(v.icon,"svg-".concat(v.name),ie(ie({className:n,onClick:i,style:l,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};pl.displayName="IconReact";pl.getTwoToneColors=s_;pl.setTwoToneColors=l_;function _w(e){var t=Tw(e),r=Ee(t,2),n=r[0],i=r[1];return pl.setTwoToneColors({primaryColor:n,secondaryColor:i})}function u_(){var e=pl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var c_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_w(Vc.primary);var Pr=h.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,l=e.rotate,u=e.tabIndex,c=e.onClick,f=e.twoToneColor,p=Or(e,c_),m=h.useContext(Xm),v=m.prefixCls,y=v===void 0?"anticon":v,C=m.rootClassName,w=Pe(C,y,ee(ee({},"".concat(y,"-").concat(n.name),!!n.name),"".concat(y,"-spin"),!!i||n.name==="loading"),r),x=u;x===void 0&&c&&(x=-1);var S=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Tw(f),O=Ee(E,2),$=O[0],M=O[1];return h.createElement("span",Ot({role:"img","aria-label":n.name},p,{ref:t,tabIndex:x,onClick:c,className:w}),h.createElement(pl,{icon:n,primaryColor:$,secondaryColor:M,style:S}))});Pr.displayName="AntdIcon";Pr.getTwoToneColor=u_;Pr.setTwoToneColor=_w;var d_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:e_}))},Mw=h.forwardRef(d_),f_={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"},p_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:f_}))},Zm=h.forwardRef(p_),h_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},m_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:h_}))},g_=h.forwardRef(m_),v_={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"},y_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:v_}))},Iw=h.forwardRef(y_),b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},S_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:b_}))},w_=h.forwardRef(S_),x_=`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`,C_=`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`,E_="".concat(x_," ").concat(C_).split(/[\s\n]+/),R_="aria-",$_="data-";function gb(e,t){return e.indexOf(t)===0}function Fw(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=ie({},t);var n={};return Object.keys(e).forEach(function(i){(r.aria&&(i==="role"||gb(i,R_))||r.data&&gb(i,$_)||r.attr&&E_.includes(i))&&(n[i]=e[i])}),n}function jw(e){return e&&ye.isValidElement(e)&&e.type===ye.Fragment}const kw=(e,t,r)=>ye.isValidElement(e)?ye.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function oa(e,t){return kw(e,e,t)}const lc=(e,t,r,n,i)=>({background:e,border:`${rt(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),O_=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:l,fontSizeLG:u,lineHeight:c,borderRadiusLG:f,motionEaseInOutCirc:p,withDescriptionIconSize:m,colorText:v,colorTextHeading:y,withDescriptionPadding:C,defaultPadding:w}=e;return{[t]:Object.assign(Object.assign({},Do(e)),{position:"relative",display:"flex",alignItems:"center",padding:w,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:c},"&-message":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${p}, opacity ${r} ${p},
        padding-top ${r} ${p}, padding-bottom ${r} ${p},
        margin-bottom ${r} ${p}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:C,[`${t}-icon`]:{marginInlineEnd:i,fontSize:m,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:y,fontSize:u},[`${t}-description`]:{display:"block",color:v}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},P_=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:l,colorWarningBorder:u,colorWarningBg:c,colorError:f,colorErrorBorder:p,colorErrorBg:m,colorInfo:v,colorInfoBorder:y,colorInfoBg:C}=e;return{[t]:{"&-success":lc(i,n,r,e,t),"&-info":lc(C,y,v,e,t),"&-warning":lc(c,u,l,e,t),"&-error":Object.assign(Object.assign({},lc(m,p,f,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},T_=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:l,colorIcon:u,colorIconHover:c}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:l,lineHeight:rt(l),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:u,transition:`color ${n}`,"&:hover":{color:c}}},"&-close-text":{color:u,transition:`color ${n}`,"&:hover":{color:c}}}}},__=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),M_=fo("Alert",e=>[O_(e),P_(e),T_(e)],__);var vb=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 I_={success:Mw,info:w_,error:Zm,warning:Iw},F_=e=>{const{icon:t,prefixCls:r,type:n}=e,i=I_[n]||null;return t?kw(t,h.createElement("span",{className:`${r}-icon`},t),()=>({className:Pe(`${r}-icon`,{[t.props.className]:t.props.className})})):h.createElement(i,{className:`${r}-icon`})},j_=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:i,ariaProps:l}=e,u=n===!0||n===void 0?h.createElement(g_,null):n;return t?h.createElement("button",Object.assign({type:"button",onClick:i,className:`${r}-close-icon`,tabIndex:0},l),u):null},Nw=h.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:i,banner:l,className:u,rootClassName:c,style:f,onMouseEnter:p,onMouseLeave:m,onClick:v,afterClose:y,showIcon:C,closable:w,closeText:x,closeIcon:S,action:E,id:O}=e,$=vb(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[M,R]=h.useState(!1),T=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:T.current}));const{getPrefixCls:_,direction:F,alert:j}=h.useContext(Ft),B=_("alert",n),[Q,Z,X]=M_(B),U=L=>{var ne;R(!0),(ne=e.onClose)===null||ne===void 0||ne.call(e,L)},q=h.useMemo(()=>e.type!==void 0?e.type:l?"warning":"info",[e.type,l]),D=h.useMemo(()=>typeof w=="object"&&w.closeIcon||x?!0:typeof w=="boolean"?w:S!==!1&&S!==null&&S!==void 0?!0:!!(j!=null&&j.closable),[x,S,w,j==null?void 0:j.closable]),k=l&&C===void 0?!0:C,N=Pe(B,`${B}-${q}`,{[`${B}-with-description`]:!!r,[`${B}-no-icon`]:!k,[`${B}-banner`]:!!l,[`${B}-rtl`]:F==="rtl"},j==null?void 0:j.className,u,c,X,Z),H=Fw($,{aria:!0,data:!0}),A=h.useMemo(()=>{var L,ne;return typeof w=="object"&&w.closeIcon?w.closeIcon:x||(S!==void 0?S:typeof(j==null?void 0:j.closable)=="object"&&(!((L=j==null?void 0:j.closable)===null||L===void 0)&&L.closeIcon)?(ne=j==null?void 0:j.closable)===null||ne===void 0?void 0:ne.closeIcon:j==null?void 0:j.closeIcon)},[S,w,x,j==null?void 0:j.closeIcon]),I=h.useMemo(()=>{const L=w??(j==null?void 0:j.closable);return typeof L=="object"?vb(L,["closeIcon"]):{}},[w,j==null?void 0:j.closable]);return Q(h.createElement(ca,{visible:!M,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:L=>({maxHeight:L.offsetHeight}),onLeaveEnd:y},(L,ne)=>{let{className:Y,style:ae}=L;return h.createElement("div",Object.assign({id:O,ref:Wn(T,ne),"data-show":!M,className:Pe(N,Y),style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.style),f),ae),onMouseEnter:p,onMouseLeave:m,onClick:v,role:"alert"},H),k?h.createElement(F_,{description:r,icon:e.icon,prefixCls:B,type:q}):null,h.createElement("div",{className:`${B}-content`},i?h.createElement("div",{className:`${B}-message`},i):null,r?h.createElement("div",{className:`${B}-description`},r):null),E?h.createElement("div",{className:`${B}-action`},E):null,h.createElement(j_,{isClosable:D,prefixCls:B,closeIcon:A,handleClose:U,ariaProps:I}))}))});function k_(e,t,r){return t=ea(t),xS(e,cd()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}let N_=function(e){function t(){var r;return mr(this,t),r=k_(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return Uo(t,e),gr(t,[{key:"componentDidCatch",value:function(n,i){this.setState({error:n,info:i})}},{key:"render",value:function(){const{message:n,description:i,id:l,children:u}=this.props,{error:c,info:f}=this.state,p=(f==null?void 0:f.componentStack)||null,m=typeof n>"u"?(c||"").toString():n,v=typeof i>"u"?p:i;return c?h.createElement(Nw,{id:l,type:"error",message:m,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},v)}):u}}])}(h.Component);const Lw=Nw;Lw.ErrorBoundary=N_;const yb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Tp=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return bb(r.overflowY,t)||bb(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},sc=(e,t,r,n,i,l,u,c)=>l<e&&u>t||l>e&&u<t?0:l<=e&&c<=r||u>=t&&c>=r?l-e-n:u>t&&c<r||l<e&&c>r?u-t+i:0,L_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Sb=(e,t)=>{var r,n,i,l;if(typeof document>"u")return[];const{scrollMode:u,block:c,inline:f,boundary:p,skipOverflowHiddenElements:m}=t,v=typeof p=="function"?p:D=>D!==p;if(!yb(e))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,C=[];let w=e;for(;yb(w)&&v(w);){if(w=L_(w),w===y){C.push(w);break}w!=null&&w===document.body&&Tp(w)&&!Tp(document.documentElement)||w!=null&&Tp(w,m)&&C.push(w)}const x=(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:O}=window,{height:$,width:M,top:R,right:T,bottom:_,left:F}=e.getBoundingClientRect(),{top:j,right:B,bottom:Q,left:Z}=(D=>{const k=window.getComputedStyle(D);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let X=c==="start"||c==="nearest"?R-j:c==="end"?_+Q:R+$/2-j+Q,U=f==="center"?F+M/2-Z+B:f==="end"?T+B:F-Z;const q=[];for(let D=0;D<C.length;D++){const k=C[D],{height:N,width:H,top:A,right:I,bottom:L,left:ne}=k.getBoundingClientRect();if(u==="if-needed"&&R>=0&&F>=0&&_<=S&&T<=x&&R>=A&&_<=L&&F>=ne&&T<=I)return q;const Y=getComputedStyle(k),ae=parseInt(Y.borderLeftWidth,10),ue=parseInt(Y.borderTopWidth,10),se=parseInt(Y.borderRightWidth,10),ce=parseInt(Y.borderBottomWidth,10);let de=0,we=0;const De="offsetWidth"in k?k.offsetWidth-k.clientWidth-ae-se:0,_e="offsetHeight"in k?k.offsetHeight-k.clientHeight-ue-ce:0,Me="offsetWidth"in k?k.offsetWidth===0?0:H/k.offsetWidth:0,We="offsetHeight"in k?k.offsetHeight===0?0:N/k.offsetHeight:0;if(y===k)de=c==="start"?X:c==="end"?X-S:c==="nearest"?sc(O,O+S,S,ue,ce,O+X,O+X+$,$):X-S/2,we=f==="start"?U:f==="center"?U-x/2:f==="end"?U-x:sc(E,E+x,x,ae,se,E+U,E+U+M,M),de=Math.max(0,de+O),we=Math.max(0,we+E);else{de=c==="start"?X-A-ue:c==="end"?X-L+ce+_e:c==="nearest"?sc(A,L,N,ue,ce+_e,X,X+$,$):X-(A+N/2)+_e/2,we=f==="start"?U-ne-ae:f==="center"?U-(ne+H/2)+De/2:f==="end"?U-I+se+De:sc(ne,I,H,ae,se+De,U,U+M,M);const{scrollLeft:Te,scrollTop:Ve}=k;de=We===0?0:Math.max(0,Math.min(Ve+de/We,k.scrollHeight-N/We+_e)),we=Me===0?0:Math.max(0,Math.min(Te+we/Me,k.scrollWidth-H/Me+De)),X+=Ve-de,U+=Te-we}q.push({el:k,top:de,left:we})}return q},A_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function z_(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(Sb(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:l,left:u}of Sb(e,A_(t))){const c=l-r.top+r.bottom,f=u-r.left+r.right;i.scroll({top:c,left:f,behavior:n})}}const Ri=e=>{const[,,,,t]=Go();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}}},D_={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"},B_=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:D_}))},eg=h.forwardRef(B_);const Aw=ye.createContext(void 0),Vi=100,zw={Modal:Vi,Drawer:Vi,Popover:Vi,Popconfirm:Vi,Tooltip:Vi,Tour:Vi,FloatButton:Vi},H_={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function V_(e){return e in zw}const W_=(e,t)=>{const[,r]=Go(),n=ye.useContext(Aw),i=V_(e);let l;if(t!==void 0)l=[t,t];else{let u=n??0;i?u+=(n?0:r.zIndexPopupBase)+zw[e]:u+=H_[e],l=[n===void 0?t:u,u]}return l};function Kr(){Kr=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(D,k,N){D[k]=N.value},l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function p(D,k,N){return Object.defineProperty(D,k,{value:N,enumerable:!0,configurable:!0,writable:!0}),D[k]}try{p({},"")}catch{p=function(N,H,A){return N[H]=A}}function m(D,k,N,H){var A=k&&k.prototype instanceof E?k:E,I=Object.create(A.prototype),L=new U(H||[]);return i(I,"_invoke",{value:B(D,N,L)}),I}function v(D,k,N){try{return{type:"normal",arg:D.call(k,N)}}catch(H){return{type:"throw",arg:H}}}t.wrap=m;var y="suspendedStart",C="suspendedYield",w="executing",x="completed",S={};function E(){}function O(){}function $(){}var M={};p(M,u,function(){return this});var R=Object.getPrototypeOf,T=R&&R(R(q([])));T&&T!==r&&n.call(T,u)&&(M=T);var _=$.prototype=E.prototype=Object.create(M);function F(D){["next","throw","return"].forEach(function(k){p(D,k,function(N){return this._invoke(k,N)})})}function j(D,k){function N(A,I,L,ne){var Y=v(D[A],D,I);if(Y.type!=="throw"){var ae=Y.arg,ue=ae.value;return ue&&nt(ue)=="object"&&n.call(ue,"__await")?k.resolve(ue.__await).then(function(se){N("next",se,L,ne)},function(se){N("throw",se,L,ne)}):k.resolve(ue).then(function(se){ae.value=se,L(ae)},function(se){return N("throw",se,L,ne)})}ne(Y.arg)}var H;i(this,"_invoke",{value:function(I,L){function ne(){return new k(function(Y,ae){N(I,L,Y,ae)})}return H=H?H.then(ne,ne):ne()}})}function B(D,k,N){var H=y;return function(A,I){if(H===w)throw Error("Generator is already running");if(H===x){if(A==="throw")throw I;return{value:e,done:!0}}for(N.method=A,N.arg=I;;){var L=N.delegate;if(L){var ne=Q(L,N);if(ne){if(ne===S)continue;return ne}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(H===y)throw H=x,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);H=w;var Y=v(D,k,N);if(Y.type==="normal"){if(H=N.done?x:C,Y.arg===S)continue;return{value:Y.arg,done:N.done}}Y.type==="throw"&&(H=x,N.method="throw",N.arg=Y.arg)}}}function Q(D,k){var N=k.method,H=D.iterator[N];if(H===e)return k.delegate=null,N==="throw"&&D.iterator.return&&(k.method="return",k.arg=e,Q(D,k),k.method==="throw")||N!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+N+"' method")),S;var A=v(H,D.iterator,k.arg);if(A.type==="throw")return k.method="throw",k.arg=A.arg,k.delegate=null,S;var I=A.arg;return I?I.done?(k[D.resultName]=I.value,k.next=D.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,S):I:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,S)}function Z(D){var k={tryLoc:D[0]};1 in D&&(k.catchLoc=D[1]),2 in D&&(k.finallyLoc=D[2],k.afterLoc=D[3]),this.tryEntries.push(k)}function X(D){var k=D.completion||{};k.type="normal",delete k.arg,D.completion=k}function U(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(Z,this),this.reset(!0)}function q(D){if(D||D===""){var k=D[u];if(k)return k.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var N=-1,H=function A(){for(;++N<D.length;)if(n.call(D,N))return A.value=D[N],A.done=!1,A;return A.value=e,A.done=!0,A};return H.next=H}}throw new TypeError(nt(D)+" is not iterable")}return O.prototype=$,i(_,"constructor",{value:$,configurable:!0}),i($,"constructor",{value:O,configurable:!0}),O.displayName=p($,f,"GeneratorFunction"),t.isGeneratorFunction=function(D){var k=typeof D=="function"&&D.constructor;return!!k&&(k===O||(k.displayName||k.name)==="GeneratorFunction")},t.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,$):(D.__proto__=$,p(D,f,"GeneratorFunction")),D.prototype=Object.create(_),D},t.awrap=function(D){return{__await:D}},F(j.prototype),p(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(D,k,N,H,A){A===void 0&&(A=Promise);var I=new j(m(D,k,N,H),A);return t.isGeneratorFunction(k)?I:I.next().then(function(L){return L.done?L.value:I.next()})},F(_),p(_,f,"Generator"),p(_,u,function(){return this}),p(_,"toString",function(){return"[object Generator]"}),t.keys=function(D){var k=Object(D),N=[];for(var H in k)N.push(H);return N.reverse(),function A(){for(;N.length;){var I=N.pop();if(I in k)return A.value=I,A.done=!1,A}return A.done=!0,A}},t.values=q,U.prototype={constructor:U,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(X),!k)for(var N in this)N.charAt(0)==="t"&&n.call(this,N)&&!isNaN(+N.slice(1))&&(this[N]=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 N=this;function H(ae,ue){return L.type="throw",L.arg=k,N.next=ae,ue&&(N.method="next",N.arg=e),!!ue}for(var A=this.tryEntries.length-1;A>=0;--A){var I=this.tryEntries[A],L=I.completion;if(I.tryLoc==="root")return H("end");if(I.tryLoc<=this.prev){var ne=n.call(I,"catchLoc"),Y=n.call(I,"finallyLoc");if(ne&&Y){if(this.prev<I.catchLoc)return H(I.catchLoc,!0);if(this.prev<I.finallyLoc)return H(I.finallyLoc)}else if(ne){if(this.prev<I.catchLoc)return H(I.catchLoc,!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<I.finallyLoc)return H(I.finallyLoc)}}}},abrupt:function(k,N){for(var H=this.tryEntries.length-1;H>=0;--H){var A=this.tryEntries[H];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var I=A;break}}I&&(k==="break"||k==="continue")&&I.tryLoc<=N&&N<=I.finallyLoc&&(I=null);var L=I?I.completion:{};return L.type=k,L.arg=N,I?(this.method="next",this.next=I.finallyLoc,S):this.complete(L)},complete:function(k,N){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"&&N&&(this.next=N),S},finish:function(k){for(var N=this.tryEntries.length-1;N>=0;--N){var H=this.tryEntries[N];if(H.finallyLoc===k)return this.complete(H.completion,H.afterLoc),X(H),S}},catch:function(k){for(var N=this.tryEntries.length-1;N>=0;--N){var H=this.tryEntries[N];if(H.tryLoc===k){var A=H.completion;if(A.type==="throw"){var I=A.arg;X(H)}return I}}throw Error("illegal catch attempt")},delegateYield:function(k,N,H){return this.delegate={iterator:q(k),resultName:N,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function wb(e,t,r,n,i,l,u){try{var c=e[l](u),f=c.value}catch(p){return void r(p)}c.done?t(f):Promise.resolve(f).then(n,i)}function da(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var l=e.apply(t,r);function u(f){wb(l,n,i,u,c,"next",f)}function c(f){wb(l,n,i,u,c,"throw",f)}u(void 0)})}}var Hs=ie({},T$),U_=Hs.version,q_=Hs.render,G_=Hs.unmountComponentAtNode,md;try{var K_=Number((U_||"").split(".")[0]);K_>=18&&(md=Hs.createRoot)}catch{}function xb(e){var t=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nt(t)==="object"&&(t.usingClientEntryPoint=e)}var qc="__rc_react_root__";function X_(e,t){xb(!0);var r=t[qc]||md(t);xb(!1),r.render(e),t[qc]=r}function Q_(e,t){q_(e,t)}function Y_(e,t){if(md){X_(e,t);return}Q_(e,t)}function J_(e){return em.apply(this,arguments)}function em(){return em=da(Kr().mark(function e(t){return Kr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[qc])===null||i===void 0||i.unmount(),delete t[qc]}));case 1:case"end":return n.stop()}},e)})),em.apply(this,arguments)}function Z_(e){G_(e)}function eM(e){return tm.apply(this,arguments)}function tm(){return tm=da(Kr().mark(function e(t){return Kr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(md===void 0){n.next=2;break}return n.abrupt("return",J_(t));case 2:Z_(t);case 3:case"end":return n.stop()}},e)})),tm.apply(this,arguments)}const _p=()=>({height:0,opacity:0}),Cb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},tM=e=>({height:e?e.offsetHeight:0}),Mp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Eb=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Os}-motion-collapse`,onAppearStart:_p,onEnterStart:_p,onAppearActive:Cb,onEnterActive:Cb,onLeaveStart:tM,onLeaveActive:_p,onAppearEnd:Mp,onEnterEnd:Mp,onLeaveEnd:Mp,motionDeadline:500}},rM=(e,t,r)=>r!==void 0?r:`${e}-${t}`,tg=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,u=i.height;if(l||u)return!0}}return!1},nM=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(",")}}}}},oM=yT("Wave",e=>[nM(e)]),rg=`${Os}-wave-target`;function Ip(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 iM(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Ip(t)?t:Ip(r)?r:Ip(n)?n:null}function Fp(e){return Number.isNaN(e)?0:e}const aM=e=>{const{className:t,target:r,component:n}=e,i=h.useRef(null),[l,u]=h.useState(null),[c,f]=h.useState([]),[p,m]=h.useState(0),[v,y]=h.useState(0),[C,w]=h.useState(0),[x,S]=h.useState(0),[E,O]=h.useState(!1),$={left:p,top:v,width:C,height:x,borderRadius:c.map(T=>`${T}px`).join(" ")};l&&($["--wave-color"]=l);function M(){const T=getComputedStyle(r);u(iM(r));const _=T.position==="static",{borderLeftWidth:F,borderTopWidth:j}=T;m(_?r.offsetLeft:Fp(-parseFloat(F))),y(_?r.offsetTop:Fp(-parseFloat(j))),w(r.offsetWidth),S(r.offsetHeight);const{borderTopLeftRadius:B,borderTopRightRadius:Q,borderBottomLeftRadius:Z,borderBottomRightRadius:X}=T;f([B,Q,X,Z].map(U=>Fp(parseFloat(U))))}if(h.useEffect(()=>{if(r){const T=Hn(()=>{M(),O(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(M),_.observe(r)),()=>{Hn.cancel(T),_==null||_.disconnect()}}},[]),!E)return null;const R=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(rg));return h.createElement(ca,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,_)=>{var F;if(_.deadline||_.propertyName==="opacity"){const j=(F=i.current)===null||F===void 0?void 0:F.parentElement;eM(j).then(()=>{j==null||j.remove()})}return!1}},(T,_)=>{let{className:F}=T;return h.createElement("div",{ref:Wn(i,_),className:Pe(t,F,{"wave-quick":R}),style:$})})},lM=(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),Y_(h.createElement(aM,Object.assign({},t,{target:e})),i)},sM=(e,t,r)=>{const{wave:n}=h.useContext(Ft),[,i,l]=Go(),u=jr(p=>{const m=e.current;if(n!=null&&n.disabled||!m)return;const v=m.querySelector(`.${rg}`)||m,{showEffect:y}=n||{};(y||lM)(v,{className:t,token:i,component:r,event:p,hashId:l})}),c=h.useRef();return p=>{Hn.cancel(c.current),c.current=Hn(()=>{u(p)})}},Dw=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:i}=h.useContext(Ft),l=h.useRef(null),u=i("wave"),[,c]=oM(u),f=sM(l,Pe(u,c),n);if(ye.useEffect(()=>{const m=l.current;if(!m||m.nodeType!==1||r)return;const v=y=>{!tg(y.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")||m.className.includes("-leave")||f(y)};return m.addEventListener("click",v,!0),()=>{m.removeEventListener("click",v,!0)}},[r]),!ye.isValidElement(t))return t??null;const p=cl(t)?Wn(t.ref,l):l;return oa(t,{ref:p})},hl=e=>{const t=ye.useContext(ra);return ye.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Bw=h.createContext(null),ng=(e,t)=>{const r=h.useContext(Bw),n=h.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:l,isLastItem:u}=r,c=i==="vertical"?"-vertical-":"-";return Pe(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:l,[`${e}-compact${c}last-item`]:u,[`${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}},uM=e=>{let{children:t}=e;return h.createElement(Bw.Provider,{value:null},t)};var cM=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 Hw=h.createContext(void 0),dM=e=>{const{getPrefixCls:t,direction:r}=h.useContext(Ft),{prefixCls:n,size:i,className:l}=e,u=cM(e,["prefixCls","size","className"]),c=t("btn-group",n),[,,f]=Go();let p="";switch(i){case"large":p="lg";break;case"small":p="sm";break}const m=Pe(c,{[`${c}-${p}`]:p,[`${c}-rtl`]:r==="rtl"},l,f);return h.createElement(Hw.Provider,{value:i},h.createElement("div",Object.assign({},u,{className:m})))},Rb=/^[\u4E00-\u9FA5]{2}$/,rm=Rb.test.bind(Rb);function $b(e){return typeof e=="string"}function jp(e){return e==="text"||e==="link"}function fM(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&$b(e.type)&&rm(e.props.children)?oa(e,{children:e.props.children.split("").join(r)}):$b(e)?rm(e)?ye.createElement("span",null,e.split("").join(r)):ye.createElement("span",null,e):jw(e)?ye.createElement("span",null,e):e}function pM(e,t){let r=!1;const n=[];return ye.Children.forEach(e,i=>{const l=typeof i,u=l==="string"||l==="number";if(r&&u){const c=n.length-1,f=n[c];n[c]=`${f}${i}`}else n.push(i);r=u}),ye.Children.map(n,i=>fM(i,t))}const Vw=h.forwardRef((e,t)=>{const{className:r,style:n,children:i,prefixCls:l}=e,u=Pe(`${l}-icon`,r);return ye.createElement("span",{ref:t,className:u,style:n},i)}),Ob=h.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,iconClassName:l}=e,u=Pe(`${r}-loading-icon`,n);return ye.createElement(Vw,{prefixCls:r,className:u,style:i,ref:t},ye.createElement(eg,{className:l}))}),kp=()=>({width:0,opacity:0,transform:"scale(0)"}),Np=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),hM=e=>{const{prefixCls:t,loading:r,existIcon:n,className:i,style:l}=e,u=!!r;return n?ye.createElement(Ob,{prefixCls:t,className:i,style:l}):ye.createElement(ca,{visible:u,motionName:`${t}-loading-icon-motion`,motionLeave:u,removeOnLeave:!0,onAppearStart:kp,onAppearActive:Np,onEnterStart:kp,onEnterActive:Np,onLeaveStart:Np,onLeaveActive:kp},(c,f)=>{let{className:p,style:m}=c;return ye.createElement(Ob,{prefixCls:t,className:i,style:Object.assign(Object.assign({},l),m),ref:f,iconClassName:p})})},Pb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),mM=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}},Pb(`${t}-primary`,i),Pb(`${t}-danger`,l)]}},xr=Math.round;function Lp(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 Tb=(e,t,r)=>r===0?e:e/100;function ns(e,t){const r=t||255;return e>r?r:e<0?0:e}class gd{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(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(u){return i.startsWith(u)};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 gd)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=ns(t.r),this.g=ns(t.g),this.b=ns(t.b),this.a=typeof t.a=="number"?ns(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 u=l/255;return u<=.03928?u/12.92:Math.pow((u+.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=xr(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],u={r:xr(l("r")),g:xr(l("g")),b:xr(l("b")),a:xr(l("a")*100)/100};return this._c(u)}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=>xr((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=xr(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=xr(this.getSaturation()*100),n=xr(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]=ns(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=xr(n*255);this.r=y,this.g=y,this.b=y}let l=0,u=0,c=0;const f=t/60,p=(1-Math.abs(2*n-1))*r,m=p*(1-Math.abs(f%2-1));f>=0&&f<1?(l=p,u=m):f>=1&&f<2?(l=m,u=p):f>=2&&f<3?(u=p,c=m):f>=3&&f<4?(u=m,c=p):f>=4&&f<5?(l=m,c=p):f>=5&&f<6&&(l=p,c=m);const v=n-p/2;this.r=xr((l+v)*255),this.g=xr((u+v)*255),this.b=xr((c+v)*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=xr(n*255);if(this.r=l,this.g=l,this.b=l,r<=0)return;const u=t/60,c=Math.floor(u),f=u-c,p=xr(n*(1-r)*255),m=xr(n*(1-r*f)*255),v=xr(n*(1-r*(1-f))*255);switch(c){case 0:this.g=v,this.b=p;break;case 1:this.r=m,this.b=p;break;case 2:this.r=p,this.b=v;break;case 3:this.r=p,this.g=m;break;case 4:this.r=v,this.g=p;break;case 5:default:this.g=p,this.b=m;break}}fromHsvString(t){const r=Lp(t,Tb);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Lp(t,Tb);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Lp(t,(n,i)=>i.includes("%")?xr(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var gM=["b"],vM=["v"],Ap=function(t){return Math.round(Number(t||0))},yM=function(t){if(t instanceof gd)return t;if(t&&nt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,i=Or(r,gM);return ie(ie({},i),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ps=function(e){Uo(r,e);var t=Ei(r);function r(n){return mr(this,r),t.call(this,yM(n))}return gr(r,[{key:"toHsbString",value:function(){var i=this.toHsb(),l=Ap(i.s*100),u=Ap(i.b*100),c=Ap(i.h),f=i.a,p="hsb(".concat(c,", ").concat(l,"%, ").concat(u,"%)"),m="hsba(".concat(c,", ").concat(l,"%, ").concat(u,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?p:m}},{key:"toHsb",value:function(){var i=this.toHsv(),l=i.v,u=Or(i,vM);return ie(ie({},u),{},{b:l,a:this.a})}}]),r}(gd),bM=function(t){return t instanceof Ps?t:new Ps(t)};bM("#1677ff");const SM=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",wM=(e,t)=>e?SM(e,t):"";let xM=function(){function e(t){mr(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:u}=i;return{color:new e(l),percent:u}}),this.metaColor=new Ps(this.colors[0].color.metaColor)):this.metaColor=new Ps(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return wM(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 CM=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`}}}),EM=e=>({animationDuration:e,animationFillMode:"both"}),RM=e=>({animationDuration:e,animationFillMode:"both"}),$M=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({},EM(n)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},RM(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"}}},og=new Un("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),OM=new Un("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_b=new Un("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mb=new Un("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),PM=new Un("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),TM=new Un("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_M=new Un("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),MM=new Un("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IM=new Un("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),FM=new Un("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jM=new Un("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),kM=new Un("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NM={zoom:{inKeyframes:og,outKeyframes:OM},"zoom-big":{inKeyframes:_b,outKeyframes:Mb},"zoom-big-fast":{inKeyframes:_b,outKeyframes:Mb},"zoom-left":{inKeyframes:_M,outKeyframes:MM},"zoom-right":{inKeyframes:IM,outKeyframes:FM},"zoom-up":{inKeyframes:PM,outKeyframes:TM},"zoom-down":{inKeyframes:jM,outKeyframes:kM}},LM=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:l}=NM[t];return[$M(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}}]},AM=(e,t)=>{const{r,g:n,b:i,a:l}=e.toRgb(),u=new Ps(e.toRgbString()).onBackground(t).toHsv();return l<=.5?u.v>.5:r*.299+n*.587+i*.114>192},Ww=e=>{const{paddingInline:t,onlyIconSize:r,paddingBlock:n}=e;return Nr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:n,buttonIconOnlyFontSize:r})},Uw=e=>{var t,r,n,i,l,u;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,m=(i=e.contentLineHeight)!==null&&i!==void 0?i:_c(c),v=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:_c(f),y=(u=e.contentLineHeightLG)!==null&&u!==void 0?u:_c(p),C=AM(new xM(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:C,contentFontSize:c,contentFontSizeSM:f,contentFontSizeLG:p,contentLineHeight:m,contentLineHeightSM:v,contentLineHeightLG:y,paddingBlock:Math.max((e.controlHeight-c*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*v)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-p*y)/2-e.lineWidth,0)}},zM=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:`${rt(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({},fw(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"}}}},qw=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),DM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),BM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),HM=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ig=(e,t,r,n,i,l,u,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},qw(e,Object.assign({background:t},u),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:l||void 0}})}),VM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},HM(e))}),WM=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),vd=(e,t,r,n)=>{const l=n&&["link","text"].includes(n)?WM:VM;return Object.assign(Object.assign({},l(e)),qw(e.componentCls,t,r))},ag=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},vd(e,n,i))}),lg=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},vd(e,n,i))}),sg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ug=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},vd(e,r,n))}),ll=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},vd(e,n,i,r))}),UM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ag(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),sg(e)),ug(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ll(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ig(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),qM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},lg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),sg(e)),ug(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ll(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ig(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),GM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ag(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),lg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sg(e)),ug(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ll(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ll(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ig(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),KM=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:UM(e),[`${t}-color-primary`]:qM(e),[`${t}-color-dangerous`]:GM(e)}},XM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},lg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ll(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ag(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ll(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:i,lineHeight:l,borderRadius:u,buttonPaddingHorizontal:c,iconCls:f,buttonPaddingVertical:p,motionDurationSlow:m,motionEaseInOut:v,buttonIconOnlyFontSize:y,opacityLoading:C}=e;return[{[t]:{fontSize:i,lineHeight:l,height:n,padding:`${rt(p)} ${rt(c)}`,borderRadius:u,[`&${r}-icon-only`]:{width:n,paddingInline:0,[`&${r}-compact-item`]:{flex:"none"},[`&${r}-round`]:{width:"auto"},[f]:{fontSize:y}},[`&${r}-loading`]:{opacity:C,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${m} ${v}, opacity ${m} ${v}`}}},{[`${r}${r}-circle${t}`]:DM(e)},{[`${r}${r}-round${t}`]:BM(e)}]},QM=e=>{const t=Nr(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return cg(t,e.componentCls)},YM=e=>{const t=Nr(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 cg(t,`${e.componentCls}-sm`)},JM=e=>{const t=Nr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cg(t,`${e.componentCls}-lg`)},ZM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eI=fo("Button",e=>{const t=Ww(e);return[zM(t),QM(t),YM(t),JM(t),ZM(t),KM(t),XM(t),mM(t)]},Uw,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function tI(e,t,r){const{focusElCls:n,focus:i,borderElCls:l}=r,u=l?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${u}`).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] ${u}`]:{zIndex:0}})}}function rI(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 Gw(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({},tI(e,n,t)),rI(r,n,t))}}function nI(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 oI(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 iI(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},nI(e,t)),oI(e.componentCls,t))}}const aI=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:i}=e,l=i(n).mul(-1).equal(),u=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({},u()),u(!0))},lI=mw(["Button","compact"],e=>{const t=Ww(e);return[Gw(t),iI(t),aI(t)]},Uw);var sI=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 uI(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 cI={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},dI=ye.forwardRef((e,t)=>{var r,n,i,l;const{loading:u=!1,prefixCls:c,color:f,variant:p,type:m,danger:v=!1,shape:y="default",size:C,styles:w,disabled:x,className:S,rootClassName:E,children:O,icon:$,iconPosition:M="start",ghost:R=!1,block:T=!1,htmlType:_="button",classNames:F,style:j={},autoInsertSpace:B,autoFocus:Q}=e,Z=sI(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),X=m||"default",[U,q]=h.useMemo(()=>{if(f&&p)return[f,p];const ht=cI[X]||[];return v?["danger",ht[1]]:ht},[m,f,p,v]),k=U==="danger"?"dangerous":U,{getPrefixCls:N,direction:H,button:A}=h.useContext(Ft),I=(r=B??(A==null?void 0:A.autoInsertSpace))!==null&&r!==void 0?r:!0,L=N("btn",c),[ne,Y,ae]=eI(L),ue=h.useContext(Bo),se=x??ue,ce=h.useContext(Hw),de=h.useMemo(()=>uI(u),[u]),[we,De]=h.useState(de.loading),[_e,Me]=h.useState(!1),We=h.useRef(),Te=sd(t,We),Ve=h.Children.count(O)===1&&!$&&!jp(q);h.useEffect(()=>{let ht=null;de.delay>0?ht=setTimeout(()=>{ht=null,De(!0)},de.delay):De(de.loading);function Je(){ht&&(clearTimeout(ht),ht=null)}return Je},[de]),h.useEffect(()=>{if(!We.current||!I)return;const ht=We.current.textContent||"";Ve&&rm(ht)?_e||Me(!0):_e&&Me(!1)}),h.useEffect(()=>{Q&&We.current&&We.current.focus()},[]);const ft=ye.useCallback(ht=>{var Je;if(we||se){ht.preventDefault();return}(Je=e.onClick)===null||Je===void 0||Je.call(e,ht)},[e.onClick,we,se]),{compactSize:Ze,compactItemClassnames:pt}=ng(L,H),at={large:"lg",small:"sm",middle:void 0},Le=hl(ht=>{var Je,Ge;return(Ge=(Je=C??Ze)!==null&&Je!==void 0?Je:ce)!==null&&Ge!==void 0?Ge:ht}),st=Le&&(n=at[Le])!==null&&n!==void 0?n:"",be=we?"loading":$,Fe=qo(Z,["navigate"]),Ue=Pe(L,Y,ae,{[`${L}-${y}`]:y!=="default"&&y,[`${L}-${X}`]:X,[`${L}-dangerous`]:v,[`${L}-color-${k}`]:k,[`${L}-variant-${q}`]:q,[`${L}-${st}`]:st,[`${L}-icon-only`]:!O&&O!==0&&!!be,[`${L}-background-ghost`]:R&&!jp(q),[`${L}-loading`]:we,[`${L}-two-chinese-chars`]:_e&&I&&!we,[`${L}-block`]:T,[`${L}-rtl`]:H==="rtl",[`${L}-icon-end`]:M==="end"},pt,S,E,A==null?void 0:A.className),tt=Object.assign(Object.assign({},A==null?void 0:A.style),j),Pt=Pe(F==null?void 0:F.icon,(i=A==null?void 0:A.classNames)===null||i===void 0?void 0:i.icon),bt=Object.assign(Object.assign({},(w==null?void 0:w.icon)||{}),((l=A==null?void 0:A.styles)===null||l===void 0?void 0:l.icon)||{}),Dt=$&&!we?ye.createElement(Vw,{prefixCls:L,className:Pt,style:bt},$):ye.createElement(hM,{existIcon:!!$,prefixCls:L,loading:we}),St=O||O===0?pM(O,Ve&&I):null;if(Fe.href!==void 0)return ne(ye.createElement("a",Object.assign({},Fe,{className:Pe(Ue,{[`${L}-disabled`]:se}),href:se?void 0:Fe.href,style:tt,onClick:ft,ref:Te,tabIndex:se?-1:0}),Dt,St));let Qt=ye.createElement("button",Object.assign({},Z,{type:_,className:Ue,style:tt,onClick:ft,disabled:se,ref:Te}),Dt,St,pt&&ye.createElement(lI,{prefixCls:L}));return jp(q)||(Qt=ye.createElement(Dw,{component:"Button",disabled:we},Qt)),ne(Qt)}),xi=dI;xi.Group=dM;xi.__ANT_BUTTON=!0;var Kw=h.createContext(null),Ib=[];function fI(e,t){var r=h.useState(function(){if(!on())return null;var w=document.createElement("div");return w}),n=Ee(r,1),i=n[0],l=h.useRef(!1),u=h.useContext(Kw),c=h.useState(Ib),f=Ee(c,2),p=f[0],m=f[1],v=u||(l.current?void 0:function(w){m(function(x){var S=[w].concat(Ne(x));return S})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function C(){var w;(w=i.parentElement)===null||w===void 0||w.removeChild(i),l.current=!1}return Wt(function(){return e?u?u(y):y():C(),C},[e]),Wt(function(){p.length&&(p.forEach(function(w){return w()}),m(Ib))},[p]),[i,v]}function pI(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 u=getComputedStyle(e);n.scrollbarColor=u.scrollbarColor,n.scrollbarWidth=u.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),f=parseInt(c.width,10),p=parseInt(c.height,10);try{var m=f?"width: ".concat(c.width,";"):"",v=p?"height: ".concat(c.height,";"):"";zo(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(m,`
`).concat(v,`
}`),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,C=e&&l&&!isNaN(l)?l:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),xs(t),{width:y,height:C}}function hI(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:pI(e)}function mI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var gI="rc-util-locker-".concat(Date.now()),Fb=0;function vI(e){var t=!!e,r=h.useState(function(){return Fb+=1,"".concat(gI,"_").concat(Fb)}),n=Ee(r,1),i=n[0];Wt(function(){if(t){var l=hI(document.body).width,u=mI();zo(`
html body {
  overflow-y: hidden;
  `.concat(u?"width: calc(100% - ".concat(l,"px);"):"",`
}`),i)}else xs(i);return function(){xs(i)}},[t,i])}var yI=!1;function bI(e){return yI}var jb=function(t){return t===!1?!1:!on()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Xw=h.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var l=e.autoDestroy,u=l===void 0?!0:l,c=e.children,f=h.useState(r),p=Ee(f,2),m=p[0],v=p[1],y=m||r;h.useEffect(function(){(u||r)&&v(r)},[r,u]);var C=h.useState(function(){return jb(i)}),w=Ee(C,2),x=w[0],S=w[1];h.useEffect(function(){var Q=jb(i);S(Q??null)});var E=fI(y&&!x),O=Ee(E,2),$=O[0],M=O[1],R=x??$;vI(n&&r&&on()&&(R===$||R===document.body));var T=null;if(c&&cl(c)&&t){var _=c;T=_.ref}var F=sd(T,t);if(!y||!on()||x===void 0)return null;var j=R===!1||bI(),B=c;return t&&(B=h.cloneElement(c,{ref:F})),h.createElement(Kw.Provider,{value:M},j?B:zm.createPortal(B,R))});function SI(){var e=ie({},td);return e.useId}var kb=0,Nb=SI();const wI=Nb?function(t){var r=Nb();return t||r}:function(t){var r=h.useState("ssr-id"),n=Ee(r,2),i=n[0],l=n[1];return h.useEffect(function(){var u=kb;kb+=1,l("rc_unique_".concat(u))},[]),t||i};var Xi="RC_FORM_INTERNAL_HOOKS",Nt=function(){wn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ia=h.createContext({getFieldValue:Nt,getFieldsValue:Nt,getFieldError:Nt,getFieldWarning:Nt,getFieldsError:Nt,isFieldsTouched:Nt,isFieldTouched:Nt,isFieldValidating:Nt,isFieldsValidating:Nt,resetFields:Nt,setFields:Nt,setFieldValue:Nt,setFieldsValue:Nt,validateFields:Nt,submit:Nt,getInternalHooks:function(){return Nt(),{dispatch:Nt,initEntityValue:Nt,registerField:Nt,useSubscribe:Nt,setInitialValues:Nt,destroyForm:Nt,setCallbacks:Nt,registerWatch:Nt,getFields:Nt,setValidateMessages:Nt,setPreserve:Nt,getInitialValue:Nt}}}),Ts=h.createContext(null);function nm(e){return e==null?[]:Array.isArray(e)?e:[e]}function xI(e){return e&&!!e._init}function om(){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 im=om();function CI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function EI(e,t,r){if(cd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&Ss(i,r.prototype),i}function am(e){var t=typeof Map=="function"?new Map:void 0;return am=function(n){if(n===null||!CI(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 EI(n,arguments,ea(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ss(i,n)},am(e)}var RI=/%[sdj%]/g,$I=function(){};function lm(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 Sn(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 u=e.replace(RI,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 u}return e}function OI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||OI(t)&&typeof e=="string"&&!e)}function PI(e,t,r){var n=[],i=0,l=e.length;function u(c){n.push.apply(n,Ne(c||[])),i++,i===l&&r(n)}e.forEach(function(c){t(c,u)})}function Lb(e,t,r){var n=0,i=e.length;function l(u){if(u&&u.length){r(u);return}var c=n;n=n+1,c<i?t(e[c],l):r([])}l([])}function TI(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ne(e[r]||[]))}),t}var Ab=function(e){Uo(r,e);var t=Ei(r);function r(n,i){var l;return mr(this,r),l=t.call(this,"Async Validation Error"),ee(ct(l),"errors",void 0),ee(ct(l),"fields",void 0),l.errors=n,l.fields=i,l}return gr(r)}(am(Error));function _I(e,t,r,n,i){if(t.first){var l=new Promise(function(y,C){var w=function(E){return n(E),E.length?C(new Ab(E,lm(E))):y(i)},x=TI(e);Lb(x,r,w)});return l.catch(function(y){return y}),l}var u=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),f=c.length,p=0,m=[],v=new Promise(function(y,C){var w=function(S){if(m.push.apply(m,S),p++,p===f)return n(m),m.length?C(new Ab(m,lm(m))):y(i)};c.length||(n(m),y(i)),c.forEach(function(x){var S=e[x];u.indexOf(x)!==-1?Lb(S,r,w):PI(S,r,w)})});return v.catch(function(y){return y}),v}function MI(e){return!!(e&&e.message!==void 0)}function II(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function zb(e,t){return function(r){var n;return e.fullFields?n=II(t,e.fullFields):n=t[r.field||e.fullField],MI(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 Db(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];nt(n)==="object"&&nt(e[r])==="object"?e[r]=ie(ie({},e[r]),n):e[r]=n}}return e}var Ha="enum",FI=function(t,r,n,i,l){t[Ha]=Array.isArray(t[Ha])?t[Ha]:[],t[Ha].indexOf(r)===-1&&i.push(Sn(l.messages[Ha],t.fullField,t[Ha].join(", ")))},jI=function(t,r,n,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Sn(l.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(r)||i.push(Sn(l.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},kI=function(t,r,n,i,l){var u=typeof t.len=="number",c=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=r,v=null,y=typeof r=="number",C=typeof r=="string",w=Array.isArray(r);if(y?v="number":C?v="string":w&&(v="array"),!v)return!1;w&&(m=r.length),C&&(m=r.replace(p,"_").length),u?m!==t.len&&i.push(Sn(l.messages[v].len,t.fullField,t.len)):c&&!f&&m<t.min?i.push(Sn(l.messages[v].min,t.fullField,t.min)):f&&!c&&m>t.max?i.push(Sn(l.messages[v].max,t.fullField,t.max)):c&&f&&(m<t.min||m>t.max)&&i.push(Sn(l.messages[v].range,t.fullField,t.min,t.max))},Qw=function(t,r,n,i,l,u){t.required&&(!n.hasOwnProperty(t.field)||hr(r,u||t.type))&&i.push(Sn(l.messages.required,t.fullField))},uc;const NI=function(){if(uc)return uc;var e="[a-fA-F\\d:]",t=function(T){return T&&T.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,})?",u="(?:".concat(i.join("|"),")").concat(l),c=new RegExp("(?:^".concat(r,"$)|(?:^").concat(u,"$)")),f=new RegExp("^".concat(r,"$")),p=new RegExp("^".concat(u,"$")),m=function(T){return T&&T.exact?c:new RegExp("(?:".concat(t(T)).concat(r).concat(t(T),")|(?:").concat(t(T)).concat(u).concat(t(T),")"),"g")};m.v4=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(r).concat(t(R)),"g")},m.v6=function(R){return R&&R.exact?p:new RegExp("".concat(t(R)).concat(u).concat(t(R)),"g")};var v="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,w=m.v6().source,x="(?:(?:[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,}))",O="(?::\\d{2,5})?",$='(?:[/?#][^\\s"]*)?',M="(?:".concat(v,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(w,"|").concat(x).concat(S).concat(E,")").concat(O).concat($);return uc=new RegExp("(?:^".concat(M,"$)"),"i"),uc};var Bb={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},ss={integer:function(t){return ss.number(t)&&parseInt(t,10)===t},float:function(t){return ss.number(t)&&!ss.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 nt(t)==="object"&&!ss.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Bb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(NI())},hex:function(t){return typeof t=="string"&&!!t.match(Bb.hex)}},LI=function(t,r,n,i,l){if(t.required&&r===void 0){Qw(t,r,n,i,l);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;u.indexOf(c)>-1?ss[c](r)||i.push(Sn(l.messages.types[c],t.fullField,t.type)):c&&nt(r)!==t.type&&i.push(Sn(l.messages.types[c],t.fullField,t.type))},AI=function(t,r,n,i,l){(/^\s+$/.test(r)||r==="")&&i.push(Sn(l.messages.whitespace,t.fullField))};const yt={required:Qw,whitespace:AI,type:LI,range:kI,enum:FI,pattern:jI};var zI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l)}n(u)},DI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(r==null&&!t.required)return n();yt.required(t,r,i,u,l,"array"),r!=null&&(yt.type(t,r,i,u,l),yt.range(t,r,i,u,l))}n(u)},BI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&yt.type(t,r,i,u,l)}n(u)},HI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r,"date")&&!t.required)return n();if(yt.required(t,r,i,u,l),!hr(r,"date")){var f;r instanceof Date?f=r:f=new Date(r),yt.type(t,f,i,u,l),f&&yt.range(t,f.getTime(),i,u,l)}}n(u)},VI="enum",WI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&yt[VI](t,r,i,u,l)}n(u)},UI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&(yt.type(t,r,i,u,l),yt.range(t,r,i,u,l))}n(u)},qI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&(yt.type(t,r,i,u,l),yt.range(t,r,i,u,l))}n(u)},GI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&yt.type(t,r,i,u,l)}n(u)},KI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(r===""&&(r=void 0),hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&(yt.type(t,r,i,u,l),yt.range(t,r,i,u,l))}n(u)},XI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),r!==void 0&&yt.type(t,r,i,u,l)}n(u)},QI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r,"string")&&!t.required)return n();yt.required(t,r,i,u,l),hr(r,"string")||yt.pattern(t,r,i,u,l)}n(u)},YI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r)&&!t.required)return n();yt.required(t,r,i,u,l),hr(r)||yt.type(t,r,i,u,l)}n(u)},JI=function(t,r,n,i,l){var u=[],c=Array.isArray(r)?"array":nt(r);yt.required(t,r,i,u,l,c),n(u)},ZI=function(t,r,n,i,l){var u=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(hr(r,"string")&&!t.required)return n();yt.required(t,r,i,u,l,"string"),hr(r,"string")||(yt.type(t,r,i,u,l),yt.range(t,r,i,u,l),yt.pattern(t,r,i,u,l),t.whitespace===!0&&yt.whitespace(t,r,i,u,l))}n(u)},zp=function(t,r,n,i,l){var u=t.type,c=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(hr(r,u)&&!t.required)return n();yt.required(t,r,i,c,l,u),hr(r,u)||yt.type(t,r,i,c,l)}n(c)};const ps={string:ZI,method:GI,number:KI,boolean:BI,regexp:YI,integer:qI,float:UI,array:DI,object:XI,enum:WI,pattern:QI,date:HI,url:zp,hex:zp,email:zp,required:JI,any:zI};var Vs=function(){function e(t){mr(this,e),ee(this,"rules",null),ee(this,"_messages",im),this.define(t)}return gr(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(nt(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=Db(om(),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(){},u=r,c=i,f=l;if(typeof c=="function"&&(f=c,c={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,u),Promise.resolve(u);function p(w){var x=[],S={};function E($){if(Array.isArray($)){var M;x=(M=x).concat.apply(M,Ne($))}else x.push($)}for(var O=0;O<w.length;O++)E(w[O]);x.length?(S=lm(x),f(x,S)):f(null,u)}if(c.messages){var m=this.messages();m===im&&(m=om()),Db(m,c.messages),c.messages=m}else c.messages=this.messages();var v={},y=c.keys||Object.keys(this.rules);y.forEach(function(w){var x=n.rules[w],S=u[w];x.forEach(function(E){var O=E;typeof O.transform=="function"&&(u===r&&(u=ie({},u)),S=u[w]=O.transform(S),S!=null&&(O.type=O.type||(Array.isArray(S)?"array":nt(S)))),typeof O=="function"?O={validator:O}:O=ie({},O),O.validator=n.getValidationMethod(O),O.validator&&(O.field=w,O.fullField=O.fullField||w,O.type=n.getType(O),v[w]=v[w]||[],v[w].push({rule:O,value:S,source:u,field:w}))})});var C={};return _I(v,c,function(w,x){var S=w.rule,E=(S.type==="object"||S.type==="array")&&(nt(S.fields)==="object"||nt(S.defaultField)==="object");E=E&&(S.required||!S.required&&w.value),S.field=w.field;function O(_,F){return ie(ie({},F),{},{fullField:"".concat(S.fullField,".").concat(_),fullFields:S.fullFields?[].concat(Ne(S.fullFields),[_]):[_]})}function $(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=Array.isArray(_)?_:[_];!c.suppressWarning&&F.length&&e.warning("async-validator:",F),F.length&&S.message!==void 0&&(F=[].concat(S.message));var j=F.map(zb(S,u));if(c.first&&j.length)return C[S.field]=1,x(j);if(!E)x(j);else{if(S.required&&!w.value)return S.message!==void 0?j=[].concat(S.message).map(zb(S,u)):c.error&&(j=[c.error(S,Sn(c.messages.required,S.field))]),x(j);var B={};S.defaultField&&Object.keys(w.value).map(function(X){B[X]=S.defaultField}),B=ie(ie({},B),w.rule.fields);var Q={};Object.keys(B).forEach(function(X){var U=B[X],q=Array.isArray(U)?U:[U];Q[X]=q.map(O.bind(null,X))});var Z=new e(Q);Z.messages(c.messages),w.rule.options&&(w.rule.options.messages=c.messages,w.rule.options.error=c.error),Z.validate(w.value,w.rule.options||c,function(X){var U=[];j&&j.length&&U.push.apply(U,Ne(j)),X&&X.length&&U.push.apply(U,Ne(X)),x(U.length?U:null)})}}var M;if(S.asyncValidator)M=S.asyncValidator(S,w.value,$,w.source,c);else if(S.validator){try{M=S.validator(S,w.value,$,w.source,c)}catch(_){var R,T;(R=(T=console).error)===null||R===void 0||R.call(T,_),c.suppressValidatorError||setTimeout(function(){throw _},0),$(_.message)}M===!0?$():M===!1?$(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):M instanceof Array?$(M):M instanceof Error&&$(M.message)}M&&M.then&&M.then(function(){return $()},function(_){return $(_)})},function(w){p(w)},u)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ps.hasOwnProperty(r.type))throw new Error(Sn("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"?ps.required:ps[this.getType(r)]||void 0}}]),e}();ee(Vs,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ps[t]=r});ee(Vs,"warning",$I);ee(Vs,"messages",im);ee(Vs,"validators",ps);var mn="'${name}' is not a valid ${type}",Yw={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:mn,method:mn,array:mn,object:mn,number:mn,date:mn,boolean:mn,integer:mn,float:mn,regexp:mn,email:mn,url:mn,hex:mn},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}"}},Hb=Vs;function eF(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 Vb="CODE_LOGIC_ERROR";function sm(e,t,r,n,i){return um.apply(this,arguments)}function um(){return um=da(Kr().mark(function e(t,r,n,i,l){var u,c,f,p,m,v,y,C,w;return Kr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return u=ie({},n),delete u.ruleIndex,Hb.warning=function(){},u.validator&&(c=u.validator,u.validator=function(){try{return c.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(Vb)}}),f=null,u&&u.type==="array"&&u.defaultField&&(f=u.defaultField,delete u.defaultField),p=new Hb(ee({},t,[u])),m=Ka(Yw,i.validateMessages),p.messages(m),v=[],S.prev=10,S.next=13,Promise.resolve(p.validate(ee({},t,r),ie({},i)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(v=S.t0.errors.map(function(E,O){var $=E.message,M=$===Vb?m.default:$;return h.isValidElement(M)?h.cloneElement(M,{key:"error_".concat(O)}):M}));case 18:if(!(!v.length&&f)){S.next=23;break}return S.next=21,Promise.all(r.map(function(E,O){return sm("".concat(t,".").concat(O),E,f,i,l)}));case 21:return y=S.sent,S.abrupt("return",y.reduce(function(E,O){return[].concat(Ne(E),Ne(O))},[]));case 23:return C=ie(ie({},n),{},{name:t,enum:(n.enum||[]).join(", ")},l),w=v.map(function(E){return typeof E=="string"?eF(E,C):E}),S.abrupt("return",w);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),um.apply(this,arguments)}function tF(e,t,r,n,i,l){var u=e.join("."),c=r.map(function(m,v){var y=m.validator,C=ie(ie({},m),{},{ruleIndex:v});return y&&(C.validator=function(w,x,S){var E=!1,O=function(){for(var R=arguments.length,T=new Array(R),_=0;_<R;_++)T[_]=arguments[_];Promise.resolve().then(function(){wn(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||S.apply(void 0,T)})},$=y(w,x,O);E=$&&typeof $.then=="function"&&typeof $.catch=="function",wn(E,"`callback` is deprecated. Please return a promise instead."),E&&$.then(function(){S()}).catch(function(M){S(M||" ")})}),C}).sort(function(m,v){var y=m.warningOnly,C=m.ruleIndex,w=v.warningOnly,x=v.ruleIndex;return!!y==!!w?C-x:y?1:-1}),f;if(i===!0)f=new Promise(function(){var m=da(Kr().mark(function v(y,C){var w,x,S;return Kr().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:w=0;case 1:if(!(w<c.length)){O.next=12;break}return x=c[w],O.next=5,sm(u,t,x,n,l);case 5:if(S=O.sent,!S.length){O.next=9;break}return C([{errors:S,rule:x}]),O.abrupt("return");case 9:w+=1,O.next=1;break;case 12:y([]);case 13:case"end":return O.stop()}},v)}));return function(v,y){return m.apply(this,arguments)}}());else{var p=c.map(function(m){return sm(u,t,m,n,l).then(function(v){return{errors:v,rule:m}})});f=(i?nF(p):rF(p)).then(function(m){return Promise.reject(m)})}return f.catch(function(m){return m}),f}function rF(e){return cm.apply(this,arguments)}function cm(){return cm=da(Kr().mark(function e(t){return Kr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var l,u=(l=[]).concat.apply(l,Ne(i));return u}));case 1:case"end":return n.stop()}},e)})),cm.apply(this,arguments)}function nF(e){return dm.apply(this,arguments)}function dm(){return dm=da(Kr().mark(function e(t){var r;return Kr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(l){t.forEach(function(u){u.then(function(c){c.errors.length&&l([c]),r+=1,r===t.length&&l([])})})}));case 2:case"end":return i.stop()}},e)})),dm.apply(this,arguments)}function ir(e){return nm(e)}function Wb(e,t){var r={};return t.forEach(function(n){var i=zn(e,n);r=An(r,n,i)}),r}function Za(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Jw(t,n,r)})}function Jw(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 oF(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||nt(e)!=="object"||nt(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 u=e[l],c=t[l];return typeof u=="function"&&typeof c=="function"?!0:u===c})}function iF(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&nt(t.target)==="object"&&e in t.target?t.target[e]:t}function Ub(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 aF=["name"],kn=[];function Dp(e,t,r,n,i,l){return typeof e=="function"?e(t,r,"source"in l?{source:l.source}:{}):n!==i}var dg=function(e){Uo(r,e);var t=Ei(r);function r(n){var i;if(mr(this,r),i=t.call(this,n),ee(ct(i),"state",{resetCount:0}),ee(ct(i),"cancelRegisterFunc",null),ee(ct(i),"mounted",!1),ee(ct(i),"touched",!1),ee(ct(i),"dirty",!1),ee(ct(i),"validatePromise",void 0),ee(ct(i),"prevValidating",void 0),ee(ct(i),"errors",kn),ee(ct(i),"warnings",kn),ee(ct(i),"cancelRegister",function(){var f=i.props,p=f.preserve,m=f.isListField,v=f.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(m,p,ir(v)),i.cancelRegisterFunc=null}),ee(ct(i),"getNamePath",function(){var f=i.props,p=f.name,m=f.fieldContext,v=m.prefixName,y=v===void 0?[]:v;return p!==void 0?[].concat(Ne(y),Ne(p)):[]}),ee(ct(i),"getRules",function(){var f=i.props,p=f.rules,m=p===void 0?[]:p,v=f.fieldContext;return m.map(function(y){return typeof y=="function"?y(v):y})}),ee(ct(i),"refresh",function(){i.mounted&&i.setState(function(f){var p=f.resetCount;return{resetCount:p+1}})}),ee(ct(i),"metaCache",null),ee(ct(i),"triggerMetaEvent",function(f){var p=i.props.onMetaChange;if(p){var m=ie(ie({},i.getMeta()),{},{destroy:f});$h(i.metaCache,m)||p(m),i.metaCache=m}else i.metaCache=null}),ee(ct(i),"onStoreChange",function(f,p,m){var v=i.props,y=v.shouldUpdate,C=v.dependencies,w=C===void 0?[]:C,x=v.onReset,S=m.store,E=i.getNamePath(),O=i.getValue(f),$=i.getValue(S),M=p&&Za(p,E);switch(m.type==="valueUpdate"&&m.source==="external"&&!$h(O,$)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=kn,i.warnings=kn,i.triggerMetaEvent()),m.type){case"reset":if(!p||M){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=kn,i.warnings=kn,i.triggerMetaEvent(),x==null||x(),i.refresh();return}break;case"remove":{if(y&&Dp(y,f,S,O,$,m)){i.reRender();return}break}case"setField":{var R=m.data;if(M){"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||kn),"warnings"in R&&(i.warnings=R.warnings||kn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in R&&Za(p,E,!0)){i.reRender();return}if(y&&!E.length&&Dp(y,f,S,O,$,m)){i.reRender();return}break}case"dependenciesUpdate":{var T=w.map(ir);if(T.some(function(_){return Za(m.relatedFields,_)})){i.reRender();return}break}default:if(M||(!w.length||E.length||y)&&Dp(y,f,S,O,$,m)){i.reRender();return}break}y===!0&&i.reRender()}),ee(ct(i),"validateRules",function(f){var p=i.getNamePath(),m=i.getValue(),v=f||{},y=v.triggerName,C=v.validateOnly,w=C===void 0?!1:C,x=Promise.resolve().then(da(Kr().mark(function S(){var E,O,$,M,R,T,_;return Kr().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(i.mounted){j.next=2;break}return j.abrupt("return",[]);case 2:if(E=i.props,O=E.validateFirst,$=O===void 0?!1:O,M=E.messageVariables,R=E.validateDebounce,T=i.getRules(),y&&(T=T.filter(function(B){return B}).filter(function(B){var Q=B.validateTrigger;if(!Q)return!0;var Z=nm(Q);return Z.includes(y)})),!(R&&y)){j.next=10;break}return j.next=8,new Promise(function(B){setTimeout(B,R)});case 8:if(i.validatePromise===x){j.next=10;break}return j.abrupt("return",[]);case 10:return _=tF(p,m,T,f,$,M),_.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kn;if(i.validatePromise===x){var Q;i.validatePromise=null;var Z=[],X=[];(Q=B.forEach)===null||Q===void 0||Q.call(B,function(U){var q=U.rule.warningOnly,D=U.errors,k=D===void 0?kn:D;q?X.push.apply(X,Ne(k)):Z.push.apply(Z,Ne(k))}),i.errors=Z,i.warnings=X,i.triggerMetaEvent(),i.reRender()}}),j.abrupt("return",_);case 13:case"end":return j.stop()}},S)})));return w||(i.validatePromise=x,i.dirty=!0,i.errors=kn,i.warnings=kn,i.triggerMetaEvent(),i.reRender()),x}),ee(ct(i),"isFieldValidating",function(){return!!i.validatePromise}),ee(ct(i),"isFieldTouched",function(){return i.touched}),ee(ct(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var f=i.props.fieldContext,p=f.getInternalHooks(Xi),m=p.getInitialValue;return m(i.getNamePath())!==void 0}),ee(ct(i),"getErrors",function(){return i.errors}),ee(ct(i),"getWarnings",function(){return i.warnings}),ee(ct(i),"isListField",function(){return i.props.isListField}),ee(ct(i),"isList",function(){return i.props.isList}),ee(ct(i),"isPreserve",function(){return i.props.preserve}),ee(ct(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}),ee(ct(i),"getOnlyChild",function(f){if(typeof f=="function"){var p=i.getMeta();return ie(ie({},i.getOnlyChild(f(i.getControlled(),p,i.props.fieldContext))),{},{isFunction:!0})}var m=Zi(f);return m.length!==1||!h.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),ee(ct(i),"getValue",function(f){var p=i.props.fieldContext.getFieldsValue,m=i.getNamePath();return zn(f||p(!0),m)}),ee(ct(i),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=i.props,m=p.name,v=p.trigger,y=p.validateTrigger,C=p.getValueFromEvent,w=p.normalize,x=p.valuePropName,S=p.getValueProps,E=p.fieldContext,O=y!==void 0?y:E.validateTrigger,$=i.getNamePath(),M=E.getInternalHooks,R=E.getFieldsValue,T=M(Xi),_=T.dispatch,F=i.getValue(),j=S||function(U){return ee({},x,U)},B=f[v],Q=m!==void 0?j(F):{},Z=ie(ie({},f),Q);Z[v]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,q=arguments.length,D=new Array(q),k=0;k<q;k++)D[k]=arguments[k];C?U=C.apply(void 0,D):U=iF.apply(void 0,[x].concat(D)),w&&(U=w(U,F,R(!0))),U!==F&&_({type:"updateValue",namePath:$,value:U}),B&&B.apply(void 0,D)};var X=nm(O||[]);return X.forEach(function(U){var q=Z[U];Z[U]=function(){q&&q.apply(void 0,arguments);var D=i.props.rules;D&&D.length&&_({type:"validateField",namePath:$,triggerName:U})}}),Z}),n.fieldContext){var l=n.fieldContext.getInternalHooks,u=l(Xi),c=u.initEntityValue;c(ct(i))}return i}return gr(r,[{key:"componentDidMount",value:function(){var i=this.props,l=i.shouldUpdate,u=i.fieldContext;if(this.mounted=!0,u){var c=u.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,u=this.getOnlyChild(l),c=u.child,f=u.isFunction,p;return f?p=c:h.isValidElement(c)?p=h.cloneElement(c,this.getControlled(c.props)):(wn(!c,"`children` of Field is not validate ReactElement."),p=c),h.createElement(h.Fragment,{key:i},p)}}]),r}(h.Component);ee(dg,"contextType",ia);ee(dg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function fg(e){var t=e.name,r=Or(e,aF),n=h.useContext(ia),i=h.useContext(Ts),l=t!==void 0?ir(t):void 0,u="keep";return r.isListField||(u="_".concat((l||[]).join("_"))),h.createElement(dg,Ot({key:u,name:l,isListField:!!i},r,{fieldContext:n}))}function Zw(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,l=e.validateTrigger,u=e.isListField,c=h.useContext(ia),f=h.useContext(Ts),p=h.useRef({keys:[],id:0}),m=p.current,v=h.useMemo(function(){var x=ir(c.prefixName)||[];return[].concat(Ne(x),Ne(ir(t)))},[c.prefixName,t]),y=h.useMemo(function(){return ie(ie({},c),{},{prefixName:v})},[c,v]),C=h.useMemo(function(){return{getKey:function(S){var E=v.length,O=S[E];return[m.keys[O],S.slice(E+1)]}}},[v]);if(typeof n!="function")return wn(!1,"Form.List only accepts function as children."),null;var w=function(S,E,O){var $=O.source;return $==="internal"?!1:S!==E};return h.createElement(Ts.Provider,{value:C},h.createElement(ia.Provider,{value:y},h.createElement(fg,{name:[],shouldUpdate:w,rules:i,validateTrigger:l,initialValue:r,isList:!0,isListField:u??!!f},function(x,S){var E=x.value,O=E===void 0?[]:E,$=x.onChange,M=c.getFieldValue,R=function(){var j=M(v||[]);return j||[]},T={add:function(j,B){var Q=R();B>=0&&B<=Q.length?(m.keys=[].concat(Ne(m.keys.slice(0,B)),[m.id],Ne(m.keys.slice(B))),$([].concat(Ne(Q.slice(0,B)),[j],Ne(Q.slice(B))))):(m.keys=[].concat(Ne(m.keys),[m.id]),$([].concat(Ne(Q),[j]))),m.id+=1},remove:function(j){var B=R(),Q=new Set(Array.isArray(j)?j:[j]);Q.size<=0||(m.keys=m.keys.filter(function(Z,X){return!Q.has(X)}),$(B.filter(function(Z,X){return!Q.has(X)})))},move:function(j,B){if(j!==B){var Q=R();j<0||j>=Q.length||B<0||B>=Q.length||(m.keys=Ub(m.keys,j,B),$(Ub(Q,j,B)))}}},_=O||[];return Array.isArray(_)||(_=[]),n(_.map(function(F,j){var B=m.keys[j];return B===void 0&&(m.keys[j]=m.id,B=m.keys[j],m.id+=1),{name:j,key:B,isListField:!0}}),T,S)})))}function lF(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,l){e.forEach(function(u,c){u.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 ex="__@field_split__";function Bp(e){return e.map(function(t){return"".concat(nt(t),":").concat(t)}).join(ex)}var Va=function(){function e(){mr(this,e),ee(this,"kvs",new Map)}return gr(e,[{key:"set",value:function(r,n){this.kvs.set(Bp(r),n)}},{key:"get",value:function(r){return this.kvs.get(Bp(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(Bp(r))}},{key:"map",value:function(r){return Ne(this.kvs.entries()).map(function(n){var i=Ee(n,2),l=i[0],u=i[1],c=l.split(ex);return r({key:c.map(function(f){var p=f.match(/^([^:]*):(.*)$/),m=Ee(p,3),v=m[1],y=m[2];return v==="number"?Number(y):y}),value:u})})}},{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}(),sF=["name"],uF=gr(function e(t){var r=this;mr(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(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}}),ee(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}):(wn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(n){r.subscribable=n}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var l,u=Ka(n,r.store);(l=r.prevWithoutPreserves)===null||l===void 0||l.map(function(c){var f=c.key;u=An(u,f,zn(n,f))}),r.prevWithoutPreserves=null,r.updateStore(u)}}),ee(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}}),ee(this,"getInitialValue",function(n){var i=zn(r.initialValues,n);return n.length?Ka(i):i}),ee(this,"setCallbacks",function(n){r.callbacks=n}),ee(this,"setValidateMessages",function(n){r.validateMessages=n}),ee(this,"setPreserve",function(n){r.preserve=n}),ee(this,"watchList",[]),ee(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),ee(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(u){u(i,l,n)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){}),ee(this,"updateStore",function(n){r.store=n}),ee(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}),ee(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 u=l.getNamePath();i.set(u,l)}),i}),ee(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(l){var u=ir(l);return i.get(u)||{INVALIDATE_NAME_PATH:ir(l)}})}),ee(this,"getFieldsValue",function(n,i){r.warningUnhooked();var l,u,c;if(n===!0||Array.isArray(n)?(l=n,u=i):n&&nt(n)==="object"&&(c=n.strict,u=n.filter),l===!0&&!u)return r.store;var f=r.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),p=[];return f.forEach(function(m){var v,y,C="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(c){var w,x;if((w=(x=m).isList)!==null&&w!==void 0&&w.call(x))return}else if(!l&&(v=(y=m).isListField)!==null&&v!==void 0&&v.call(y))return;if(!u)p.push(C);else{var S="getMeta"in m?m.getMeta():null;u(S)&&p.push(C)}}),Wb(r.store,p.map(ir))}),ee(this,"getFieldValue",function(n){r.warningUnhooked();var i=ir(n);return zn(r.store,i)}),ee(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(l,u){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:ir(n[u]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(n){r.warningUnhooked();var i=ir(n),l=r.getFieldsError([i])[0];return l.errors}),ee(this,"getFieldWarning",function(n){r.warningUnhooked();var i=ir(n),l=r.getFieldsError([i])[0];return l.warnings}),ee(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];var u=i[0],c=i[1],f,p=!1;i.length===0?f=null:i.length===1?Array.isArray(u)?(f=u.map(ir),p=!1):(f=null,p=u):(f=u.map(ir),p=c);var m=r.getFieldEntities(!0),v=function(S){return S.isFieldTouched()};if(!f)return p?m.every(function(x){return v(x)||x.isList()}):m.some(v);var y=new Va;f.forEach(function(x){y.set(x,[])}),m.forEach(function(x){var S=x.getNamePath();f.forEach(function(E){E.every(function(O,$){return S[$]===O})&&y.update(E,function(O){return[].concat(Ne(O),[x])})})});var C=function(S){return S.some(v)},w=y.map(function(x){var S=x.value;return S});return p?w.every(C):w.some(C)}),ee(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),ee(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(u){return u.isFieldValidating()});var l=n.map(ir);return i.some(function(u){var c=u.getNamePath();return Za(l,c)&&u.isFieldValidating()})}),ee(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),ee(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,m=f.getNamePath();if(p!==void 0){var v=i.get(m)||new Set;v.add({entity:f,value:p}),i.set(m,v)}});var u=function(p){p.forEach(function(m){var v=m.props.initialValue;if(v!==void 0){var y=m.getNamePath(),C=r.getInitialValue(y);if(C!==void 0)wn(!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)wn(!1,"Multiple Field with path '".concat(y.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(w){var x=r.getFieldValue(y),S=m.isListField();!S&&(!n.skipExist||x===void 0)&&r.updateStore(An(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 m;(m=c).push.apply(m,Ne(Ne(p).map(function(v){return v.entity})))}})):c=l,u(c)}),ee(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(Ka(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var l=n.map(ir);l.forEach(function(u){var c=r.getInitialValue(u);r.updateStore(An(r.store,u,c))}),r.resetWithFieldInitialValue({namePathList:l}),r.notifyObservers(i,l,{type:"reset"}),r.notifyWatch(l)}),ee(this,"setFields",function(n){r.warningUnhooked();var i=r.store,l=[];n.forEach(function(u){var c=u.name,f=Or(u,sF),p=ir(c);l.push(p),"value"in f&&r.updateStore(An(r.store,p,f.value)),r.notifyObservers(i,[p],{type:"setField",data:u})}),r.notifyWatch(l)}),ee(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(l){var u=l.getNamePath(),c=l.getMeta(),f=ie(ie({},c),{},{name:u,value:r.getFieldValue(u)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return i}),ee(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var l=n.getNamePath(),u=zn(r.store,l);u===void 0&&r.updateStore(An(r.store,l,i))}}),ee(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),ee(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(u,c){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(v){return v!==n}),!r.isMergedPreserve(c)&&(!u||f.length>1)){var p=u?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==p&&r.fieldEntities.every(function(v){return!Jw(v.getNamePath(),i)})){var m=r.store;r.updateStore(An(m,i,p,!0)),r.notifyObservers(m,[i],{type:"remove"}),r.triggerDependenciesUpdate(m,i)}}r.notifyWatch([i])}}),ee(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,l=n.value;r.updateValue(i,l);break}case"validateField":{var u=n.namePath,c=n.triggerName;r.validateFields([u],{triggerName:c});break}}}),ee(this,"notifyObservers",function(n,i,l){if(r.subscribable){var u=ie(ie({},l),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(c){var f=c.onStoreChange;f(n,i,u)})}else r.forceRootUpdate()}),ee(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}),ee(this,"updateValue",function(n,i){var l=ir(n),u=r.store;r.updateStore(An(r.store,l,i)),r.notifyObservers(u,[l],{type:"valueUpdate",source:"internal"}),r.notifyWatch([l]);var c=r.triggerDependenciesUpdate(u,l),f=r.callbacks.onValuesChange;if(f){var p=Wb(r.store,[l]);f(p,r.getFieldsValue())}r.triggerOnFieldsChange([l].concat(Ne(c)))}),ee(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var l=Ka(r.store,n);r.updateStore(l)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),ee(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i}])}),ee(this,"getDependencyChildrenFields",function(n){var i=new Set,l=[],u=new Va;r.getFieldEntities().forEach(function(f){var p=f.props.dependencies;(p||[]).forEach(function(m){var v=ir(m);u.update(v,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 m=u.get(p)||new Set;m.forEach(function(v){if(!i.has(v)){i.add(v);var y=v.getNamePath();v.isFieldDirty()&&y.length&&(l.push(y),f(y))}})};return c(n),l}),ee(this,"triggerOnFieldsChange",function(n,i){var l=r.callbacks.onFieldsChange;if(l){var u=r.getFields();if(i){var c=new Va;i.forEach(function(p){var m=p.name,v=p.errors;c.set(m,v)}),u.forEach(function(p){p.errors=c.get(p.name)||p.errors})}var f=u.filter(function(p){var m=p.name;return Za(n,m)});f.length&&l(f,u)}}),ee(this,"validateFields",function(n,i){r.warningUnhooked();var l,u;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(l=n,u=i):u=n;var c=!!l,f=c?l.map(ir):[],p=[],m=String(Date.now()),v=new Set,y=u||{},C=y.recursive,w=y.dirty;r.getFieldEntities(!0).forEach(function(O){if(c||f.push(O.getNamePath()),!(!O.props.rules||!O.props.rules.length)&&!(w&&!O.isFieldDirty())){var $=O.getNamePath();if(v.add($.join(m)),!c||Za(f,$,C)){var M=O.validateRules(ie({validateMessages:ie(ie({},Yw),r.validateMessages)},u));p.push(M.then(function(){return{name:$,errors:[],warnings:[]}}).catch(function(R){var T,_=[],F=[];return(T=R.forEach)===null||T===void 0||T.call(R,function(j){var B=j.rule.warningOnly,Q=j.errors;B?F.push.apply(F,Ne(Q)):_.push.apply(_,Ne(Q))}),_.length?Promise.reject({name:$,errors:_,warnings:F}):{name:$,errors:_,warnings:F}}))}}});var x=lF(p);r.lastValidatePromise=x,x.catch(function(O){return O}).then(function(O){var $=O.map(function(M){var R=M.name;return R});r.notifyObservers(r.store,$,{type:"validateFinish"}),r.triggerOnFieldsChange($,O)});var S=x.then(function(){return r.lastValidatePromise===x?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(O){var $=O.filter(function(M){return M&&M.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:$,outOfDate:r.lastValidatePromise!==x})});S.catch(function(O){return O});var E=f.filter(function(O){return v.has(O.join(m))});return r.triggerOnFieldsChange(E),S}),ee(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 pg(e){var t=h.useRef(),r=h.useState({}),n=Ee(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var l=function(){i({})},u=new uF(l);t.current=u.getForm()}return[t.current]}var fm=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),tx=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,l=t.children,u=h.useContext(fm),c=h.useRef({});return h.createElement(fm.Provider,{value:ie(ie({},u),{},{validateMessages:ie(ie({},u.validateMessages),r),triggerFormChange:function(p,m){n&&n(p,{changedFields:m,forms:c.current}),u.triggerFormChange(p,m)},triggerFormFinish:function(p,m){i&&i(p,{values:m,forms:c.current}),u.triggerFormFinish(p,m)},registerForm:function(p,m){p&&(c.current=ie(ie({},c.current),{},ee({},p,m))),u.registerForm(p,m)},unregisterForm:function(p){var m=ie({},c.current);delete m[p],c.current=m,u.unregisterForm(p)}})},l)},cF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],dF=function(t,r){var n=t.name,i=t.initialValues,l=t.fields,u=t.form,c=t.preserve,f=t.children,p=t.component,m=p===void 0?"form":p,v=t.validateMessages,y=t.validateTrigger,C=y===void 0?"onChange":y,w=t.onValuesChange,x=t.onFieldsChange,S=t.onFinish,E=t.onFinishFailed,O=t.clearOnDestroy,$=Or(t,cF),M=h.useRef(null),R=h.useContext(fm),T=pg(u),_=Ee(T,1),F=_[0],j=F.getInternalHooks(Xi),B=j.useSubscribe,Q=j.setInitialValues,Z=j.setCallbacks,X=j.setValidateMessages,U=j.setPreserve,q=j.destroyForm;h.useImperativeHandle(r,function(){return ie(ie({},F),{},{nativeElement:M.current})}),h.useEffect(function(){return R.registerForm(n,F),function(){R.unregisterForm(n)}},[R,F,n]),X(ie(ie({},R.validateMessages),v)),Z({onValuesChange:w,onFieldsChange:function(Y){if(R.triggerFormChange(n,Y),x){for(var ae=arguments.length,ue=new Array(ae>1?ae-1:0),se=1;se<ae;se++)ue[se-1]=arguments[se];x.apply(void 0,[Y].concat(ue))}},onFinish:function(Y){R.triggerFormFinish(n,Y),S&&S(Y)},onFinishFailed:E}),U(c);var D=h.useRef(null);Q(i,!D.current),D.current||(D.current=!0),h.useEffect(function(){return function(){return q(O)}},[]);var k,N=typeof f=="function";if(N){var H=F.getFieldsValue(!0);k=f(H,F)}else k=f;B(!N);var A=h.useRef();h.useEffect(function(){oF(A.current||[],l||[])||F.setFields(l||[]),A.current=l},[l,F]);var I=h.useMemo(function(){return ie(ie({},F),{},{validateTrigger:C})},[F,C]),L=h.createElement(Ts.Provider,{value:null},h.createElement(ia.Provider,{value:I},k));return m===!1?L:h.createElement(m,Ot({},$,{ref:M,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),F.submit()},onReset:function(Y){var ae;Y.preventDefault(),F.resetFields(),(ae=$.onReset)===null||ae===void 0||ae.call($,Y)}}),L)};function qb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function rx(){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,u=xI(l)?{form:l}:l,c=u.form,f=h.useState(),p=Ee(f,2),m=p[0],v=p[1],y=h.useMemo(function(){return qb(m)},[m]),C=h.useRef(y);C.current=y;var w=h.useContext(ia),x=c||w,S=x&&x._init,E=ir(n),O=h.useRef(E);return O.current=E,h.useEffect(function(){if(S){var $=x.getFieldsValue,M=x.getInternalHooks,R=M(Xi),T=R.registerWatch,_=function(Q,Z){var X=u.preserve?Z:Q;return typeof n=="function"?n(X):zn(X,O.current)},F=T(function(B,Q){var Z=_(B,Q),X=qb(Z);C.current!==X&&(C.current=X,v(Z))}),j=_($(),$(!0));return m!==j&&v(j),F}},[S]),m}var fF=h.forwardRef(dF),ml=fF;ml.FormProvider=tx;ml.Field=fg;ml.List=Zw;ml.useForm=pg;ml.useWatch=rx;const Ho=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),nx=h.createContext(null),ox=e=>{const t=qo(e,["prefixCls"]);return h.createElement(tx,Object.assign({},t))},hg=h.createContext({prefixCls:""}),En=h.createContext({}),pF=e=>{let{children:t,status:r,override:n}=e;const i=h.useContext(En),l=h.useMemo(()=>{const u=Object.assign({},i);return n&&delete u.isFormItemInput,r&&(delete u.status,delete u.hasFeedback,delete u.feedbackIcon),u},[r,n,i]);return h.createElement(En.Provider,{value:l},t)},ix=h.createContext(void 0),pm=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=ye.createElement(pF,{override:!0,status:!0},i)),t&&(i=ye.createElement(uM,null,i)),i};var ax=function(t){if(on()&&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},hF=function(t,r){if(!ax(t))return!1;var n=document.createElement("div"),i=n.style[t];return n.style[t]=r,n.style[t]!==i};function Gb(e,t){return!Array.isArray(e)&&t!==void 0?hF(e,t):ax(e)}const mF=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 gF(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,l=n||{},u=l.className,c=l.content,f=i.x,p=f===void 0?0:f,m=i.y,v=m===void 0?0:m,y=h.useRef();if(!r||!r.points)return null;var C={position:"absolute"};if(r.autoArrow!==!1){var w=r.points[0],x=r.points[1],S=w[0],E=w[1],O=x[0],$=x[1];S===O||!["t","b"].includes(S)?C.top=v:S==="t"?C.top=0:C.bottom=0,E===$||!["l","r"].includes(E)?C.left=p:E==="l"?C.left=0:C.right=0}return h.createElement("div",{ref:y,className:Pe("".concat(t,"-arrow"),u),style:C},c)}function vF(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,l=e.motion;return i?h.createElement(ca,Ot({},l,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(u){var c=u.className;return h.createElement("div",{style:{zIndex:n},className:Pe("".concat(t,"-mask"),c)})}):null}var yF=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),bF=h.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,l=e.style,u=e.target,c=e.onVisibleChanged,f=e.open,p=e.keepDom,m=e.fresh,v=e.onClick,y=e.mask,C=e.arrow,w=e.arrowPos,x=e.align,S=e.motion,E=e.maskMotion,O=e.forceRender,$=e.getPopupContainer,M=e.autoDestroy,R=e.portal,T=e.zIndex,_=e.onMouseEnter,F=e.onMouseLeave,j=e.onPointerEnter,B=e.onPointerDownCapture,Q=e.ready,Z=e.offsetX,X=e.offsetY,U=e.offsetR,q=e.offsetB,D=e.onAlign,k=e.onPrepare,N=e.stretch,H=e.targetWidth,A=e.targetHeight,I=typeof r=="function"?r():r,L=f||p,ne=($==null?void 0:$.length)>0,Y=h.useState(!$||!ne),ae=Ee(Y,2),ue=ae[0],se=ae[1];if(Wt(function(){!ue&&ne&&u&&se(!0)},[ue,ne,u]),!ue)return null;var ce="auto",de={left:"-1000vw",top:"-1000vh",right:ce,bottom:ce};if(Q||!f){var we,De=x.points,_e=x.dynamicInset||((we=x._experimental)===null||we===void 0?void 0:we.dynamicInset),Me=_e&&De[0][1]==="r",We=_e&&De[0][0]==="b";Me?(de.right=U,de.left=ce):(de.left=Z,de.right=ce),We?(de.bottom=q,de.top=ce):(de.top=X,de.bottom=ce)}var Te={};return N&&(N.includes("height")&&A?Te.height=A:N.includes("minHeight")&&A&&(Te.minHeight=A),N.includes("width")&&H?Te.width=H:N.includes("minWidth")&&H&&(Te.minWidth=H)),f||(Te.pointerEvents="none"),h.createElement(R,{open:O||L,getContainer:$&&function(){return $(u)},autoDestroy:M},h.createElement(vF,{prefixCls:i,open:f,zIndex:T,mask:y,motion:E}),h.createElement(Bs,{onResize:D,disabled:!f},function(Ve){return h.createElement(ca,Ot({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:O,leavedClassName:"".concat(i,"-hidden")},S,{onAppearPrepare:k,onEnterPrepare:k,visible:f,onVisibleChanged:function(Ze){var pt;S==null||(pt=S.onVisibleChanged)===null||pt===void 0||pt.call(S,Ze),c(Ze)}}),function(ft,Ze){var pt=ft.className,at=ft.style,Le=Pe(i,pt,n);return h.createElement("div",{ref:Wn(Ve,t,Ze),className:Le,style:ie(ie(ie(ie({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},de),Te),at),{},{boxSizing:"border-box",zIndex:T},l),onMouseEnter:_,onMouseLeave:F,onPointerEnter:j,onClick:v,onPointerDownCapture:B},C&&h.createElement(gF,{prefixCls:i,arrow:C,arrowPos:w,align:x}),h.createElement(yF,{cache:!f&&!m},I))})}))}),SF=h.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=cl(r),l=h.useCallback(function(c){Bm(t,n?n(c):c)},[n]),u=sd(l,r.ref);return i?h.cloneElement(r,{ref:u}):r}),Kb=h.createContext(null);function Xb(e){return e?Array.isArray(e)?e:[e]:[]}function wF(e,t,r,n){return h.useMemo(function(){var i=Xb(r??t),l=Xb(n??t),u=new Set(i),c=new Set(l);return e&&(u.has("hover")&&(u.delete("hover"),u.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[u,c]},[e,t,r,n])}function xF(){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 CF(e,t,r,n){for(var i=r.points,l=Object.keys(e),u=0;u<l.length;u+=1){var c,f=l[u];if(xF((c=e[f])===null||c===void 0?void 0:c.points,i,n))return"".concat(t,"-placement-").concat(f)}return""}function Qb(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ws(e){return e.ownerDocument.defaultView}function hm(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=Ws(r).getComputedStyle(r),l=i.overflowX,u=i.overflowY,c=i.overflow;[l,u,c].some(function(f){return n.includes(f)})&&t.push(r),r=r.parentElement}return t}function _s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function os(e){return _s(parseFloat(e),0)}function Yb(e,t){var r=ie({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Ws(n).getComputedStyle(n),l=i.overflow,u=i.overflowClipMargin,c=i.borderTopWidth,f=i.borderBottomWidth,p=i.borderLeftWidth,m=i.borderRightWidth,v=n.getBoundingClientRect(),y=n.offsetHeight,C=n.clientHeight,w=n.offsetWidth,x=n.clientWidth,S=os(c),E=os(f),O=os(p),$=os(m),M=_s(Math.round(v.width/w*1e3)/1e3),R=_s(Math.round(v.height/y*1e3)/1e3),T=(w-x-O-$)*M,_=(y-C-S-E)*R,F=S*R,j=E*R,B=O*M,Q=$*M,Z=0,X=0;if(l==="clip"){var U=os(u);Z=U*M,X=U*R}var q=v.x+B-Z,D=v.y+F-X,k=q+v.width+2*Z-B-Q-T,N=D+v.height+2*X-F-j-_;r.left=Math.max(r.left,q),r.top=Math.max(r.top,D),r.right=Math.min(r.right,k),r.bottom=Math.min(r.bottom,N)}}),r}function Jb(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 Zb(e,t){var r=t||[],n=Ee(r,2),i=n[0],l=n[1];return[Jb(e.width,i),Jb(e.height,l)]}function e1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Wa(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 fi(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 EF(e,t,r,n,i,l,u){var c=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),f=Ee(c,2),p=f[0],m=f[1],v=h.useRef(0),y=h.useMemo(function(){return t?hm(t):[]},[t]),C=h.useRef({}),w=function(){C.current={}};e||w();var x=jr(function(){if(t&&r&&e){let lr=function(Wr,Cr){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,mo=Y.x+Wr,un=Y.y+Cr,xl=mo+Me,ke=un+_e,Xe=Math.max(mo,On.left),At=Math.max(un,On.top),Kt=Math.min(xl,On.right),It=Math.min(ke,On.bottom);return Math.max(0,(Kt-Xe)*(It-At))},Vr=function(){mt=Y.y+J,Rt=mt+_e,jt=Y.x+G,Dr=jt+Me};var wl=lr,va=Vr,O,$,M,R,T=t,_=T.ownerDocument,F=Ws(T),j=F.getComputedStyle(T),B=j.width,Q=j.height,Z=j.position,X=T.style.left,U=T.style.top,q=T.style.right,D=T.style.bottom,k=T.style.overflow,N=ie(ie({},i[n]),l),H=_.createElement("div");(O=T.parentElement)===null||O===void 0||O.appendChild(H),H.style.left="".concat(T.offsetLeft,"px"),H.style.top="".concat(T.offsetTop,"px"),H.style.position=Z,H.style.height="".concat(T.offsetHeight,"px"),H.style.width="".concat(T.offsetWidth,"px"),T.style.left="0",T.style.top="0",T.style.right="auto",T.style.bottom="auto",T.style.overflow="hidden";var A;if(Array.isArray(r))A={x:r[0],y:r[1],width:0,height:0};else{var I,L,ne=r.getBoundingClientRect();ne.x=(I=ne.x)!==null&&I!==void 0?I:ne.left,ne.y=(L=ne.y)!==null&&L!==void 0?L:ne.top,A={x:ne.x,y:ne.y,width:ne.width,height:ne.height}}var Y=T.getBoundingClientRect();Y.x=($=Y.x)!==null&&$!==void 0?$:Y.left,Y.y=(M=Y.y)!==null&&M!==void 0?M:Y.top;var ae=_.documentElement,ue=ae.clientWidth,se=ae.clientHeight,ce=ae.scrollWidth,de=ae.scrollHeight,we=ae.scrollTop,De=ae.scrollLeft,_e=Y.height,Me=Y.width,We=A.height,Te=A.width,Ve={left:0,top:0,right:ue,bottom:se},ft={left:-De,top:-we,right:ce-De,bottom:de-we},Ze=N.htmlRegion,pt="visible",at="visibleFirst";Ze!=="scroll"&&Ze!==at&&(Ze=pt);var Le=Ze===at,st=Yb(ft,y),be=Yb(Ve,y),Fe=Ze===pt?be:st,Ue=Le?be:Fe;T.style.left="auto",T.style.top="auto",T.style.right="0",T.style.bottom="0";var tt=T.getBoundingClientRect();T.style.left=X,T.style.top=U,T.style.right=q,T.style.bottom=D,T.style.overflow=k,(R=T.parentElement)===null||R===void 0||R.removeChild(H);var Pt=_s(Math.round(Me/parseFloat(B)*1e3)/1e3),bt=_s(Math.round(_e/parseFloat(Q)*1e3)/1e3);if(Pt===0||bt===0||bs(r)&&!tg(r))return;var Dt=N.offset,St=N.targetOffset,Qt=Zb(Y,Dt),ht=Ee(Qt,2),Je=ht[0],Ge=ht[1],nr=Zb(A,St),je=Ee(nr,2),qe=je[0],_t=je[1];A.x-=qe,A.y-=_t;var Lr=N.points||[],Ar=Ee(Lr,2),zr=Ar[0],dr=Ar[1],Ut=e1(dr),Bt=e1(zr),Xr=Wa(A,Ut),Lt=Wa(Y,Bt),V=ie({},N),G=Xr.x-Lt.x+Je,J=Xr.y-Lt.y+Ge,fe=lr(G,J),Oe=lr(G,J,be),xe=Wa(A,["t","l"]),$e=Wa(Y,["t","l"]),Ce=Wa(A,["b","r"]),Re=Wa(Y,["b","r"]),ve=N.overflow||{},Ke=ve.adjustX,ot=ve.adjustY,vt=ve.shiftX,Mt=ve.shiftY,ut=function(Cr){return typeof Cr=="boolean"?Cr:Cr>=0},mt,Rt,jt,Dr;Vr();var ar=ut(ot),vr=Bt[0]===Ut[0];if(ar&&Bt[0]==="t"&&(Rt>Ue.bottom||C.current.bt)){var qt=J;vr?qt-=_e-We:qt=xe.y-Re.y-Ge;var Rn=lr(G,qt),an=lr(G,qt,be);Rn>fe||Rn===fe&&(!Le||an>=Oe)?(C.current.bt=!0,J=qt,Ge=-Ge,V.points=[fi(Bt,0),fi(Ut,0)]):C.current.bt=!1}if(ar&&Bt[0]==="b"&&(mt<Ue.top||C.current.tb)){var wt=J;vr?wt+=_e-We:wt=Ce.y-$e.y-Ge;var qn=lr(G,wt),xt=lr(G,wt,be);qn>fe||qn===fe&&(!Le||xt>=Oe)?(C.current.tb=!0,J=wt,Ge=-Ge,V.points=[fi(Bt,0),fi(Ut,0)]):C.current.tb=!1}var Gt=ut(Ke),Qr=Bt[1]===Ut[1];if(Gt&&Bt[1]==="l"&&(Dr>Ue.right||C.current.rl)){var Br=G;Qr?Br-=Me-Te:Br=xe.x-Re.x-Je;var kt=lr(Br,J),yr=lr(Br,J,be);kt>fe||kt===fe&&(!Le||yr>=Oe)?(C.current.rl=!0,G=Br,Je=-Je,V.points=[fi(Bt,1),fi(Ut,1)]):C.current.rl=!1}if(Gt&&Bt[1]==="r"&&(jt<Ue.left||C.current.lr)){var Yt=G;Qr?Yt+=Me-Te:Yt=Ce.x-$e.x-Je;var Ko=lr(Yt,J),Tr=lr(Yt,J,be);Ko>fe||Ko===fe&&(!Le||Tr>=Oe)?(C.current.lr=!0,G=Yt,Je=-Je,V.points=[fi(Bt,1),fi(Ut,1)]):C.current.lr=!1}Vr();var $n=vt===!0?0:vt;typeof $n=="number"&&(jt<be.left&&(G-=jt-be.left-Je,A.x+Te<be.left+$n&&(G+=A.x-be.left+Te-$n)),Dr>be.right&&(G-=Dr-be.right-Je,A.x>be.right-$n&&(G+=A.x-be.right+$n)));var ln=Mt===!0?0:Mt;typeof ln=="number"&&(mt<be.top&&(J-=mt-be.top-Ge,A.y+We<be.top+ln&&(J+=A.y-be.top+We-ln)),Rt>be.bottom&&(J-=Rt-be.bottom-Ge,A.y>be.bottom-ln&&(J+=A.y-be.bottom+ln)));var Xo=Y.x+G,Gn=Xo+Me,Hr=Y.y+J,Oo=Hr+_e,Po=A.x,bl=Po+Te,$i=A.y,Oi=$i+We,pa=Math.max(Xo,Po),Pi=Math.min(Gn,bl),ho=(pa+Pi)/2,Sl=ho-Xo,Ti=Math.max(Hr,$i),Ct=Math.min(Oo,Oi),ha=(Ti+Ct)/2,ma=ha-Hr;u==null||u(t,V);var To=tt.right-Y.x-(G+Y.width),sn=tt.bottom-Y.y-(J+Y.height);Pt===1&&(G=Math.round(G),To=Math.round(To)),bt===1&&(J=Math.round(J),sn=Math.round(sn));var ga={ready:!0,offsetX:G/Pt,offsetY:J/bt,offsetR:To/Pt,offsetB:sn/bt,arrowX:Sl/Pt,arrowY:ma/bt,scaleX:Pt,scaleY:bt,align:V};m(ga)}}),S=function(){v.current+=1;var $=v.current;Promise.resolve().then(function(){v.current===$&&x()})},E=function(){m(function($){return ie(ie({},$),{},{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 RF(e,t,r,n,i){Wt(function(){if(e&&t&&r){let y=function(){n(),i()};var v=y,l=t,u=r,c=hm(l),f=hm(u),p=Ws(u),m=new Set([p].concat(Ne(c),Ne(f)));return m.forEach(function(C){C.addEventListener("scroll",y,{passive:!0})}),p.addEventListener("resize",y,{passive:!0}),n(),function(){m.forEach(function(C){C.removeEventListener("scroll",y),p.removeEventListener("resize",y)})}}},[e,t,r])}function $F(e,t,r,n,i,l,u,c){var f=h.useRef(e);f.current=e;var p=h.useRef(!1);h.useEffect(function(){if(t&&n&&(!i||l)){var v=function(){p.current=!1},y=function(S){var E;f.current&&!u(((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)},C=Ws(n);C.addEventListener("pointerdown",v,!0),C.addEventListener("mousedown",y,!0),C.addEventListener("contextmenu",y,!0);var w=Uc(r);return w&&(w.addEventListener("mousedown",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("pointerdown",v,!0),C.removeEventListener("mousedown",y,!0),C.removeEventListener("contextmenu",y,!0),w&&(w.removeEventListener("mousedown",y,!0),w.removeEventListener("contextmenu",y,!0))}}},[t,r,n,i,l]);function m(){p.current=!0}return m}var OF=["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 PF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xw,t=h.forwardRef(function(r,n){var i=r.prefixCls,l=i===void 0?"rc-trigger-popup":i,u=r.children,c=r.action,f=c===void 0?"hover":c,p=r.showAction,m=r.hideAction,v=r.popupVisible,y=r.defaultPopupVisible,C=r.onPopupVisibleChange,w=r.afterPopupVisibleChange,x=r.mouseEnterDelay,S=r.mouseLeaveDelay,E=S===void 0?.1:S,O=r.focusDelay,$=r.blurDelay,M=r.mask,R=r.maskClosable,T=R===void 0?!0:R,_=r.getPopupContainer,F=r.forceRender,j=r.autoDestroy,B=r.destroyPopupOnHide,Q=r.popup,Z=r.popupClassName,X=r.popupStyle,U=r.popupPlacement,q=r.builtinPlacements,D=q===void 0?{}:q,k=r.popupAlign,N=r.zIndex,H=r.stretch,A=r.getPopupClassNameFromAlign,I=r.fresh,L=r.alignPoint,ne=r.onPopupClick,Y=r.onPopupAlign,ae=r.arrow,ue=r.popupMotion,se=r.maskMotion,ce=r.popupTransitionName,de=r.popupAnimation,we=r.maskTransitionName,De=r.maskAnimation,_e=r.className,Me=r.getTriggerDOMNode,We=Or(r,OF),Te=j||B||!1,Ve=h.useState(!1),ft=Ee(Ve,2),Ze=ft[0],pt=ft[1];Wt(function(){pt(mF())},[]);var at=h.useRef({}),Le=h.useContext(Kb),st=h.useMemo(function(){return{registerSubPopup:function(Xe,At){at.current[Xe]=At,Le==null||Le.registerSubPopup(Xe,At)}}},[Le]),be=wI(),Fe=h.useState(null),Ue=Ee(Fe,2),tt=Ue[0],Pt=Ue[1],bt=h.useRef(null),Dt=jr(function(ke){bt.current=ke,bs(ke)&&tt!==ke&&Pt(ke),Le==null||Le.registerSubPopup(be,ke)}),St=h.useState(null),Qt=Ee(St,2),ht=Qt[0],Je=Qt[1],Ge=h.useRef(null),nr=jr(function(ke){bs(ke)&&ht!==ke&&(Je(ke),Ge.current=ke)}),je=h.Children.only(u),qe=(je==null?void 0:je.props)||{},_t={},Lr=jr(function(ke){var Xe,At,Kt=ht;return(Kt==null?void 0:Kt.contains(ke))||((Xe=Uc(Kt))===null||Xe===void 0?void 0:Xe.host)===ke||ke===Kt||(tt==null?void 0:tt.contains(ke))||((At=Uc(tt))===null||At===void 0?void 0:At.host)===ke||ke===tt||Object.values(at.current).some(function(It){return(It==null?void 0:It.contains(ke))||ke===It})}),Ar=Qb(l,ue,de,ce),zr=Qb(l,se,De,we),dr=h.useState(y||!1),Ut=Ee(dr,2),Bt=Ut[0],Xr=Ut[1],Lt=v??Bt,V=jr(function(ke){v===void 0&&Xr(ke)});Wt(function(){Xr(v||!1)},[v]);var G=h.useRef(Lt);G.current=Lt;var J=h.useRef([]);J.current=[];var fe=jr(function(ke){var Xe;V(ke),((Xe=J.current[J.current.length-1])!==null&&Xe!==void 0?Xe:Lt)!==ke&&(J.current.push(ke),C==null||C(ke))}),Oe=h.useRef(),xe=function(){clearTimeout(Oe.current)},$e=function(Xe){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;xe(),At===0?fe(Xe):Oe.current=setTimeout(function(){fe(Xe)},At*1e3)};h.useEffect(function(){return xe},[]);var Ce=h.useState(!1),Re=Ee(Ce,2),ve=Re[0],Ke=Re[1];Wt(function(ke){(!ke||Lt)&&Ke(!0)},[Lt]);var ot=h.useState(null),vt=Ee(ot,2),Mt=vt[0],ut=vt[1],mt=h.useState(null),Rt=Ee(mt,2),jt=Rt[0],Dr=Rt[1],ar=function(Xe){Dr([Xe.clientX,Xe.clientY])},vr=EF(Lt,tt,L&&jt!==null?jt:ht,U,D,k,Y),qt=Ee(vr,11),Rn=qt[0],an=qt[1],wt=qt[2],qn=qt[3],xt=qt[4],Gt=qt[5],Qr=qt[6],Br=qt[7],kt=qt[8],yr=qt[9],Yt=qt[10],Ko=wF(Ze,f,p,m),Tr=Ee(Ko,2),$n=Tr[0],ln=Tr[1],Xo=$n.has("click"),Gn=ln.has("click")||ln.has("contextMenu"),Hr=jr(function(){ve||Yt()}),Oo=function(){G.current&&L&&Gn&&$e(!1)};RF(Lt,ht,tt,Hr,Oo),Wt(function(){Hr()},[jt,U]),Wt(function(){Lt&&!(D!=null&&D[U])&&Hr()},[JSON.stringify(k)]);var Po=h.useMemo(function(){var ke=CF(D,l,yr,L);return Pe(ke,A==null?void 0:A(yr))},[yr,A,D,l,L]);h.useImperativeHandle(n,function(){return{nativeElement:Ge.current,popupElement:bt.current,forceAlign:Hr}});var bl=h.useState(0),$i=Ee(bl,2),Oi=$i[0],pa=$i[1],Pi=h.useState(0),ho=Ee(Pi,2),Sl=ho[0],Ti=ho[1],Ct=function(){if(H&&ht){var Xe=ht.getBoundingClientRect();pa(Xe.width),Ti(Xe.height)}},ha=function(){Ct(),Hr()},ma=function(Xe){Ke(!1),Yt(),w==null||w(Xe)},To=function(){return new Promise(function(Xe){Ct(),ut(function(){return Xe})})};Wt(function(){Mt&&(Yt(),Mt(),ut(null))},[Mt]);function sn(ke,Xe,At,Kt){_t[ke]=function(It){var _i;Kt==null||Kt(It),$e(Xe,At);for(var Cl=arguments.length,Qo=new Array(Cl>1?Cl-1:0),go=1;go<Cl;go++)Qo[go-1]=arguments[go];(_i=qe[ke])===null||_i===void 0||_i.call.apply(_i,[qe,It].concat(Qo))}}(Xo||Gn)&&(_t.onClick=function(ke){var Xe;G.current&&Gn?$e(!1):!G.current&&Xo&&(ar(ke),$e(!0));for(var At=arguments.length,Kt=new Array(At>1?At-1:0),It=1;It<At;It++)Kt[It-1]=arguments[It];(Xe=qe.onClick)===null||Xe===void 0||Xe.call.apply(Xe,[qe,ke].concat(Kt))});var ga=$F(Lt,Gn,ht,tt,M,T,Lr,$e),wl=$n.has("hover"),va=ln.has("hover"),lr,Vr;wl&&(sn("onMouseEnter",!0,x,function(ke){ar(ke)}),sn("onPointerEnter",!0,x,function(ke){ar(ke)}),lr=function(Xe){(Lt||ve)&&tt!==null&&tt!==void 0&&tt.contains(Xe.target)&&$e(!0,x)},L&&(_t.onMouseMove=function(ke){var Xe;(Xe=qe.onMouseMove)===null||Xe===void 0||Xe.call(qe,ke)})),va&&(sn("onMouseLeave",!1,E),sn("onPointerLeave",!1,E),Vr=function(){$e(!1,E)}),$n.has("focus")&&sn("onFocus",!0,O),ln.has("focus")&&sn("onBlur",!1,$),$n.has("contextMenu")&&(_t.onContextMenu=function(ke){var Xe;G.current&&ln.has("contextMenu")?$e(!1):(ar(ke),$e(!0)),ke.preventDefault();for(var At=arguments.length,Kt=new Array(At>1?At-1:0),It=1;It<At;It++)Kt[It-1]=arguments[It];(Xe=qe.onContextMenu)===null||Xe===void 0||Xe.call.apply(Xe,[qe,ke].concat(Kt))}),_e&&(_t.className=Pe(qe.className,_e));var Wr=ie(ie({},qe),_t),Cr={},On=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];On.forEach(function(ke){We[ke]&&(Cr[ke]=function(){for(var Xe,At=arguments.length,Kt=new Array(At),It=0;It<At;It++)Kt[It]=arguments[It];(Xe=Wr[ke])===null||Xe===void 0||Xe.call.apply(Xe,[Wr].concat(Kt)),We[ke].apply(We,Kt)})});var mo=h.cloneElement(je,ie(ie({},Wr),Cr)),un={x:Gt,y:Qr},xl=ae?ie({},ae!==!0?ae:{}):null;return h.createElement(h.Fragment,null,h.createElement(Bs,{disabled:!Lt,ref:nr,onResize:ha},h.createElement(SF,{getTriggerDOMNode:Me},mo)),h.createElement(Kb.Provider,{value:st},h.createElement(bF,{portal:e,ref:Dt,prefixCls:l,popup:Q,className:Pe(Z,Po),style:X,target:ht,onMouseEnter:lr,onMouseLeave:Vr,onPointerEnter:lr,zIndex:N,open:Lt,keepDom:ve,fresh:I,onClick:ne,onPointerDownCapture:ga,mask:M,motion:Ar,maskMotion:zr,onVisibleChanged:ma,onPrepare:To,forceRender:F,autoDestroy:Te,getPopupContainer:_,align:yr,arrow:xl,arrowPos:un,ready:Rn,offsetX:an,offsetY:wt,offsetR:qn,offsetB:xt,onAlign:Hr,stretch:H,targetWidth:Oi/Br,targetHeight:Sl/kt})))});return t}const TF=PF(Xw);function mm(e,t,r){return Pe({[`${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 mg=(e,t)=>t||e,lx=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,i;const{variant:l,[e]:u}=h.useContext(Ft),c=h.useContext(ix),f=u==null?void 0:u.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 m=UP.includes(p);return[p,m]};var _F={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"},MF=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:_F}))},IF=h.forwardRef(MF),FF={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"},jF=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:FF}))},kF=h.forwardRef(jF);const Ms=["xxl","xl","lg","md","sm","xs"],NF=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)`}),LF=e=>{const t=e,r=[].concat(Ms).reverse();return r.forEach((n,i)=>{const l=n.toUpperCase(),u=`screen${l}Min`,c=`screen${l}`;if(!(t[u]<=t[c]))throw new Error(`${u}<=${c} fails : !(${t[u]}<=${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 m=`screen${r[i+1].toUpperCase()}Min`;if(!(t[f]<=t[m]))throw new Error(`${f}<=${m} fails : !(${t[f]}<=${t[m]})`)}}),e};function AF(){const[,e]=Go(),t=NF(LF(e));return ye.useMemo(()=>{const r=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(l){return i=l,r.forEach(u=>u(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 u=t[l],c=this.matchHandlers[u];c==null||c.mql.removeListener(c==null?void 0:c.listener)}),r.clear()},register(){Object.keys(t).forEach(l=>{const u=t[l],c=p=>{let{matches:m}=p;this.dispatch(Object.assign(Object.assign({},i),{[l]:m}))},f=window.matchMedia(u);f.addListener(c),this.matchHandlers[u]={mql:f,listener:c},c(f)})},responsiveMap:t}},[e])}function sx(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,l=e.className,u=e.style;return h.createElement("div",{className:Pe("".concat(r,"-content"),l),style:u},h.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var Ua={shiftX:64,adjustY:1},qa={adjustX:1,shiftY:!0},Nn=[0,0],zF={left:{points:["cr","cl"],overflow:qa,offset:[-4,0],targetOffset:Nn},right:{points:["cl","cr"],overflow:qa,offset:[4,0],targetOffset:Nn},top:{points:["bc","tc"],overflow:Ua,offset:[0,-4],targetOffset:Nn},bottom:{points:["tc","bc"],overflow:Ua,offset:[0,4],targetOffset:Nn},topLeft:{points:["bl","tl"],overflow:Ua,offset:[0,-4],targetOffset:Nn},leftTop:{points:["tr","tl"],overflow:qa,offset:[-4,0],targetOffset:Nn},topRight:{points:["br","tr"],overflow:Ua,offset:[0,-4],targetOffset:Nn},rightTop:{points:["tl","tr"],overflow:qa,offset:[4,0],targetOffset:Nn},bottomRight:{points:["tr","br"],overflow:Ua,offset:[0,4],targetOffset:Nn},rightBottom:{points:["bl","br"],overflow:qa,offset:[4,0],targetOffset:Nn},bottomLeft:{points:["tl","bl"],overflow:Ua,offset:[0,4],targetOffset:Nn},leftBottom:{points:["br","bl"],overflow:qa,offset:[-4,0],targetOffset:Nn}},DF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],BF=function(t,r){var n=t.overlayClassName,i=t.trigger,l=i===void 0?["hover"]:i,u=t.mouseEnterDelay,c=u===void 0?0:u,f=t.mouseLeaveDelay,p=f===void 0?.1:f,m=t.overlayStyle,v=t.prefixCls,y=v===void 0?"rc-tooltip":v,C=t.children,w=t.onVisibleChange,x=t.afterVisibleChange,S=t.transitionName,E=t.animation,O=t.motion,$=t.placement,M=$===void 0?"right":$,R=t.align,T=R===void 0?{}:R,_=t.destroyTooltipOnHide,F=_===void 0?!1:_,j=t.defaultVisible,B=t.getTooltipContainer,Q=t.overlayInnerStyle;t.arrowContent;var Z=t.overlay,X=t.id,U=t.showArrow,q=U===void 0?!0:U,D=Or(t,DF),k=h.useRef(null);h.useImperativeHandle(r,function(){return k.current});var N=ie({},D);"visible"in t&&(N.popupVisible=t.visible);var H=function(){return h.createElement(sx,{key:"content",prefixCls:y,id:X,overlayInnerStyle:Q},Z)};return h.createElement(TF,Ot({popupClassName:n,prefixCls:y,popup:H,action:l,builtinPlacements:zF,popupPlacement:M,ref:k,popupAlign:T,getPopupContainer:B,onPopupVisibleChange:w,afterPopupVisibleChange:x,popupTransitionName:S,popupAnimation:E,popupMotion:O,defaultPopupVisible:j,autoDestroy:F,mouseLeaveDelay:p,popupStyle:m,mouseEnterDelay:c,arrow:q},N),C)};const HF=h.forwardRef(BF);function VF(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,l=0,u=i,c=n*1/Math.sqrt(2),f=i-n*(1-1/Math.sqrt(2)),p=i-r*(1/Math.sqrt(2)),m=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),v=2*i-p,y=m,C=2*i-c,w=f,x=2*i-l,S=u,E=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1),$=`polygon(${O}px 100%, 50% ${O}px, ${2*i-O}px 100%, ${O}px 100%)`,M=`path('M ${l} ${u} A ${n} ${n} 0 0 0 ${c} ${f} L ${p} ${m} A ${r} ${r} 0 0 1 ${v} ${y} L ${C} ${w} A ${n} ${n} 0 0 0 ${x} ${S} Z')`;return{arrowShadowWidth:E,arrowPath:M,arrowPolygon:$}}const WF=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:l,arrowShadowWidth:u,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:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${rt(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},ux=8;function cx(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?ux:n}}function cc(e,t){return e?t:{}}function UF(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:l,arrowOffsetHorizontal:u}=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"},WF(e,t,i)),{"&:before":{background:t}})]},cc(!!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":u,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${rt(u)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:u}}}})),cc(!!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":u,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:u}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${rt(u)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:u}}}})),cc(!!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}})),cc(!!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 qF(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 u=Object.assign(Object.assign({},l),i);return u.shiftX||(u.adjustX=!0),u.shiftY||(u.adjustY=!0),u}const t1={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"]}},GF={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"]}},KF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function XF(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:l,visibleFirst:u}=e,c=t/2,f={};return Object.keys(t1).forEach(p=>{const m=n&&GF[p]||t1[p],v=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(f[p]=v,KF.has(p)&&(v.autoArrow=!1),p){case"top":case"topLeft":case"topRight":v.offset[1]=-c-i;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=c+i;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-c-i;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=c+i;break}const y=cx({contentRadius:l,limitVerticalRadius:!0});if(n)switch(p){case"topLeft":case"bottomLeft":v.offset[0]=-y.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":v.offset[0]=y.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":v.offset[1]=-y.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":v.offset[1]=y.arrowOffsetHorizontal*2-c;break}v.overflow=qF(p,y,t,r),u&&(v.htmlRegion="visibleFirst")}),f}const QF=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:l,zIndexPopup:u,controlHeight:c,boxShadowSecondary:f,paddingSM:p,paddingXS:m}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Do(e)),{position:"absolute",zIndex:u,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:`${rt(e.calc(p).div(2).equal())} ${rt(m)}`,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,ux)}},[`${t}-content`]:{position:"relative"}}),bT(e,(v,y)=>{let{darkColor:C}=y;return{[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:C},[`${t}-arrow`]:{"--antd-arrow-background-color":C}}}})),{"&-rtl":{direction:"rtl"}})},UF(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},YF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),VF(Nr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),dx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return fo("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:l,colorBgSpotlight:u}=n,c=Nr(n,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:i,tooltipBg:u});return[QF(c),LM(n,"zoom-big-fast")]},YF,{resetStyle:!1,injectStyle:t})(e)},JF=Wc.map(e=>`${e}-inverse`);function ZF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ne(JF),Ne(Wc)).includes(e):Wc.includes(e)}function fx(e,t){const r=ZF(t),n=Pe({[`${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 ej=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:l,overlayInnerStyle:u}=e,{getPrefixCls:c}=h.useContext(Ft),f=c("tooltip",t),[p,m,v]=dx(f),y=fx(f,l),C=y.arrowStyle,w=Object.assign(Object.assign({},u),y.overlayStyle),x=Pe(m,v,f,`${f}-pure`,`${f}-placement-${n}`,r,y.className);return p(h.createElement("div",{className:x,style:C},h.createElement("div",{className:`${f}-arrow`}),h.createElement(sx,Object.assign({},e,{className:m,prefixCls:f,overlayInnerStyle:w}),i)))};var tj=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 rj=h.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:l,getTooltipContainer:u,overlayClassName:c,color:f,overlayInnerStyle:p,children:m,afterOpenChange:v,afterVisibleChange:y,destroyTooltipOnHide:C,arrow:w=!0,title:x,overlay:S,builtinPlacements:E,arrowPointAtCenter:O=!1,autoAdjustOverflow:$=!0}=e,M=!!w,[,R]=Go(),{getPopupContainer:T,getPrefixCls:_,direction:F}=h.useContext(Ft),j=Qm(),B=h.useRef(null),Q=()=>{var be;(be=B.current)===null||be===void 0||be.forceAlign()};h.useImperativeHandle(t,()=>{var be;return{forceAlign:Q,forcePopupAlign:()=>{j.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(be=B.current)===null||be===void 0?void 0:be.nativeElement}});const[Z,X]=na(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),U=!x&&!S&&x!==0,q=be=>{var Fe,Ue;X(U?!1:be),U||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,be),(Ue=e.onVisibleChange)===null||Ue===void 0||Ue.call(e,be))},D=h.useMemo(()=>{var be,Fe;let Ue=O;return typeof w=="object"&&(Ue=(Fe=(be=w.pointAtCenter)!==null&&be!==void 0?be:w.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:O),E||XF({arrowPointAtCenter:Ue,autoAdjustOverflow:$,arrowWidth:M?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[O,w,E,R]),k=h.useMemo(()=>x===0?x:S||x||"",[S,x]),N=h.createElement(pm,{space:!0},typeof k=="function"?k():k),{getPopupContainer:H,placement:A="top",mouseEnterDelay:I=.1,mouseLeaveDelay:L=.1,overlayStyle:ne,rootClassName:Y}=e,ae=tj(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ue=_("tooltip",i),se=_(),ce=e["data-popover-inject"];let de=Z;!("open"in e)&&!("visible"in e)&&U&&(de=!1);const we=h.isValidElement(m)&&!jw(m)?m:h.createElement("span",null,m),De=we.props,_e=!De.className||typeof De.className=="string"?Pe(De.className,l||`${ue}-open`):De.className,[Me,We,Te]=dx(ue,!ce),Ve=fx(ue,f),ft=Ve.arrowStyle,Ze=Object.assign(Object.assign({},p),Ve.overlayStyle),pt=Pe(c,{[`${ue}-rtl`]:F==="rtl"},Ve.className,Y,We,Te),[at,Le]=W_("Tooltip",ae.zIndex),st=h.createElement(HF,Object.assign({},ae,{zIndex:at,showArrow:M,placement:A,mouseEnterDelay:I,mouseLeaveDelay:L,prefixCls:ue,overlayClassName:pt,overlayStyle:Object.assign(Object.assign({},ft),ne),getTooltipContainer:H||u||T,ref:B,builtinPlacements:D,overlay:N,visible:de,onVisibleChange:q,afterVisibleChange:v??y,overlayInnerStyle:Ze,arrowContent:h.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:rM(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!C}),de?oa(we,{className:_e}):we);return Me(h.createElement(Aw.Provider,{value:Le},st))}),Us=rj;Us._InternalPanelDoNotUseOrYouWillBeFired=ej;var nj=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],oj=h.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,i=e.className,l=e.style,u=e.checked,c=e.disabled,f=e.defaultChecked,p=f===void 0?!1:f,m=e.type,v=m===void 0?"checkbox":m,y=e.title,C=e.onChange,w=Or(e,nj),x=h.useRef(null),S=h.useRef(null),E=na(p,{value:u}),O=Ee(E,2),$=O[0],M=O[1];h.useImperativeHandle(t,function(){return{focus:function(F){var j;(j=x.current)===null||j===void 0||j.focus(F)},blur:function(){var F;(F=x.current)===null||F===void 0||F.blur()},input:x.current,nativeElement:S.current}});var R=Pe(n,i,ee(ee({},"".concat(n,"-checked"),$),"".concat(n,"-disabled"),c)),T=function(F){c||("checked"in e||M(F.target.checked),C==null||C({target:ie(ie({},e),{},{type:v,checked:F.target.checked}),stopPropagation:function(){F.stopPropagation()},preventDefault:function(){F.preventDefault()},nativeEvent:F.nativeEvent}))};return h.createElement("span",{className:R,title:y,style:l,ref:S},h.createElement("input",Ot({},w,{className:"".concat(n,"-input"),ref:x,onChange:T,disabled:c,checked:!!$,type:v})),h.createElement("span",{className:"".concat(n,"-inner")}))});function px(e){return Nr(e,{inputAffixPadding:e.paddingXXS})}const hx=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:l,controlHeightLG:u,fontSizeLG:c,lineHeightLG:f,paddingSM:p,controlPaddingHorizontalSM:m,controlPaddingHorizontal:v,colorFillAlter:y,colorPrimaryHover:C,colorPrimary:w,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:E,colorWarningOutline:O,colorBgContainer:$}=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((u-c*f)/2*10)/10-i,paddingInline:p-i,paddingInlineSM:m-i,paddingInlineLG:v-i,addonBg:y,activeBorderColor:w,hoverBorderColor:C,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${E}`,warningActiveShadow:`0 0 0 ${x}px ${O}`,hoverBg:$,activeBg:$,inputFontSize:r,inputFontSizeLG:c,inputFontSizeSM:r}},ij=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),gg=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({},ij(Nr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),mx=(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}}),r1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),aj=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mx(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gg(e))}),r1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),r1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),n1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lj=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},n1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),n1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},gg(e))}})}),sj=(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)}},gx=(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}}),o1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gx(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),uj=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},gg(e))}),o1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),o1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),i1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),cj=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:`${rt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${rt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},i1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),i1(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:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),dj=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vx=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${rt(t)} ${rt(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},yx=e=>({padding:`${rt(e.paddingBlockSM)} ${rt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bx=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${rt(e.paddingBlock)} ${rt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dj(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({},vx(e)),"&-sm":Object.assign({},yx(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fj=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({},vx(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},yx(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 ${rt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${rt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${rt(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:`${rt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${rt(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"},mT()),{[`${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}}}})}},pj=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,u=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({},Do(e)),bx(e)),aj(e)),uj(e)),sj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:u,paddingBottom:u}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},hj=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 ${rt(e.inputAffixPadding)}`}}}},mj=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:l,colorIconHover:u,iconCls:c}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},bx(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}}}),hj(e)),{[`${c}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:u}}}),[p]:{[`${c}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},gj=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Do(e)),fj(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}}},lj(e)),cj(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}}})})}},vj=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}}}}},yj=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}}}}}},bj=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},vg=fo("Input",e=>{const t=Nr(e,px(e));return[pj(t),yj(t),mj(t),gj(t),vj(t),bj(t),Gw(t)]},hx,{resetFont:!1}),Sj=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Do(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Do(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Do(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},dw(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${rt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${rt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${r}:not(${r}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${r}-checked:not(${r}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function wj(e,t){const r=Nr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Sj(r)]}const Sx=fo("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[wj(r,e)]}),wx=ye.createContext(null);var xj=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 Cj=(e,t)=>{var r;const{prefixCls:n,className:i,rootClassName:l,children:u,indeterminate:c=!1,style:f,onMouseEnter:p,onMouseLeave:m,skipGroup:v=!1,disabled:y}=e,C=xj(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:w,direction:x,checkbox:S}=h.useContext(Ft),E=h.useContext(wx),{isFormItemInput:O}=h.useContext(En),$=h.useContext(Bo),M=(r=(E==null?void 0:E.disabled)||y)!==null&&r!==void 0?r:$,R=h.useRef(C.value),T=h.useRef(null),_=Wn(t,T);h.useEffect(()=>{E==null||E.registerValue(C.value)},[]),h.useEffect(()=>{if(!v)return C.value!==R.current&&(E==null||E.cancelValue(R.current),E==null||E.registerValue(C.value),R.current=C.value),()=>E==null?void 0:E.cancelValue(C.value)},[C.value]),h.useEffect(()=>{var D;!((D=T.current)===null||D===void 0)&&D.input&&(T.current.input.indeterminate=c)},[c]);const F=w("checkbox",n),j=Ri(F),[B,Q,Z]=Sx(F,j),X=Object.assign({},C);E&&!v&&(X.onChange=function(){C.onChange&&C.onChange.apply(C,arguments),E.toggleOption&&E.toggleOption({label:u,value:C.value})},X.name=E.name,X.checked=E.value.includes(C.value));const U=Pe(`${F}-wrapper`,{[`${F}-rtl`]:x==="rtl",[`${F}-wrapper-checked`]:X.checked,[`${F}-wrapper-disabled`]:M,[`${F}-wrapper-in-form-item`]:O},S==null?void 0:S.className,i,l,Z,j,Q),q=Pe({[`${F}-indeterminate`]:c},rg,Q);return B(h.createElement(Dw,{component:"Checkbox",disabled:M},h.createElement("label",{className:U,style:Object.assign(Object.assign({},S==null?void 0:S.style),f),onMouseEnter:p,onMouseLeave:m},h.createElement(oj,Object.assign({},X,{prefixCls:F,className:q,disabled:M,ref:_})),u!==void 0&&h.createElement("span",null,u))))},xx=h.forwardRef(Cj);var Ej=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 Rj=h.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:i=[],prefixCls:l,className:u,rootClassName:c,style:f,onChange:p}=e,m=Ej(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:y}=h.useContext(Ft),[C,w]=h.useState(m.value||r||[]),[x,S]=h.useState([]);h.useEffect(()=>{"value"in m&&w(m.value||[])},[m.value]);const E=h.useMemo(()=>i.map(q=>typeof q=="string"||typeof q=="number"?{label:q,value:q}:q),[i]),O=q=>{S(D=>D.filter(k=>k!==q))},$=q=>{S(D=>[].concat(Ne(D),[q]))},M=q=>{const D=C.indexOf(q.value),k=Ne(C);D===-1?k.push(q.value):k.splice(D,1),"value"in m||w(k),p==null||p(k.filter(N=>x.includes(N)).sort((N,H)=>{const A=E.findIndex(L=>L.value===N),I=E.findIndex(L=>L.value===H);return A-I}))},R=v("checkbox",l),T=`${R}-group`,_=Ri(R),[F,j,B]=Sx(R,_),Q=qo(m,["value","disabled"]),Z=i.length?E.map(q=>h.createElement(xx,{prefixCls:R,key:q.value.toString(),disabled:"disabled"in q?q.disabled:m.disabled,value:q.value,checked:C.includes(q.value),onChange:q.onChange,className:`${T}-item`,style:q.style,title:q.title,id:q.id,required:q.required},q.label)):n,X={toggleOption:M,value:C,disabled:m.disabled,name:m.name,registerValue:$,cancelValue:O},U=Pe(T,{[`${T}-rtl`]:y==="rtl"},u,c,B,_,j);return F(h.createElement("div",Object.assign({className:U,style:f},Q,{ref:t}),h.createElement(wx.Provider,{value:X},Z)))}),yg=xx;yg.Group=Rj;yg.__ANT_CHECKBOX=!0;const Cx=h.createContext({}),$j=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"}}}},Oj=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Pj=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:i}=e,l={};for(let u=i;u>=0;u--)u===0?(l[`${n}${t}-${u}`]={display:"none"},l[`${n}-push-${u}`]={insetInlineStart:"auto"},l[`${n}-pull-${u}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${u}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${u}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${u}`]={marginInlineStart:0},l[`${n}${t}-order-${u}`]={order:0}):(l[`${n}${t}-${u}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${u/i*100}%`,maxWidth:`${u/i*100}%`}],l[`${n}${t}-push-${u}`]={insetInlineStart:`${u/i*100}%`},l[`${n}${t}-pull-${u}`]={insetInlineEnd:`${u/i*100}%`},l[`${n}${t}-offset-${u}`]={marginInlineStart:`${u/i*100}%`},l[`${n}${t}-order-${u}`]={order:u});return l[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},l},gm=(e,t)=>Pj(e,t),Tj=(e,t,r)=>({[`@media (min-width: ${rt(t)})`]:Object.assign({},gm(e,r))}),_j=()=>({}),Mj=()=>({}),Ij=fo("Grid",$j,_j),Fj=fo("Grid",e=>{const t=Nr(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Oj(t),gm(t,""),gm(t,"-xs"),Object.keys(r).map(n=>Tj(t,r[n],n)).reduce((n,i)=>Object.assign(Object.assign({},n),i),{})]},Mj);var jj=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 a1(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const kj=["xs","sm","md","lg","xl","xxl"],Ex=h.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=h.useContext(Ft),{gutter:i,wrap:l}=h.useContext(Cx),{prefixCls:u,span:c,order:f,offset:p,push:m,pull:v,className:y,children:C,flex:w,style:x}=e,S=jj(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),E=r("col",u),[O,$,M]=Fj(E),R={};let T={};kj.forEach(j=>{let B={};const Q=e[j];typeof Q=="number"?B.span=Q:typeof Q=="object"&&(B=Q||{}),delete S[j],T=Object.assign(Object.assign({},T),{[`${E}-${j}-${B.span}`]:B.span!==void 0,[`${E}-${j}-order-${B.order}`]:B.order||B.order===0,[`${E}-${j}-offset-${B.offset}`]:B.offset||B.offset===0,[`${E}-${j}-push-${B.push}`]:B.push||B.push===0,[`${E}-${j}-pull-${B.pull}`]:B.pull||B.pull===0,[`${E}-rtl`]:n==="rtl"}),B.flex&&(T[`${E}-${j}-flex`]=!0,R[`--${E}-${j}-flex`]=a1(B.flex))});const _=Pe(E,{[`${E}-${c}`]:c!==void 0,[`${E}-order-${f}`]:f,[`${E}-offset-${p}`]:p,[`${E}-push-${m}`]:m,[`${E}-pull-${v}`]:v},y,T,$,M),F={};if(i&&i[0]>0){const j=i[0]/2;F.paddingLeft=j,F.paddingRight=j}return w&&(F.flex=a1(w),l===!1&&!F.minWidth&&(F.minWidth=0)),O(h.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},F),x),R),className:_,ref:t}),C))});var Nj=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 l1(e,t){const[r,n]=h.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let l=0;l<Ms.length;l++){const u=Ms[l];if(!t[u])continue;const c=e[u];if(c!==void 0){n(c);return}}};return h.useEffect(()=>{i()},[JSON.stringify(e),t]),r}const Lj=h.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:i,className:l,style:u,children:c,gutter:f=0,wrap:p}=e,m=Nj(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:v,direction:y}=h.useContext(Ft),[C,w]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,S]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),E=l1(i,x),O=l1(n,x),$=h.useRef(f),M=AF();h.useEffect(()=>{const k=M.subscribe(N=>{S(N);const H=$.current||0;(!Array.isArray(H)&&typeof H=="object"||Array.isArray(H)&&(typeof H[0]=="object"||typeof H[1]=="object"))&&w(N)});return()=>M.unsubscribe(k)},[]);const R=()=>{const k=[void 0,void 0];return(Array.isArray(f)?f:[f,void 0]).forEach((H,A)=>{if(typeof H=="object")for(let I=0;I<Ms.length;I++){const L=Ms[I];if(C[L]&&H[L]!==void 0){k[A]=H[L];break}}else k[A]=H}),k},T=v("row",r),[_,F,j]=Ij(T),B=R(),Q=Pe(T,{[`${T}-no-wrap`]:p===!1,[`${T}-${O}`]:O,[`${T}-${E}`]:E,[`${T}-rtl`]:y==="rtl"},l,F,j),Z={},X=B[0]!=null&&B[0]>0?B[0]/-2:void 0;X&&(Z.marginLeft=X,Z.marginRight=X);const[U,q]=B;Z.rowGap=q;const D=h.useMemo(()=>({gutter:[U,q],wrap:p}),[U,q,p]);return _(h.createElement(Cx.Provider,{value:D},h.createElement("div",Object.assign({},m,{className:Q,style:Object.assign(Object.assign({},Z),u),ref:t}),c)))});function Aj(e){return!!(e.addonBefore||e.addonAfter)}function zj(e){return!!(e.prefix||e.suffix||e.allowClear)}function s1(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 Gc(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=s1(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=s1(t,e,n),r(i);return}r(i)}}function Rx(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 $x=ye.forwardRef(function(e,t){var r,n,i=e.inputElement,l=e.children,u=e.prefixCls,c=e.prefix,f=e.suffix,p=e.addonBefore,m=e.addonAfter,v=e.className,y=e.style,C=e.disabled,w=e.readOnly,x=e.focused,S=e.triggerFocus,E=e.allowClear,O=e.value,$=e.handleReset,M=e.hidden,R=e.classes,T=e.classNames,_=e.dataAttrs,F=e.styles,j=e.components,B=e.onClear,Q=l??i,Z=(j==null?void 0:j.affixWrapper)||"span",X=(j==null?void 0:j.groupWrapper)||"span",U=(j==null?void 0:j.wrapper)||"span",q=(j==null?void 0:j.groupAddon)||"span",D=h.useRef(null),k=function(We){var Te;(Te=D.current)!==null&&Te!==void 0&&Te.contains(We.target)&&(S==null||S())},N=zj(e),H=h.cloneElement(Q,{value:O,className:Pe(Q.props.className,!N&&(T==null?void 0:T.variant))||null}),A=h.useRef(null);if(ye.useImperativeHandle(t,function(){return{nativeElement:A.current||D.current}}),N){var I=null;if(E){var L=!C&&!w&&O,ne="".concat(u,"-clear-icon"),Y=nt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";I=ye.createElement("span",{onClick:function(We){$==null||$(We),B==null||B()},onMouseDown:function(We){return We.preventDefault()},className:Pe(ne,ee(ee({},"".concat(ne,"-hidden"),!L),"".concat(ne,"-has-suffix"),!!f)),role:"button",tabIndex:-1},Y)}var ae="".concat(u,"-affix-wrapper"),ue=Pe(ae,ee(ee(ee(ee(ee({},"".concat(u,"-disabled"),C),"".concat(ae,"-disabled"),C),"".concat(ae,"-focused"),x),"".concat(ae,"-readonly"),w),"".concat(ae,"-input-with-clear-btn"),f&&E&&O),R==null?void 0:R.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),se=(f||E)&&ye.createElement("span",{className:Pe("".concat(u,"-suffix"),T==null?void 0:T.suffix),style:F==null?void 0:F.suffix},I,f);H=ye.createElement(Z,Ot({className:ue,style:F==null?void 0:F.affixWrapper,onClick:k},_==null?void 0:_.affixWrapper,{ref:D}),c&&ye.createElement("span",{className:Pe("".concat(u,"-prefix"),T==null?void 0:T.prefix),style:F==null?void 0:F.prefix},c),H,se)}if(Aj(e)){var ce="".concat(u,"-group"),de="".concat(ce,"-addon"),we="".concat(ce,"-wrapper"),De=Pe("".concat(u,"-wrapper"),ce,R==null?void 0:R.wrapper,T==null?void 0:T.wrapper),_e=Pe(we,ee({},"".concat(we,"-disabled"),C),R==null?void 0:R.group,T==null?void 0:T.groupWrapper);H=ye.createElement(X,{className:_e,ref:A},ye.createElement(U,{className:De},p&&ye.createElement(q,{className:de},p),H,m&&ye.createElement(q,{className:de},m)))}return ye.cloneElement(H,{className:Pe((r=H.props)===null||r===void 0?void 0:r.className,v)||null,style:ie(ie({},(n=H.props)===null||n===void 0?void 0:n.style),y),hidden:M})}),Dj=["show"];function Ox(e,t){return h.useMemo(function(){var r={};t&&(r.show=nt(t)==="object"&&t.formatter?t.formatter:!!t),r=ie(ie({},r),e);var n=r,i=n.show,l=Or(n,Dj);return ie(ie({},l),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:l.strategy||function(u){return u.length}})},[e,t])}var Bj=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Hj=h.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,i=e.onFocus,l=e.onBlur,u=e.onPressEnter,c=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=p===void 0?"rc-input":p,v=e.disabled,y=e.htmlSize,C=e.className,w=e.maxLength,x=e.suffix,S=e.showCount,E=e.count,O=e.type,$=O===void 0?"text":O,M=e.classes,R=e.classNames,T=e.styles,_=e.onCompositionStart,F=e.onCompositionEnd,j=Or(e,Bj),B=h.useState(!1),Q=Ee(B,2),Z=Q[0],X=Q[1],U=h.useRef(!1),q=h.useRef(!1),D=h.useRef(null),k=h.useRef(null),N=function(Fe){D.current&&Rx(D.current,Fe)},H=na(e.defaultValue,{value:e.value}),A=Ee(H,2),I=A[0],L=A[1],ne=I==null?"":String(I),Y=h.useState(null),ae=Ee(Y,2),ue=ae[0],se=ae[1],ce=Ox(E,S),de=ce.max||w,we=ce.strategy(ne),De=!!de&&we>de;h.useImperativeHandle(t,function(){var be;return{focus:N,blur:function(){var Ue;(Ue=D.current)===null||Ue===void 0||Ue.blur()},setSelectionRange:function(Ue,tt,Pt){var bt;(bt=D.current)===null||bt===void 0||bt.setSelectionRange(Ue,tt,Pt)},select:function(){var Ue;(Ue=D.current)===null||Ue===void 0||Ue.select()},input:D.current,nativeElement:((be=k.current)===null||be===void 0?void 0:be.nativeElement)||D.current}}),h.useEffect(function(){X(function(be){return be&&v?!1:be})},[v]);var _e=function(Fe,Ue,tt){var Pt=Ue;if(!U.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Ue)>ce.max){if(Pt=ce.exceedFormatter(Ue,{max:ce.max}),Ue!==Pt){var bt,Dt;se([((bt=D.current)===null||bt===void 0?void 0:bt.selectionStart)||0,((Dt=D.current)===null||Dt===void 0?void 0:Dt.selectionEnd)||0])}}else if(tt.source==="compositionEnd")return;L(Pt),D.current&&Gc(D.current,Fe,n,Pt)};h.useEffect(function(){if(ue){var be;(be=D.current)===null||be===void 0||be.setSelectionRange.apply(be,Ne(ue))}},[ue]);var Me=function(Fe){_e(Fe,Fe.target.value,{source:"change"})},We=function(Fe){U.current=!1,_e(Fe,Fe.currentTarget.value,{source:"compositionEnd"}),F==null||F(Fe)},Te=function(Fe){u&&Fe.key==="Enter"&&!q.current&&(q.current=!0,u(Fe)),c==null||c(Fe)},Ve=function(Fe){Fe.key==="Enter"&&(q.current=!1),f==null||f(Fe)},ft=function(Fe){X(!0),i==null||i(Fe)},Ze=function(Fe){X(!1),l==null||l(Fe)},pt=function(Fe){L(""),N(),D.current&&Gc(D.current,Fe,n)},at=De&&"".concat(m,"-out-of-range"),Le=function(){var Fe=qo(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ye.createElement("input",Ot({autoComplete:r},Fe,{onChange:Me,onFocus:ft,onBlur:Ze,onKeyDown:Te,onKeyUp:Ve,className:Pe(m,ee({},"".concat(m,"-disabled"),v),R==null?void 0:R.input),style:T==null?void 0:T.input,ref:D,size:y,type:$,onCompositionStart:function(tt){U.current=!0,_==null||_(tt)},onCompositionEnd:We}))},st=function(){var Fe=Number(de)>0;if(x||ce.show){var Ue=ce.showFormatter?ce.showFormatter({value:ne,count:we,maxLength:de}):"".concat(we).concat(Fe?" / ".concat(de):"");return ye.createElement(ye.Fragment,null,ce.show&&ye.createElement("span",{className:Pe("".concat(m,"-show-count-suffix"),ee({},"".concat(m,"-show-count-has-suffix"),!!x),R==null?void 0:R.count),style:ie({},T==null?void 0:T.count)},Ue),x)}return null};return ye.createElement($x,Ot({},j,{prefixCls:m,className:Pe(C,at),handleReset:pt,value:ne,focused:Z,triggerFocus:N,suffix:st(),disabled:v,classes:M,classNames:R,styles:T}),Le())});const Vj=e=>{const{getPrefixCls:t,direction:r}=h.useContext(Ft),{prefixCls:n,className:i}=e,l=t("input-group",n),u=t("input"),[c,f]=vg(u),p=Pe(l,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:r==="rtl"},f,i),m=h.useContext(En),v=h.useMemo(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return c(h.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(En.Provider,{value:v},e.children)))},Px=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ye.createElement(Zm,null)}),t};function Tx(e,t){const r=h.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var i,l,u,c;!((i=e.current)===null||i===void 0)&&i.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((u=e.current)===null||u===void 0)&&u.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return h.useEffect(()=>(t&&n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function Wj(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Uj=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 yd=h.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:i=!0,status:l,size:u,disabled:c,onBlur:f,onFocus:p,suffix:m,allowClear:v,addonAfter:y,addonBefore:C,className:w,style:x,styles:S,rootClassName:E,onChange:O,classNames:$,variant:M}=e,R=Uj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:T,direction:_,input:F}=ye.useContext(Ft),j=T("input",n),B=h.useRef(null),Q=Ri(j),[Z,X,U]=vg(j,Q),{compactSize:q,compactItemClassnames:D}=ng(j,_),k=hl(Me=>{var We;return(We=u??q)!==null&&We!==void 0?We:Me}),N=ye.useContext(Bo),H=c??N,{status:A,hasFeedback:I,feedbackIcon:L}=h.useContext(En),ne=mg(A,l),Y=Wj(e)||!!I;h.useRef(Y);const ae=Tx(B,!0),ue=Me=>{ae(),f==null||f(Me)},se=Me=>{ae(),p==null||p(Me)},ce=Me=>{ae(),O==null||O(Me)},de=(I||m)&&ye.createElement(ye.Fragment,null,m,I&&L),we=Px(v??(F==null?void 0:F.allowClear)),[De,_e]=lx("input",M,i);return Z(ye.createElement(Hj,Object.assign({ref:Wn(t,B),prefixCls:j,autoComplete:F==null?void 0:F.autoComplete},R,{disabled:H,onBlur:ue,onFocus:se,style:Object.assign(Object.assign({},F==null?void 0:F.style),x),styles:Object.assign(Object.assign({},F==null?void 0:F.styles),S),suffix:de,allowClear:we,className:Pe(w,E,U,Q,D,F==null?void 0:F.className),onChange:ce,addonBefore:C&&ye.createElement(pm,{form:!0,space:!0},C),addonAfter:y&&ye.createElement(pm,{form:!0,space:!0},y),classNames:Object.assign(Object.assign(Object.assign({},$),F==null?void 0:F.classNames),{input:Pe({[`${j}-sm`]:k==="small",[`${j}-lg`]:k==="large",[`${j}-rtl`]:_==="rtl"},$==null?void 0:$.input,(r=F==null?void 0:F.classNames)===null||r===void 0?void 0:r.input,X),variant:Pe({[`${j}-${De}`]:_e},mm(j,ne)),affixWrapper:Pe({[`${j}-affix-wrapper-sm`]:k==="small",[`${j}-affix-wrapper-lg`]:k==="large",[`${j}-affix-wrapper-rtl`]:_==="rtl"},X),wrapper:Pe({[`${j}-group-rtl`]:_==="rtl"},X),groupWrapper:Pe({[`${j}-group-wrapper-sm`]:k==="small",[`${j}-group-wrapper-lg`]:k==="large",[`${j}-group-wrapper-rtl`]:_==="rtl",[`${j}-group-wrapper-${De}`]:_e},mm(`${j}-group-wrapper`,ne,I),X)})})))}),qj=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}}}},Gj=fo(["Input","OTP"],e=>{const t=Nr(e,px(e));return[qj(t)]},hx);var Kj=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 Xj=h.forwardRef((e,t)=>{const{value:r,onChange:n,onActiveChange:i,index:l,mask:u}=e,c=Kj(e,["value","onChange","onActiveChange","index","mask"]),f=r&&typeof u=="string"?u:r,p=w=>{n(l,w.target.value)},m=h.useRef(null);h.useImperativeHandle(t,()=>m.current);const v=()=>{Hn(()=>{var w;const x=(w=m.current)===null||w===void 0?void 0:w.input;document.activeElement===x&&x&&x.select()})},y=w=>{const{key:x,ctrlKey:S,metaKey:E}=w;x==="ArrowLeft"?i(l-1):x==="ArrowRight"?i(l+1):x==="z"&&(S||E)&&w.preventDefault(),v()},C=w=>{w.key==="Backspace"&&!r&&i(l-1),v()};return h.createElement(yd,Object.assign({type:u===!0?"password":"text"},c,{ref:m,value:f,onInput:p,onFocus:v,onKeyDown:y,onKeyUp:C,onMouseDown:v,onMouseUp:v}))});var Qj=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 dc(e){return(e||"").split("")}const Yj=h.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:i,defaultValue:l,value:u,onChange:c,formatter:f,variant:p,disabled:m,status:v,autoFocus:y,mask:C,type:w,onInput:x,inputMode:S}=e,E=Qj(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:O,direction:$}=h.useContext(Ft),M=O("otp",r),R=Fw(E,{aria:!0,data:!0,attr:!0}),T=Ri(M),[_,F,j]=Gj(M,T),B=hl(Y=>i??Y),Q=h.useContext(En),Z=mg(Q.status,v),X=h.useMemo(()=>Object.assign(Object.assign({},Q),{status:Z,hasFeedback:!1,feedbackIcon:null}),[Q,Z]),U=h.useRef(null),q=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=q.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let ae=0;ae<n;ae+=1)(Y=q.current[ae])===null||Y===void 0||Y.blur()},nativeElement:U.current}));const D=Y=>f?f(Y):Y,[k,N]=h.useState(dc(D(l||"")));h.useEffect(()=>{u!==void 0&&N(dc(u))},[u]);const H=jr(Y=>{N(Y),x&&x(Y),c&&Y.length===n&&Y.every(ae=>ae)&&Y.some((ae,ue)=>k[ue]!==ae)&&c(Y.join(""))}),A=jr((Y,ae)=>{let ue=Ne(k);for(let ce=0;ce<Y;ce+=1)ue[ce]||(ue[ce]="");ae.length<=1?ue[Y]=ae:ue=ue.slice(0,Y).concat(dc(ae)),ue=ue.slice(0,n);for(let ce=ue.length-1;ce>=0&&!ue[ce];ce-=1)ue.pop();const se=D(ue.map(ce=>ce||" ").join(""));return ue=dc(se).map((ce,de)=>ce===" "&&!ue[de]?ue[de]:ce),ue}),I=(Y,ae)=>{var ue;const se=A(Y,ae),ce=Math.min(Y+ae.length,n-1);ce!==Y&&se[Y]!==void 0&&((ue=q.current[ce])===null||ue===void 0||ue.focus()),H(se)},L=Y=>{var ae;(ae=q.current[Y])===null||ae===void 0||ae.focus()},ne={variant:p,disabled:m,status:Z,mask:C,type:w,inputMode:S};return _(h.createElement("div",Object.assign({},R,{ref:U,className:Pe(M,{[`${M}-sm`]:B==="small",[`${M}-lg`]:B==="large",[`${M}-rtl`]:$==="rtl"},j,F)}),h.createElement(En.Provider,{value:X},Array.from({length:n}).map((Y,ae)=>{const ue=`otp-${ae}`,se=k[ae]||"";return h.createElement(Xj,Object.assign({ref:ce=>{q.current[ae]=ce},key:ue,index:ae,size:B,htmlSize:1,className:`${M}-input`,onChange:I,value:se,onActiveChange:L,autoFocus:ae===0&&y},ne))}))))});var Jj={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"},Zj=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:Jj}))},ek=h.forwardRef(Zj),tk={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"},rk=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:tk}))},nk=h.forwardRef(rk),ok=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 ik=e=>e?h.createElement(nk,null):h.createElement(ek,null),ak={click:"onClick",hover:"onMouseOver"},lk=h.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:i=!0,iconRender:l=ik}=e,u=h.useContext(Bo),c=r??u,f=typeof i=="object"&&i.visible!==void 0,[p,m]=h.useState(()=>f?i.visible:!1),v=h.useRef(null);h.useEffect(()=>{f&&m(i.visible)},[f,i]);const y=Tx(v),C=()=>{c||(p&&y(),m(B=>{var Q;const Z=!B;return typeof i=="object"&&((Q=i.onVisibleChange)===null||Q===void 0||Q.call(i,Z)),Z}))},w=B=>{const Q=ak[n]||"",Z=l(p),X={[Q]:C,className:`${B}-icon`,key:"passwordIcon",onMouseDown:U=>{U.preventDefault()},onMouseUp:U=>{U.preventDefault()}};return h.cloneElement(h.isValidElement(Z)?Z:h.createElement("span",null,Z),X)},{className:x,prefixCls:S,inputPrefixCls:E,size:O}=e,$=ok(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:M}=h.useContext(Ft),R=M("input",E),T=M("input-password",S),_=i&&w(T),F=Pe(T,x,{[`${T}-${O}`]:!!O}),j=Object.assign(Object.assign({},qo($,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:F,prefixCls:R,suffix:_});return O&&(j.size=O),h.createElement(yd,Object.assign({ref:Wn(t,v)},j))});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=h.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:i,size:l,suffix:u,enterButton:c=!1,addonAfter:f,loading:p,disabled:m,onSearch:v,onChange:y,onCompositionStart:C,onCompositionEnd:w}=e,x=sk(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:E}=h.useContext(Ft),O=h.useRef(!1),$=S("input-search",r),M=S("input",n),{compactSize:R}=ng($,E),T=hl(A=>{var I;return(I=l??R)!==null&&I!==void 0?I:A}),_=h.useRef(null),F=A=>{A!=null&&A.target&&A.type==="click"&&v&&v(A.target.value,A,{source:"clear"}),y==null||y(A)},j=A=>{var I;document.activeElement===((I=_.current)===null||I===void 0?void 0:I.input)&&A.preventDefault()},B=A=>{var I,L;v&&v((L=(I=_.current)===null||I===void 0?void 0:I.input)===null||L===void 0?void 0:L.value,A,{source:"input"})},Q=A=>{O.current||p||B(A)},Z=typeof c=="boolean"?h.createElement(kF,null):null,X=`${$}-button`;let U;const q=c||{},D=q.type&&q.type.__ANT_BUTTON===!0;D||q.type==="button"?U=oa(q,Object.assign({onMouseDown:j,onClick:A=>{var I,L;(L=(I=q==null?void 0:q.props)===null||I===void 0?void 0:I.onClick)===null||L===void 0||L.call(I,A),B(A)},key:"enterButton"},D?{className:X,size:T}:{})):U=h.createElement(xi,{className:X,type:c?"primary":void 0,size:T,disabled:m,key:"enterButton",onMouseDown:j,onClick:B,loading:p,icon:Z},c),f&&(U=[U,oa(f,{key:"addonAfter"})]);const k=Pe($,{[`${$}-rtl`]:E==="rtl",[`${$}-${T}`]:!!T,[`${$}-with-button`]:!!c},i),N=A=>{O.current=!0,C==null||C(A)},H=A=>{O.current=!1,w==null||w(A)};return h.createElement(yd,Object.assign({ref:Wn(_,t),onPressEnter:Q},x,{size:T,onCompositionStart:N,onCompositionEnd:H,prefixCls:M,addonAfter:U,suffix:u,onChange:F,className:k,disabled:m}))});var ck=`
  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;
`,dk=["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"],Hp={},gn;function fk(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&&Hp[r])return Hp[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")),u=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c=dk.map(function(p){return"".concat(p,":").concat(n.getPropertyValue(p))}).join(";"),f={sizingStyle:c,paddingSize:l,borderSize:u,boxSizing:i};return t&&r&&(Hp[r]=f),f}function pk(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;gn||(gn=document.createElement("textarea"),gn.setAttribute("tab-index","-1"),gn.setAttribute("aria-hidden","true"),gn.setAttribute("name","hiddenTextarea"),document.body.appendChild(gn)),e.getAttribute("wrap")?gn.setAttribute("wrap",e.getAttribute("wrap")):gn.removeAttribute("wrap");var i=fk(e,t),l=i.paddingSize,u=i.borderSize,c=i.boxSizing,f=i.sizingStyle;gn.setAttribute("style","".concat(f,";").concat(ck)),gn.value=e.value||e.placeholder||"";var p=void 0,m=void 0,v,y=gn.scrollHeight;if(c==="border-box"?y+=u:c==="content-box"&&(y-=l),r!==null||n!==null){gn.value=" ";var C=gn.scrollHeight-l;r!==null&&(p=C*r,c==="border-box"&&(p=p+l+u),y=Math.max(p,y)),n!==null&&(m=C*n,c==="border-box"&&(m=m+l+u),v=y>m?"":"hidden",y=Math.min(m,y))}var w={height:y,overflowY:v,resize:"none"};return p&&(w.minHeight=p),m&&(w.maxHeight=m),w}var hk=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Vp=0,Wp=1,Up=2,mk=h.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,l=r.value,u=r.autoSize,c=r.onResize,f=r.className,p=r.style,m=r.disabled,v=r.onChange;r.onInternalAutoSize;var y=Or(r,hk),C=na(i,{value:l,postState:function(Y){return Y??""}}),w=Ee(C,2),x=w[0],S=w[1],E=function(Y){S(Y.target.value),v==null||v(Y)},O=h.useRef();h.useImperativeHandle(t,function(){return{textArea:O.current}});var $=h.useMemo(function(){return u&&nt(u)==="object"?[u.minRows,u.maxRows]:[]},[u]),M=Ee($,2),R=M[0],T=M[1],_=!!u,F=function(){try{if(document.activeElement===O.current){var Y=O.current,ae=Y.selectionStart,ue=Y.selectionEnd,se=Y.scrollTop;O.current.setSelectionRange(ae,ue),O.current.scrollTop=se}}catch{}},j=h.useState(Up),B=Ee(j,2),Q=B[0],Z=B[1],X=h.useState(),U=Ee(X,2),q=U[0],D=U[1],k=function(){Z(Vp)};Wt(function(){_&&k()},[l,R,T,_]),Wt(function(){if(Q===Vp)Z(Wp);else if(Q===Wp){var ne=pk(O.current,!1,R,T);Z(Up),D(ne)}else F()},[Q]);var N=h.useRef(),H=function(){Hn.cancel(N.current)},A=function(Y){Q===Up&&(c==null||c(Y),u&&(H(),N.current=Hn(function(){k()})))};h.useEffect(function(){return H},[]);var I=_?q:null,L=ie(ie({},p),I);return(Q===Vp||Q===Wp)&&(L.overflowY="hidden",L.overflowX="hidden"),h.createElement(Bs,{onResize:A,disabled:!(u||c)},h.createElement("textarea",Ot({},y,{ref:O,style:L,className:Pe(n,f,ee({},"".concat(n,"-disabled"),m)),disabled:m,value:x,onChange:E})))}),gk=["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"],vk=ye.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,l=e.onFocus,u=e.onBlur,c=e.onChange,f=e.allowClear,p=e.maxLength,m=e.onCompositionStart,v=e.onCompositionEnd,y=e.suffix,C=e.prefixCls,w=C===void 0?"rc-textarea":C,x=e.showCount,S=e.count,E=e.className,O=e.style,$=e.disabled,M=e.hidden,R=e.classNames,T=e.styles,_=e.onResize,F=e.onClear,j=e.onPressEnter,B=e.readOnly,Q=e.autoSize,Z=e.onKeyDown,X=Or(e,gk),U=na(n,{value:i,defaultValue:n}),q=Ee(U,2),D=q[0],k=q[1],N=D==null?"":String(D),H=ye.useState(!1),A=Ee(H,2),I=A[0],L=A[1],ne=ye.useRef(!1),Y=ye.useState(null),ae=Ee(Y,2),ue=ae[0],se=ae[1],ce=h.useRef(null),de=h.useRef(null),we=function(){var Ge;return(Ge=de.current)===null||Ge===void 0?void 0:Ge.textArea},De=function(){we().focus()};h.useImperativeHandle(t,function(){var Je;return{resizableTextArea:de.current,focus:De,blur:function(){we().blur()},nativeElement:((Je=ce.current)===null||Je===void 0?void 0:Je.nativeElement)||we()}}),h.useEffect(function(){L(function(Je){return!$&&Je})},[$]);var _e=ye.useState(null),Me=Ee(_e,2),We=Me[0],Te=Me[1];ye.useEffect(function(){if(We){var Je;(Je=we()).setSelectionRange.apply(Je,Ne(We))}},[We]);var Ve=Ox(S,x),ft=(r=Ve.max)!==null&&r!==void 0?r:p,Ze=Number(ft)>0,pt=Ve.strategy(N),at=!!ft&&pt>ft,Le=function(Ge,nr){var je=nr;!ne.current&&Ve.exceedFormatter&&Ve.max&&Ve.strategy(nr)>Ve.max&&(je=Ve.exceedFormatter(nr,{max:Ve.max}),nr!==je&&Te([we().selectionStart||0,we().selectionEnd||0])),k(je),Gc(Ge.currentTarget,Ge,c,je)},st=function(Ge){ne.current=!0,m==null||m(Ge)},be=function(Ge){ne.current=!1,Le(Ge,Ge.currentTarget.value),v==null||v(Ge)},Fe=function(Ge){Le(Ge,Ge.target.value)},Ue=function(Ge){Ge.key==="Enter"&&j&&j(Ge),Z==null||Z(Ge)},tt=function(Ge){L(!0),l==null||l(Ge)},Pt=function(Ge){L(!1),u==null||u(Ge)},bt=function(Ge){k(""),De(),Gc(we(),Ge,c)},Dt=y,St;Ve.show&&(Ve.showFormatter?St=Ve.showFormatter({value:N,count:pt,maxLength:ft}):St="".concat(pt).concat(Ze?" / ".concat(ft):""),Dt=ye.createElement(ye.Fragment,null,Dt,ye.createElement("span",{className:Pe("".concat(w,"-data-count"),R==null?void 0:R.count),style:T==null?void 0:T.count},St)));var Qt=function(Ge){var nr;_==null||_(Ge),(nr=we())!==null&&nr!==void 0&&nr.style.height&&se(!0)},ht=!Q&&!x&&!f;return ye.createElement($x,{ref:ce,value:N,allowClear:f,handleReset:bt,suffix:Dt,prefixCls:w,classNames:ie(ie({},R),{},{affixWrapper:Pe(R==null?void 0:R.affixWrapper,ee(ee({},"".concat(w,"-show-count"),x),"".concat(w,"-textarea-allow-clear"),f))}),disabled:$,focused:I,className:Pe(E,at&&"".concat(w,"-out-of-range")),style:ie(ie({},O),ue&&!ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof St=="string"?St:void 0}},hidden:M,readOnly:B,onClear:F},ye.createElement(mk,Ot({},X,{autoSize:Q,maxLength:p,onKeyDown:Ue,onChange:Fe,onFocus:tt,onBlur:Pt,onCompositionStart:st,onCompositionEnd:be,className:Pe(R==null?void 0:R.textarea),style:ie(ie({},T==null?void 0:T.textarea),{},{resize:O==null?void 0:O.resize}),disabled:$,prefixCls:w,onResize:Qt,ref:de,readOnly:B})))}),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 _x=h.forwardRef((e,t)=>{var r,n;const{prefixCls:i,bordered:l=!0,size:u,disabled:c,status:f,allowClear:p,classNames:m,rootClassName:v,className:y,style:C,styles:w,variant:x}=e,S=yk(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:E,direction:O,textArea:$}=h.useContext(Ft),M=hl(u),R=h.useContext(Bo),T=c??R,{status:_,hasFeedback:F,feedbackIcon:j}=h.useContext(En),B=mg(_,f),Q=h.useRef(null);h.useImperativeHandle(t,()=>{var A;return{resizableTextArea:(A=Q.current)===null||A===void 0?void 0:A.resizableTextArea,focus:I=>{var L,ne;Rx((ne=(L=Q.current)===null||L===void 0?void 0:L.resizableTextArea)===null||ne===void 0?void 0:ne.textArea,I)},blur:()=>{var I;return(I=Q.current)===null||I===void 0?void 0:I.blur()}}});const Z=E("input",i),X=Ri(Z),[U,q,D]=vg(Z,X),[k,N]=lx("textArea",x,l),H=Px(p??($==null?void 0:$.allowClear));return U(h.createElement(vk,Object.assign({autoComplete:$==null?void 0:$.autoComplete},S,{style:Object.assign(Object.assign({},$==null?void 0:$.style),C),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),w),disabled:T,allowClear:H,className:Pe(D,X,y,v,$==null?void 0:$.className),classNames:Object.assign(Object.assign(Object.assign({},m),$==null?void 0:$.classNames),{textarea:Pe({[`${Z}-sm`]:M==="small",[`${Z}-lg`]:M==="large"},q,m==null?void 0:m.textarea,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.textarea),variant:Pe({[`${Z}-${k}`]:N},mm(Z,B)),affixWrapper:Pe(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:O==="rtl",[`${Z}-affix-wrapper-sm`]:M==="small",[`${Z}-affix-wrapper-lg`]:M==="large",[`${Z}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},q)}),prefixCls:Z,suffix:F&&h.createElement("span",{className:`${Z}-textarea-suffix`},j),ref:Q})))}),$o=yd;$o.Group=Vj;$o.Search=uk;$o.TextArea=_x;$o.Password=lk;$o.OTP=Yj;function u1(e){return["small","middle","large"].includes(e)}const Mx=["wrap","nowrap","wrap-reverse"],Ix=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Fx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],bk=(e,t)=>{const r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&Mx.includes(r)}},Sk=(e,t)=>{const r={};return Fx.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},wk=(e,t)=>{const r={};return Ix.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function xk(e,t){return Pe(Object.assign(Object.assign(Object.assign({},bk(e,t)),Sk(e,t)),wk(e,t)))}const Ck=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Ek=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Rk=e=>{const{componentCls:t}=e,r={};return Mx.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},$k=e=>{const{componentCls:t}=e,r={};return Fx.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},Ok=e=>{const{componentCls:t}=e,r={};return Ix.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},Pk=()=>({}),Tk=fo("Flex",e=>{const{paddingXS:t,padding:r,paddingLG:n}=e,i=Nr(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[Ck(i),Ek(i),Rk(i),$k(i),Ok(i)]},Pk,{resetStyle:!1});var _k=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 Co=ye.forwardRef((e,t)=>{const{prefixCls:r,rootClassName:n,className:i,style:l,flex:u,gap:c,children:f,vertical:p=!1,component:m="div"}=e,v=_k(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:y,direction:C,getPrefixCls:w}=ye.useContext(Ft),x=w("flex",r),[S,E,O]=Tk(x),$=p??(y==null?void 0:y.vertical),M=Pe(i,n,y==null?void 0:y.className,x,E,O,xk(x,e),{[`${x}-rtl`]:C==="rtl",[`${x}-gap-${c}`]:u1(c),[`${x}-vertical`]:$}),R=Object.assign(Object.assign({},y==null?void 0:y.style),l);return u&&(R.flex=u),c&&!u1(c)&&(R.gap=c),S(ye.createElement(m,Object.assign({ref:t,className:M,style:R},qo(v,["justify","wrap","align"])),f))});function Kc(e){const[t,r]=h.useState(e);return h.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const Mk=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)"}}}}},Ik=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${rt(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 ${rt(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),c1=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Fk=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Do(e)),Ik(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},c1(e,e.controlHeightSM)),"&-large":Object.assign({},c1(e,e.controlHeightLG))})}},jk=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:i,antCls:l,labelRequiredMarkColor:u,labelColor:c,labelFontSize:f,labelHeight:p,labelColonMarginInlineStart:m,labelColonMarginInlineEnd:v,itemMarginBottom:y}=e;return{[t]:Object.assign(Object.assign({},Do(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:u,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:m,marginInlineEnd:v},[`&${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:og,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},d1=(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"}}}}},kk=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"}}}}},no=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),jx=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:no(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Nk=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`]:no(e)}},[`@media (max-width: ${rt(e.screenXSMax)})`]:[jx(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:no(e)}}}],[`@media (max-width: ${rt(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:no(e)}}},[`@media (max-width: ${rt(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:no(e)}}},[`@media (max-width: ${rt(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:no(e)}}}}},Lk=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`]:no(e),[`@media (max-width: ${rt(e.screenXSMax)})`]:[jx(e),{[t]:{[`${r}-col-xs-24${t}-label`]:no(e)}}],[`@media (max-width: ${rt(e.screenSMMax)})`]:{[t]:{[`${r}-col-sm-24${t}-label`]:no(e)}},[`@media (max-width: ${rt(e.screenMDMax)})`]:{[t]:{[`${r}-col-md-24${t}-label`]:no(e)}},[`@media (max-width: ${rt(e.screenLGMax)})`]:{[t]:{[`${r}-col-lg-24${t}-label`]:no(e)}}}},Ak=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}),kx=(e,t)=>Nr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),bg=fo("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=kx(e,r);return[Fk(n),jk(n),Mk(n),d1(n,n.componentCls),d1(n,n.formItemCls),kk(n),Nk(n),Lk(n),CM(n),og]},Ak,{order:-1e3}),f1=[];function qp(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 Nx=e=>{let{help:t,helpStatus:r,errors:n=f1,warnings:i=f1,className:l,fieldId:u,onVisibleChanged:c}=e;const{prefixCls:f}=h.useContext(hg),p=`${f}-item-explain`,m=Ri(f),[v,y,C]=bg(f,m),w=h.useMemo(()=>Eb(f),[f]),x=Kc(n),S=Kc(i),E=h.useMemo(()=>t!=null?[qp(t,"help",r)]:[].concat(Ne(x.map((M,R)=>qp(M,"error","error",R))),Ne(S.map((M,R)=>qp(M,"warning","warning",R)))),[t,r,x,S]),O=h.useMemo(()=>{const M={};return E.forEach(R=>{let{key:T}=R;M[T]=(M[T]||0)+1}),E.map((R,T)=>Object.assign(Object.assign({},R),{key:M[R.key]>1?`${R.key}-fallback-${T}`:R.key}))},[E]),$={};return u&&($.id=`${u}_help`),v(h.createElement(ca,{motionDeadline:w.motionDeadline,motionName:`${f}-show-help`,visible:!!O.length,onVisibleChanged:c},M=>{const{className:R,style:T}=M;return h.createElement("div",Object.assign({},$,{className:Pe(p,R,C,m,l,y),style:T,role:"alert"}),h.createElement(UT,Object.assign({keys:O},Eb(f),{motionName:`${f}-show-help-item`,component:!1}),_=>{const{key:F,error:j,errorStatus:B,className:Q,style:Z}=_;return h.createElement("div",{key:F,className:Pe(Q,{[`${p}-${B}`]:B}),style:Z},j)}))}))},zk=["parentNode"],Dk="form_item";function hs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lx(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:zk.includes(r)?`${Dk}_${r}`:r}function Ax(e,t,r,n,i,l){let u=n;return l!==void 0?u=l:r.validating?u="validating":e.length?u="error":t.length?u="warning":(r.touched||i&&r.validated)&&(u="success"),u}function p1(e){return hs(e).join("_")}function h1(e,t){const r=t.getFieldInstance(e),n=mS(r);if(n)return n;const i=Lx(hs(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function zx(e){const[t]=pg(),r=h.useRef({}),n=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>l=>{const u=p1(i);l?r.current[u]=l:delete r.current[u]}},scrollToField:function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=h1(i,n);u&&z_(u,Object.assign({scrollMode:"if-needed",block:"nearest"},l))},focusField:i=>{var l;const u=h1(i,n);u&&((l=u.focus)===null||l===void 0||l.call(u))},getFieldInstance:i=>{const l=p1(i);return r.current[l]}}),[e,t]);return[n]}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 Hk=(e,t)=>{const r=h.useContext(Bo),{getPrefixCls:n,direction:i,form:l}=h.useContext(Ft),{prefixCls:u,className:c,rootClassName:f,size:p,disabled:m=r,form:v,colon:y,labelAlign:C,labelWrap:w,labelCol:x,wrapperCol:S,hideRequiredMark:E,layout:O="horizontal",scrollToFirstError:$,requiredMark:M,onFinishFailed:R,name:T,style:_,feedbackIcons:F,variant:j}=e,B=Bk(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Q=hl(p),Z=h.useContext(KS),X=h.useMemo(()=>M!==void 0?M:E?!1:l&&l.requiredMark!==void 0?l.requiredMark:!0,[E,M,l]),U=y??(l==null?void 0:l.colon),q=n("form",u),D=Ri(q),[k,N,H]=bg(q,D),A=Pe(q,`${q}-${O}`,{[`${q}-hide-required-mark`]:X===!1,[`${q}-rtl`]:i==="rtl",[`${q}-${Q}`]:Q},H,D,N,l==null?void 0:l.className,c,f),[I]=zx(v),{__INTERNAL__:L}=I;L.name=T;const ne=h.useMemo(()=>({name:T,labelAlign:C,labelCol:x,labelWrap:w,wrapperCol:S,vertical:O==="vertical",colon:U,requiredMark:X,itemRef:L.itemRef,form:I,feedbackIcons:F}),[T,C,x,S,O,U,X,I,F]),Y=h.useRef(null);h.useImperativeHandle(t,()=>{var se;return Object.assign(Object.assign({},I),{nativeElement:(se=Y.current)===null||se===void 0?void 0:se.nativeElement})});const ae=(se,ce)=>{if(se){let de={block:"nearest"};typeof se=="object"&&(de=Object.assign(Object.assign({},de),se)),I.scrollToField(ce,de),de.focus&&I.focusField(ce)}},ue=se=>{if(R==null||R(se),se.errorFields.length){const ce=se.errorFields[0].name;if($!==void 0){ae($,ce);return}l&&l.scrollToFirstError!==void 0&&ae(l.scrollToFirstError,ce)}};return k(h.createElement(ix.Provider,{value:j},h.createElement(ow,{disabled:m},h.createElement(ra.Provider,{value:Q},h.createElement(ox,{validateMessages:Z},h.createElement(Ho.Provider,{value:ne},h.createElement(ml,Object.assign({id:T},B,{name:T,onFinishFailed:ue,form:I,ref:Y,style:Object.assign(Object.assign({},l==null?void 0:l.style),_),className:A}))))))))},Vk=h.forwardRef(Hk);function Wk(e){if(typeof e=="function")return e;const t=Zi(e);return t.length<=1?t[0]:t}const Dx=()=>{const{status:e,errors:t=[],warnings:r=[]}=h.useContext(En);return{status:e,errors:t,warnings:r}};Dx.Context=En;function Uk(e){const[t,r]=h.useState(e),n=h.useRef(null),i=h.useRef([]),l=h.useRef(!1);h.useEffect(()=>(l.current=!1,()=>{l.current=!0,Hn.cancel(n.current),n.current=null}),[]);function u(c){l.current||(n.current===null&&(i.current=[],n.current=Hn(()=>{n.current=null,r(f=>{let p=f;return i.current.forEach(m=>{p=m(p)}),p})})),i.current.push(c))}return[t,u]}function qk(){const{itemRef:e}=h.useContext(Ho),t=h.useRef({});function r(n,i){const l=i&&typeof i=="object"&&i.ref,u=n.join("_");return(t.current.name!==u||t.current.originRef!==l)&&(t.current.name=u,t.current.originRef=l,t.current.ref=Wn(e(n),l)),t.current.ref}return r}const Gk=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Kk=mw(["Form","item-item"],(e,t)=>{let{rootPrefixCls:r}=t;const n=kx(e,r);return[Gk(n)]});var Xk=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 Qk=24,Yk=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:i,children:l,errors:u,warnings:c,_internalItemRender:f,extra:p,help:m,fieldId:v,marginBottom:y,onErrorVisibleChanged:C,label:w}=e,x=`${t}-item`,S=h.useContext(Ho),E=h.useMemo(()=>{let U=Object.assign({},i||S.wrapperCol||{});return w===null&&!n&&!i&&S.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(D=>{const k=D?[D]:[],N=zn(S.labelCol,k),H=typeof N=="object"?N:{},A=zn(U,k),I=typeof A=="object"?A:{};"span"in H&&!("offset"in I)&&H.span<Qk&&(U=An(U,[].concat(k,["offset"]),H.span))}),U},[i,S]),O=Pe(`${x}-control`,E.className),$=h.useMemo(()=>Xk(S,["labelCol","wrapperCol"]),[S]),M=h.useRef(null),[R,T]=h.useState(0);Wt(()=>{p&&M.current?T(M.current.clientHeight):T(0)},[p]);const _=h.createElement("div",{className:`${x}-control-input`},h.createElement("div",{className:`${x}-control-input-content`},l)),F=h.useMemo(()=>({prefixCls:t,status:r}),[t,r]),j=y!==null||u.length||c.length?h.createElement(hg.Provider,{value:F},h.createElement(Nx,{fieldId:v,errors:u,warnings:c,help:m,helpStatus:r,className:`${x}-explain-connected`,onVisibleChanged:C})):null,B={};v&&(B.id=`${v}_extra`);const Q=p?h.createElement("div",Object.assign({},B,{className:`${x}-extra`,ref:M}),p):null,Z=j||Q?h.createElement("div",{className:`${x}-additional`,style:y?{minHeight:y+R}:{}},j,Q):null,X=f&&f.mark==="pro_table_render"&&f.render?f.render(e,{input:_,errorList:j,extra:Q}):h.createElement(h.Fragment,null,_,Z);return h.createElement(Ho.Provider,{value:$},h.createElement(Ex,Object.assign({},E,{className:O}),X),h.createElement(Kk,{prefixCls:t}))};var Jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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"},Zk=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:Jk}))},eN=h.forwardRef(Zk),tN=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 rN(e){return e?typeof e=="object"&&!h.isValidElement(e)?e:{title:e}:null}const nN=e=>{let{prefixCls:t,label:r,htmlFor:n,labelCol:i,labelAlign:l,colon:u,required:c,requiredMark:f,tooltip:p,vertical:m}=e;var v;const[y]=QS("Form"),{labelAlign:C,labelCol:w,labelWrap:x,colon:S}=h.useContext(Ho);if(!r)return null;const E=i||w||{},O=l||C,$=`${t}-item-label`,M=Pe($,O==="left"&&`${$}-left`,E.className,{[`${$}-wrap`]:!!x});let R=r;const T=u===!0||S!==!1&&u!==!1;T&&!m&&typeof r=="string"&&r.trim()&&(R=r.replace(/[:|:]\s*$/,""));const F=rN(p);if(F){const{icon:Z=h.createElement(eN,null)}=F,X=tN(F,["icon"]),U=h.createElement(Us,Object.assign({},X),h.cloneElement(Z,{className:`${t}-item-tooltip`,title:"",onClick:q=>{q.preventDefault()},tabIndex:null}));R=h.createElement(h.Fragment,null,R,U)}const j=f==="optional",B=typeof f=="function";B?R=f(R,{required:!!c}):j&&!c&&(R=h.createElement(h.Fragment,null,R,h.createElement("span",{className:`${t}-item-optional`,title:""},(y==null?void 0:y.optional)||((v=ta.Form)===null||v===void 0?void 0:v.optional))));const Q=Pe({[`${t}-item-required`]:c,[`${t}-item-required-mark-optional`]:j||B,[`${t}-item-no-colon`]:!T});return h.createElement(Ex,Object.assign({},E,{className:M}),h.createElement("label",{htmlFor:n,className:Q,title:typeof r=="string"?r:""},R))},oN={success:Mw,warning:Iw,error:Zm,validating:eg};function Bx(e){let{children:t,errors:r,warnings:n,hasFeedback:i,validateStatus:l,prefixCls:u,meta:c,noStyle:f}=e;const p=`${u}-item`,{feedbackIcons:m}=h.useContext(Ho),v=Ax(r,n,c,null,!!i,l),{isFormItemInput:y,status:C,hasFeedback:w,feedbackIcon:x}=h.useContext(En),S=h.useMemo(()=>{var E;let O;if(i){const M=i!==!0&&i.icons||m,R=v&&((E=M==null?void 0:M({status:v,errors:r,warnings:n}))===null||E===void 0?void 0:E[v]),T=v&&oN[v];O=R!==!1&&T?h.createElement("span",{className:Pe(`${p}-feedback-icon`,`${p}-feedback-icon-${v}`)},R||h.createElement(T,null)):null}const $={status:v||"",errors:r,warnings:n,hasFeedback:!!i,feedbackIcon:O,isFormItemInput:!0};return f&&($.status=(v??C)||"",$.isFormItemInput=y,$.hasFeedback=!!(i??w),$.feedbackIcon=i!==void 0?$.feedbackIcon:x),$},[v,i,f,y,C]);return h.createElement(En.Provider,{value:S},t)}var iN=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 aN(e){const{prefixCls:t,className:r,rootClassName:n,style:i,help:l,errors:u,warnings:c,validateStatus:f,meta:p,hasFeedback:m,hidden:v,children:y,fieldId:C,required:w,isRequired:x,onSubItemMetaChange:S,layout:E}=e,O=iN(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),$=`${t}-item`,{requiredMark:M,vertical:R}=h.useContext(Ho),T=R||E==="vertical",_=h.useRef(null),F=Kc(u),j=Kc(c),B=l!=null,Q=!!(B||u.length||c.length),Z=!!_.current&&tg(_.current),[X,U]=h.useState(null);Wt(()=>{if(Q&&_.current){const H=getComputedStyle(_.current);U(parseInt(H.marginBottom,10))}},[Q,Z]);const q=H=>{H||U(null)},k=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=H?F:p.errors,I=H?j:p.warnings;return Ax(A,I,p,"",!!m,f)}(),N=Pe($,r,n,{[`${$}-with-help`]:B||F.length||j.length,[`${$}-has-feedback`]:k&&m,[`${$}-has-success`]:k==="success",[`${$}-has-warning`]:k==="warning",[`${$}-has-error`]:k==="error",[`${$}-is-validating`]:k==="validating",[`${$}-hidden`]:v,[`${$}-${E}`]:E});return h.createElement("div",{className:N,style:i,ref:_},h.createElement(Lj,Object.assign({className:`${$}-row`},qo(O,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),h.createElement(nN,Object.assign({htmlFor:C},e,{requiredMark:M,required:w??x,prefixCls:t,vertical:T})),h.createElement(Yk,Object.assign({},e,p,{errors:F,warnings:j,prefixCls:t,status:k,help:l,marginBottom:X,onErrorVisibleChanged:q}),h.createElement(nx.Provider,{value:S},h.createElement(Bx,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:m,validateStatus:k},y)))),!!X&&h.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-X}}))}const lN="__SPLIT__";function sN(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(i=>{const l=e[i],u=t[i];return l===u||typeof l=="function"||typeof u=="function"})}const uN=h.memo(e=>{let{children:t}=e;return t},(e,t)=>sN(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function m1(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function cN(e){const{name:t,noStyle:r,className:n,dependencies:i,prefixCls:l,shouldUpdate:u,rules:c,children:f,required:p,label:m,messageVariables:v,trigger:y="onChange",validateTrigger:C,hidden:w,help:x,layout:S}=e,{getPrefixCls:E}=h.useContext(Ft),{name:O}=h.useContext(Ho),$=Wk(f),M=typeof $=="function",R=h.useContext(nx),{validateTrigger:T}=h.useContext(ia),_=C!==void 0?C:T,F=t!=null,j=E("form",l),B=Ri(j),[Q,Z,X]=bg(j,B);Qm();const U=h.useContext(Ts),q=h.useRef(),[D,k]=Uk({}),[N,H]=al(()=>m1()),A=se=>{const ce=U==null?void 0:U.getKey(se.name);if(H(se.destroy?m1():se,!0),r&&x!==!1&&R){let de=se.name;if(se.destroy)de=q.current||de;else if(ce!==void 0){const[we,De]=ce;de=[we].concat(Ne(De)),q.current=de}R(se,de)}},I=(se,ce)=>{k(de=>{const we=Object.assign({},de),_e=[].concat(Ne(se.name.slice(0,-1)),Ne(ce)).join(lN);return se.destroy?delete we[_e]:we[_e]=se,we})},[L,ne]=h.useMemo(()=>{const se=Ne(N.errors),ce=Ne(N.warnings);return Object.values(D).forEach(de=>{se.push.apply(se,Ne(de.errors||[])),ce.push.apply(ce,Ne(de.warnings||[]))}),[se,ce]},[D,N.errors,N.warnings]),Y=qk();function ae(se,ce,de){return r&&!w?h.createElement(Bx,{prefixCls:j,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:L,warnings:ne,noStyle:!0},se):h.createElement(aN,Object.assign({key:"row"},e,{className:Pe(n,X,B,Z),prefixCls:j,fieldId:ce,isRequired:de,errors:L,warnings:ne,meta:N,onSubItemMetaChange:I,layout:S}),se)}if(!F&&!M&&!i)return Q(ae($));let ue={};return typeof m=="string"?ue.label=m:t&&(ue.label=String(t)),v&&(ue=Object.assign(Object.assign({},ue),v)),Q(h.createElement(fg,Object.assign({},e,{messageVariables:ue,trigger:y,validateTrigger:_,onMetaChange:A}),(se,ce,de)=>{const we=hs(t).length&&ce?ce.name:[],De=Lx(we,O),_e=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 Ve=Te(de);return(Ve==null?void 0:Ve.required)&&!(Ve!=null&&Ve.warningOnly)}return!1})),Me=Object.assign({},se);let We=null;if(Array.isArray($)&&F)We=$;else if(!(M&&(!(u||i)||F))){if(!(i&&!M&&!F))if(h.isValidElement($)){const Te=Object.assign(Object.assign({},$.props),Me);if(Te.id||(Te.id=De),x||L.length>0||ne.length>0||e.extra){const Ze=[];(x||L.length>0)&&Ze.push(`${De}_help`),e.extra&&Ze.push(`${De}_extra`),Te["aria-describedby"]=Ze.join(" ")}L.length>0&&(Te["aria-invalid"]="true"),_e&&(Te["aria-required"]="true"),cl($)&&(Te.ref=Y(we,$)),new Set([].concat(Ne(hs(y)),Ne(hs(_)))).forEach(Ze=>{Te[Ze]=function(){for(var pt,at,Le,st,be,Fe=arguments.length,Ue=new Array(Fe),tt=0;tt<Fe;tt++)Ue[tt]=arguments[tt];(Le=Me[Ze])===null||Le===void 0||(pt=Le).call.apply(pt,[Me].concat(Ue)),(be=(st=$.props)[Ze])===null||be===void 0||(at=be).call.apply(at,[st].concat(Ue))}});const ft=[Te["aria-required"],Te["aria-invalid"],Te["aria-describedby"]];We=h.createElement(uN,{control:Me,update:$,childProps:ft},oa($,Te))}else M&&(u||i)&&!F?We=$(de):We=$}return ae(We,De,_e)}))}const Hx=cN;Hx.useStatus=Dx;var dN=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 fN=e=>{var{prefixCls:t,children:r}=e,n=dN(e,["prefixCls","children"]);const{getPrefixCls:i}=h.useContext(Ft),l=i("form",t),u=h.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return h.createElement(Zw,Object.assign({},n),(c,f,p)=>h.createElement(hg.Provider,{value:u},r(c.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),f,{errors:p.errors,warnings:p.warnings})))};function pN(){const{form:e}=h.useContext(Ho);return e}const rr=Vk;rr.Item=Hx;rr.List=fN;rr.ErrorList=Nx;rr.useForm=zx;rr.useFormInstance=pN;rr.useWatch=rx;rr.Provider=ox;rr.create=()=>{};function hN(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var mN={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"},gN=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:mN}))},vN=h.forwardRef(gN),yN={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"},bN=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:yN}))},SN=h.forwardRef(bN),wN={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"},xN=function(t,r){return h.createElement(Pr,Ot({},t,{ref:r,icon:wN}))},CN=h.forwardRef(xN);const EN=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:l}=n;return{marginBottom:i,color:r,fontWeight:l,fontSize:e,lineHeight:t}},RN=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}
    `]=EN(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},$N=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},pw(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},ON=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:Hc[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}}),PN=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 - ${rt(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"}}}},TN=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),_N=()=>({"\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"}}),MN=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"}},RN(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}}}),ON(e)),$N(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},pw(e)),{marginInlineStart:e.marginXXS})}),PN(e)),TN(e)),_N()),{"&-rtl":{direction:"rtl"}})}},IN=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Vx=fo("Typography",e=>[MN(e)],IN),FN=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:l,maxLength:u,autoSize:c=!0,value:f,onSave:p,onCancel:m,onEnd:v,component:y,enterIcon:C=h.createElement(CN,null)}=e,w=h.useRef(null),x=h.useRef(!1),S=h.useRef(),[E,O]=h.useState(f);h.useEffect(()=>{O(f)},[f]),h.useEffect(()=>{var U;if(!((U=w.current)===null||U===void 0)&&U.resizableTextArea){const{textArea:q}=w.current.resizableTextArea;q.focus();const{length:D}=q.value;q.setSelectionRange(D,D)}},[]);const $=U=>{let{target:q}=U;O(q.value.replace(/[\n\r]/g,""))},M=()=>{x.current=!0},R=()=>{x.current=!1},T=U=>{let{keyCode:q}=U;x.current||(S.current=q)},_=()=>{p(E.trim())},F=U=>{let{keyCode:q,ctrlKey:D,altKey:k,metaKey:N,shiftKey:H}=U;S.current!==q||x.current||D||k||N||H||(q===et.ENTER?(_(),v==null||v()):q===et.ESC&&m())},j=()=>{_()},[B,Q,Z]=Vx(t),X=Pe(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${y}`]:!!y},n,Q,Z);return B(h.createElement("div",{className:X,style:i},h.createElement(_x,{ref:w,maxLength:u,value:E,onChange:$,onKeyDown:T,onKeyUp:F,onCompositionStart:M,onCompositionEnd:R,onBlur:j,"aria-label":r,rows:1,autoSize:c}),C!==null?oa(C,{className:`${t}-edit-content-confirm`}):null))};var Gp,g1;function jN(){return g1||(g1=1,Gp=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()}}),Gp}var Kp,v1;function kN(){if(v1)return Kp;v1=1;var e=jN(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(l){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,u)}function i(l,u){var c,f,p,m,v,y,C=!1;u||(u={}),c=u.debug||!1;try{p=e(),m=document.createRange(),v=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(x){if(x.stopPropagation(),u.format)if(x.preventDefault(),typeof x.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[u.format]||t.default;window.clipboardData.setData(S,l)}else x.clipboardData.clearData(),x.clipboardData.setData(u.format,l);u.onCopy&&(x.preventDefault(),u.onCopy(x.clipboardData))}),document.body.appendChild(y),m.selectNodeContents(y),v.addRange(m);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");C=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",l),u.onCopy&&u.onCopy(window.clipboardData),C=!0}catch(S){c&&console.error("unable to copy using clipboardData: ",S),c&&console.error("falling back to prompt"),f=n("message"in u?u.message:r),window.prompt(f,l)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(m):v.removeAllRanges()),y&&document.body.removeChild(y),p()}return C}return Kp=i,Kp}var NN=kN();const LN=Ns(NN);var AN=function(e,t,r,n){function i(l){return l instanceof r?l:new r(function(u){u(l)})}return new(r||(r=Promise))(function(l,u){function c(m){try{p(n.next(m))}catch(v){u(v)}}function f(m){try{p(n.throw(m))}catch(v){u(v)}}function p(m){m.done?l(m.value):i(m.value).then(c,f)}p((n=n.apply(e,t||[])).next())})};const zN=e=>{let{copyConfig:t,children:r}=e;const[n,i]=h.useState(!1),[l,u]=h.useState(!1),c=h.useRef(null),f=()=>{c.current&&clearTimeout(c.current)},p={};t.format&&(p.format=t.format),h.useEffect(()=>f,[]);const m=jr(v=>AN(void 0,void 0,void 0,function*(){var y;v==null||v.preventDefault(),v==null||v.stopPropagation(),u(!0);try{const C=typeof t.text=="function"?yield t.text():t.text;LN(C||hN(r,!0).join("")||"",p),u(!1),i(!0),f(),c.current=setTimeout(()=>{i(!1)},3e3),(y=t.onCopy)===null||y===void 0||y.call(t,v)}catch(C){throw u(!1),C}}));return{copied:n,copyLoading:l,onClick:m}};function Xp(e,t){return h.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const DN=e=>{const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current},BN=(e,t,r)=>h.useMemo(()=>e===!0?{title:t??r}:h.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var HN=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 Wx=h.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:i,rootClassName:l,setContentRef:u,children:c,direction:f,style:p}=e,m=HN(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:v,direction:y,typography:C}=h.useContext(Ft),w=f??y,x=u?Wn(t,u):t,S=v("typography",r),[E,O,$]=Vx(S),M=Pe(S,C==null?void 0:C.className,{[`${S}-rtl`]:w==="rtl"},i,l,O,$),R=Object.assign(Object.assign({},C==null?void 0:C.style),p);return E(h.createElement(n,Object.assign({className:M,style:R,ref:x},m),c))});function y1(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Qp(e,t,r){return e===!0||e===void 0?t:e||r&&t}function VN(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 Sg=e=>["string","number"].includes(typeof e),WN=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:i,tooltips:l,icon:u,tabIndex:c,onCopy:f,loading:p}=e;const m=y1(l),v=y1(u),{copied:y,copy:C}=n??{},w=r?y:C,x=Qp(m[r?1:0],w),S=typeof x=="string"?x:w;return h.createElement(Us,{title:x},h.createElement("button",{type:"button",className:Pe(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:i}),onClick:f,"aria-label":S,tabIndex:c},r?Qp(v[1],h.createElement(IF,null),!0):Qp(v[0],p?h.createElement(eg,null):h.createElement(vN,null),!0)))},fc=h.forwardRef((e,t)=>{let{style:r,children:n}=e;const i=h.useRef(null);return h.useImperativeHandle(t,()=>({isExceed:()=>{const l=i.current;return l.scrollHeight>l.clientHeight},getHeight:()=>i.current.clientHeight})),h.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)}),UN=e=>e.reduce((t,r)=>t+(Sg(r)?String(r).length:1),0);function b1(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=Sg(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 Yp=0,Jp=1,Zp=2,eh=3,S1=4,pc={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function qN(e){const{enableMeasure:t,width:r,text:n,children:i,rows:l,expanded:u,miscDeps:c,onEllipsis:f}=e,p=h.useMemo(()=>Zi(n),[n]),m=h.useMemo(()=>UN(p),[n]),v=h.useMemo(()=>i(p,!1),[n]),[y,C]=h.useState(null),w=h.useRef(null),x=h.useRef(null),S=h.useRef(null),E=h.useRef(null),O=h.useRef(null),[$,M]=h.useState(!1),[R,T]=h.useState(Yp),[_,F]=h.useState(0),[j,B]=h.useState(null);Wt(()=>{T(t&&r&&m?Jp:Yp)},[r,n,l,t,p]),Wt(()=>{var U,q,D,k;if(R===Jp){T(Zp);const N=x.current&&getComputedStyle(x.current).whiteSpace;B(N)}else if(R===Zp){const N=!!(!((U=S.current)===null||U===void 0)&&U.isExceed());T(N?eh:S1),C(N?[0,m]:null),M(N);const H=((q=S.current)===null||q===void 0?void 0:q.getHeight())||0,A=l===1?0:((D=E.current)===null||D===void 0?void 0:D.getHeight())||0,I=((k=O.current)===null||k===void 0?void 0:k.getHeight())||0,L=Math.max(H,A+I);F(L+1),f(N)}},[R]);const Q=y?Math.ceil((y[0]+y[1])/2):0;Wt(()=>{var U;const[q,D]=y||[0,0];if(q!==D){const N=(((U=w.current)===null||U===void 0?void 0:U.getHeight())||0)>_;let H=Q;D-q===1&&(H=N?q:D),C(N?[q,H]:[H,D])}},[y,Q]);const Z=h.useMemo(()=>{if(!t)return i(p,!1);if(R!==eh||!y||y[0]!==y[1]){const U=i(p,!1);return[S1,Yp].includes(R)?U:h.createElement("span",{style:Object.assign(Object.assign({},pc),{WebkitLineClamp:l})},U)}return i(u?p:b1(p,y[0]),$)},[u,R,y,p].concat(Ne(c))),X={width:r,margin:0,padding:0,whiteSpace:j==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,Z,R===Zp&&h.createElement(h.Fragment,null,h.createElement(fc,{style:Object.assign(Object.assign(Object.assign({},X),pc),{WebkitLineClamp:l}),ref:S},v),h.createElement(fc,{style:Object.assign(Object.assign(Object.assign({},X),pc),{WebkitLineClamp:l-1}),ref:E},v),h.createElement(fc,{style:Object.assign(Object.assign(Object.assign({},X),pc),{WebkitLineClamp:1}),ref:O},i([],!0))),R===eh&&y&&y[0]!==y[1]&&h.createElement(fc,{style:Object.assign(Object.assign({},X),{top:400}),ref:w},i(b1(p,Q),!0)),R===Jp&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const GN=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?n:h.createElement(Us,Object.assign({open:r?void 0:!1},i),n)};var KN=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 XN(e,t){let{mark:r,code:n,underline:i,delete:l,strong:u,keyboard:c,italic:f}=e,p=t;function m(v,y){y&&(p=h.createElement(v,{},p))}return m("strong",u),m("u",i),m("del",l),m("code",n),m("mark",r),m("kbd",c),m("i",f),p}const QN="...",bd=h.forwardRef((e,t)=>{var r;const{prefixCls:n,className:i,style:l,type:u,disabled:c,children:f,ellipsis:p,editable:m,copyable:v,component:y,title:C}=e,w=KN(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:S}=h.useContext(Ft),[E]=QS("Text"),O=h.useRef(null),$=h.useRef(null),M=x("typography",n),R=qo(w,["mark","code","delete","underline","strong","keyboard","italic"]),[T,_]=Xp(m),[F,j]=na(!1,{value:_.editing}),{triggerType:B=["icon"]}=_,Q=je=>{var qe;je&&((qe=_.onStart)===null||qe===void 0||qe.call(_)),j(je)},Z=DN(F);Wt(()=>{var je;!F&&Z&&((je=$.current)===null||je===void 0||je.focus())},[F]);const X=je=>{je==null||je.preventDefault(),Q(!0)},U=je=>{var qe;(qe=_.onChange)===null||qe===void 0||qe.call(_,je),Q(!1)},q=()=>{var je;(je=_.onCancel)===null||je===void 0||je.call(_),Q(!1)},[D,k]=Xp(v),{copied:N,copyLoading:H,onClick:A}=zN({copyConfig:k,children:f}),[I,L]=h.useState(!1),[ne,Y]=h.useState(!1),[ae,ue]=h.useState(!1),[se,ce]=h.useState(!1),[de,we]=h.useState(!0),[De,_e]=Xp(p,{expandable:!1,symbol:je=>je?E==null?void 0:E.collapse:E==null?void 0:E.expand}),[Me,We]=na(_e.defaultExpanded||!1,{value:_e.expanded}),Te=De&&(!Me||_e.expandable==="collapsible"),{rows:Ve=1}=_e,ft=h.useMemo(()=>Te&&(_e.suffix!==void 0||_e.onEllipsis||_e.expandable||T||D),[Te,_e,T,D]);Wt(()=>{De&&!ft&&(L(Gb("webkitLineClamp")),Y(Gb("textOverflow")))},[ft,De]);const[Ze,pt]=h.useState(Te),at=h.useMemo(()=>ft?!1:Ve===1?ne:I,[ft,ne,I]);Wt(()=>{pt(at&&Te)},[at,Te]);const Le=Te&&(Ze?se:ae),st=Te&&Ve===1&&Ze,be=Te&&Ve>1&&Ze,Fe=(je,qe)=>{var _t;We(qe.expanded),(_t=_e.onExpand)===null||_t===void 0||_t.call(_e,je,qe)},[Ue,tt]=h.useState(0),Pt=je=>{let{offsetWidth:qe}=je;tt(qe)},bt=je=>{var qe;ue(je),ae!==je&&((qe=_e.onEllipsis)===null||qe===void 0||qe.call(_e,je))};h.useEffect(()=>{const je=O.current;if(De&&Ze&&je){const qe=VN(je);se!==qe&&ce(qe)}},[De,Ze,f,be,de,Ue]),h.useEffect(()=>{const je=O.current;if(typeof IntersectionObserver>"u"||!je||!Ze||!Te)return;const qe=new IntersectionObserver(()=>{we(!!je.offsetParent)});return qe.observe(je),()=>{qe.disconnect()}},[Ze,Te]);const Dt=BN(_e.tooltip,_.text,f),St=h.useMemo(()=>{if(!(!De||Ze))return[_.text,f,C,Dt.title].find(Sg)},[De,Ze,C,Dt.title,Le]);if(F)return h.createElement(FN,{value:(r=_.text)!==null&&r!==void 0?r:typeof f=="string"?f:"",onSave:U,onCancel:q,onEnd:_.onEnd,prefixCls:M,className:i,style:l,direction:S,component:y,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const Qt=()=>{const{expandable:je,symbol:qe}=_e;return je?h.createElement("button",{type:"button",key:"expand",className:`${M}-${Me?"collapse":"expand"}`,onClick:_t=>Fe(_t,{expanded:!Me}),"aria-label":Me?E.collapse:E==null?void 0:E.expand},typeof qe=="function"?qe(Me):qe):null},ht=()=>{if(!T)return;const{icon:je,tooltip:qe,tabIndex:_t}=_,Lr=Zi(qe)[0]||(E==null?void 0:E.edit),Ar=typeof Lr=="string"?Lr:"";return B.includes("icon")?h.createElement(Us,{key:"edit",title:qe===!1?"":Lr},h.createElement("button",{type:"button",ref:$,className:`${M}-edit`,onClick:X,"aria-label":Ar,tabIndex:_t},je||h.createElement(SN,{role:"button"}))):null},Je=()=>D?h.createElement(WN,Object.assign({key:"copy"},k,{prefixCls:M,copied:N,locale:E,onCopy:A,loading:H,iconOnly:f==null})):null,Ge=je=>[je&&Qt(),ht(),Je()],nr=je=>[je&&!Me&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},QN),_e.suffix,Ge(je)];return h.createElement(Bs,{onResize:Pt,disabled:!Te},je=>h.createElement(GN,{tooltipProps:Dt,enableEllipsis:Te,isEllipsis:Le},h.createElement(Wx,Object.assign({className:Pe({[`${M}-${u}`]:u,[`${M}-disabled`]:c,[`${M}-ellipsis`]:De,[`${M}-ellipsis-single-line`]:st,[`${M}-ellipsis-multiple-line`]:be},i),prefixCls:n,style:Object.assign(Object.assign({},l),{WebkitLineClamp:be?Ve:void 0}),component:y,ref:Wn(je,O,t),direction:S,onClick:B.includes("text")?X:void 0,"aria-label":St==null?void 0:St.toString(),title:C},R),h.createElement(qN,{enableMeasure:Te&&!Ze,text:f,rows:Ve,width:Ue,onEllipsis:bt,expanded:Me,miscDeps:[N,Me,H,T,D,E]},(qe,_t)=>XN(e,h.createElement(h.Fragment,null,qe.length>0&&_t&&!Me&&St?h.createElement("span",{key:"show-content","aria-hidden":!0},qe):qe,nr(_t)))))))});var YN=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 JN=h.forwardRef((e,t)=>{var{ellipsis:r,rel:n}=e,i=YN(e,["ellipsis","rel"]);const l=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete l.navigate,h.createElement(bd,Object.assign({},l,{ref:t,ellipsis:!!r,component:"a"}))}),ZN=h.forwardRef((e,t)=>h.createElement(bd,Object.assign({ref:t},e,{component:"div"})));var eL=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 tL=(e,t)=>{var{ellipsis:r}=e,n=eL(e,["ellipsis"]);const i=h.useMemo(()=>r&&typeof r=="object"?qo(r,["expandable","rows"]):r,[r]);return h.createElement(bd,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},rL=h.forwardRef(tL);var nL=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 oL=[1,2,3,4,5],iL=h.forwardRef((e,t)=>{const{level:r=1}=e,n=nL(e,["level"]),i=oL.includes(r)?`h${r}`:"h1";return h.createElement(bd,Object.assign({ref:t},n,{component:i}))}),lo=Wx;lo.Text=rL;lo.Link=JN;lo.Title=iL;lo.Paragraph=ZN;const aL="_form_z2pm6_1",lL="_reset_z2pm6_5",th={form:aL,reset:lL},sL="_wrapper_11vy5_1",uL="_logo_11vy5_13",cL="_form_11vy5_18",dL="_title_11vy5_25",fL="_inputs_11vy5_31",pL="_warning_11vy5_35",hL="_success_11vy5_44",Bn={wrapper:sL,logo:uL,form:cL,title:dL,inputs:fL,"warning-icon":"_warning-icon_11vy5_35",warning:pL,success:hL},Xc="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 Ux(e,t){return function(){return e.apply(t,arguments)}}const{toString:mL}=Object.prototype,{getPrototypeOf:wg}=Object,Sd=(e=>t=>{const r=mL.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),po=e=>(e=e.toLowerCase(),t=>Sd(t)===e),wd=e=>t=>typeof t===e,{isArray:gl}=Array,Is=wd("undefined");function gL(e){return e!==null&&!Is(e)&&e.constructor!==null&&!Is(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qx=po("ArrayBuffer");function vL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qx(e.buffer),t}const yL=wd("string"),xn=wd("function"),Gx=wd("number"),xd=e=>e!==null&&typeof e=="object",bL=e=>e===!0||e===!1,Mc=e=>{if(Sd(e)!=="object")return!1;const t=wg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},SL=po("Date"),wL=po("File"),xL=po("Blob"),CL=po("FileList"),EL=e=>xd(e)&&xn(e.pipe),RL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xn(e.append)&&((t=Sd(e))==="formdata"||t==="object"&&xn(e.toString)&&e.toString()==="[object FormData]"))},$L=po("URLSearchParams"),[OL,PL,TL,_L]=["ReadableStream","Request","Response","Headers"].map(po),ML=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qs(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),gl(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),u=l.length;let c;for(n=0;n<u;n++)c=l[n],t.call(null,e[c],c,e)}}function Kx(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,Xx=e=>!Is(e)&&e!==Qi;function vm(){const{caseless:e}=Xx(this)&&this||{},t={},r=(n,i)=>{const l=e&&Kx(t,i)||i;Mc(t[l])&&Mc(n)?t[l]=vm(t[l],n):Mc(n)?t[l]=vm({},n):gl(n)?t[l]=n.slice():t[l]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&qs(arguments[n],r);return t}const IL=(e,t,r,{allOwnKeys:n}={})=>(qs(t,(i,l)=>{r&&xn(i)?e[l]=Ux(i,r):e[l]=i},{allOwnKeys:n}),e),FL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jL=(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)},kL=(e,t,r,n)=>{let i,l,u;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)u=i[l],(!n||n(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=r!==!1&&wg(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NL=(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},LL=e=>{if(!e)return null;if(gl(e))return e;let t=e.length;if(!Gx(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},AL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wg(Uint8Array)),zL=(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])}},DL=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},BL=po("HTMLFormElement"),HL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),w1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),VL=po("RegExp"),Qx=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qs(r,(i,l)=>{let u;(u=t(i,l,e))!==!1&&(n[l]=u||i)}),Object.defineProperties(e,n)},WL=e=>{Qx(e,(t,r)=>{if(xn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(xn(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+"'")})}})},UL=(e,t)=>{const r={},n=i=>{i.forEach(l=>{r[l]=!0})};return gl(e)?n(e):n(String(e).split(t)),r},qL=()=>{},GL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,rh="abcdefghijklmnopqrstuvwxyz",x1="0123456789",Yx={DIGIT:x1,ALPHA:rh,ALPHA_DIGIT:rh+rh.toUpperCase()+x1},KL=(e=16,t=Yx.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function XL(e){return!!(e&&xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const QL=e=>{const t=new Array(10),r=(n,i)=>{if(xd(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const l=gl(n)?[]:{};return qs(n,(u,c)=>{const f=r(u,i+1);!Is(f)&&(l[c]=f)}),t[i]=void 0,l}}return n};return r(e,0)},YL=po("AsyncFunction"),JL=e=>e&&(xd(e)||xn(e))&&xn(e.then)&&xn(e.catch),Jx=((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",xn(Qi.postMessage)),ZL=typeof queueMicrotask<"u"?queueMicrotask.bind(Qi):typeof process<"u"&&process.nextTick||Jx,le={isArray:gl,isArrayBuffer:qx,isBuffer:gL,isFormData:RL,isArrayBufferView:vL,isString:yL,isNumber:Gx,isBoolean:bL,isObject:xd,isPlainObject:Mc,isReadableStream:OL,isRequest:PL,isResponse:TL,isHeaders:_L,isUndefined:Is,isDate:SL,isFile:wL,isBlob:xL,isRegExp:VL,isFunction:xn,isStream:EL,isURLSearchParams:$L,isTypedArray:AL,isFileList:CL,forEach:qs,merge:vm,extend:IL,trim:ML,stripBOM:FL,inherits:jL,toFlatObject:kL,kindOf:Sd,kindOfTest:po,endsWith:NL,toArray:LL,forEachEntry:zL,matchAll:DL,isHTMLForm:BL,hasOwnProperty:w1,hasOwnProp:w1,reduceDescriptors:Qx,freezeMethods:WL,toObjectSet:UL,toCamelCase:HL,noop:qL,toFiniteNumber:GL,findKey:Kx,global:Qi,isContextDefined:Xx,ALPHABET:Yx,generateString:KL,isSpecCompliantForm:XL,toJSONObject:QL,isAsyncFn:YL,isThenable:JL,setImmediate:Jx,asap:ZL};function lt(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(lt,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 Zx=lt.prototype,eC={};["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=>{eC[e]={value:e}});Object.defineProperties(lt,eC);Object.defineProperty(Zx,"isAxiosError",{value:!0});lt.from=(e,t,r,n,i,l)=>{const u=Object.create(Zx);return le.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),lt.call(u,e.message,t,r,n,i),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u};const e4=null;function ym(e){return le.isPlainObject(e)||le.isArray(e)}function tC(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function C1(e,t,r){return e?e.concat(t).map(function(i,l){return i=tC(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function t4(e){return le.isArray(e)&&!e.some(ym)}const r4=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function Cd(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(x,S){return!le.isUndefined(S[x])});const n=r.metaTokens,i=r.visitor||m,l=r.dots,u=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 lt("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 m(w,x,S){let E=w;if(w&&!S&&typeof w=="object"){if(le.endsWith(x,"{}"))x=n?x:x.slice(0,-2),w=JSON.stringify(w);else if(le.isArray(w)&&t4(w)||(le.isFileList(w)||le.endsWith(x,"[]"))&&(E=le.toArray(w)))return x=tC(x),E.forEach(function($,M){!(le.isUndefined($)||$===null)&&t.append(u===!0?C1([x],M,l):u===null?x:x+"[]",p($))}),!1}return ym(w)?!0:(t.append(C1(S,x,l),p(w)),!1)}const v=[],y=Object.assign(r4,{defaultVisitor:m,convertValue:p,isVisitable:ym});function C(w,x){if(!le.isUndefined(w)){if(v.indexOf(w)!==-1)throw Error("Circular reference detected in "+x.join("."));v.push(w),le.forEach(w,function(E,O){(!(le.isUndefined(E)||E===null)&&i.call(t,E,le.isString(O)?O.trim():O,x,y))===!0&&C(E,x?x.concat(O):[O])}),v.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return C(e),t}function E1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xg(e,t){this._pairs=[],e&&Cd(e,this,t)}const rC=xg.prototype;rC.append=function(t,r){this._pairs.push([t,r])};rC.toString=function(t){const r=t?function(n){return t.call(this,n,E1)}:E1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function n4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nC(e,t,r){if(!t)return e;const n=r&&r.encode||n4;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 xg(t,r).toString(n),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class R1{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 oC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o4=typeof URLSearchParams<"u"?URLSearchParams:xg,i4=typeof FormData<"u"?FormData:null,a4=typeof Blob<"u"?Blob:null,l4={isBrowser:!0,classes:{URLSearchParams:o4,FormData:i4,Blob:a4},protocols:["http","https","file","blob","url","data"]},Cg=typeof window<"u"&&typeof document<"u",bm=typeof navigator=="object"&&navigator||void 0,s4=Cg&&(!bm||["ReactNative","NativeScript","NS"].indexOf(bm.product)<0),u4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c4=Cg&&window.location.href||"http://localhost",d4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cg,hasStandardBrowserEnv:s4,hasStandardBrowserWebWorkerEnv:u4,navigator:bm,origin:c4},Symbol.toStringTag,{value:"Module"})),kr={...d4,...l4};function f4(e,t){return Cd(e,new kr.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,l){return kr.isNode&&le.isBuffer(r)?(this.append(n,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function p4(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h4(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 iC(e){function t(r,n,i,l){let u=r[l++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=l>=r.length;return u=!u&&le.isArray(i)?i.length:u,f?(le.hasOwnProp(i,u)?i[u]=[i[u],n]:i[u]=n,!c):((!i[u]||!le.isObject(i[u]))&&(i[u]=[]),t(r,n,i[u],l)&&le.isArray(i[u])&&(i[u]=h4(i[u])),!c)}if(le.isFormData(e)&&le.isFunction(e.entries)){const r={};return le.forEachEntry(e,(n,i)=>{t(p4(n),i,r,0)}),r}return null}function m4(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 Gs={transitional:oC,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(iC(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 f4(t,this.formSerializer).toString();if((c=le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Cd(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),m4(t)):t}],transformResponse:[function(t){const r=this.transitional||Gs.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 u=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?lt.from(c,lt.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:kr.classes.FormData,Blob:kr.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=>{Gs.headers[e]={}});const g4=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"]),v4=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(u){i=u.indexOf(":"),r=u.substring(0,i).trim().toLowerCase(),n=u.substring(i+1).trim(),!(!r||t[r]&&g4[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$1=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function Ic(e){return e===!1||e==null?e:le.isArray(e)?e.map(Ic):String(e)}function y4(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 b4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nh(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 S4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function w4(e,t){const r=le.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,l,u){return this[n].call(this,t,i,l,u)},configurable:!0})})}class nn{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function l(c,f,p){const m=is(f);if(!m)throw new Error("header name must be a non-empty string");const v=le.findKey(i,m);(!v||i[v]===void 0||p===!0||p===void 0&&i[v]!==!1)&&(i[v||f]=Ic(c))}const u=(c,f)=>le.forEach(c,(p,m)=>l(p,m,f));if(le.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(le.isString(t)&&(t=t.trim())&&!b4(t))u(v4(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=is(t),t){const n=le.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return y4(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=is(t),t){const n=le.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||nh(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function l(u){if(u=is(u),u){const c=le.findKey(n,u);c&&(!r||nh(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||nh(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 u=le.findKey(n,l);if(u){r[u]=Ic(i),delete r[l];return}const c=t?S4(l):String(l).trim();c!==l&&delete r[l],r[c]=Ic(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[$1]=this[$1]={accessors:{}}).accessors,i=this.prototype;function l(u){const c=is(u);n[c]||(w4(i,u),n[c]=!0)}return le.isArray(t)?t.forEach(l):l(t),this}}nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);le.reduceDescriptors(nn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});le.freezeMethods(nn);function oh(e,t){const r=this||Gs,n=t||r,i=nn.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 aC(e){return!!(e&&e.__CANCEL__)}function vl(e,t,r){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,r),this.name="CanceledError"}le.inherits(vl,lt,{__CANCEL__:!0});function lC(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new lt("Request failed with status code "+r.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function x4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function C4(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,l=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=n[l];u||(u=p),r[i]=f,n[i]=p;let v=l,y=0;for(;v!==i;)y+=r[v++],v=v%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),p-u<t)return;const C=m&&p-m;return C?Math.round(y*1e3/C):void 0}}function E4(e,t){let r=0,n=1e3/t,i,l;const u=(p,m=Date.now())=>{r=m,i=null,l&&(clearTimeout(l),l=null),e.apply(null,p)};return[(...p)=>{const m=Date.now(),v=m-r;v>=n?u(p,m):(i=p,l||(l=setTimeout(()=>{l=null,u(i)},n-v)))},()=>i&&u(i)]}const Qc=(e,t,r=3)=>{let n=0;const i=C4(50,250);return E4(l=>{const u=l.loaded,c=l.lengthComputable?l.total:void 0,f=u-n,p=i(f),m=u<=c;n=u;const v={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:p||void 0,estimated:p&&c&&m?(c-u)/p:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(v)},r)},O1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},P1=e=>(...t)=>le.asap(()=>e(...t)),R4=kr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,kr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(kr.origin),kr.navigator&&/(msie|trident)/i.test(kr.navigator.userAgent)):()=>!0,$4=kr.hasStandardBrowserEnv?{write(e,t,r,n,i,l){const u=[e+"="+encodeURIComponent(t)];le.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),le.isString(n)&&u.push("path="+n),le.isString(i)&&u.push("domain="+i),l===!0&&u.push("secure"),document.cookie=u.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 O4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P4(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sC(e,t){return e&&!O4(t)?P4(e,t):t}const T1=e=>e instanceof nn?{...e}:e;function aa(e,t){t=t||{};const r={};function n(p,m,v,y){return le.isPlainObject(p)&&le.isPlainObject(m)?le.merge.call({caseless:y},p,m):le.isPlainObject(m)?le.merge({},m):le.isArray(m)?m.slice():m}function i(p,m,v,y){if(le.isUndefined(m)){if(!le.isUndefined(p))return n(void 0,p,v,y)}else return n(p,m,v,y)}function l(p,m){if(!le.isUndefined(m))return n(void 0,m)}function u(p,m){if(le.isUndefined(m)){if(!le.isUndefined(p))return n(void 0,p)}else return n(void 0,m)}function c(p,m,v){if(v in t)return n(p,m);if(v in e)return n(void 0,p)}const f={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(p,m,v)=>i(T1(p),T1(m),v,!0)};return le.forEach(Object.keys(Object.assign({},e,t)),function(m){const v=f[m]||i,y=v(e[m],t[m],m);le.isUndefined(y)&&v!==c||(r[m]=y)}),r}const uC=e=>{const t=aa({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:l,headers:u,auth:c}=t;t.headers=u=nn.from(u),t.url=nC(sC(t.baseURL,t.url),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(le.isFormData(r)){if(kr.hasStandardBrowserEnv||kr.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(kr.hasStandardBrowserEnv&&(n&&le.isFunction(n)&&(n=n(t)),n||n!==!1&&R4(t.url))){const p=i&&l&&$4.read(l);p&&u.set(i,p)}return t},T4=typeof XMLHttpRequest<"u",_4=T4&&function(e){return new Promise(function(r,n){const i=uC(e);let l=i.data;const u=nn.from(i.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:p}=i,m,v,y,C,w;function x(){C&&C(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function E(){if(!S)return;const $=nn.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:$,config:e,request:S};lC(function(_){r(_),x()},function(_){n(_),x()},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 lt("Request aborted",lt.ECONNABORTED,e,S)),S=null)},S.onerror=function(){n(new lt("Network Error",lt.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let M=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||oC;i.timeoutErrorMessage&&(M=i.timeoutErrorMessage),n(new lt(M,R.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,S)),S=null},l===void 0&&u.setContentType(null),"setRequestHeader"in S&&le.forEach(u.toJSON(),function(M,R){S.setRequestHeader(R,M)}),le.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),c&&c!=="json"&&(S.responseType=i.responseType),p&&([y,w]=Qc(p,!0),S.addEventListener("progress",y)),f&&S.upload&&([v,C]=Qc(f),S.upload.addEventListener("progress",v),S.upload.addEventListener("loadend",C)),(i.cancelToken||i.signal)&&(m=$=>{S&&(n(!$||$.type?new vl(null,e,S):$),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=x4(i.url);if(O&&kr.protocols.indexOf(O)===-1){n(new lt("Unsupported protocol "+O+":",lt.ERR_BAD_REQUEST,e));return}S.send(l||null)})},M4=(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 m=p instanceof Error?p:this.reason;n.abort(m instanceof lt?m:new vl(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,l(new lt(`timeout ${t} of ms exceeded`,lt.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=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}},I4=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},F4=async function*(e,t){for await(const r of j4(e))yield*I4(r,t)},j4=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()}},_1=(e,t,r,n)=>{const i=F4(e,t);let l=0,u,c=f=>{u||(u=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await i.next();if(p){c(),f.close();return}let v=m.byteLength;if(r){let y=l+=v;r(y)}f.enqueue(new Uint8Array(m))}catch(p){throw c(p),p}},cancel(f){return c(f),i.return()}},{highWaterMark:2})},Ed=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cC=Ed&&typeof ReadableStream=="function",k4=Ed&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},N4=cC&&dC(()=>{let e=!1;const t=new Request(kr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),M1=64*1024,Sm=cC&&dC(()=>le.isReadableStream(new Response("").body)),Yc={stream:Sm&&(e=>e.body)};Ed&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Yc[t]&&(Yc[t]=le.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new lt(`Response type '${t}' is not supported`,lt.ERR_NOT_SUPPORT,n)})})})(new Response);const L4=async e=>{if(e==null)return 0;if(le.isBlob(e))return e.size;if(le.isSpecCompliantForm(e))return(await new Request(kr.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 k4(e)).byteLength},A4=async(e,t)=>{const r=le.toFiniteNumber(e.getContentLength());return r??L4(t)},z4=Ed&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:f,responseType:p,headers:m,withCredentials:v="same-origin",fetchOptions:y}=uC(e);p=p?(p+"").toLowerCase():"text";let C=M4([i,l&&l.toAbortSignal()],u),w;const x=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let S;try{if(f&&N4&&r!=="get"&&r!=="head"&&(S=await A4(m,n))!==0){let R=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(le.isFormData(n)&&(T=R.headers.get("content-type"))&&m.setContentType(T),R.body){const[_,F]=O1(S,Qc(P1(f)));n=_1(R.body,M1,_,F)}}le.isString(v)||(v=v?"include":"omit");const E="credentials"in Request.prototype;w=new Request(t,{...y,signal:C,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:E?v:void 0});let O=await fetch(w);const $=Sm&&(p==="stream"||p==="response");if(Sm&&(c||$&&x)){const R={};["status","statusText","headers"].forEach(j=>{R[j]=O[j]});const T=le.toFiniteNumber(O.headers.get("content-length")),[_,F]=c&&O1(T,Qc(P1(c),!0))||[];O=new Response(_1(O.body,M1,_,()=>{F&&F(),x&&x()}),R)}p=p||"text";let M=await Yc[le.findKey(Yc,p)||"text"](O,e);return!$&&x&&x(),await new Promise((R,T)=>{lC(R,T,{data:M,headers:nn.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:w})})}catch(E){throw x&&x(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,e,w),{cause:E.cause||E}):lt.from(E,E&&E.code,e,w)}}),wm={http:e4,xhr:_4,fetch:z4};le.forEach(wm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const I1=e=>`- ${e}`,D4=e=>le.isFunction(e)||e===null||e===!1,fC={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 u;if(n=r,!D4(r)&&(n=wm[(u=String(r)).toLowerCase()],n===void 0))throw new lt(`Unknown adapter '${u}'`);if(n)break;i[u||"#"+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 u=t?l.length>1?`since :
`+l.map(I1).join(`
`):" "+I1(l[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:wm};function ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vl(null,e)}function F1(e){return ih(e),e.headers=nn.from(e.headers),e.data=oh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fC.getAdapter(e.adapter||Gs.adapter)(e).then(function(n){return ih(e),n.data=oh.call(e,e.transformResponse,n),n.headers=nn.from(n.headers),n},function(n){return aC(n)||(ih(e),n&&n.response&&(n.response.data=oh.call(e,e.transformResponse,n.response),n.response.headers=nn.from(n.response.headers))),Promise.reject(n)})}const pC="1.7.8",Rd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const j1={};Rd.transitional=function(t,r,n){function i(l,u){return"[Axios v"+pC+"] Transitional option '"+l+"'"+u+(n?". "+n:"")}return(l,u,c)=>{if(t===!1)throw new lt(i(u," has been removed"+(r?" in "+r:"")),lt.ERR_DEPRECATED);return r&&!j1[u]&&(j1[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,c):!0}};Rd.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function B4(e,t,r){if(typeof e!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const l=n[i],u=t[l];if(u){const c=e[l],f=c===void 0||u(c,l,e);if(f!==!0)throw new lt("option "+l+" must be "+f,lt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new lt("Unknown option "+l,lt.ERR_BAD_OPTION)}}const Fc={assertOptions:B4,validators:Rd},wo=Fc.validators;class Ji{constructor(t){this.defaults=t,this.interceptors={request:new R1,response:new R1}}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&&Fc.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}:Fc.assertOptions(i,{encode:wo.function,serialize:wo.function},!0)),Fc.assertOptions(r,{baseUrl:wo.spelling("baseURL"),withXsrfToken:wo.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&le.merge(l.common,l[r.method]);l&&le.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),r.headers=nn.concat(u,l);const c=[];let f=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(f=f&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const p=[];this.interceptors.response.forEach(function(x){p.push(x.fulfilled,x.rejected)});let m,v=0,y;if(!f){const w=[F1.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,p),y=w.length,m=Promise.resolve(r);v<y;)m=m.then(w[v++],w[v++]);return m}y=c.length;let C=r;for(v=0;v<y;){const w=c[v++],x=c[v++];try{C=w(C)}catch(S){x.call(this,S);break}}try{m=F1.call(this,C)}catch(w){return Promise.reject(w)}for(v=0,y=p.length;v<y;)m=m.then(p[v++],p[v++]);return m}getUri(t){t=aa(this.defaults,t);const r=sC(t.baseURL,t.url);return nC(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,u,c){return this.request(aa(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Ji.prototype[t]=r(),Ji.prototype[t+"Form"]=r(!0)});class Eg{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 u=new Promise(c=>{n.subscribe(c),l=c}).then(i);return u.cancel=function(){n.unsubscribe(l)},u},t(function(l,u,c){n.reason||(n.reason=new vl(l,u,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 Eg(function(i){t=i}),cancel:t}}}function H4(e){return function(r){return e.apply(null,r)}}function V4(e){return le.isObject(e)&&e.isAxiosError===!0}const xm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xm).forEach(([e,t])=>{xm[t]=e});function hC(e){const t=new Ji(e),r=Ux(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 hC(aa(e,i))},r}const cr=hC(Gs);cr.Axios=Ji;cr.CanceledError=vl;cr.CancelToken=Eg;cr.isCancel=aC;cr.VERSION=pC;cr.toFormData=Cd;cr.AxiosError=lt;cr.Cancel=cr.CanceledError;cr.all=function(t){return Promise.all(t)};cr.spread=H4;cr.isAxiosError=V4;cr.mergeConfig=aa;cr.AxiosHeaders=nn;cr.formToJSON=e=>iC(le.isHTMLForm(e)?new FormData(e):e);cr.getAdapter=fC.getAdapter;cr.HttpStatusCode=xm;cr.default=cr;const Rg=cr.create({baseURL:"http://gitep.dev-top-it.ru:8080/api/v1"}),mC=async({email:e,password:t})=>{try{const{data:{data:{token:r}}}=await Rg.post("/login",{email:e,password:t});return r}catch{throw new Error}};function W4(e,t){for(const r in e)t(e[r],r)}function oo(e,t){e.forEach(t)}function Dn(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:u=i||l,scope:c={},meta:f={},family:p={type:"regular"},regional:m}={}){const v=gc(n),y=gc(p.links),C=gc(p.owners),w=[];oo(e,S=>S&&Si(w,S));const x={id:t3(),seq:w,next:gc(u),meta:f,scope:c,family:{type:p.type||"crosslink",links:y,owners:C}};return oo(y,S=>Si($d(S),x)),oo(C,S=>Si(Od(S),x)),oo(v,S=>Si(S.next,x)),m&&tl&&CC(gs(tl),[x]),x}function gC(e,t,r){let n,i=Eo,l=null,u=er;if(e.target&&(t=e.params,r=e.defer,n=e.meta,i="page"in e?e.page:i,e.stack&&(l=e.stack),u=hc(e)||u,e=e.target),u&&er&&u!==er&&(er=null),Array.isArray(e))for(let w=0;w<e.length;w++)Wi("pure",i,Vo(e[w]),l,t[w],u,n);else Wi("pure",i,Vo(e),l,t,u,n);if(r&&!vc)return;const c={isRoot:vc,currentPage:Eo,scope:er,isWatch:sh,isPure:kc};let f,p,m,v,y,C;vc=0;e:for(;v=d3();){const{idx:w,stack:x,type:S}=v;m=x.node,Eo=y=x.page,er=hc(x),y?C=y.reg:er&&(C=er.reg);const E=!!y,O=!!er,$={fail:0,scope:m.scope};f=p=0;for(let M=w;M<m.seq.length&&!f;M++){const R=m.seq[M];if(R.order){const{priority:T,barrierID:_}=R.order,F=_?y?`${y.fullID}_${_}`:_:0;if(M!==w||S!==T){_?lh.has(F)||(lh.add(F),Rm(M,x,T,_)):Rm(M,x,T,0);continue e}_&&lh.delete(F)}switch(R.type){case"mov":{const _=R.data;let F;switch(_.from){case"stack":F=gs(x);break;case"a":case"b":F=x[_.from];break;case"value":F=_.store;break;case"store":if(C&&!C[_.store.id])if(E){const j=$C(y,_.store.id);x.page=y=j,j?C=j.reg:O?(sl(er,_.store,0,1,_.softRead),C=er.reg):C=void 0}else O&&sl(er,_.store,0,1,_.softRead);F=RC(C&&C[_.store.id]||_.store)}switch(_.to){case"stack":x.value=F;break;case"a":case"b":x[_.to]=F;break;case"store":f3(y,er,_.target,0).current=F}break}case"compute":const T=R.data;if(T.fn){sh=m.meta.op==="watch",kc=T.pure;const _=T.safe?(0,T.fn)(gs(x),$.scope,x):h3($,T.fn,x);T.filter?p=!_:x.value=_,sh=c.isWatch,kc=c.isPure}}f=$.fail||p}if(!f){const M=gs(x),R=hc(x);if(oo(m.next,T=>{Wi("child",y,T,x,M,R)}),R){m.meta.needFxCounter&&Wi("child",y,R.fxCount,x,M,R),m.meta.storeChange&&Wi("child",y,R.storeChange,x,M,R),m.meta.warnSerialize&&Wi("child",y,R.warnSerializeNode,x,M,R);const T=R.additionalLinks[m.id];T&&oo(T,_=>{Wi("child",y,_,x,M,R)})}}}vc=c.isRoot,Eo=c.currentPage,er=hc(c)}function U4(e,t){let r,n;const i=e;if(t){const l=Q4(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 vC(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 Cm(e){const t=()=>e();return t.unsubscribe=()=>e(),t}function ms(e,...t){const r=xC();if(r){const n=r.handlers[e];if(n)return n(r,...t)}}function sa(e,t){const r=ks({or:t,and:typeof e=="string"?{name:e}:e}),n=vC("event",r),i=(c,...f)=>(Dn(!el(i,"derived"),"call of derived event is not supported, use createEvent instead",n),Dn(!kc,"unit call from pure function is not supported, use operators like sample instead",n),Eo?((p,m,v,y)=>{const C=Eo;let w=null;if(m)for(w=Eo;w&&w.template!==m;)w=Fs(w);D1(w);const x=p.create(v,y);return D1(C),x})(i,l,c,f):i.create(c,f)),l=xC(),u=Object.assign(i,{graphite:la({meta:TC(r.actualOp||"event",i,r),regional:1}),create:c=>(gC({target:i,params:c,scope:er}),c),watch:c=>PC(i,c),map:c=>uh(i,"map",c,[Ya()]),filter:c=>uh(i,"filter",c.fn?c:c.fn,[Ya(Td,1)]),filterMap:c=>uh(i,"filterMap",c,[Ya(),Em(f=>!vs(f),1)]),prepend(c){Dn(i.targetable,".prepend of derived event is not supported, call source event instead",n);const f=sa("* → "+i.shortName,{parent:Fs(i)});return ms("eventPrepend",Vo(f)),_g(f,i,[Ya()],"prepend",c),m3(i,f),f}});return r!=null&&r.domain&&r.domain.hooks.event(u),us(u,"id",u.graphite.id),wC(u.graphite),u}function k1(e,t,r,n,i){return o3(r,`${i} ${t}`,"first argument"),Dn(fa(n),"second argument should be a function",i),ed(!el(e,"derived"),`${t} in derived store`,`${t} in store created via createStore`,i),oo(Array.isArray(r)?r:[r],l=>{e.off(l),Zc(e).set(l,OC(_C(l,e,"on",a3,n)))}),e}function yC(e,t){const r=ks(t),n=u3(e),i=vC("store",r),l=sa({named:"updates",derived:1});ms("storeBase",n);const u=n.id,c="skipVoid"in r,f=c&&!r.skipVoid;ed(!(c&&r.skipVoid),"{skipVoid: true}","updateFilter",i);const p={subscribers:new Map,updates:l,defaultState:e,stateRef:n,getState(){let E,O=n;if(Eo){let $=Eo;for(;$&&!$.reg[u];)$=Fs($);$&&(E=$)}return!E&&er&&(sl(er,n,1),E=er),E&&(O=E.reg[u]),RC(O)},setState:E=>gC({target:p,params:E,defer:1,scope:er}),reset:(...E)=>(Dn(p.targetable,".reset of derived store is not supported",i),oo(E,O=>k1(p,".reset",O,()=>p.defaultState,i)),p),on:(E,O)=>(Dn(p.targetable,".on of derived store is not supported",i),k1(p,".on",E,O,i)),off(E){const O=Zc(p).get(E);return O&&(O(),Zc(p).delete(E)),p},map(E,O){let $,M;yl(E)&&($=E,E=E.fn);const R=p.getState(),T=vs(R);(!T||T&&f)&&(M=E(R));const _=yC(M,{name:`${p.shortName} → *`,derived:1,...O,and:$}),F=_C(p,_,"map",Td,E);return c3(Jc(_),{type:"map",fn:E,from:n}),Jc(_).noInit=1,ms("storeMap",n,F),_},watch(E,O){if(ed(!O,"watch second argument","sample",i),!O||!Pd(E)){const $=PC(p,E);return ms("storeWatch",n,E)||E(p.getState()),$}return Dn(fa(O),"second argument should be a function",i),E.watch($=>O(p.getState(),$))}},m=TC("store",p,r),v=p.defaultConfig.updateFilter;p.graphite=la({scope:{state:n,fn:v},node:[Em((E,O,$)=>($.scope&&!$.scope.reg[n.id]&&($.b=1),E)),s3(n),Em((E,O,{a:$,b:M})=>{const R=vs(E);return R&&!c&&console.error(`${i}: ${ch}`),(R&&f||!R)&&(E!==$||M)},1),v&&Ya(i3,1),_d({from:"stack",target:n})],child:l,meta:{...m,defaultState:e},regional:1}),us(p,"id",p.graphite.id),us(p,"rootStateRefId",u);const y=el(p,"serialize"),C=el(p,"derived"),w=y==="ignore",x=el(p,"sid");x&&(us(p,"storeChange",1),n.sid=x),x||w||C||us(p,"warnSerialize",1);const S=vs(e);return Dn(C||!S||S&&f,ch,i),C&&S&&!c&&console.error(`${i}: ${ch}`),CC(p,[l]),r!=null&&r.domain&&r.domain.hooks.store(p),C||(p.reinit=sa({named:"reinit"}),p.reset(p.reinit)),n.meta=p.graphite.meta,wC(p.graphite),p}function q4(e,{scope:t,safe:r}={}){Dn(t||er||r,"scopeBind: scope not found");const n=t||er;return i=>{function l(){z1(f)}let u,c=0;const f=er;z1(n);try{u=e(i)}catch(p){u=p,c=1}if(l(),c)throw u;return u instanceof Promise&&u.then(l,l),u}}function G4({unit:e,fn:t,scope:r,batch:n}){const i=[jc.run({fn:u=>t(u)})];n&&i.unshift(jc.compute({priority:"sampler",batch:1})),Xs(e)&&i.unshift(jc.mov({store:e.stateRef,to:"stack"}));const l=Array.isArray(e)?e:[e];if(r){const u=[],c=r.additionalLinks;return l.forEach(f=>{const p=c[f.graphite.id]||[];c[f.graphite.id]=p;const m=la({node:K4(i,f),meta:{watchOp:f.kind}});p.push(m),u.push(()=>{const v=p.indexOf(m);v!==-1&&p.splice(v,1),Pm(m)})}),Cm(()=>{u.forEach(f=>f())})}{const u=la({node:i,parent:l,family:{owners:l}});return Cm(()=>{Pm(u)})}}function K4(e,t){return Xs(t)?[jc.mov({store:t.stateRef,to:"stack"}),...e]:e}const X4=typeof Symbol<"u"&&Symbol.observable||"@@observable",Vo=e=>e.graphite||e,$d=e=>e.family.owners,Od=e=>e.family.links,Jc=e=>e.stateRef,gs=e=>e.value,Zc=e=>e.subscribers,Fs=e=>e.parent,hc=e=>e.scope,el=(e,t)=>Vo(e).meta[t],us=(e,t,r)=>Vo(e).meta[t]=r,Q4=e=>e.compositeName,Pd=e=>(fa(e)||yl(e))&&"kind"in e,Ks=e=>t=>Pd(t)&&t.kind===e,Xs=Ks("store"),Y4=Ks("event"),N1=Ks("effect"),J4=e=>Pd(e)&&!!e.targetable,bC=Ks("domain"),Z4=Ks("scope");var mc={__proto__:null,unit:Pd,store:Xs,event:Y4,effect:N1,targetable:J4,domain:bC,scope:Z4,attached:e=>N1(e)&&el(e,"attached")==1};const ah=(e,t)=>{const r=e.indexOf(t);r!==-1&&e.splice(r,1)},Si=(e,t)=>e.push(t),ed=(e,t,r,n)=>!e&&console.error(`${n?n+": ":""}${t} is deprecated${r?`, use ${r} instead`:""}`),$g=()=>{let e=0;return()=>""+ ++e},e3=$g(),SC=$g(),t3=$g();let tl=null;const wC=e=>{},xC=()=>tl,r3=e=>(e&&tl&&tl.sidRoot&&(e=`${tl.sidRoot}|${e}`),e),CC=(e,t)=>{const r=Vo(e);oo(t,n=>{const i=Vo(n);r.family.type!=="domain"&&(i.family.type="crosslink"),Si($d(i),r),Si(Od(r),i)})},gc=(e=[])=>(Array.isArray(e)?e:[e]).flat().map(Vo),yl=e=>typeof e=="object"&&e!==null,fa=e=>typeof e=="function",vs=e=>e===void 0,n3=e=>Dn(yl(e)||fa(e),"expect first argument be an object"),L1=(e,t,r,n)=>Dn(!(!yl(e)&&!fa(e)||!("family"in e)&&!("graphite"in e)),`${t}: expect ${r} to be a unit (store, event or effect)${n}`),o3=(e,t,r)=>{Array.isArray(e)?oo(e,(n,i)=>L1(n,t,`${i} item of ${r}`,"")):L1(e,t,r," or array of units")},i3=(e,{fn:t},{a:r})=>t(e,r),a3=(e,{fn:t},{a:r})=>t(r,e),Td=(e,{fn:t})=>t(e),EC=(e,t,r,n)=>{const i={id:SC(),type:e,data:t};return r&&(i.order={priority:r},n&&(i.order.barrierID=++l3)),i};let l3=0;const _d=({from:e="store",store:t,target:r,to:n=r?"store":"stack",batch:i,priority:l})=>EC("mov",{from:e,store:t,to:n,target:r},l,i),js=({fn:e,batch:t,priority:r,safe:n=0,filter:i=0,pure:l=0})=>EC("compute",{fn:e,safe:n,filter:i,pure:l},r,t),Og=({fn:e})=>js({fn:e,priority:"effect"}),Em=(e,t,r)=>js({fn:e,safe:1,filter:t,priority:r}),s3=(e,t,r)=>_d({store:e,to:"a",priority:r,batch:1}),Ya=(e=Td,t)=>js({fn:e,pure:1,filter:t}),jc={mov:_d,compute:js,filter:({fn:e,pure:t})=>js({fn:e,filter:1,pure:t}),run:Og},u3=e=>({id:SC(),current:e,initial:e}),RC=({current:e})=>e,c3=(e,t)=>{e.before||(e.before=[]),Si(e.before,t)};let Ja=null;const Pg=(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||$m(e.v.type)>$m(t.v.type))&&(r=e,e=t,t=r),r=Pg(e.r,t),e.r=e.l,e.l=r,e},Tg=[];let A1=0;for(;A1<6;)Si(Tg,{first:null,last:null,size:0}),A1+=1;const d3=()=>{for(let e=0;e<6;e++){const t=Tg[e];if(t.size>0){if(e===3||e===4){t.size-=1;const n=Ja.v;return Ja=Pg(Ja.l,Ja.r),n}t.size===1&&(t.last=null);const r=t.first;return t.first=r.r,t.size-=1,r.v}}},Wi=(e,t,r,n,i,l,u)=>Rm(0,{a:null,b:null,node:r,parent:n,value:i,page:t,scope:l,meta:u},e,0),Rm=(e,t,r,n)=>{const i=$m(r),l=Tg[i],u={v:{idx:e,stack:t,type:r,id:n},l:null,r:null};i===3||i===4?Ja=Pg(Ja,u):(l.size===0?l.first=u:l.last.r=u,l.last=u),l.size+=1},$m=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}},lh=new Set;let er,vc=1,sh=0,kc=0,Eo=null;const z1=e=>{er=e},D1=e=>{Eo=e},$C=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=e.parent;if(e)return e}return null},f3=(e,t,r,n)=>{const i=$C(e,r.id);return i?i.reg[r.id]:t?(sl(t,r,n),t.reg[r.id]):r},p3=e=>e,sl=(e,t,r,n,i)=>{const l=e.reg;if(l[t.id])return;const u=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(u&&u in e.values.sidMap&&!(u 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)||p3)(e.values.sidMap[u])}else if(t.before&&!i){let p=0;const m=r||!t.noInit||n;oo(t.before,v=>{switch(v.type){case"map":{const y=v.from;if((y||v.fn)&&(y&&sl(e,y,r,n),m)){const C=y&&l[y.id].current;c.current=v.fn?v.fn(C):C}break}case"field":sl(e,v.from,r,n),p||(p=1,c.current=Array.isArray(c.current)?[...c.current]:{...c.current}),m&&(c.current[v.field]=l[l[v.from.id].id].current)}})}u&&(e.sidIdMap[u]=t.id),l[t.id]=c},h3=(e,t,r)=>{try{return t(gs(r),e.scope,r)}catch(n){console.error(n),e.fail=1,e.failReason=n}},ks=(e,t={})=>(yl(e)&&(ks(e.or,t),W4(e,(r,n)=>{vs(r)||n==="or"||n==="and"||(t[n]=r)}),ks(e.and,t)),t),B1=(e,t)=>{ah(e.next,t),ah($d(e),t),ah(Od(e),t)},Om=(e,t,r)=>{let n;e.next.length=0,e.seq.length=0,e.scope=null;let i=Od(e);for(;n=i.pop();)B1(n,e),(t||r&&e.meta.op!=="sample"||n.family.type==="crosslink")&&Om(n,t,n.meta.op!=="on"&&r);for(i=$d(e);n=i.pop();)B1(n,e),r&&n.family.type==="crosslink"&&Om(n,t,n.meta.op!=="on"&&r)},as=e=>e.clear(),Pm=(e,{deep:t}={})=>{let r=0;if(e.ownerSet&&e.ownerSet.delete(e),Xs(e))as(Zc(e));else if(bC(e)){r=1;const n=e.history;as(n.events),as(n.effects),as(n.stores),as(n.domains)}Om(Vo(e),!!t,r)},OC=e=>Cm(()=>Pm(e)),_g=(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}),PC=(e,t)=>(Dn(fa(t),".watch argument should be a function"),OC(la({scope:{fn:t},node:[Og({fn:Td})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))),m3=(e,t,r="event")=>{Fs(e)&&Fs(e).hooks[r](t)},TC=(e,t,r)=>{const n=ks(r),i=e==="domain",l=e3(),{sid:u=null,named:c=null,domain:f=null,parent:p=f}=n,m=c||n.name||(i?"":l),v=U4(m,p),y={op:t.kind=e,name:t.shortName=m,sid:t.sid=r3(u),named:c,unitId:t.id=l,serialize:n.serialize,derived:n.derived,config:n};return t.targetable=!n.derived,t.parent=p,t.compositeName=v,t.defaultConfig=n,t.getType=()=>(ed(0,"getType","compositeName.fullName"),v.fullName),!i&&(t.subscribe=C=>(n3(C),t.watch(fa(C)?C:w=>C.next&&C.next(w))),t[X4]=()=>t),y},uh=(e,t,r,n)=>{let i;yl(r)&&(i=r,r=r.fn);const l=sa({name:`${e.shortName} → *`,derived:1,and:i});return _g(e,l,n,t,r),l},ch="undefined is used to skip updates. To allow undefined as a value provide explicit { skipVoid: false } option",_C=(e,t,r,n,i)=>{const l=Jc(t),u=_d({store:l,to:"a",priority:"read"});r==="map"&&(u.data.softRead=1);const c=[u,Ya(n)];return ms("storeOnMap",l,c,Xs(e)&&Jc(e)),_g(e,t,c,r,i)};la({node:[Og({fn:({fn:e,value:t})=>e(t)})],meta:{op:"fx",fx:"sidechain"}});const Mg=sa(),MC=sa(),IC=sa();/*! js-cookie v3.0.5 | MIT */function yc(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 g3={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 Tm(e,t){function r(i,l,u){if(!(typeof document>"u")){u=yc({},t,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var f in u)u[f]&&(c+="; "+f,u[f]!==!0&&(c+="="+u[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("; "):[],u={},c=0;c<l.length;c++){var f=l[c].split("="),p=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(u[m]=e.read(p,m),i===m)break}catch{}}return i?u[i]:u}}return Object.create({set:r,get:n,remove:function(i,l){r(i,"",yc({},l,{expires:-1}))},withAttributes:function(i){return Tm(this.converter,yc({},this.attributes,i))},withConverter:function(i){return Tm(yc({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ig=Tm(g3,{path:"/"});const Fg=yC({token:null,isInitialized:!1}).on(Mg,(e,t)=>({token:t,isInitialized:!0})).on(IC,e=>{const t=Ig.get("token")||null;return{...e,token:t,isInitialized:!0}}).on(MC,()=>({token:null,isInitialized:!0})),FC=(e,t=!1)=>{Ig.set("token",e,t?{expires:7}:void 0)},v3=()=>{Ig.remove("token")};var dh={exports:{}},fh={},ph={exports:{}},hh={};/**
 * @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 H1;function y3(){if(H1)return hh;H1=1;var e=Ls();function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function c(v,y){var C=y(),w=n({inst:{value:C,getSnapshot:y}}),x=w[0].inst,S=w[1];return l(function(){x.value=C,x.getSnapshot=y,f(x)&&S({inst:x})},[v,C,y]),i(function(){return f(x)&&S({inst:x}),v(function(){f(x)&&S({inst:x})})},[v]),u(C),C}function f(v){var y=v.getSnapshot;v=v.value;try{var C=y();return!r(v,C)}catch{return!0}}function p(v,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:c;return hh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,hh}var V1;function jC(){return V1||(V1=1,ph.exports=y3()),ph.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 W1;function b3(){if(W1)return fh;W1=1;var e=Ls(),t=jC();function r(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,c=e.useMemo,f=e.useDebugValue;return fh.useSyncExternalStoreWithSelector=function(p,m,v,y,C){var w=l(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=c(function(){function E(T){if(!O){if(O=!0,$=T,T=y(T),C!==void 0&&x.hasValue){var _=x.value;if(C(_,T))return M=_}return M=T}if(_=M,n($,T))return _;var F=y(T);return C!==void 0&&C(_,F)?_:($=T,M=F)}var O=!1,$,M,R=v===void 0?null:v;return[function(){return E(m())},R===null?void 0:function(){return E(R())}]},[m,v,y,C]);var S=i(p,w[0],w[1]);return u(function(){x.hasValue=!0,x.value=S},[S]),f(S),S},fh}var U1;function S3(){return U1||(U1=1,dh.exports=b3()),dh.exports}S3();var w3=jC();const x3=Ns(w3);function C3(e,t){const r=mc.unit(e);let n={};r?n={unit:e}:"@@unitShape"in e?typeof e["@@unitShape"]=="function"?n=e["@@unitShape"]():q1("expect @@unitShape to be a function"):n=e;const i=Array.isArray(n),l=ye.useRef({stale:1,justSubscribed:0,scope:t}),[u,c,f,p,m]=ye.useMemo(()=>{l.current.stale=1;const w=Array.isArray(n)?[]:{},x=[],S=[],E=[],O=[];for(const $ in n){if(!{}.hasOwnProperty.call(n,$))continue;const M=n[$];mc.unit(M)||q1(`expect useUnit ${r?"argument":`value in key "${$}"`} to be a unit`),mc.event(M)||mc.effect(M)?(w[$]=t?q4(M,{scope:t}):M,E.push($),O.push(M)):(w[$]=null,x.push($),S.push(M))}return[w,x,S,E,O]},[l,t,...Object.keys(n),...Object.values(n)]),v=ye.useRef({value:u,storeKeys:c,eventKeys:p,eventValues:m}),y=ye.useCallback(w=>{const x=l.current;return x.justSubscribed=1,G4({unit:f,fn:()=>{x.stale||(x.stale=1,w())},scope:t,batch:1})},[f,t,v,l]),C=ye.useCallback(()=>{const w=v.current,x=l.current;let S,E=0;const O=w.value,$=w.storeKeys,M=w.eventKeys,R=w.eventValues,T=t!==x.scope;if(x.stale||x.justSubscribed||T){E=!x.justSubscribed||T,S=i?[...u]:{...u},$.length===c.length&&M.length===p.length||(E=1);for(let _=0;_<c.length;_++){const F=$3(f[_],t),j=c[_];E||(E=$.includes(j)?O[j]!==F:1),S[j]=F}for(let _=0;_<p.length;_++){const F=m[_],j=p[_];E||(E=M.includes(j)?R[M.indexOf(j)]!==F:1)}}return E&&(w.value=S),w.storeKeys=c,w.eventKeys=p,w.eventValues=m,x.stale=0,x.justSubscribed=!E,x.scope=t,r?w.value.unit:w.value},[y,f,m,t,v,l]);return R3(y,C,C)}function E3(e){return ye.useContext(O3)}function jg(e,t){return C3(e,E3())}const q1=e=>{throw Error(e)};typeof window<"u"?ye.useLayoutEffect:ye.useEffect;const{useSyncExternalStore:R3}=x3,$3=(e,t)=>t?t.getState(e):e.getState(),O3=ye.createContext(null),P3=()=>{const{isInitialized:e}=jg(Fg);return h.useEffect(()=>{IC()},[]),e?ge.jsx(Ds,{}):null},T3=()=>{const{token:e}=jg(Fg);return e?ge.jsx(Ds,{}):ge.jsx(sS,{to:"sign-in"})},_3=()=>{const{token:e}=jg(Fg);return e?ge.jsx(sS,{to:"/"}):ge.jsx(Ds,{})};function kg({children:e}){return ge.jsx(Co,{vertical:!0,gap:16,className:Bn.inputs,children:e})}function mh({name:e}){const[t,r]=h.useState(0);return h.useEffect(()=>{const n=window.innerHeight,i=()=>{const l=window.innerHeight;if(l<n){const u=n-l+20;r(u)}else r(0)};return window.innerWidth<576&&window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]),ge.jsxs("div",{className:Bn.form,style:{marginBottom:`${t}px`},children:[ge.jsx(lo.Text,{className:Bn.title,children:e}),ge.jsx(Ds,{})]})}const M3="/assets/auth-logo-D_kQ-NYl.svg";function G1(){return ge.jsxs("div",{className:Bn.wrapper,children:[ge.jsx("img",{className:Bn.logo,src:M3,alt:""}),ge.jsx(Ds,{})]})}function I3(){const[e,t]=h.useState(!0),[r]=rr.useForm(),n=({errorFields:l})=>{if(l&&l.length>0){const u=r.getFieldInstance(l[0].name);u==null||u.focus()}},i=l=>{const{password:u,email:c,save:f}=l;console.log(l),mC({email:c,password:u}).then(p=>{FC(p,f),Mg(p)}).catch(()=>t(!1))};return ge.jsxs(rr,{form:r,className:th.form,onFinish:i,onFinishFailed:n,initialValues:{save:!0},children:[ge.jsxs(kg,{children:[ge.jsx(rr.Item,{name:"email",rules:[{required:!0,message:"Введите e-mail"},{type:"email",message:"Адрес введен некорректно"}],children:ge.jsx($o,{autoComplete:"off",size:"large",placeholder:"E-mail"})}),ge.jsx(rr.Item,{name:"password",rules:[{required:!0,message:"Введите пароль"}],children:ge.jsx($o.Password,{size:"large",placeholder:"Пароль"})}),ge.jsxs(Co,{justify:"space-between",children:[ge.jsx(rr.Item,{valuePropName:"checked",name:"save",label:null,children:ge.jsx(yg,{children:"Запомнить меня"})}),ge.jsx(ld,{to:"/reset-password",children:ge.jsx(xi,{className:th.reset,type:"link",children:"Сбросить пароль"})})]})]}),ge.jsx(rr.Item,{children:ge.jsx(xi,{className:th.submit,block:!0,type:"primary",size:"large",htmlType:"submit",children:"Войти"})}),!e&&ge.jsxs(Co,{gap:8,justify:"center",align:"center",className:Bn.warning,children:[ge.jsx("img",{src:Xc,className:Bn["warning-icon"],alt:""}),ge.jsx(lo.Text,{type:"danger",children:"Пароль или логин введены с ошибкой"})]})]})}function F3(){const e=()=>{MC(),v3()};return ge.jsxs("div",{children:["выбрать модель",ge.jsx("button",{onClick:e,children:"выйти"})]})}const j3="_form_e357y_1",k3={form:j3},N3=async({email:e})=>{var t;try{await Rg.post("/password/reset",{email:e})}catch(r){const i=((t=r.response)==null?void 0:t.data).data.errors;throw Object.values(i).flat()}};function L3(){const[e,t]=h.useState(null),[r,n]=h.useState(!1),i=l=>{const{email:u}=l;N3({email:u}).then(()=>{n(!0),t(null)}).catch(c=>{n(!1),t(c)})};return ge.jsxs(rr,{className:k3.form,onFinish:i,children:[ge.jsxs(kg,{children:[ge.jsx(lo,{children:"На указанный адрес придет ссылка"}),ge.jsx(rr.Item,{name:"email",rules:[{required:!0,message:"Введите e-mail"},{type:"email",message:"Адрес введен некорректно"}],children:ge.jsx($o,{size:"large",autoComplete:"off",placeholder:"E-mail"})})]}),ge.jsxs(Co,{vertical:!0,gap:8,children:[ge.jsx(rr.Item,{children:ge.jsx(xi,{disabled:r,block:!0,type:"primary",size:"large",htmlType:"submit",children:"Сбросить пароль"})}),ge.jsx(ld,{to:"/sign-in",children:ge.jsx(xi,{size:"large",block:!0,children:"Вернуться к логину"})})]}),r&&ge.jsx("div",{style:{marginTop:"10px"},className:Bn.success,children:ge.jsx(Lw,{message:"Ссылка для сброса пароля отправлена на эл. почту!",type:"success",showIcon:!0})}),e&&ge.jsx(Co,{vertical:!0,gap:10,children:e.map((l,u)=>ge.jsxs(Co,{gap:8,justify:"center",align:"center",className:Bn.warning,children:[ge.jsx("img",{src:Xc,className:Bn["warning-icon"],alt:""}),ge.jsx(lo.Text,{type:"danger",children:l})]},u))})]})}const A3="_form_36078_1",z3="_warning_36078_5",D3="_subtitle_36078_14",bc={form:A3,"warning-icon":"_warning-icon_36078_5",warning:z3,subtitle:D3},B3=async e=>{var t;try{await Rg.post("/password/update",e)}catch(r){const i=((t=r.response)==null?void 0:t.data).data.errors;throw Object.values(i).flat()}};function H3(){const[e]=rr.useForm(),t=jm(),{search:r}=Wo(),n=new URLSearchParams(r),i=n.get("token"),l=n.get("email"),[u,c]=h.useState(null),[f,p]=h.useState(!0),m=async v=>{const{password:y,password_confirmation:C}=v;if(y!==C){p(!1);return}try{await B3({email:l,token:i,password_confirmation:C,password:y})}catch(w){c(w);return}try{const w=await mC({email:l,password:y});FC(w,!0),Mg(w),t("/")}catch{t("sign-in")}};return!i||!l?ge.jsx("div",{children:"токен недействителен или отсутствует"}):ge.jsxs(rr,{form:e,className:bc.form,onFinish:m,children:[ge.jsxs(kg,{children:[ge.jsx(lo,{className:bc.subtitle,children:"Введите новый пароль"}),ge.jsx(rr.Item,{name:"password",rules:[{required:!0,message:"Введите пароль"}],children:ge.jsx($o.Password,{size:"large",placeholder:"Введите пароль"})}),ge.jsx(rr.Item,{name:"password_confirmation",rules:[{required:!0,message:"Повторите пароль"}],children:ge.jsx($o.Password,{size:"large",placeholder:"Новый пароль еще раз"})})]}),ge.jsx(Co,{vertical:!0,gap:8,children:ge.jsx(rr.Item,{children:ge.jsx(xi,{block:!0,type:"primary",size:"large",htmlType:"submit",children:"Установить пароль"})})}),u&&ge.jsx(Co,{vertical:!0,gap:10,children:u.map((v,y)=>ge.jsxs(Co,{gap:8,justify:"center",align:"center",className:Bn.warning,children:[ge.jsx("img",{src:Xc,className:Bn["warning-icon"],alt:""}),ge.jsx(lo.Text,{type:"danger",children:v})]},y))}),!f&&ge.jsxs(Co,{gap:8,justify:"center",align:"center",className:bc.warning,children:[ge.jsx("img",{src:Xc,className:bc["warning-icon"],alt:""}),ge.jsx(lo.Text,{type:"danger",children:"Пароли не совпадают"})]})]})}const V3=l$(bh(ge.jsxs(ge.Fragment,{children:[ge.jsxs(vn,{element:ge.jsx(P3,{}),children:[ge.jsx(vn,{element:ge.jsx(T3,{}),children:ge.jsx(vn,{path:"/",element:ge.jsx(F3,{})})}),ge.jsx(vn,{element:ge.jsx(_3,{}),children:ge.jsxs(vn,{element:ge.jsx(G1,{}),children:[ge.jsx(vn,{element:ge.jsx(mh,{name:"Вход"}),children:ge.jsx(vn,{path:"sign-in",element:ge.jsx(I3,{})})}),ge.jsx(vn,{element:ge.jsx(mh,{name:"Сброс пароля"}),children:ge.jsx(vn,{path:"reset-password",element:ge.jsx(L3,{})})})]})})]}),ge.jsx(vn,{element:ge.jsx(G1,{}),children:ge.jsx(vn,{element:ge.jsx(mh,{name:"Сброс пароля"}),children:ge.jsx(vn,{path:"password/set",element:ge.jsx(H3,{})})})})]})));v2.createRoot(document.getElementById("root")).render(ge.jsx(h.StrictMode,{children:ge.jsx(fl,{theme:{token:{colorLink:"#722ED1",colorLinkHover:"#722ED1",colorPrimary:"#722ED1",colorPrimaryHover:"#722ED1"},components:{Alert:{colorBgContainer:"transparent",defaultPadding:0}}},children:ge.jsx(jR,{router:V3})})}));